mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-30 04:05:43 +00:00
fix: type hint in stock
This commit is contained in:
@@ -1991,7 +1991,7 @@ def get_reference_serial_and_batch_bundle(child_row):
|
||||
def add_serial_batch_ledgers(
|
||||
entries: list | str,
|
||||
child_row: PurchaseReceiptItem | dict | str,
|
||||
doc: Document,
|
||||
doc: Document | str,
|
||||
warehouse: str | None = None,
|
||||
do_not_save: bool = False,
|
||||
):
|
||||
|
||||
@@ -56,7 +56,7 @@ def _preprocess_ctx(ctx):
|
||||
@frappe.whitelist()
|
||||
@erpnext.normalize_ctx_input(ItemDetailsCtx)
|
||||
def get_item_details(
|
||||
ctx: ItemDetailsCtx,
|
||||
ctx: ItemDetailsCtx | str,
|
||||
doc: Document | str | None = None,
|
||||
for_validate: bool = False,
|
||||
overwrite_warehouse: bool = True,
|
||||
@@ -1495,7 +1495,7 @@ def get_batch_qty(batch_no: str, warehouse: str, item_code: str):
|
||||
|
||||
@frappe.whitelist()
|
||||
@erpnext.normalize_ctx_input(ItemDetailsCtx)
|
||||
def apply_price_list(ctx: ItemDetailsCtx, as_doc: bool = False, doc: Document | None = None):
|
||||
def apply_price_list(ctx: ItemDetailsCtx | str, as_doc: bool = False, doc: Document | str | None = None):
|
||||
"""Apply pricelist on a document-like dict object and return as
|
||||
{'parent': dict, 'children': list}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user