Merge pull request #9811 from rohitwaghchaure/pricing_rule_issue_for_discount

[Fix] Manual discount is not applying in the transaction if discount amount is zero in the pricing rule
This commit is contained in:
Nabin Hait
2017-07-13 11:14:53 +05:30
committed by GitHub
3 changed files with 51 additions and 2 deletions

View File

@@ -859,6 +859,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
});