Support #10999
Updated by Yalavarthi Thriveni about 15 hours ago
Order Placement & Initial Warehouse Map
Partial / Defective: Only checks StockBatch.sort({ receivedAt: 1 }). No check on expiration date or customer delivery distance.
Inventory must be reserved across regional fulfillment centers (US West/East, India North/South) based on customer proximity and postal routing. Allocation within each warehouse must strictly follow FEFO (First-Expired, First-Out), excluding batches where expirationDate <= now + buffer. If stock is distributed across hubs, the allocation engine must produce optimal fulfillment splits