mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
fix: round off tax withholding amount (#45271)
(cherry picked from commit ada272a29b)
This commit is contained in:
@@ -156,6 +156,9 @@ def get_party_tax_withholding_details(inv, tax_withholding_category=None):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if cint(tax_details.round_off_tax_amount):
|
||||||
|
inv.round_off_applicable_accounts_for_tax_withholding = tax_details.account_head
|
||||||
|
|
||||||
if inv.doctype == "Purchase Invoice":
|
if inv.doctype == "Purchase Invoice":
|
||||||
return tax_row, tax_deducted_on_advances, voucher_wise_amount
|
return tax_row, tax_deducted_on_advances, voucher_wise_amount
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ class calculate_taxes_and_totals:
|
|||||||
"Accounts Settings", "round_row_wise_tax"
|
"Accounts Settings", "round_row_wise_tax"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if doc.get("round_off_applicable_accounts_for_tax_withholding"):
|
||||||
|
frappe.flags.round_off_applicable_accounts.append(
|
||||||
|
doc.round_off_applicable_accounts_for_tax_withholding
|
||||||
|
)
|
||||||
|
|
||||||
self._items = self.filter_rows() if self.doc.doctype == "Quotation" else self.doc.get("items")
|
self._items = self.filter_rows() if self.doc.doctype == "Quotation" else self.doc.get("items")
|
||||||
|
|
||||||
get_round_off_applicable_accounts(self.doc.company, frappe.flags.round_off_applicable_accounts)
|
get_round_off_applicable_accounts(self.doc.company, frappe.flags.round_off_applicable_accounts)
|
||||||
|
|||||||
Reference in New Issue
Block a user