* fix: Advance payment against payment terms (#34872)
(cherry picked from commit 5c75894065)
# Conflicts:
# erpnext/accounts/doctype/payment_entry/payment_entry.py
* chore: resolve conflicts
* chore: fix tests
---------
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>