change query for credit sales

This commit is contained in:
phyusin
2018-07-16 16:32:02 +06:30
parent 5b4ca6bf20
commit 3859bdebcf
4 changed files with 67 additions and 18 deletions

View File

@@ -803,7 +803,7 @@ var pdf_view = '<%=@pdf_view%>';
var card = $('#card').text();
var tax_type = localStorage.getItem("tax_type") ? localStorage.getItem("tax_type") : 'all';
if (credit <= 0) {
if (credit <= 0 && (!location.pathname.includes("credit_payment"))) {
calculate_member_discount(sale_id,tax_type);
}