@things-factory/warehouse-base 4.3.654 → 4.3.655

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.
@@ -1587,7 +1587,7 @@ async function massageInventoryPalletSummary(tx, params, bizplace, context) {
1587
1587
  group by pallet_id, grp, status
1588
1588
  ) repeatedGroup on repeatedGroup.pallet_id = invh.pallet_id and repeatedGroup.min_seq <= invh.seq and repeatedGroup.max_seq >= invh.seq
1589
1589
  inner join temp_products prd on prd.id = invh.product_id
1590
- where invh.status = 'TERMINATED' and invh.transaction_type = 'TERMINATED'
1590
+ where invh.status = 'TERMINATED' and invh.transaction_type IN ('TERMINATED', 'ADJUSTMENT')
1591
1591
  ) as invOut where rn=1
1592
1592
  union all
1593
1593
  SELECT invh.pallet_id, invh.seq, invh.status, invh.transaction_type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/warehouse-base",
3
- "version": "4.3.654",
3
+ "version": "4.3.655",
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.654",
33
33
  "@things-factory/setting-base": "^4.3.609"
34
34
  },
35
- "gitHead": "c5d37a4840c0af0a8ff131858cef69732ed284f5"
35
+ "gitHead": "93d7aa82e9d488e68d416d363c98b2ea7213d6ba"
36
36
  }
@@ -1776,7 +1776,7 @@ async function massageInventoryPalletSummary(tx: EntityManager, params: ListPara
1776
1776
  group by pallet_id, grp, status
1777
1777
  ) repeatedGroup on repeatedGroup.pallet_id = invh.pallet_id and repeatedGroup.min_seq <= invh.seq and repeatedGroup.max_seq >= invh.seq
1778
1778
  inner join temp_products prd on prd.id = invh.product_id
1779
- where invh.status = 'TERMINATED' and invh.transaction_type = 'TERMINATED'
1779
+ where invh.status = 'TERMINATED' and invh.transaction_type IN ('TERMINATED', 'ADJUSTMENT')
1780
1780
  ) as invOut where rn=1
1781
1781
  union all
1782
1782
  SELECT invh.pallet_id, invh.seq, invh.status, invh.transaction_type,