(root)/ – Rev 36009
Rev 36008 |
Rev 36010 |
Go to most recent revision |
Compare with Previous |
Directory listing |
View Log
| RSS feed
Last modification
- Rev 36009 – 126 d 1 h
- Author: amit
- Log message:
- Fix duplicate IMEI handling in GRN and debit note return flows
- Add duplicate serial number check in V2 GRN path (WarehouseServiceImpl.addInventoryItem)
Rejects GRN if IMEI already exists with currentQuantity > 0
- Harden serial→whItem lookup in receiveDebitNoteItems and rejectReturn
Use composite key (serialNumber|itemId) instead of serialNumber alone
Prevents wrong inventory item selection when same IMEI has multiple records
- Add orderId cross-validation in receiveDebitNoteItems for SALE scan mismatch detection
- Fix missing supplierWarehouseId on SALE_RET and reversal scans in debit note flows