fix: set debit in transaction currency in GL Entry
(cherry picked from commit 29a6eb21a3)
This commit is contained in:
@@ -1248,13 +1248,22 @@ class PaymentEntry(AccountsController):
|
|||||||
base_unallocated_amount = self.unallocated_amount * exchange_rate
|
base_unallocated_amount = self.unallocated_amount * exchange_rate
|
||||||
|
|
||||||
gle = party_gl_dict.copy()
|
gle = party_gl_dict.copy()
|
||||||
gle.update(
|
|
||||||
{
|
|
||||||
dr_or_cr + "_in_account_currency": self.unallocated_amount,
|
|
||||||
dr_or_cr: base_unallocated_amount,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
gle.update(
|
||||||
|
self.get_gl_dict(
|
||||||
|
{
|
||||||
|
"account": self.party_account,
|
||||||
|
"party_type": self.party_type,
|
||||||
|
"party": self.party,
|
||||||
|
"against": against_account,
|
||||||
|
"account_currency": self.party_account_currency,
|
||||||
|
"cost_center": self.cost_center,
|
||||||
|
dr_or_cr + "_in_account_currency": self.unallocated_amount,
|
||||||
|
dr_or_cr: base_unallocated_amount,
|
||||||
|
},
|
||||||
|
item=self,
|
||||||
|
)
|
||||||
|
)
|
||||||
if self.book_advance_payments_in_separate_party_account:
|
if self.book_advance_payments_in_separate_party_account:
|
||||||
gle.update(
|
gle.update(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user