Skip to content

Commit

Permalink
refactor: convert amount to base currency for advances
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Jun 10, 2024
1 parent e774003 commit c9ede1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ def add_advance_gl_for_reference(self, gl_entries, invoice):

dr_or_cr, account = self.get_dr_and_account_for_advances(invoice)
args_dict["account"] = account
args_dict[dr_or_cr] = invoice.allocated_amount
args_dict[dr_or_cr] = self.calculate_base_allocated_amount_for_reference(invoice)
args_dict[dr_or_cr + "_in_account_currency"] = invoice.allocated_amount
args_dict.update(
{
Expand All @@ -1360,7 +1360,7 @@ def add_advance_gl_for_reference(self, gl_entries, invoice):
args_dict[dr_or_cr + "_in_account_currency"] = 0
dr_or_cr = "debit" if dr_or_cr == "credit" else "credit"
args_dict["account"] = self.party_account
args_dict[dr_or_cr] = invoice.allocated_amount
args_dict[dr_or_cr] = self.calculate_base_allocated_amount_for_reference(invoice)
args_dict[dr_or_cr + "_in_account_currency"] = invoice.allocated_amount
args_dict.update(
{
Expand Down

0 comments on commit c9ede1f

Please sign in to comment.