mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
Merge pull request #7521 from rohitwaghchaure/discount_issue
[Fix] Sales return discount issue
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user