@things-factory/operato-wms 4.3.596 → 4.3.597

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.
@@ -349,6 +349,8 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
349
349
  header: i18next.t('field.total_uom_value')
350
350
  },
351
351
  { name: 'batchIdRef', header: i18next.t('field.batch_no_ref') },
352
+ { name: 'expirationDate', type: 'date', header: i18next.t('field.expiry_date') },
353
+ { name: 'manufactureDate', type: 'date', header: i18next.t('field.manufacture_date') },
352
354
  {
353
355
  name: 'remark',
354
356
  type: 'string',
@@ -429,6 +431,18 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
429
431
  name: 'batchIdRef',
430
432
  header: i18next.t('field.batch_no_ref'),
431
433
  width: 100
434
+ },
435
+ {
436
+ type: 'date',
437
+ name: 'expirationDate',
438
+ header: i18next.t('field.expiry_date'),
439
+ width: 150
440
+ },
441
+ {
442
+ type: 'date',
443
+ name: 'manufactureDate',
444
+ header: i18next.t('field.manufacture_date'),
445
+ width: 150
432
446
  }
433
447
  ]
434
448
  }
@@ -596,6 +610,8 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
596
610
  uomValue
597
611
  lockedUomValue
598
612
  obsolete
613
+ manufactureDate
614
+ expirationDate
599
615
  product {
600
616
  id
601
617
  name
@@ -640,7 +656,9 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
640
656
  remainQty: Math.round(item.inventory.qty - item.inventory.lockedQty),
641
657
  remainUomValue: Math.round(item.inventory.uomValue - item.inventory.lockedUomValue),
642
658
  remainUomValueWithUom: `${item.inventory.uomValue - item.inventory.lockedUomValue} ${item.inventory.uom}`,
643
- notReassignable: item?.pickedQty && !isObsolete ? true : false
659
+ notReassignable: item?.pickedQty && !isObsolete ? true : false,
660
+ manufactureDate: item?.inventory.manufactureDate,
661
+ expirationDate: item?.inventory.expirationDate
644
662
  }
645
663
  })
646
664
  this.orderInventoryData = {
@@ -7,24 +7,13 @@ import './item-label-popup'
7
7
  import './inventory-reassign-popup'
8
8
 
9
9
  import gql from 'graphql-tag'
10
- import {
11
- css,
12
- html
13
- } from 'lit-element'
10
+ import { css, html } from 'lit-element'
14
11
 
15
12
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
16
13
  import { getRenderer } from '@things-factory/grist-ui'
17
- import {
18
- i18next,
19
- localize
20
- } from '@things-factory/i18n-base'
14
+ import { i18next, localize } from '@things-factory/i18n-base'
21
15
  import { openPopup } from '@things-factory/layout-base'
22
- import {
23
- client,
24
- CustomAlert,
25
- navigate,
26
- PageView
27
- } from '@things-factory/shell'
16
+ import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
28
17
  import { CommonButtonStyles } from '@things-factory/styles'
29
18
  import { isMobileDevice } from '@things-factory/utils'
30
19
 
@@ -561,6 +550,18 @@ class WorksheetPicking extends localize(i18next)(PageView) {
561
550
  name: 'obsolete',
562
551
  header: i18next.t('field.obsolete'),
563
552
  width: 60
553
+ },
554
+ {
555
+ type: 'date',
556
+ name: 'expirationDate',
557
+ header: i18next.t('field.expiry_date'),
558
+ width: 150
559
+ },
560
+ {
561
+ type: 'date',
562
+ name: 'manufactureDate',
563
+ header: i18next.t('field.manufacture_date'),
564
+ width: 150
564
565
  }
565
566
  ]
566
567
  }
@@ -841,6 +842,8 @@ class WorksheetPicking extends localize(i18next)(PageView) {
841
842
  zone
842
843
  uom
843
844
  qty
845
+ expirationDate
846
+ manufactureDate
844
847
  }
845
848
  }
846
849
  }
@@ -993,7 +996,9 @@ class WorksheetPicking extends localize(i18next)(PageView) {
993
996
  : wsd.targetInventory.inventory.qty -
994
997
  wsd.targetInventory.inventory.lockedQty +
995
998
  wsd.targetInventory.pickedQty,
996
- pickedQty: wsd.targetInventory.pickedQty
999
+ pickedQty: wsd.targetInventory.pickedQty,
1000
+ expirationDate: wsd.targetInventory.inventory.expirationDate,
1001
+ manufactureDate: wsd.targetInventory.inventory.manufactureDate
997
1002
  }
998
1003
 
999
1004
  if (wsd.targetInventory?.inventory) {
@@ -24,7 +24,7 @@ exports.undoLoad = {
24
24
  roInventory.inventoryId === doInventory.inventoryId &&
25
25
  roInventory.productId === doInventory.productId &&
26
26
  roInventory.productDetailId === doInventory.productDetailId &&
27
- roInventory.status === sales_base_1.ORDER_INVENTORY_STATUS.PICKED);
27
+ roInventory.status === sales_base_1.ORDER_INVENTORY_STATUS.LOADING);
28
28
  if (previousOi) {
29
29
  //combine previously splitted oi
30
30
  await tx.getRepository(sales_base_1.OrderInventory).update(previousOi.id, {
@@ -49,7 +49,7 @@ exports.undoLoad = {
49
49
  //undo oi and wsd
50
50
  await tx.getRepository(sales_base_1.OrderInventory).update(doInventory.id, {
51
51
  deliveryOrder: null,
52
- status: sales_base_1.ORDER_INVENTORY_STATUS.PICKED,
52
+ status: sales_base_1.ORDER_INVENTORY_STATUS.LOADING,
53
53
  loadedAt: null,
54
54
  loadedByUser: null,
55
55
  loadedBy: null,
@@ -1 +1 @@
1
- {"version":3,"file":"undo-load.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/outbound/undo-load.ts"],"names":[],"mappings":";;;AACA,2DAA+G;AAG/G,mEAAgH;AAChH,mEAAkG;AAErF,QAAA,QAAQ,GAAG;IACtB,KAAK,CAAC,QAAQ,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAY;QAC3C,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,MAAM,aAAa,GAAkB,MAAM,EAAE,CAAC,aAAa,CAAC,0BAAa,CAAC,CAAC,OAAO,CAAC;YACjF,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,SAAS,EAAE,CAAC,kBAAkB,EAAE,4BAA4B,EAAE,aAAa,EAAE,8BAA8B,CAAC;SAC7G,CAAC,CAAA;QAEF,IAAI,CAAC,aAAa,EAAE;YAClB,MAAM,IAAI,KAAK,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E,IAAI;oBACd,YAAY,EAAE,IAAI;oBAClB,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,IAAI;iBACd,CAAC,CAAA;gBACF,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAe,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE;oBACjE,MAAM,EAAE,iCAAgB,CAAC,SAAS;oBAClC,OAAO,EAAE,IAAI;oBACb,SAAS,EAAE,IAAI,IAAI,EAAE;iBACtB,CAAC,CAAA;aACH;YAED,4BAA4B;YAC5B,IAAI,SAAS,GAAc,WAAW,CAAC,SAAS,CAAA;YAChD,MAAM,IAAA,yCAAwB,EAAC,SAAS,EAAE,WAAW,EAAE,2CAA0B,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;SACjH;QAED,MAAM,EAAE,CAAC,aAAa,CAAC,0BAAa,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;QAE9D,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.596",
3
+ "version": "4.3.597",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "fb138ade596331e36fde7f106a74c277f68a320a"
120
+ "gitHead": "2c451cd0f7b486d939ce027a18a20a3c28837b87"
121
121
  }
@@ -31,7 +31,7 @@ export const undoLoad = {
31
31
  roInventory.inventoryId === doInventory.inventoryId &&
32
32
  roInventory.productId === doInventory.productId &&
33
33
  roInventory.productDetailId === doInventory.productDetailId &&
34
- roInventory.status === ORDER_INVENTORY_STATUS.PICKED
34
+ roInventory.status === ORDER_INVENTORY_STATUS.LOADING
35
35
  )
36
36
 
37
37
  if (previousOi) {
@@ -58,7 +58,7 @@ export const undoLoad = {
58
58
  //undo oi and wsd
59
59
  await tx.getRepository(OrderInventory).update(doInventory.id, {
60
60
  deliveryOrder: null,
61
- status: ORDER_INVENTORY_STATUS.PICKED,
61
+ status: ORDER_INVENTORY_STATUS.LOADING,
62
62
  loadedAt: null,
63
63
  loadedByUser: null,
64
64
  loadedBy: null,