refactor
This commit is contained in:
@@ -40,6 +40,11 @@ func commitOrder(ctx context.Context, rdb *redis.Client, svc *inventory.RedisInv
|
||||
if line.SKU == "" || line.Quantity <= 0 {
|
||||
continue
|
||||
}
|
||||
// Drop-ship items are fulfilled by the supplier — never decrement
|
||||
// local stock for them.
|
||||
if line.DropShip {
|
||||
continue
|
||||
}
|
||||
loc := inventory.LocationID(defaultLoc)
|
||||
if line.Location != "" {
|
||||
loc = inventory.LocationID(line.Location)
|
||||
|
||||
Reference in New Issue
Block a user