Merge pull request #36889 from GursheenK/discount-accounting-multi-currency-gle

fix: fetch currency in discount accounting SI
This commit is contained in:
Deepesh Garg 2023-09-01 15:11:21 +05:30 committed by GitHub
commit 1e72a43a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1381,7 +1381,7 @@ class AccountsController(TransactionBase):
{
"account": self.additional_discount_account,
"against": supplier_or_customer,
dr_or_cr: self.discount_amount,
dr_or_cr: self.base_discount_amount,
"cost_center": self.cost_center,
},
item=self,
@ -1653,6 +1653,7 @@ class AccountsController(TransactionBase):
and party_account_currency != self.company_currency
and self.currency != party_account_currency
):
frappe.throw(
_("Accounting Entry for {0}: {1} can only be made in currency: {2}").format(
party_type, party, party_account_currency