diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index 7a6f5f3..9397e16 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
@@ -190,17 +190,23 @@ // ── 요약 렌더 ───────────────────────────────────────── // 상자 그림: fill(0~100) 만큼 안쪽이 차오르고, 뚜껑이 살짝 열린 채 표시. - function boxSvg(fill) { + function boxSvg(fill, label) { var f = Math.max(0, Math.min(100, fill || 0)); var h = 40 * f / 100; return '' + - '"; + } + + // "쿠팡 2호" → "2호" (상자 그림 안에 넣을 짧은 이름) + function shortBoxName(name) { + return String(name || "").replace(/^쿠팡\s*/, "").trim() || "박스"; } function renderSummary(results, mixes, grandTotal) { @@ -248,7 +254,7 @@ return '
  • ' + esc(it.product_name) + "" + it.quantity + "개
  • "; }).join(""); bh += '
    ' + - '
    ' + boxSvg(b.fill_percent) + "
    " + + '
    ' + boxSvg(b.fill_percent, shortBoxName(m.box_name)) + "
    " + '
    ' + '
    ' + esc(m.box_name) + " 혼합 #" + (i + 1) + "
    " + '
      ' + items + "
    " + diff --git a/app/modules/cupang/templates/cupang/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index 1ff2f01..ba3587f 100644 --- a/app/modules/cupang/templates/cupang/box_rules.html +++ b/app/modules/cupang/templates/cupang/box_rules.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
    diff --git a/app/modules/cupang/templates/cupang/centers.html b/app/modules/cupang/templates/cupang/centers.html index 110eff5..0562c22 100644 --- a/app/modules/cupang/templates/cupang/centers.html +++ b/app/modules/cupang/templates/cupang/centers.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
    diff --git a/app/modules/cupang/templates/cupang/detail.html b/app/modules/cupang/templates/cupang/detail.html index 31c054f..16469ea 100644 --- a/app/modules/cupang/templates/cupang/detail.html +++ b/app/modules/cupang/templates/cupang/detail.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
    diff --git a/app/modules/cupang/templates/cupang/form.html b/app/modules/cupang/templates/cupang/form.html index a290b1a..592a5ff 100644 --- a/app/modules/cupang/templates/cupang/form.html +++ b/app/modules/cupang/templates/cupang/form.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
    diff --git a/app/modules/cupang/templates/cupang/index.html b/app/modules/cupang/templates/cupang/index.html index 31f5b68..cb20f5c 100644 --- a/app/modules/cupang/templates/cupang/index.html +++ b/app/modules/cupang/templates/cupang/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
    diff --git a/app/modules/cupang/templates/cupang/products.html b/app/modules/cupang/templates/cupang/products.html index e2fbcd0..037ba8c 100644 --- a/app/modules/cupang/templates/cupang/products.html +++ b/app/modules/cupang/templates/cupang/products.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
    diff --git a/app/static/cupang.css b/app/static/cupang.css index 2504a6c..25b4564 100644 --- a/app/static/cupang.css +++ b/app/static/cupang.css @@ -561,3 +561,15 @@ } .cpg-prod-manual-row .erp-field { flex: 1 1 160px; min-width: 0; } .cpg-prod-manual-row .erp-input { min-width: 0; width: 100%; } + +/* 상자 그림 안 박스 호수 라벨 (예: 2호) */ +.cpg-box-label { + font-family: inherit; + font-size: 15px; + font-weight: 700; + fill: #8a5a1e; + paint-order: stroke; + stroke: rgba(255, 255, 255, .85); + stroke-width: 3px; + stroke-linejoin: round; +}