mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 05:28:27 +00:00
fix: incorrect type hint
(cherry picked from commit 1995fcfdd8)
# Conflicts:
# erpnext/accounts/doctype/pos_invoice/pos_invoice.py
# erpnext/stock/get_item_details.py
This commit is contained in:
@@ -753,7 +753,11 @@ class POSInvoice(SalesInvoice):
|
||||
return profile
|
||||
|
||||
@frappe.whitelist()
|
||||
<<<<<<< HEAD
|
||||
def set_missing_values(self, for_validate=False):
|
||||
=======
|
||||
def set_missing_values(self, for_validate: bool | None = False):
|
||||
>>>>>>> 1995fcfdd8 (fix: incorrect type hint)
|
||||
profile = self.set_pos_fields(for_validate)
|
||||
|
||||
if not self.debit_to:
|
||||
@@ -1020,7 +1024,11 @@ def get_pos_reserved_qty_from_table(child_table, item_code, warehouse):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
<<<<<<< HEAD
|
||||
def make_sales_return(source_name, target_doc=None):
|
||||
=======
|
||||
def make_sales_return(source_name: str, target_doc: Document | str | None = None):
|
||||
>>>>>>> 1995fcfdd8 (fix: incorrect type hint)
|
||||
from erpnext.controllers.sales_and_purchase_return import make_return_doc
|
||||
|
||||
return make_return_doc("POS Invoice", source_name, target_doc)
|
||||
|
||||
@@ -58,7 +58,16 @@ def _preprocess_ctx(ctx):
|
||||
|
||||
@frappe.whitelist()
|
||||
@erpnext.normalize_ctx_input(ItemDetailsCtx)
|
||||
<<<<<<< HEAD
|
||||
def get_item_details(ctx, doc=None, for_validate=False, overwrite_warehouse=True) -> ItemDetails:
|
||||
=======
|
||||
def get_item_details(
|
||||
ctx: ItemDetailsCtx | str,
|
||||
doc: Document | str | None = None,
|
||||
for_validate: bool | None = False,
|
||||
overwrite_warehouse: bool = True,
|
||||
):
|
||||
>>>>>>> 1995fcfdd8 (fix: incorrect type hint)
|
||||
"""
|
||||
ctx = {
|
||||
"item_code": "",
|
||||
|
||||
Reference in New Issue
Block a user