other payment updated

This commit is contained in:
Nweni
2017-06-14 10:49:00 +06:30
parent 3d2b9f745e
commit 9d1aff2fa2
5 changed files with 5 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ $(document).on('click', '.cashier_number', function(event){
$('#jcb_pay').on('click',function(){ $('#jcb_pay').on('click',function(){
var amount = $('#amount').val(); var amount = $('#amount').text();
var sale_id = "<%= @sale_id %>"; var sale_id = "<%= @sale_id %>";
$.ajax({type: "POST", $.ajax({type: "POST",

View File

@@ -120,7 +120,7 @@ $(document).on('click', '.cashier_number', function(event){
} }
}); });
$('#master_pay').on('click',function(){ $('#master_pay').on('click',function(){
var amount = $('#amount').val(); var amount = $('#amount').text();
var sale_id = "<%= @sale_id %>"; var sale_id = "<%= @sale_id %>";
$.ajax({type: "POST", $.ajax({type: "POST",

View File

@@ -120,7 +120,7 @@ $(document).on('click', '.cashier_number', function(event){
} }
}); });
$('#mpu_pay').on('click',function(){ $('#mpu_pay').on('click',function(){
var amount = $('#amount').val(); var amount = $('#amount').text();
var sale_id = "<%= @sale_id %>"; var sale_id = "<%= @sale_id %>";
$.ajax({type: "POST", $.ajax({type: "POST",

View File

@@ -120,7 +120,7 @@ $(document).on('click', '.cashier_number', function(event){
} }
}); });
$('#visa_pay').on('click',function(){ $('#visa_pay').on('click',function(){
var amount = $('#amount').val(); var amount = $('#amount').text();
var sale_id = "<%= @sale_id %>"; var sale_id = "<%= @sale_id %>";
$.ajax({type: "POST", $.ajax({type: "POST",

View File

@@ -91,7 +91,7 @@ Rails.application.routes.draw do
post 'payment/mpu' => "mpu#create" post 'payment/mpu' => "mpu#create"
post 'payment/jcb' => "jcb#create" post 'payment/jcb' => "jcb#create"
post 'payment/master' => "master#create" post 'payment/master' => "master#create"
post 'payment/visa' => "master#visa" post 'payment/visa' => "visa#create"
post 'payment/paypar' => 'paypar_payments#create' post 'payment/paypar' => 'paypar_payments#create'
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index" get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"