[Fix] Manual discount is not applying on the pricing rule if discount amount is zero in the pricing rule

This commit is contained in:
Rohit Waghchaure
2017-07-12 13:33:59 +05:30
parent bfdb726072
commit b12f2109b5
3 changed files with 51 additions and 2 deletions

View File

@@ -861,6 +861,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
"pricing_rule": d.pricing_rule,
"warehouse": d.warehouse,
"serial_no": d.serial_no,
"discount_percentage": d.discount_percentage || 0.0,
"conversion_factor": d.conversion_factor || 1.0
});