Fix: reconcile outstanding amount with Journal Entry
So far, Journal Entries were created for the full payment amount, even if some of it was already reconciled with other vouchers. Now we use the unallocated amount only. Also added a check to ensure that the currency is the same for both accounts.
Refactored
create_journal_entry_bts
Made it a tiny bit easier to understand
Fix: reconcile outstanding amount with Journal Entry
So far, Journal Entries were created for the full payment amount, even if some of it was already reconciled with other vouchers. Now we use the unallocated amount only. Also added a check to ensure that the currency is the same for both accounts.