fix: Use the item's cost centre instead of the Invoice's

Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
This commit is contained in:
Ganga Manoj 2021-07-19 23:43:36 +05:30 committed by Deepesh Garg
parent 251f229601
commit b4a8bc8e4c

View File

@ -836,7 +836,7 @@ class AccountsController(TransactionBase):
"against": supplier_or_customer, "against": supplier_or_customer,
dr_or_cr: flt(item.discount_amount), dr_or_cr: flt(item.discount_amount),
dr_or_cr + "_in_account_currency": flt(item.discount_amount), dr_or_cr + "_in_account_currency": flt(item.discount_amount),
"cost_center": self.cost_center, "cost_center": item.cost_center,
"project": self.project "project": self.project
}, account_currency, item=self) }, account_currency, item=self)
) )