chore: fix conflicts
This commit is contained in:
@@ -131,14 +131,13 @@ class AssetRepair(AccountsController):
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def cancel_sabb(self):
|
def cancel_sabb(self):
|
||||||
for row in self.stock_items:
|
for row in self.stock_items:
|
||||||
if sabb := row.serial_and_batch_bundle:
|
if sabb := row.serial_and_batch_bundle:
|
||||||
row.db_set("serial_and_batch_bundle", None)
|
row.db_set("serial_and_batch_bundle", None)
|
||||||
doc = frappe.get_doc("Serial and Batch Bundle", sabb)
|
doc = frappe.get_doc("Serial and Batch Bundle", sabb)
|
||||||
doc.cancel()
|
doc.cancel()
|
||||||
|
|
||||||
def before_cancel(self):
|
def before_cancel(self):
|
||||||
self.asset_doc = frappe.get_doc("Asset", self.asset)
|
self.asset_doc = frappe.get_doc("Asset", self.asset)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user