fix: fetch discount amount for gle in base currency
This commit is contained in:
parent
cd74c6c07f
commit
112cfe6dfa
@ -1381,7 +1381,7 @@ class AccountsController(TransactionBase):
|
|||||||
{
|
{
|
||||||
"account": self.additional_discount_account,
|
"account": self.additional_discount_account,
|
||||||
"against": supplier_or_customer,
|
"against": supplier_or_customer,
|
||||||
dr_or_cr: self.discount_amount,
|
dr_or_cr: self.base_discount_amount,
|
||||||
"cost_center": self.cost_center,
|
"cost_center": self.cost_center,
|
||||||
},
|
},
|
||||||
item=self,
|
item=self,
|
||||||
@ -1653,6 +1653,7 @@ class AccountsController(TransactionBase):
|
|||||||
and party_account_currency != self.company_currency
|
and party_account_currency != self.company_currency
|
||||||
and self.currency != party_account_currency
|
and self.currency != party_account_currency
|
||||||
):
|
):
|
||||||
|
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Accounting Entry for {0}: {1} can only be made in currency: {2}").format(
|
_("Accounting Entry for {0}: {1} can only be made in currency: {2}").format(
|
||||||
party_type, party, party_account_currency
|
party_type, party, party_account_currency
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user