Merge branch 'frappe:develop' into rounded-row-wise-tax

This commit is contained in:
Dany Robert
2023-10-11 12:31:13 +05:30
committed by GitHub
425 changed files with 16998 additions and 16021 deletions

View File

@@ -193,7 +193,9 @@ class calculate_taxes_and_totals(object):
item.net_rate = item.rate
if not item.qty and self.doc.get("is_return"):
if (
not item.qty and self.doc.get("is_return") and self.doc.get("doctype") != "Purchase Receipt"
):
item.amount = flt(-1 * item.rate, item.precision("amount"))
elif not item.qty and self.doc.get("is_debit_note"):
item.amount = flt(item.rate, item.precision("amount"))