other payment updated
This commit is contained in:
@@ -123,7 +123,7 @@ $(document).on('click', '.cashier_number', function(event){
|
||||
|
||||
|
||||
$('#jcb_pay').on('click',function(){
|
||||
var amount = $('#amount').val();
|
||||
var amount = $('#amount').text();
|
||||
var sale_id = "<%= @sale_id %>";
|
||||
|
||||
$.ajax({type: "POST",
|
||||
|
||||
@@ -120,7 +120,7 @@ $(document).on('click', '.cashier_number', function(event){
|
||||
}
|
||||
});
|
||||
$('#master_pay').on('click',function(){
|
||||
var amount = $('#amount').val();
|
||||
var amount = $('#amount').text();
|
||||
var sale_id = "<%= @sale_id %>";
|
||||
|
||||
$.ajax({type: "POST",
|
||||
|
||||
@@ -120,7 +120,7 @@ $(document).on('click', '.cashier_number', function(event){
|
||||
}
|
||||
});
|
||||
$('#mpu_pay').on('click',function(){
|
||||
var amount = $('#amount').val();
|
||||
var amount = $('#amount').text();
|
||||
var sale_id = "<%= @sale_id %>";
|
||||
|
||||
$.ajax({type: "POST",
|
||||
|
||||
@@ -120,7 +120,7 @@ $(document).on('click', '.cashier_number', function(event){
|
||||
}
|
||||
});
|
||||
$('#visa_pay').on('click',function(){
|
||||
var amount = $('#amount').val();
|
||||
var amount = $('#amount').text();
|
||||
var sale_id = "<%= @sale_id %>";
|
||||
|
||||
$.ajax({type: "POST",
|
||||
|
||||
@@ -91,7 +91,7 @@ Rails.application.routes.draw do
|
||||
post 'payment/mpu' => "mpu#create"
|
||||
post 'payment/jcb' => "jcb#create"
|
||||
post 'payment/master' => "master#create"
|
||||
post 'payment/visa' => "master#visa"
|
||||
post 'payment/visa' => "visa#create"
|
||||
post 'payment/paypar' => 'paypar_payments#create'
|
||||
|
||||
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"
|
||||
|
||||
Reference in New Issue
Block a user