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:
parent
251f229601
commit
b4a8bc8e4c
@ -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)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user