mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 09:53:09 +00:00
Merge pull request #29334 from nextchamp-saqib/grouped-asset-purchase
This commit is contained in:
8
erpnext/patches/v13_0/update_asset_quantity_field.py
Normal file
8
erpnext/patches/v13_0/update_asset_quantity_field.py
Normal 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()
|
||||
Reference in New Issue
Block a user