feat(입출고): 봉투·백 표에서 단가·무게·은 열 제거

봉투·백에는 단가·무게·은이 없어 표에서 네 열을 뺀다. 전에 넣은 값은
숨은 칸으로 저장 때 그대로 보내 지우지 않는다.
새 발주서·발주서 화면·발주 메일의 단가 미입력 안내에서도 봉투·백을 뺀다.
은 칸이 없는 줄에서 그룹을 바꿔도 색상 표시가 덮이지 않게 고친다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 15:29:20 +09:00
parent b0f559907f
commit cfb6878bea
11 changed files with 39 additions and 22 deletions
+5 -5
View File
@@ -140,7 +140,7 @@
const cell = tr.querySelector(".io-amount");
// 금액 = 수량 × 단가(상품 정보 단가, 이미 있던 품목은 발주 당시 단가) — 표시만, 저장은 서버가 단가 사본으로
if (cell) cell.textContent = has && price !== null && n ? (Math.round(price * n * 100) / 100).toLocaleString("ko-KR") : "-";
if (has) { k++; q += n; if (price === null) missing++; else amount += price * n; }
if (has) { k++; q += n; if (price !== null) amount += price * n; else if (tr.dataset.bag !== "1") missing++; } // 봉투·백은 단가가 원래 없음
const bx = boxCell(tr, n, has);
if (has && tr.dataset.bag === "1") {
const cap = parseInt(tr.dataset.palletBox || "0", 10) || 0;
@@ -511,13 +511,13 @@
const opt = sel.options[sel.selectedIndex];
const grouped = !!sel.value;
tr.classList.toggle("is-grouped", grouped);
const vals = tr.querySelectorAll(".io-group-val");
if (vals[0]) vals[0].textContent = (opt && opt.dataset.silver) || "-";
if (vals[1]) {
const silverVal = tr.querySelector(".io-group-val.io-r"), colorVal = tr.querySelector(".io-color.io-group-val"); // 봉투·백 줄엔 은 칸 없음
if (silverVal) silverVal.textContent = (opt && opt.dataset.silver) || "-";
if (colorVal) {
const key = (opt && opt.dataset.color) || "none";
const csel = tr.querySelector(".io-color-select");
const copt = csel && Array.from(csel.options).find(function (o) { return o.value === key; });
const sw = vals[1].querySelector(".io-swatch"), nm = vals[1].querySelector(".io-color-name");
const sw = colorVal.querySelector(".io-swatch"), nm = colorVal.querySelector(".io-color-name");
if (sw) { sw.style.background = (copt && copt.dataset.hex) || "#fff"; sw.classList.toggle("is-none", !(copt && copt.dataset.hex)); }
if (nm) nm.textContent = copt ? copt.textContent : "";
}