change(cupang): 출고 칸 표기 "쿠팡상자, 41개" + K열 120px

상자 종류가 여럿이면 " / " 로 구분한다.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-01 15:37:37 +09:00
parent 21018a5332
commit 58d33aa926
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ WIDTHS_PX = {
8: 95, # H 제품코드 8: 95, # H 제품코드
9: 210, # I 제품명 9: 210, # I 제품명
10: 60, # J 수량 10: 60, # J 수량
11: 100, # K 출고 11: 120, # K 출고
12: 90, # L 작업자 12: 90, # L 작업자
} }
PX_PER_CHAR = 7.0 PX_PER_CHAR = 7.0
@@ -1234,7 +1234,8 @@
}); });
} }
}); });
// 출고 엑셀 "출고" 칸 — 상자 종류별 박스 수 (예: 쿠팡상자41, 3호상자2) // 출고 엑셀 "출고" 칸 — 상자 종류별 박스 수 (예: "쿠팡상자, 41개")
// 종류가 여럿이면 " / " 로 잇는다 (예: "쿠팡상자, 41개 / 3호상자, 2개")
var byType = {}; var byType = {};
var order = []; var order = [];
rows.forEach(function (a) { rows.forEach(function (a) {
@@ -1249,7 +1250,9 @@
if (!(t in byType)) { byType[t] = 0; order.push(t); } if (!(t in byType)) { byType[t] = 0; order.push(t); }
byType[t] += a.count; byType[t] += a.count;
}); });
var boxSummary = order.map(function (t) { return t + byType[t]; }).join(", "); var boxSummary = order.map(function (t) {
return t + ", " + byType[t] + "개";
}).join(" / ");
return { return {
center_id: cid, center_id: cid,