(root)/ – Rev 36142
Rev 36141 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36142 2026-04-01 20:04:17
- Author: amit
- Log message:
- Prevent duplicate SALE_RET scans — fix double wallet refund bug
receiveDebitNoteItems():
- Build alreadyReturnedSet from existing SALE_RET/DOA_IN/SALE_RET_UNUSABLE scans
- Serialized: throw exception if IMEI already returned against same order
- Non-serialized: include existing return count in over-return check
processInvoiceReturn():
- Same alreadyReturnedSet check — skip with warning if already returned
Prevents the bug where same IMEI is returned, re-sold, then returned again
against the original order causing duplicate wallet refund.