(root)/ – Rev 36271
Rev 36270 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36271 2026-04-14 17:36:23
- Author: amit
- Log message:
- Fix processInvoiceReturn skipping SALE_RET for non-serialized items
processInvoiceReturn was only creating warehouse.scanNew SALE_RET entries
for serialized items (looked up by serial number). Non-serialized items
like accessories were silently skipped, leaving warehouse inventory
unreturned.
Fixed by working directly off SALE scans from warehouse.scanNew instead
of serial number lookup. This handles both serialized and non-serialized
items uniformly. Also uses actual sale quantity instead of hardcoded 1.