mergify[bot]
4b76cc46a1
fix: split_invoices_based_on_payment_terms
(backport #37859 ) ( #38488 )
...
* refactor: `split_invoices_based_on_payment_terms`
- Invoices were in the wrong order due to the logic. The invoices with payment terms were added first and the rest after.
- Overly long function with unnecessary loops (reduced to one main loop) and complexity
- The split row as per payment terms was not ordered. So the second installment was allocated first
(cherry picked from commit 6bd56d2d5f62814eb2f777934ed894bc5709e947)
* test: `get_outstanding_reference_documents` (triggered via UI)
(cherry picked from commit 162c0497d1db69e3af5f142459e3a875f03962af)
# Conflicts:
# erpnext/accounts/doctype/payment_entry/test_payment_entry.py
* fix: Alert message and make sure invoice due dates are different for effective test
- Make invoice due dates are different so that the invoice with the earliest due date is allocated first in the test
- Translate voucher type, simplify alert message. The invoice could be "split" into 1 row, no. of rows in the message seems unnecessary.
(cherry picked from commit 56ac3424d22b68bbc551913133803686431d1694)
* style: Remove spaces introduced via merge conflict
(cherry picked from commit 4b4b176fcf99241bf17067989ebc850b2de24bcb)
# Conflicts:
# erpnext/accounts/doctype/payment_entry/test_payment_entry.py
* fix: Re-add no.of rows split in alert message
(cherry picked from commit 1fc5844025d97de150195b94070b0c4061378992)
* fix: Merge conflicts in tests
---------
Co-authored-by: marination <maricadsouza221197@gmail.com>
2023-12-06 18:01:42 +05:30
..
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-12-03 11:14:26 +00:00
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-12-05 06:34:14 +00:00
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-12-06 18:01:42 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-12-04 06:31:08 +00:00
2023-12-04 12:16:41 +05:30
2023-12-04 06:31:07 +00:00
2023-12-04 06:31:07 +00:00
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-12-05 06:34:14 +00:00
2023-11-30 14:43:16 +05:30
2023-11-30 17:30:35 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-12-04 09:36:52 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2023-11-30 14:43:16 +05:30
2021-11-05 11:16:29 +05:30