fix: Error on applying TDS without party (#25632)
* fix: Error on applying TDS without party * fix: Add placeholder value
This commit is contained in:
parent
83f98f6992
commit
d2520680bc
@ -21,7 +21,10 @@ def get_party_details(inv):
|
|||||||
else:
|
else:
|
||||||
party_type = 'Supplier'
|
party_type = 'Supplier'
|
||||||
party = inv.supplier
|
party = inv.supplier
|
||||||
|
|
||||||
|
if not party:
|
||||||
|
frappe.throw(_("Please select {0} first").format(party_type))
|
||||||
|
|
||||||
return party_type, party
|
return party_type, party
|
||||||
|
|
||||||
def get_party_tax_withholding_details(inv, tax_withholding_category=None):
|
def get_party_tax_withholding_details(inv, tax_withholding_category=None):
|
||||||
@ -324,7 +327,7 @@ def get_tds_amount_from_ldc(ldc, parties, fiscal_year, pan_no, tax_details, post
|
|||||||
net_total, ldc.certificate_limit
|
net_total, ldc.certificate_limit
|
||||||
):
|
):
|
||||||
tds_amount = get_ltds_amount(net_total, limit_consumed, ldc.certificate_limit, ldc.rate, tax_details)
|
tds_amount = get_ltds_amount(net_total, limit_consumed, ldc.certificate_limit, ldc.rate, tax_details)
|
||||||
|
|
||||||
return tds_amount
|
return tds_amount
|
||||||
|
|
||||||
def get_debit_note_amount(suppliers, fiscal_year_details, company=None):
|
def get_debit_note_amount(suppliers, fiscal_year_details, company=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user