feat: item wise tds calculation
This commit is contained in:
parent
ea387937d0
commit
12456f9850
@ -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")
|
||||
|
@ -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
|
||||
|
@ -599,4 +599,4 @@ def create_tax_with_holding_category():
|
||||
],
|
||||
"accounts": [{"company": "_Test Company", "account": "TDS - _TC"}],
|
||||
}
|
||||
).insert()
|
||||
).insert()
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user