mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix: RCM tax calculation
This commit is contained in:
@@ -817,7 +817,11 @@ def get_gst_tax_amount(doc):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if flt(tax.base_tax_amount_after_discount_amount) and tax.account_head in gst_account_list:
|
if flt(tax.base_tax_amount_after_discount_amount) and tax.account_head in gst_account_list:
|
||||||
base_gst_tax += tax.base_tax_amount_after_discount_amount
|
if tax.add_deduct_tax == "Add":
|
||||||
gst_tax += tax.tax_amount_after_discount_amount
|
base_gst_tax += tax.base_tax_amount_after_discount_amount
|
||||||
|
gst_tax += tax.tax_amount_after_discount_amount
|
||||||
|
else:
|
||||||
|
base_gst_tax -= tax.base_tax_amount_after_discount_amount
|
||||||
|
gst_tax -= tax.tax_amount_after_discount_amount
|
||||||
|
|
||||||
return gst_tax, base_gst_tax
|
return gst_tax, base_gst_tax
|
||||||
|
|||||||
Reference in New Issue
Block a user