Rev 38042 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 38043 2026-11-16 15:46:34
- Author: amit
- Log message:
- Scheme re-run: do not pay margin again on units the customer returned
After a partial return, the returned units' scheme rows are REJECTED and the
payout treated them as unpaid, so a re-run (process-schemes / category upgrade)
credited their margin again on the still-live invoice.
- processSchemeOut leaves out units with a SALE_RET / SALE_RET_UNUSABLE scan on the same order
- missed-activation special support query skips the same units (forced inventory_item index; the order_id index walks ~0.9M order_id=0 scans)
- ProcessSchemeOutReturnedUnitTest