diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index 67dcef5..d00d33c 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.html @@ -537,6 +537,18 @@ }); }) .then(function (data) { + // 업로드 중 자동 등록된 센터는 페이지를 열 때 받은 목록에 없다. + // 합쳐 두지 않으면 센터 이름 대신 id 숫자가 보인다. + (data.groups || []).forEach(function (g) { + (g.centers || []).forEach(function (c) { + if (c.center_id == null) return; + var known = centers.filter(function (x) { + return String(x.id) === String(c.center_id); + }).length > 0; + if (!known) centers.push({ id: c.center_id, name: c.center_name }); + }); + }); + var dateGroups = (data.groups || []).map(function (g) { return { ship_date: g.ship_date || "",