refactor: exc booking logic for Journal Entry

(cherry picked from commit 7b516f8463)
This commit is contained in:
ruthra kumar
2023-06-26 17:34:28 +05:30
committed by Mergify
parent 1f76dde025
commit 220bf24555
2 changed files with 80 additions and 1 deletions

View File

@@ -459,6 +459,9 @@ def reconcile_against_document(args, skip_ref_details_update_for_pe=False): # n
# update ref in advance entry
if voucher_type == "Journal Entry":
update_reference_in_journal_entry(entry, doc, do_not_save=True)
# advance section in sales/purchase invoice and reconciliation tool,both pass on exchange gain/loss
# amount and account in args
doc.make_exchange_gain_loss_journal(args)
else:
update_reference_in_payment_entry(
entry, doc, do_not_save=True, skip_ref_details_update_for_pe=skip_ref_details_update_for_pe