update discount for first bill
This commit is contained in:
@@ -476,10 +476,9 @@
|
|||||||
receipt_no = ($("#receipt_no").html()).trim();
|
receipt_no = ($("#receipt_no").html()).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
discount="<%= @membership.discount%>"
|
discount="<%= @membership.discount%>"\
|
||||||
membership_id="<%= @obj_sale.customer.membership_id%>"
|
|
||||||
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
|
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
|
||||||
if (discount && membership_id) {
|
if (discount) {
|
||||||
if(checkReceiptNoInFirstBillData(receipt_no,"")){
|
if(checkReceiptNoInFirstBillData(receipt_no,"")){
|
||||||
$("#pay").show();
|
$("#pay").show();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user