update discount for first bill

This commit is contained in:
Aung Myo
2018-02-06 11:06:30 +06:30
parent 1cbcab75b4
commit 90e30440c1

View File

@@ -476,10 +476,9 @@
receipt_no = ($("#receipt_no").html()).trim();
}
discount="<%= @membership.discount%>"
membership_id="<%= @obj_sale.customer.membership_id%>"
discount="<%= @membership.discount%>"\
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
if (discount && membership_id) {
if (discount) {
if(checkReceiptNoInFirstBillData(receipt_no,"")){
$("#pay").show();
}else{