Merge pull request #36799 from deepeshgarg007/tds_on_debit_note
fix: Tax withholding reversal on Debit Notes
This commit is contained in:
commit
1449e38b39
@ -271,9 +271,9 @@ def get_tax_amount(party_type, parties, inv, tax_details, posting_date, pan_no=N
|
|||||||
net_total, limit_consumed, ldc.certificate_limit, ldc.rate, tax_details
|
net_total, limit_consumed, ldc.certificate_limit, ldc.rate, tax_details
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
tax_amount = net_total * tax_details.rate / 100 if net_total > 0 else 0
|
tax_amount = net_total * tax_details.rate / 100
|
||||||
else:
|
else:
|
||||||
tax_amount = net_total * tax_details.rate / 100 if net_total > 0 else 0
|
tax_amount = net_total * tax_details.rate / 100
|
||||||
|
|
||||||
# once tds is deducted, not need to add vouchers in the invoice
|
# once tds is deducted, not need to add vouchers in the invoice
|
||||||
voucher_wise_amount = {}
|
voucher_wise_amount = {}
|
||||||
|
@ -345,6 +345,8 @@ def make_return_doc(
|
|||||||
elif doctype == "Purchase Invoice":
|
elif doctype == "Purchase Invoice":
|
||||||
# look for Print Heading "Debit Note"
|
# look for Print Heading "Debit Note"
|
||||||
doc.select_print_heading = frappe.get_cached_value("Print Heading", _("Debit Note"))
|
doc.select_print_heading = frappe.get_cached_value("Print Heading", _("Debit Note"))
|
||||||
|
if source.tax_withholding_category:
|
||||||
|
doc.set_onload("supplier_tds", source.tax_withholding_category)
|
||||||
|
|
||||||
for tax in doc.get("taxes") or []:
|
for tax in doc.get("taxes") or []:
|
||||||
if tax.charge_type == "Actual":
|
if tax.charge_type == "Actual":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user