app order

This commit is contained in:
Myat Zin Wai Maw
2019-12-04 14:37:21 +06:30
19 changed files with 97 additions and 138 deletions

View File

@@ -1,7 +1,11 @@
if @result && @cus
if @result
json.status true
json.sent_pin true
elsif @cus
json.status true
json.sent_pin false
json.customer_id @cus.id
else
json.status false
json.message "Customer Not Found"
json.message "Phone number invalid"
end

View File

@@ -149,8 +149,8 @@
text: 'Send sms to customer ',
type: "success",
}, function () {
window.location.href ="<%=foodcourt_app_order_by_booking_path %>";
}
window.location.href ="<%=foodcourt_app_order_by_booking_path %>";
});
}
});
}