Merge pull request #7521 from rohitwaghchaure/discount_issue

[Fix] Sales return discount issue
This commit is contained in:
Nabin Hait 2017-01-18 17:05:01 +05:30 committed by GitHub
commit e2f4b35b11

View File

@ -198,6 +198,7 @@ def make_return_doc(doctype, source_name, target_doc=None):
if tax.charge_type == "Actual":
tax.tax_amount = -1 * tax.tax_amount
doc.discount_amount = -1 * source.discount_amount
doc.run_method("calculate_taxes_and_totals")
def update_item(source_doc, target_doc, source_parent):