fix: incorrect type hint

This commit is contained in:
ruthra kumar
2026-04-21 13:52:59 +05:30
parent c1a469478d
commit 1995fcfdd8
2 changed files with 3 additions and 3 deletions

View File

@@ -755,7 +755,7 @@ class POSInvoice(SalesInvoice):
return profile
@frappe.whitelist()
def set_missing_values(self, for_validate: bool = False):
def set_missing_values(self, for_validate: bool | None = False):
profile = self.set_pos_fields(for_validate)
if not self.debit_to:
@@ -1027,7 +1027,7 @@ def get_pos_reserved_qty_from_table(child_table, item_code, warehouse):
@frappe.whitelist()
def make_sales_return(source_name: str, target_doc: Document | None = None):
def make_sales_return(source_name: str, target_doc: Document | str | None = None):
from erpnext.controllers.sales_and_purchase_return import make_return_doc
return make_return_doc("POS Invoice", source_name, target_doc)

View File

@@ -60,7 +60,7 @@ def _preprocess_ctx(ctx):
def get_item_details(
ctx: ItemDetailsCtx | str,
doc: Document | str | None = None,
for_validate: bool = False,
for_validate: bool | None = False,
overwrite_warehouse: bool = True,
):
"""