diff --git a/src/main/resources/static/res/front/js/biz/sell/info.js b/src/main/resources/static/res/front/js/biz/sell/info.js index 2981b7d..20229f7 100644 --- a/src/main/resources/static/res/front/js/biz/sell/info.js +++ b/src/main/resources/static/res/front/js/biz/sell/info.js @@ -83,10 +83,18 @@ let appVue = new Vue({ }, getTex: function(x){ //정산금액 * 0.1 = 세금 - let $this = this; + let $this = this; var settlementAmount = Number($this.getSettlementAmount(x).replaceAll(',','')); var tex = settlementAmount*0.1; - + + if((0 < Number(tex) && Number(tex) < 999)){ + if(isNaN(Number(tex))) { //NaN인지 판별 + return 0; + }else { //NaN이 아닌 경우 + const numberTex = Number(tex).toLocaleString('ko-KR'); + return numberTex; + } + } return moneyText(tex,'Y'); }, getMiddleMargin: function(x){