fix: Do not add tax withheld vouchers post tax withheding in one document
(cherry picked from commit 781d160c68)
This commit is contained in:
@@ -1430,6 +1430,7 @@
|
|||||||
"fieldname": "tax_withheld_vouchers",
|
"fieldname": "tax_withheld_vouchers",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"label": "Tax Withheld Vouchers",
|
"label": "Tax Withheld Vouchers",
|
||||||
|
"no_copy": 1,
|
||||||
"options": "Tax Withheld Vouchers",
|
"options": "Tax Withheld Vouchers",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
}
|
}
|
||||||
@@ -1438,7 +1439,7 @@
|
|||||||
"idx": 204,
|
"idx": 204,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2022-09-27 11:07:55.766844",
|
"modified": "2022-10-07 14:19:14.214157",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Purchase Invoice",
|
"name": "Purchase Invoice",
|
||||||
|
|||||||
@@ -249,6 +249,9 @@ def get_tax_amount(party_type, parties, inv, tax_details, posting_date, pan_no=N
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
tax_amount = net_total * tax_details.rate / 100 if net_total > 0 else 0
|
tax_amount = net_total * tax_details.rate / 100 if net_total > 0 else 0
|
||||||
|
|
||||||
|
# once tds is deducted, not need to add vouchers in the invoice
|
||||||
|
voucher_wise_amount = {}
|
||||||
else:
|
else:
|
||||||
tax_amount = get_tds_amount(ldc, parties, inv, tax_details, tax_deducted, vouchers)
|
tax_amount = get_tds_amount(ldc, parties, inv, tax_details, tax_deducted, vouchers)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user