mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 18:51:21 +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(
|
def add_serial_batch_ledgers(
|
||||||
entries: list | str,
|
entries: list | str,
|
||||||
child_row: PurchaseReceiptItem | dict | str,
|
child_row: PurchaseReceiptItem | dict | str,
|
||||||
doc: Document,
|
doc: Document | str,
|
||||||
warehouse: str | None = None,
|
warehouse: str | None = None,
|
||||||
do_not_save: bool = False,
|
do_not_save: bool = False,
|
||||||
):
|
):
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ def _preprocess_ctx(ctx):
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
@erpnext.normalize_ctx_input(ItemDetailsCtx)
|
@erpnext.normalize_ctx_input(ItemDetailsCtx)
|
||||||
def get_item_details(
|
def get_item_details(
|
||||||
ctx: ItemDetailsCtx,
|
ctx: ItemDetailsCtx | str,
|
||||||
doc: Document | str | None = None,
|
doc: Document | str | None = None,
|
||||||
for_validate: bool = False,
|
for_validate: bool = False,
|
||||||
overwrite_warehouse: bool = True,
|
overwrite_warehouse: bool = True,
|
||||||
@@ -1495,7 +1495,7 @@ def get_batch_qty(batch_no: str, warehouse: str, item_code: str):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
@erpnext.normalize_ctx_input(ItemDetailsCtx)
|
@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
|
"""Apply pricelist on a document-like dict object and return as
|
||||||
{'parent': dict, 'children': list}
|
{'parent': dict, 'children': list}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user