@things-factory/warehouse-base 4.3.492 → 4.3.493

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.
@@ -317,7 +317,7 @@ let InventoryQuery = class InventoryQuery {
317
317
  coalesce(i."packing_type", pd."packing_type") as "packingType", p."weight" as "weight",
318
318
  pd."aux_unit_1" as "auxUnit1", pd."aux_value_1" as "auxValue1", pd."aux_unit_2" as "auxUnit2", pd."aux_value_2" as "auxValue2",
319
319
  pd."aux_unit_3" as "auxUnit3", pd."aux_value_3" as "auxValue3", pd."aux_unit_4" as "auxUnit4", pd."aux_value_4" as "auxValue4",
320
- pd."aux_unit_5" as "auxUnit5", pd."aux_value_5" as "auxValue5", coalesce(inv_bz."id", bz."id") as "bizplaceId", coalesce(inv_bz."name", bz."name") as "bizplaceName",
320
+ pd."aux_unit_5" as "auxUnit5", pd."aux_value_5" as "auxValue5", coalesce(inv_bz."id", bz2."id") as "bizplaceId", coalesce(inv_bz."name", bz2."name") as "bizplaceName",
321
321
  COALESCE(pdbs."min_qty", p."min_qty",0) as "minQty", COALESCE(pdbs."max_qty", p."max_qty",0) as "maxQty",
322
322
  (
323
323
  case when sum(coalesce(i."qty",0)) > 0 then sum(coalesce(i."unit_cost", 0) * coalesce(i."qty",0))/ sum(coalesce(i."qty",0))
@@ -407,7 +407,7 @@ let InventoryQuery = class InventoryQuery {
407
407
  left join locations inv_loc on inv_loc.id = i.location_id
408
408
  where 1 = 1
409
409
  ${productQuery}
410
- group by p."id", coalesce(inv_bz."id", bz."id"), coalesce(inv_bz."name", bz."name"), pdbs."id", pd."id",
410
+ group by p."id", coalesce(inv_bz."id", bz2."id"), coalesce(inv_bz."name", bz2."name"), pdbs."id", pd."id",
411
411
  i."packing_type", i."packing_size", i."uom", i."transfer_qty", i."expiration_date", i."obsolete", pd."uom_value",
412
412
  inv_loc."type"
413
413
  )`, [domain.id]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/warehouse-base",
3
- "version": "4.3.492",
3
+ "version": "4.3.493",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -32,5 +32,5 @@
32
32
  "@things-factory/product-base": "^4.3.452",
33
33
  "@things-factory/setting-base": "^4.3.452"
34
34
  },
35
- "gitHead": "082148ee1f2e7b19516982d2ae6e54bfa007ddb9"
35
+ "gitHead": "ed124795915f8de6fbb16c284445c774188565b9"
36
36
  }
@@ -397,7 +397,7 @@ export class InventoryQuery {
397
397
  coalesce(i."packing_type", pd."packing_type") as "packingType", p."weight" as "weight",
398
398
  pd."aux_unit_1" as "auxUnit1", pd."aux_value_1" as "auxValue1", pd."aux_unit_2" as "auxUnit2", pd."aux_value_2" as "auxValue2",
399
399
  pd."aux_unit_3" as "auxUnit3", pd."aux_value_3" as "auxValue3", pd."aux_unit_4" as "auxUnit4", pd."aux_value_4" as "auxValue4",
400
- pd."aux_unit_5" as "auxUnit5", pd."aux_value_5" as "auxValue5", coalesce(inv_bz."id", bz."id") as "bizplaceId", coalesce(inv_bz."name", bz."name") as "bizplaceName",
400
+ pd."aux_unit_5" as "auxUnit5", pd."aux_value_5" as "auxValue5", coalesce(inv_bz."id", bz2."id") as "bizplaceId", coalesce(inv_bz."name", bz2."name") as "bizplaceName",
401
401
  COALESCE(pdbs."min_qty", p."min_qty",0) as "minQty", COALESCE(pdbs."max_qty", p."max_qty",0) as "maxQty",
402
402
  (
403
403
  case when sum(coalesce(i."qty",0)) > 0 then sum(coalesce(i."unit_cost", 0) * coalesce(i."qty",0))/ sum(coalesce(i."qty",0))
@@ -487,7 +487,7 @@ export class InventoryQuery {
487
487
  left join locations inv_loc on inv_loc.id = i.location_id
488
488
  where 1 = 1
489
489
  ${productQuery}
490
- group by p."id", coalesce(inv_bz."id", bz."id"), coalesce(inv_bz."name", bz."name"), pdbs."id", pd."id",
490
+ group by p."id", coalesce(inv_bz."id", bz2."id"), coalesce(inv_bz."name", bz2."name"), pdbs."id", pd."id",
491
491
  i."packing_type", i."packing_size", i."uom", i."transfer_qty", i."expiration_date", i."obsolete", pd."uom_value",
492
492
  inv_loc."type"
493
493
  )`,