fix: Use the item's project 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:44:21 +05:30 committed by GitHub
parent 980798c6fd
commit 63b7ecd0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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