update payment control with first bill

This commit is contained in:
Aung Myo
2017-12-28 10:59:23 +06:30
parent d8738dbf5a
commit 23e7c8db97
4 changed files with 24 additions and 3 deletions

View File

@@ -302,9 +302,12 @@
$("#credit_payment").hide();
}else if(payment_type=="Credit"){
$("#card_payment").hide();
$("#others_payment").hide();
}else if(payment_type=="MPU"||payment_type=="VISA"||payment_type=="JCB"||payment_type=="Master"){
$("#credit_payment").hide();
}
/* end check first bill or not*/
var dining_id = "<%= @sale_data.bookings[0].dining_facility_id %>";
$("#back").on('click', function() {
@@ -408,6 +411,9 @@
}
else if(payment_type == "Master" && $('#mastercount').text()==0 && sub_total != 0.0){
swal("Opps","Please Pay with Master Payment","warning");
}
else if(payment_type == "Credit" && $('#credit').text()==0 && sub_total != 0.0){
swal("Opps","Please Pay with Credit Payment","warning");
}else{
$( "#loading_wrapper").show();