fix: set debit transaction currency in gl entry
(cherry picked from commit 6e19c06e58)
This commit is contained in:
@@ -1219,11 +1219,19 @@ class PaymentEntry(AccountsController):
|
|||||||
dr_or_cr = "debit" if dr_or_cr == "credit" else "credit"
|
dr_or_cr = "debit" if dr_or_cr == "credit" else "credit"
|
||||||
|
|
||||||
gle.update(
|
gle.update(
|
||||||
{
|
self.get_gl_dict(
|
||||||
dr_or_cr: allocated_amount_in_company_currency,
|
{
|
||||||
dr_or_cr + "_in_account_currency": d.allocated_amount,
|
"account": self.party_account,
|
||||||
"cost_center": cost_center,
|
"party_type": self.party_type,
|
||||||
}
|
"party": self.party,
|
||||||
|
"against": against_account,
|
||||||
|
"account_currency": self.party_account_currency,
|
||||||
|
"cost_center": cost_center,
|
||||||
|
dr_or_cr + "_in_account_currency": d.allocated_amount,
|
||||||
|
dr_or_cr: allocated_amount_in_company_currency,
|
||||||
|
},
|
||||||
|
item=self,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.book_advance_payments_in_separate_party_account:
|
if self.book_advance_payments_in_separate_party_account:
|
||||||
|
|||||||
Reference in New Issue
Block a user