mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
fix: Error on applying TDS without party (#25632)
* fix: Error on applying TDS without party * fix: Add placeholder value
This commit is contained in:
@@ -22,6 +22,9 @@ def get_party_details(inv):
|
||||
party_type = 'Supplier'
|
||||
party = inv.supplier
|
||||
|
||||
if not party:
|
||||
frappe.throw(_("Please select {0} first").format(party_type))
|
||||
|
||||
return party_type, party
|
||||
|
||||
def get_party_tax_withholding_details(inv, tax_withholding_category=None):
|
||||
|
||||
Reference in New Issue
Block a user