fix: mapped cost center in gl entries (#18405)
* fis: mapped cost center in gl entries * chore: Removed Print statements
This commit is contained in:
committed by
Nabin Hait
parent
4c711ed62c
commit
aeb0b008fa
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user