mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 21:22:42 +01:00
fix: update type hint for party parameter to allow None in get_party_details and set_taxes functions
This commit is contained in:
@@ -135,7 +135,7 @@ class TaxRule(Document):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_party_details(party: str, party_type: str, args: dict | None = None):
|
||||
def get_party_details(party: str | None, party_type: str, args: dict | None = None):
|
||||
out = {}
|
||||
billing_address, shipping_address = None, None
|
||||
if args:
|
||||
|
||||
@@ -719,7 +719,7 @@ def get_address_tax_category(
|
||||
|
||||
@frappe.whitelist()
|
||||
def set_taxes(
|
||||
party: str,
|
||||
party: str | None,
|
||||
party_type: str,
|
||||
posting_date: str | date | None,
|
||||
company: str | None,
|
||||
|
||||
Reference in New Issue
Block a user