mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #52970 from ljain112/fix-missing-type-hint
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()
|
@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 = {}
|
out = {}
|
||||||
billing_address, shipping_address = None, None
|
billing_address, shipping_address = None, None
|
||||||
if args:
|
if args:
|
||||||
|
|||||||
@@ -719,7 +719,7 @@ def get_address_tax_category(
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def set_taxes(
|
def set_taxes(
|
||||||
party: str,
|
party: str | None,
|
||||||
party_type: str,
|
party_type: str,
|
||||||
posting_date: str | date | None,
|
posting_date: str | date | None,
|
||||||
company: str | None,
|
company: str | None,
|
||||||
|
|||||||
Reference in New Issue
Block a user