fis: mapped cost center in gl entries (#18404)

This commit is contained in:
Anurag Mishra 2019-07-22 11:22:03 +05:30 committed by Nabin Hait
parent 73d446023d
commit 23d4b7cc46

View File

@ -388,7 +388,8 @@ class Asset(AccountsController):
"remarks": self.get("remarks") or _("Accounting Entry for Asset"), "remarks": self.get("remarks") or _("Accounting Entry for Asset"),
"posting_date": self.available_for_use_date, "posting_date": self.available_for_use_date,
"credit": self.purchase_receipt_amount, "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({ gl_entries.append(self.get_gl_dict({
@ -397,7 +398,8 @@ class Asset(AccountsController):
"remarks": self.get("remarks") or _("Accounting Entry for Asset"), "remarks": self.get("remarks") or _("Accounting Entry for Asset"),
"posting_date": self.available_for_use_date, "posting_date": self.available_for_use_date,
"debit": self.purchase_receipt_amount, "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: if gl_entries: