From 12456f985038f6eea37fbe930fe84168f5f36c68 Mon Sep 17 00:00:00 2001 From: niralisatapara Date: Thu, 3 Nov 2022 10:46:30 +0530 Subject: [PATCH] feat: item wise tds calculation --- .../doctype/purchase_invoice/test_purchase_invoice.py | 2 +- .../tax_withholding_category/tax_withholding_category.py | 4 ++-- .../tax_withholding_category/test_tax_withholding_category.py | 2 +- erpnext/controllers/taxes_and_totals.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py index 76ea95528c3..f901257ccf6 100644 --- a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py @@ -1734,4 +1734,4 @@ def make_purchase_invoice_against_cost_center(**args): return pi -test_records = frappe.get_test_records("Purchase Invoice") \ No newline at end of file +test_records = frappe.get_test_records("Purchase Invoice") diff --git a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py index 06e1c178544..30ed91b9744 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py @@ -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 \ No newline at end of file + return valid diff --git a/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py index d29af920def..40c732bae52 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py @@ -599,4 +599,4 @@ def create_tax_with_holding_category(): ], "accounts": [{"company": "_Test Company", "account": "TDS - _TC"}], } - ).insert() \ No newline at end of file + ).insert() diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py index 16bc01dc87a..81de6823782 100644 --- a/erpnext/controllers/taxes_and_totals.py +++ b/erpnext/controllers/taxes_and_totals.py @@ -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")) \ No newline at end of file + d.base_amount = flt(d.amount * flt(d.exchange_rate), d.precision("base_amount"))