만원이하 환불신청 가능하도록 수정

This commit is contained in:
itn 2023-06-29 14:12:54 +09:00
parent 77556f6110
commit bcb62d26ca

View File

@ -243,11 +243,12 @@ function fn_refund_insert() {
// 환불신청금액(환불요청 상태) // 환불신청금액(환불요청 상태)
getRefundMoneySum(); getRefundMoneySum();
if (parseInt(10000, 10) > parseInt(document.listForm.refundMoney.value, 10)) { //if (parseInt(10000, 10) > parseInt(document.listForm.refundMoney.value, 10)) {
alert("10,000원 이하 환불 불가입니다."); // alert("10,000원 이하 환불 불가입니다.");
return; // return;
} //}
else if (parseInt(userMoney, 10) < parseInt(document.listForm.refundMoney.value, 10)) {
if (parseInt(userMoney, 10) < parseInt(document.listForm.refundMoney.value, 10)) {
alert("현재 회원의 보유금액보다 큰 금액을 환불 할 수 없습니다."); alert("현재 회원의 보유금액보다 큰 금액을 환불 할 수 없습니다.");
return; return;
} }
@ -461,7 +462,7 @@ function comma(num){
<td> <td>
<input type="text" name="refundMoney" id="refundMoney" style="width:330px;margin-right:5px;" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"> <input type="text" name="refundMoney" id="refundMoney" style="width:330px;margin-right:5px;" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
<input type="checkbox" id="allmoney" name="allmoney" class="re"> <input type="checkbox" id="allmoney" name="allmoney" class="re">
<span class="text_req">전액환불(10,000원 이하 환불 불가)</span> <span class="text_req">전액환불</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>