change route in other payment
This commit is contained in:
@@ -214,7 +214,7 @@ $('#jcb_pay').on('click',function(){
|
||||
// }
|
||||
//end member discount
|
||||
if(bank_integration == '1'){
|
||||
pay_withBank("SALE", "jcb", amount, sale_id, receipt_no);
|
||||
pay_withBank("SALE", "jcb", amount, sale_id, receipt_no,cashier_type);
|
||||
}else{
|
||||
$.ajax({type: "POST",
|
||||
url: "<%= origami_payment_jcb_path %>",
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
// }
|
||||
//end member discount
|
||||
if(bank_integration == '1'){
|
||||
pay_withBank("SALE", "master", amount, sale_id, receipt_no);
|
||||
pay_withBank("SALE", "master", amount, sale_id, receipt_no,cashier_type);
|
||||
}else{
|
||||
$.ajax({type: "POST",
|
||||
url: "<%= origami_payment_master_path %>",
|
||||
|
||||
@@ -122,10 +122,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var cashier_type = "<%= @cashier_type %>";
|
||||
$(document).ready(function() {
|
||||
var sale_id = "<%= @sale_id %>";
|
||||
var bank_integration = "<%= @bank_integration %>";
|
||||
var cashier_type = "<%= @cashier_type %>";
|
||||
|
||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||
else {
|
||||
$('#validamount').attr("value",parseFloat("<%= @can_mpu %>") - parseFloat(localStorage.getItem("cash")));
|
||||
@@ -217,7 +218,7 @@
|
||||
// }
|
||||
//end member discount
|
||||
if(bank_integration == '1'){
|
||||
pay_withBank("SALE", "mpu", amount, sale_id, receipt_no);
|
||||
pay_withBank("SALE", "mpu", amount, sale_id, receipt_no,cashier_type);
|
||||
}else{
|
||||
$.ajax({type: "POST",
|
||||
url: "<%= origami_payment_mpu_path %>",
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
//end member discount
|
||||
var bank_integration = "<%= @bank_integration %>";
|
||||
if(bank_integration == '1'){
|
||||
pay_withBank("SALE", "unionpay", amount, sale_id, receipt_no);
|
||||
pay_withBank("SALE", "unionpay", amount, sale_id, receipt_no, cashier_type);
|
||||
}
|
||||
else{
|
||||
$.ajax({type: "POST",
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
//end member discount
|
||||
var bank_integration = "<%= @bank_integration %>";
|
||||
if(bank_integration == '1'){
|
||||
pay_withBank("SALE", "visa", amount, sale_id, receipt_no);
|
||||
pay_withBank("SALE", "visa", amount, sale_id, receipt_no,cashier_type);
|
||||
}
|
||||
else{
|
||||
$.ajax({type: "POST",
|
||||
|
||||
Reference in New Issue
Block a user