mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
feat(Asset Repair): Add 'Cost Center' to GL Entries
This commit is contained in:
@@ -66,7 +66,7 @@ class AssetRepair(Document):
|
|||||||
"against": repair_and_maintenance_account,
|
"against": repair_and_maintenance_account,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
"voucher_no": self.name,
|
"voucher_no": self.name,
|
||||||
"cost_center": "Main - F"
|
"cost_center": self.cost_center
|
||||||
})
|
})
|
||||||
gl_entry.insert()
|
gl_entry.insert()
|
||||||
gl_entry = frappe.get_doc({
|
gl_entry = frappe.get_doc({
|
||||||
@@ -77,7 +77,7 @@ class AssetRepair(Document):
|
|||||||
"against": self.payable_account,
|
"against": self.payable_account,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
"voucher_no": self.name,
|
"voucher_no": self.name,
|
||||||
"cost_center": "Main - F"
|
"cost_center": self.cost_center
|
||||||
})
|
})
|
||||||
gl_entry.insert()
|
gl_entry.insert()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user