fis: mapped cost center in gl entries (#18404)
diff --git a/erpnext/assets/doctype/asset/asset.py b/erpnext/assets/doctype/asset/asset.py
index 45f7b30..c398a73 100644
--- a/erpnext/assets/doctype/asset/asset.py
+++ b/erpnext/assets/doctype/asset/asset.py
@@ -388,7 +388,8 @@
"remarks": self.get("remarks") or _("Accounting Entry for Asset"),
"posting_date": self.available_for_use_date,
"credit": self.purchase_receipt_amount,
- "credit_in_account_currency": self.purchase_receipt_amount
+ "credit_in_account_currency": self.purchase_receipt_amount,
+ "cost_center": self.cost_center
}))
gl_entries.append(self.get_gl_dict({
@@ -397,7 +398,8 @@
"remarks": self.get("remarks") or _("Accounting Entry for Asset"),
"posting_date": self.available_for_use_date,
"debit": self.purchase_receipt_amount,
- "debit_in_account_currency": self.purchase_receipt_amount
+ "debit_in_account_currency": self.purchase_receipt_amount,
+ "cost_center": self.cost_center
}))
if gl_entries: