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