diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index aa076894649..a58c1b037ef 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -1594,7 +1594,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 | str | None = None): +def apply_price_list(ctx: ItemDetailsCtx, as_doc: bool = False, doc: Document | str | dict | None = None): """Apply pricelist on a document-like dict object and return as {'parent': dict, 'children': list} diff --git a/erpnext/utilities/transaction_base.py b/erpnext/utilities/transaction_base.py index 85f2e83f8d9..dd071c0b717 100644 --- a/erpnext/utilities/transaction_base.py +++ b/erpnext/utilities/transaction_base.py @@ -575,7 +575,7 @@ class TransactionBase(StatusUpdater): "is_internal_customer": self.is_internal_customer, } # TODO: test method call impact on document - apply_price_list(cts=args, as_doc=True, doc=self) + apply_price_list(ctx=args, as_doc=True, doc=self) def delete_events(ref_type, ref_name):