fix foodcourt sales transaction
This commit is contained in:
@@ -563,7 +563,7 @@ $(function() {
|
||||
$(document).on('click', '.add_icon', function(event){
|
||||
|
||||
if (window.location.pathname.includes('out_of_stock') == false) {
|
||||
|
||||
|
||||
if($(this).hasClass('product_item')) {
|
||||
$('.sx_item_detailModal').modal('hide');
|
||||
|
||||
@@ -1168,10 +1168,12 @@ $(function() {
|
||||
data: params,
|
||||
dataType: "json",
|
||||
success: function(result){
|
||||
if (type == "quick_service" || type=="food_court") {
|
||||
module_name = window.location.href.includes('foodcourt') ? 'foodcourt' : 'origami'
|
||||
window.location.href = "/"+module_name+"/"+type;
|
||||
}else{
|
||||
booking_id = result.booking_id;
|
||||
if (type == "quick_service") {
|
||||
window.location.href = "/origami/quick_service";
|
||||
} else if (type=="food_court") {
|
||||
window.location.href = "/foodcourt/app_orders?pending_id=" + booking_id;
|
||||
} else {
|
||||
if(table_type == "Table"){
|
||||
window.location.href = "/origami/table/" + table_id;
|
||||
}
|
||||
@@ -1195,7 +1197,7 @@ $(function() {
|
||||
|
||||
// Pay Discount for Payment
|
||||
// $("#create_pay_order").on('click', function(e){
|
||||
|
||||
|
||||
// $(this).prop("disabled", true);
|
||||
// $("#create_order").prop("disabled", true);
|
||||
// $("#read_modal").attr('data-for', 'member');
|
||||
@@ -1716,7 +1718,7 @@ $(function() {
|
||||
menu_insta = '';
|
||||
|
||||
$(instances).each(function(i){
|
||||
if (!instances[i].out_of_stock) { //instances[i].is_default === true &&
|
||||
if (!instances[i].out_of_stock) { //instances[i].is_default === true &&
|
||||
code = instances[i].code;
|
||||
name = instances[i].name;
|
||||
price = parseFloat(instances[i].price).toFixed(2);
|
||||
|
||||
Reference in New Issue
Block a user