* fix: set correct unallocated amount in Payment Entry
* fix: add checkbox and other logic fix
* fix: patch to set is_exchange_gain_loss in Payment Entry deductions
* fix: consider deductions except exch. gain/loss
* fix: set exchange gain loss in payment entry
* fix: separate function to set exchange gain loss
* fix: failing test cases
* fix: add cash disc. row first
* fix: review changes
* fix: changes as per review
* fix: failing test cases
* fix: review
* fix: wait for request to complete before updating exchange gain loss
* fix: review
---------
Co-authored-by: vishakhdesai <vishakhdesai@gmail.com>
Co-authored-by: ruthra kumar <ruthra@erpnext.com>
(cherry picked from commit 7cc111f790)
# Conflicts:
# erpnext/accounts/doctype/payment_entry_deduction/payment_entry_deduction.json
# erpnext/patches.txt