mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00: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()
|
@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):
|
if isinstance(doc, str):
|
||||||
doc = parse_json(doc)
|
doc = parse_json(doc)
|
||||||
doc = frappe.get_doc("Work Order", doc.get("name"))
|
doc = frappe.get_doc("Work Order", doc.get("name"))
|
||||||
|
|||||||
Reference in New Issue
Block a user