mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
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:
committed by
Deepesh Garg
parent
20691f0ba2
commit
c03f8c9e3f
@@ -769,7 +769,7 @@ class AccountsController(TransactionBase):
|
||||
"against": supplier_or_customer,
|
||||
dr_or_cr: 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
|
||||
}, account_currency, item=self)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user