mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
Merge pull request #54446 from ruthra-kumar/wrong_type_hint_in_pos
fix: incorrect type hint
This commit is contained in:
@@ -755,7 +755,7 @@ class POSInvoice(SalesInvoice):
|
|||||||
return profile
|
return profile
|
||||||
|
|
||||||
@frappe.whitelist()
|
@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)
|
profile = self.set_pos_fields(for_validate)
|
||||||
|
|
||||||
if not self.debit_to:
|
if not self.debit_to:
|
||||||
@@ -1027,7 +1027,7 @@ def get_pos_reserved_qty_from_table(child_table, item_code, warehouse):
|
|||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@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
|
from erpnext.controllers.sales_and_purchase_return import make_return_doc
|
||||||
|
|
||||||
return make_return_doc("POS Invoice", source_name, target_doc)
|
return make_return_doc("POS Invoice", source_name, target_doc)
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ def _preprocess_ctx(ctx):
|
|||||||
def get_item_details(
|
def get_item_details(
|
||||||
ctx: ItemDetailsCtx | str,
|
ctx: ItemDetailsCtx | str,
|
||||||
doc: Document | str | None = None,
|
doc: Document | str | None = None,
|
||||||
for_validate: bool = False,
|
for_validate: bool | None = False,
|
||||||
overwrite_warehouse: bool = True,
|
overwrite_warehouse: bool = True,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user