@things-factory/warehouse-base 6.0.133 → 6.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/warehouse-base",
3
- "version": "6.0.133",
3
+ "version": "6.0.134",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -31,5 +31,5 @@
31
31
  "@things-factory/product-base": "^6.0.133",
32
32
  "@things-factory/setting-base": "^6.0.133"
33
33
  },
34
- "gitHead": "c08bf83d00cbb66e1338cdfeed8ca91d4e130c97"
34
+ "gitHead": "c5bd9105ce4a39b67ec456c64f603a11a8316338"
35
35
  }
@@ -450,7 +450,7 @@ export class InventoryMutation {
450
450
  inventory.cartonId = cartonId
451
451
 
452
452
  let isEmptyLocation = await tx.getRepository(Inventory).find({
453
- where: { location: fromLocation }
453
+ where: { location: { id: fromLocation.id } }
454
454
  })
455
455
 
456
456
  if ((isEmptyLocation.length = 1)) {
@@ -235,7 +235,7 @@ export class InventoryQuery {
235
235
  .addSelect('i.product_quality', 'productQuality')
236
236
  .addSelect('i.packing_type', 'packingType')
237
237
  .addSelect('COALESCE(SUM(i.qty), 0)', 'qty')
238
- .addSelect('COALESCE(SUM(i.locked_qty), 0)', 'lockQty')
238
+ .addSelect('COALESCE(SUM(i.locked_qty), 0)', 'lockedQty')
239
239
  .addSelect('COALESCE(SUM(i.uom_value), 0)', 'uomValue')
240
240
  .addSelect('COALESCE(SUM(i.locked_uom_value), 0)', 'lockedUomValue')
241
241
  .innerJoin('i.product', 'product', 'i.product_id = product.id')