feat(Asset Repair): Add 'Cost Center' to GL Entries

This commit is contained in:
GangaManoj 2021-05-12 21:08:55 +05:30
parent f5a2ea9cb3
commit d554267b05

View File

@ -66,7 +66,7 @@ class AssetRepair(Document):
"against": repair_and_maintenance_account,
"voucher_type": self.doctype,
"voucher_no": self.name,
"cost_center": "Main - F"
"cost_center": self.cost_center
})
gl_entry.insert()
gl_entry = frappe.get_doc({
@ -77,7 +77,7 @@ class AssetRepair(Document):
"against": self.payable_account,
"voucher_type": self.doctype,
"voucher_no": self.name,
"cost_center": "Main - F"
"cost_center": self.cost_center
})
gl_entry.insert()