updated for food and beverage bugs
This commit is contained in:
@@ -64,12 +64,6 @@ $(document).ready(function(){
|
||||
url: "/origami/" + unique_id,
|
||||
data: { 'booking_id' : unique_id },
|
||||
success:function(result){
|
||||
// =======
|
||||
// type: "GET",
|
||||
// url: "origami/" + unique_id,
|
||||
// data: { 'id' : unique_id },
|
||||
// success:function(result){
|
||||
// >>>>>>> 5ee3ae257a59269b651dcc5c0232b95d7f41fb77
|
||||
for (i = 0; i < result.length; i++) {
|
||||
var data = JSON.stringify(result[i]);
|
||||
var parse_data = JSON.parse(data);
|
||||
@@ -191,20 +185,20 @@ $(document).ready(function(){
|
||||
});
|
||||
|
||||
function show_customer_details(customer_id){
|
||||
$('.customer_detail').removeClass('hide');
|
||||
//Start Ajax
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "origami/"+customer_id+"/get_customer/",
|
||||
data: {},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
$("#customer_name").text(data.name);
|
||||
$("#customer_name").text(data.name);
|
||||
}
|
||||
});
|
||||
//End Ajax
|
||||
}
|
||||
$('.customer_detail').removeClass('hide');
|
||||
//Start Ajax
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "origami/"+customer_id+"/get_customer/",
|
||||
data: {},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
$("#customer_name").text(data.name);
|
||||
$("#customer_name").text(data.name);
|
||||
}
|
||||
});
|
||||
//End Ajax
|
||||
}
|
||||
|
||||
/* For Receipt - Calculate discount or tax */
|
||||
$('.cashier_number').on('click', function(event){
|
||||
|
||||
Reference in New Issue
Block a user