Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36450 11 d 8 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Refactor applyReceipt: extract scan creation to WarehouseInventoryService.recordReturnScan with validation for all return types (SALE_RET/DOA_IN/SALE_RET_UNUSABLE), qty>0, sold-qty capacity check, and SALE_RET warehouse capacity check  
36417 15 d 7 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Fix:PO item swap — update/delete old PURCHASE scan record when reducing quantity on swapped inventory item  
36414 15 d 9 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ without vendor catalog pricing po will not create  
36399 16 d 11 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Replace mailSender (SendGrid) with gmailRelaySender - SendGrid API key expired/revoked  
36314 23 d 14 h amit /trunk/profitmandi-dao/src/main/ Fix Dummy warehouse creation defaults and backfill invoice receiveDate

- ensureDummyForBillingRegion: set isAvailabilityMonitored=0, transferDelayInHours=0,
source=0 explicitly; copy logisticsLocation and pincode from billing warehouse
(matches createVendorWarehouse pattern)
- Add SQL to backfill warehouse.invoice.receiveDate from warehouse.purchase.receivedOn
for received invoices where receiveDate is NULL
 
36309 24 d 1 h amit /trunk/profitmandi-dao/src/main/ Route phantom orders to per-region Dummy warehouse; complete applyColorChange rename

- Phantom allocations in getFulfillments route to the Dummy/GOOD/OURS warehouse under
vendor 40 for the partner's billing region. WarehouseServiceImpl.ensureDummyForBillingRegion
returns the existing Dummy or creates one on the fly. createVendorWarehouse hook auto-seeds
a Dummy when a new billing region's first warehouse is created.
- WarehouseRepository.selectByVendorBillingAndType supports the lookup.
- OrderService interface: rename notifyColorChange -> applyColorChange to match r36305's impl
rename (r36305 renamed only the impl, leaving trunk inconsistent).
- PurchaseOrderServiceImpl: remove auto-rebalance on PO receive. Real-wh rebalancing and
phantom-to-real binding are now ops-driven via the order billing UI
(changeFulfillmentWarehouse / applyColorChange / moveOrdersFulfilmentWarehouse).
- migration_dummy_warehouses.sql: idempotent seeding script for 14 Dummy/GOOD/OURS warehouses
under vendor 40, one per WAREHOUSE_MAP billing region that lacked one. Already applied to
hadb1 and local.
 
36298 26 d 9 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ GRN correction: auto-approve IMEI-only and color-only changes

When a correction request contains only IMEI swaps or item swaps where
old and new items share modelName+modelNumber (color-only change), the
request is persisted as APPROVED with requester as approver and applied
immediately. Mixed/model/qty changes continue to go through the existing
PENDING approval flow.
 
36283 27 d 6 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ uday sing maill added in po approval  
36272 29 d 7 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Add receiveDate to WarehouseSupplierInvoice

Added receiveDate field to warehouse.invoice entity to track when goods
were physically received. Set from PORowModel.getReceivedDate() during
GRN processing in PurchaseOrderServiceImpl.addPORowModels.
 
36270 29 d 8 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Fix purchase.receivedOn to use actual GRN time instead of invoice registration date  
36208 37 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ GRN correction approval: validate IMEI count matches qty, suggest rejection on mismatch  
36207 37 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ GRN correction approval: split space/comma-separated IMEIs in applyQtyCorrections for existing requests  
36205 37 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ GRN correction: split space/comma-separated IMEIs, validate count matches qty  
36178 41 d 3 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Validate from/to items have same itemType in GRN correction request

Prevents GRN corrections between SERIALIZED and NON_SERIALIZED items which
would corrupt inventory data (e.g. assigning bulk qty to a serialized item
or vice versa). Validation runs at request submission time.
 
36161 41 d 9 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ GRN correction: create PURCHASE scan when creating new non-serialized inventory item  
36158 41 d 10 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ GRN correction: reset initialQuantity on old inventory item to avoid confusion  
36157 41 d 10 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Fix GRN correction: create PO lineitem for target item when not on PO, adjust old item quantity  
36154 41 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Fix GRN correction for non-serialized items: create invoice_item when target item not on invoice, drop stale itemNumber copy  
36100 45 d 22 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix margin invoice: resolve GRN purchaseId to PO id for purchase price lookup, rename selectByPurchaseIdItemId to selectByPurchaseOrderIdItemId  
36088 47 d 9 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ code commit via websocket instead of selenium for agent status  

Show All