mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 13:12:22 +01:00
refactor(work_order): added type annotations on cancel_stock_reservation_entries
This commit is contained in:
@@ -2130,7 +2130,7 @@ def make_stock_reservation_entries(
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def cancel_stock_reservation_entries(doc, sre_list):
|
||||
def cancel_stock_reservation_entries(doc: str | dict, sre_list: str | list):
|
||||
if isinstance(doc, str):
|
||||
doc = parse_json(doc)
|
||||
doc = frappe.get_doc("Work Order", doc.get("name"))
|
||||
|
||||
Reference in New Issue
Block a user