mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
refactor: redefine dr_or_cr for unallocated amount
(cherry picked from commit 3e6306348a)
This commit is contained in:
@@ -1113,6 +1113,7 @@ class PaymentEntry(AccountsController):
|
||||
gl_entries.append(gle)
|
||||
|
||||
if self.unallocated_amount:
|
||||
dr_or_cr = "credit" if self.payment_type == "Receive" else "debit"
|
||||
exchange_rate = self.get_exchange_rate()
|
||||
base_unallocated_amount = self.unallocated_amount * exchange_rate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user