@things-factory/warehouse-base 4.3.554 → 4.3.562

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.
@@ -334,10 +334,10 @@ let InventoryHistoryQuery = class InventoryHistoryQuery {
334
334
  else {
335
335
  result = await tx.query(`
336
336
  select sku, product_name, product_description, product_type, product_aux_value_1, batch_id, product_id, packing_type, uom, bizplace_id,
337
- domain_id, sum(qty) as qty, sum(opening_qty) as opening_qty, sum(uom_value) as uom_value, sum(opening_uom_value) as opening_uom_value, order_name, ref_no, transaction_type,created_at::date
337
+ domain_id, sum(qty) as qty, sum(opening_qty) as opening_qty, sum(uom_value) as uom_value, sum(opening_uom_value) as opening_uom_value, order_name, ref_no, transaction_type, min(created_at) as created_at
338
338
  from(
339
339
  select sku, product_name, product_description, product_type, product_aux_value_1, batch_id, product_id, packing_type, uom, bizplace_id,
340
- domain_id, qty, opening_qty, round(uom_value::decimal,2) as uom_value, opening_uom_value, order_name, ref_no, transaction_type,created_at::date
340
+ domain_id, qty, opening_qty, round(uom_value::decimal,2) as uom_value, opening_uom_value, order_name, ref_no, transaction_type,created_at
341
341
  from temp_inv_history invh where
342
342
  exists (
343
343
  select 1 from (
@@ -368,7 +368,7 @@ let InventoryHistoryQuery = class InventoryHistoryQuery {
368
368
  name: item.product_name,
369
369
  type: item.product_type,
370
370
  description: item.product_description,
371
- auxValue1: item.product_aux_value_1 === null ? '' : '[' + item.product_aux_value_1 + ']',
371
+ auxValue1: item.product_aux_value_1 === null ? '' : '[' + item.product_aux_value_1 + ']'
372
372
  },
373
373
  qty: item.qty,
374
374
  uom: item.uom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/warehouse-base",
3
- "version": "4.3.554",
3
+ "version": "4.3.562",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "@things-factory/biz-base": "^4.3.535",
27
27
  "@things-factory/id-rule-base": "^4.3.535",
28
- "@things-factory/integration-accounting": "^4.3.544",
29
- "@things-factory/integration-powrup": "^4.3.544",
30
- "@things-factory/integration-sellercraft": "^4.3.544",
31
- "@things-factory/marketplace-base": "^4.3.544",
28
+ "@things-factory/integration-accounting": "^4.3.562",
29
+ "@things-factory/integration-powrup": "^4.3.562",
30
+ "@things-factory/integration-sellercraft": "^4.3.562",
31
+ "@things-factory/marketplace-base": "^4.3.562",
32
32
  "@things-factory/product-base": "^4.3.535",
33
33
  "@things-factory/setting-base": "^4.3.535"
34
34
  },
35
- "gitHead": "140a36c8034423a78e61a366feb9fa4d0c658301"
35
+ "gitHead": "23e29a852185cced85f48b9bfff6cdabe479199d"
36
36
  }
@@ -410,10 +410,10 @@ export class InventoryHistoryQuery {
410
410
  result = await tx.query(
411
411
  `
412
412
  select sku, product_name, product_description, product_type, product_aux_value_1, batch_id, product_id, packing_type, uom, bizplace_id,
413
- domain_id, sum(qty) as qty, sum(opening_qty) as opening_qty, sum(uom_value) as uom_value, sum(opening_uom_value) as opening_uom_value, order_name, ref_no, transaction_type,created_at::date
413
+ domain_id, sum(qty) as qty, sum(opening_qty) as opening_qty, sum(uom_value) as uom_value, sum(opening_uom_value) as opening_uom_value, order_name, ref_no, transaction_type, min(created_at) as created_at
414
414
  from(
415
415
  select sku, product_name, product_description, product_type, product_aux_value_1, batch_id, product_id, packing_type, uom, bizplace_id,
416
- domain_id, qty, opening_qty, round(uom_value::decimal,2) as uom_value, opening_uom_value, order_name, ref_no, transaction_type,created_at::date
416
+ domain_id, qty, opening_qty, round(uom_value::decimal,2) as uom_value, opening_uom_value, order_name, ref_no, transaction_type,created_at
417
417
  from temp_inv_history invh where
418
418
  exists (
419
419
  select 1 from (
@@ -449,7 +449,7 @@ export class InventoryHistoryQuery {
449
449
  name: item.product_name,
450
450
  type: item.product_type,
451
451
  description: item.product_description,
452
- auxValue1: item.product_aux_value_1 === null ? '' : '[' + item.product_aux_value_1 + ']',
452
+ auxValue1: item.product_aux_value_1 === null ? '' : '[' + item.product_aux_value_1 + ']'
453
453
  },
454
454
  qty: item.qty,
455
455
  uom: item.uom,
@@ -931,7 +931,7 @@ export class InventoryHistoryQuery {
931
931
  palletId: itm.pallet_id,
932
932
  inboundPalletId: itm.inbound_pallet_id,
933
933
  inboundQty: itm.inbound_qty,
934
- totalQty: itm.total_qty,
934
+ totalQty: itm.total_qty
935
935
  }
936
936
  })
937
937