From cd6154280ce0628fd840c296b52010c781a6cd9c Mon Sep 17 00:00:00 2001 From: hylee Date: Mon, 10 Jul 2023 10:10:48 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20pms=20-=203258=20"=ED=8C=A9=EC=8A=A4=20?= =?UTF-8?q?=EB=B0=9C=EC=86=A1=EC=A0=84=20=EB=B9=84=EC=9A=A9=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC"=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/jsp/web/fax/faxDataView.jsp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/webapp/WEB-INF/jsp/web/fax/faxDataView.jsp b/src/main/webapp/WEB-INF/jsp/web/fax/faxDataView.jsp index fc0eb24c..ed562130 100644 --- a/src/main/webapp/WEB-INF/jsp/web/fax/faxDataView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/fax/faxDataView.jsp @@ -51,6 +51,11 @@ return false; } + if(!moneyChk()){ + return false; + } + + if(!valueChk()){ return false; } @@ -152,6 +157,19 @@ } + function moneyChk(){ + + //회원 보유 잔액 비교 + var totPriceOnly = stringReplaceAll($('#totalPriceTxt').text() , ",", ""); + var userMoneyOnly = stringReplaceAll($('#hdUserMoney').text(), ",", ""); + + if(parseFloat(userMoneyOnly) < parseFloat(totPriceOnly)){ + alert("팩스 발송에 필요한 회원님의 보유 잔액이 부족 합니다."); + return false; + } + } + + function valueChk(){ if($('#title').val() == ''){ alert('제목을 입력해 주세요.');