check payment type

This commit is contained in:
phyusin
2018-01-11 17:36:40 +06:30
parent bb2c8694a5
commit 9f7ce6d495

View File

@@ -309,6 +309,9 @@ function resCBPay(resMsg,card_sale_trans_id,cmd_type,payment_type,bnk_bill_amoun
}
});
}else{
if(payment_type!="master"){
payment_type = payment_type.toUpperCase();
}
swal({
title: 'Oops',
text: "Transaction is " + (jobj.STATUS).toLowerCase(),
@@ -318,7 +321,7 @@ function resCBPay(resMsg,card_sale_trans_id,cmd_type,payment_type,bnk_bill_amoun
closeOnCancel: false,
allowOutsideClick: false
}, function () {
window.location.href = '/origami/sale/'+ sale_id + "/payment/others_payment/"+payment_type.toUpperCase();
window.location.href = '/origami/sale/'+ sale_id + "/payment/others_payment/"+payment_type;
});
}
}