* 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
* fix: set_amounts after deductions and losses are set
* test: difference_amount changes after update_references_in_payment_entry
* chore: linter
* fix: use kwargs instad of destructing a dict
[skip ci]
* fix(test): test payment entry difference_amount after payment reconciliation.
If stock voucher count goes >1000 then fetching all gles and reposting
them all at once requires much more memory and can cause crash.
- This PR ensures that GLE reposting is done in chunks of 100 vouchers.
- This PR also starts keeping track of how many such chunks were
processed so in future progress is resumed in event of timeout.
* add new function - `get_party_shipping_address`
* `swap `get_default_address` with `get_party_shipping_address`
* test cases
* properly sets order by direction
* move `get_party_shipping_address` to party.py
* fix test module import