update jade integration

This commit is contained in:
Aung Myo
2017-08-23 19:55:17 +06:30
parent 07b13d8f87
commit 352037641b
2 changed files with 10 additions and 4 deletions

View File

@@ -263,13 +263,19 @@
dataType: "json",
success: function(data) {
if (data.status == false) {
alert(data.message)
$.alert({
title: 'Alert!',
content: data.message,
type: 'red',
typeAnimated: true,
btnClass: 'btn-danger',
});
}
if (data.status == undefined) {
customer_id = data[0].customer_id;
customer_name = data[0].name;
update_sale(customer_id, customer_name,sale_id);
}
}
});
}