discount second display in card
This commit is contained in:
@@ -407,6 +407,17 @@
|
|||||||
<%= render "layouts/read_modal" %>
|
<%= render "layouts/read_modal" %>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
$.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');
|
||||||
|
|
||||||
// //control borwser back
|
// //control borwser back
|
||||||
window.location.hash="no-back-button";
|
window.location.hash="no-back-button";
|
||||||
window.location.hash="Again-No-back-button";//again because google chrome don't insert first hash into history
|
window.location.hash="Again-No-back-button";//again because google chrome don't insert first hash into history
|
||||||
|
|||||||
Reference in New Issue
Block a user