Merge pull request #29334 from nextchamp-saqib/grouped-asset-purchase

This commit is contained in:
Saqib Ansari
2022-01-21 15:33:13 +05:30
committed by GitHub
6 changed files with 74 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
import frappe
def execute():
if frappe.db.count('Asset'):
frappe.reload_doc("assets", "doctype", "Asset")
asset = frappe.qb.DocType('Asset')
frappe.qb.update(asset).set(asset.asset_quantity, 1).run()