feat: item wise tds calculation

This commit is contained in:
niralisatapara 2022-11-03 10:46:30 +05:30
parent ea387937d0
commit 12456f9850
4 changed files with 5 additions and 5 deletions

View File

@ -1734,4 +1734,4 @@ def make_purchase_invoice_against_cost_center(**args):
return pi
test_records = frappe.get_test_records("Purchase Invoice")
test_records = frappe.get_test_records("Purchase Invoice")

View File

@ -63,7 +63,7 @@ def get_party_details(inv):
def get_party_tax_withholding_details(inv, tax_withholding_category=None):
if inv.doctype == "Payment Entry":
inv.tax_withholding_net_total = inv.net_total
pan_no = ""
parties = []
party_type, party = get_party_details(inv)
@ -564,4 +564,4 @@ def is_valid_certificate(
) and certificate_limit > deducted_amount:
valid = True
return valid
return valid

View File

@ -599,4 +599,4 @@ def create_tax_with_holding_category():
],
"accounts": [{"company": "_Test Company", "account": "TDS - _TC"}],
}
).insert()
).insert()

View File

@ -1078,4 +1078,4 @@ class init_landed_taxes_and_totals(object):
def set_amounts_in_company_currency(self):
for d in self.doc.get(self.tax_field):
d.amount = flt(d.amount, d.precision("amount"))
d.base_amount = flt(d.amount * flt(d.exchange_rate), d.precision("base_amount"))
d.base_amount = flt(d.amount * flt(d.exchange_rate), d.precision("base_amount"))