Rev 37962 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 37963 2026-10-26 18:33:17
- Author: amit
- Log message:
- perf(returns): batch partner, debit note and invoice lookups on Sale Returns screen
/return/invoice looked up partner name, debit note and invoice number per row
(~400 queries for the default 30-day view). Collect ids across the pending and
settled rows and fetch each once: getFofoRetailers for partner names,
selectAllByDebitNoteIds for debit notes, and return items -> inventory items ->
purchases for invoice numbers. Same invoice resolution (highest inventory item
of the debit note) and same fallbacks as before.