check JunctionPay

This commit is contained in:
phyusin
2018-06-11 17:20:47 +06:30
parent 425e72afe7
commit e2fdf994d7
4 changed files with 76 additions and 23 deletions

View File

@@ -205,7 +205,8 @@ $('#junction_pay').on('click',function(){
var com_port = '/dev/' + $("#com_port_name").val();
var is_rebate=false;
//alert(cashier_id + amount + com_port);
code2lab.reqJunctionPay(true, cashier_id, parseFloat(amount), receipt_no, com_port);
code2lab.reqJunctionPay(true, cashier_id, parseFloat(amount), receipt_no, com_port);
resJunctionPayUpdate = function(totalBillAmount , finalBillAmt,giftCardAmount, voucherAmount,voucherNumber,receiptNumber){
$("#loading_wrapper").hide();
@@ -244,7 +245,10 @@ $('#junction_pay').on('click',function(){
if(memberno != ''){ is_rebate = true; }
};
resError = function(err_message){
$("#loading_wrapper").hide();
swal ( "Oops" , err_message , "error" );
};
// $("#loading_wrapper").hide();
// $.ajax({type: "POST",
// url: "/origami/payment/"+payment_type,