From 92e30edc7c586a5aa8f10d6fa64ed4d81f962b59 Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Fri, 27 Jun 2025 16:08:57 +0900 Subject: [PATCH] =?UTF-8?q?[FO]=20=EC=88=98=EC=A0=95=20:=2060.=20=EC=9D=80?= =?UTF-8?q?=ED=96=89=20=EC=9E=90=EB=8F=99=EC=9D=B4=EC=B2=B4=20=EB=82=B4?= =?UTF-8?q?=EC=97=AD=20=EB=93=B1=EB=A1=9D=EB=82=B4=EC=97=AD=20=EB=85=B8?= =?UTF-8?q?=EC=B6=9C=20=EC=8B=9C=20=EB=93=B1=EB=A1=9D=ED=95=9C=20=ED=95=AD?= =?UTF-8?q?=EB=AA=A9=EB=A7=8C=20=EB=85=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/info/bank/input.html | 10 +++++++--- .../src/main/resources/templates/info/bank/output.html | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/front/src/main/resources/templates/info/bank/input.html b/front/src/main/resources/templates/info/bank/input.html index c4d59e8c..1769f8a0 100644 --- a/front/src/main/resources/templates/info/bank/input.html +++ b/front/src/main/resources/templates/info/bank/input.html @@ -531,10 +531,14 @@ : `${getCategory(categoryCode)}`; let tagCount = ''; - if(product.count && product.unitCode != "code.record.unit.self"){ - tagCount = `
  • 수량

    ${format(product.count)}${getUnit(product.unitCode)}
  • `; + if (product.count > 0) { + const unitText = product.unitCode !== 'code.record.unit.self' + ? getUnit(product.unitCode) + : product.unit; + + tagCount = `
  • 수량

    ${format(product.count)}${unitText}
  • `; } else { - tagCount = `
  • 수량

    ${format(product.count)}${product.unit}
  • ` + tagCount = ''; } const buttonGroupHtml = isEdit diff --git a/front/src/main/resources/templates/info/bank/output.html b/front/src/main/resources/templates/info/bank/output.html index e6f286e9..4b33278a 100644 --- a/front/src/main/resources/templates/info/bank/output.html +++ b/front/src/main/resources/templates/info/bank/output.html @@ -524,10 +524,14 @@ : `${getCategory(categoryCode)}`; let tagCount = ''; - if(product.count && product.unitCode != "code.record.unit.self"){ - tagCount = `
  • 수량

    ${format(product.count)}${getUnit(product.unitCode)}
  • `; + if (product.count > 0) { + const unitText = product.unitCode !== 'code.record.unit.self' + ? getUnit(product.unitCode) + : product.unit; + + tagCount = `
  • 수량

    ${format(product.count)}${unitText}
  • `; } else { - tagCount = `
  • 수량

    ${format(product.count)}${product.unit}
  • ` + tagCount = ''; } const buttonGroupHtml = isEdit