update second display for qrpay
This commit is contained in:
@@ -465,6 +465,19 @@ var paymalcount = <%= @paymalcount %>;
|
||||
var customer_paypar_account = '<%= @sale_data.customer.paypar_account_no %>';
|
||||
// console.log(pdf_view)
|
||||
$(document).ready(function(){
|
||||
|
||||
$.post('/foodcourt/customer_view', {
|
||||
data: {
|
||||
items: <%= raw @sale_data.sale_items.to_json %>,
|
||||
subtotal: <%= number_with_precision(@sale_data.total_amount, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i) %>,
|
||||
total_discount: <%= number_with_precision(@sale_data.total_discount, precision: precision.to_i) rescue number_with_precision(0, precision: precision.to_i) %>,
|
||||
total_tax: <%= number_with_precision(@sale_data.total_tax, precision: precision.to_i) rescue number_with_precision(0, precision: precision.to_i) %>,
|
||||
grand_total: <%= number_with_precision(@sale_data.grand_total, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i) %>,
|
||||
},
|
||||
status: "reload_and_update"
|
||||
}, function(result) {}, 'json');
|
||||
|
||||
|
||||
$("#read_modal").modal('hide');
|
||||
/* replace url type*/
|
||||
if(!trans_flag){
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<td class="text-right item-attr"><strong id="s_total_discount"></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="charges-name"><strong>Tax Amount (5%):</strong></td>
|
||||
<td class="charges-name"><strong>Tax:</strong></td>
|
||||
<td class="text-right item-attr"><strong id="s_tatal_tax"></strong></td>
|
||||
</tr>
|
||||
<tr class="table-active">
|
||||
|
||||
Reference in New Issue
Block a user