@things-factory/operato-wms 4.3.596 → 4.3.598
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/client/pages/order/release-order/b2c/b2c-release-order-detail.js +6 -1
- package/client/pages/outbound/inventory-reassign-popup.js +19 -1
- package/client/pages/outbound/worksheet-picking.js +28 -17
- package/dist-server/graphql/resolvers/outbound/undo-load.js +2 -2
- package/dist-server/graphql/resolvers/outbound/undo-load.js.map +1 -1
- package/package.json +3 -3
- package/server/graphql/resolvers/outbound/undo-load.ts +2 -2
|
@@ -725,7 +725,12 @@ class B2CReleaseOrderDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
let addProductStatus = [ORDER_STATUS.PICKING.value, ORDER_STATUS.LOADING.value]
|
|
728
|
-
if (
|
|
728
|
+
if (
|
|
729
|
+
addProductStatus.indexOf(this._status) >= 0 &&
|
|
730
|
+
this._allowROAddProductSetting &&
|
|
731
|
+
!this._isInBatchPicking &&
|
|
732
|
+
this.roType !== 'b2c'
|
|
733
|
+
) {
|
|
729
734
|
actions.push({
|
|
730
735
|
title: i18next.t('button.edit'),
|
|
731
736
|
action: this._openExtraProductPopup.bind(this),
|
|
@@ -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
|
}
|
|
@@ -740,6 +741,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
740
741
|
orderProducts {
|
|
741
742
|
id
|
|
742
743
|
product {
|
|
744
|
+
id
|
|
743
745
|
sku
|
|
744
746
|
name
|
|
745
747
|
}
|
|
@@ -841,6 +843,8 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
841
843
|
zone
|
|
842
844
|
uom
|
|
843
845
|
qty
|
|
846
|
+
expirationDate
|
|
847
|
+
manufactureDate
|
|
844
848
|
}
|
|
845
849
|
}
|
|
846
850
|
}
|
|
@@ -983,8 +987,13 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
983
987
|
? wsd.targetInventory.releaseQty
|
|
984
988
|
: wsd.targetInventory.pickedQty,
|
|
985
989
|
releaseUomValue: wsd.targetInventory.releaseUomValue,
|
|
986
|
-
releaseUomValueWithUom:
|
|
987
|
-
|
|
990
|
+
releaseUomValueWithUom:
|
|
991
|
+
orderVass.length === 0 || (orderVass.length > 0 && worksheet.status !== 'DONE')
|
|
992
|
+
? `${wsd.targetInventory.releaseUomValue.toFixed(2)} ${wsd.targetInventory.inventory.uom}`
|
|
993
|
+
: (releaseGood.orderProducts.find(op => op.product.id === wsd.targetInventory.product.id)
|
|
994
|
+
? `${releaseGood.orderProducts.find(op => op.product.id === wsd.targetInventory.product.id).releaseUomValue.toFixed(2)}
|
|
995
|
+
${wsd.targetInventory.inventory.uom}`
|
|
996
|
+
: "Unable To Find Matching Product Id"),
|
|
988
997
|
availableQty:
|
|
989
998
|
orderVass.length == 0 || (orderVass.length > 0 && worksheet.status !== 'DONE')
|
|
990
999
|
? wsd.targetInventory.inventory.qty -
|
|
@@ -993,7 +1002,9 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
993
1002
|
: wsd.targetInventory.inventory.qty -
|
|
994
1003
|
wsd.targetInventory.inventory.lockedQty +
|
|
995
1004
|
wsd.targetInventory.pickedQty,
|
|
996
|
-
pickedQty: wsd.targetInventory.pickedQty
|
|
1005
|
+
pickedQty: wsd.targetInventory.pickedQty,
|
|
1006
|
+
expirationDate: wsd.targetInventory.inventory.expirationDate,
|
|
1007
|
+
manufactureDate: wsd.targetInventory.inventory.manufactureDate
|
|
997
1008
|
}
|
|
998
1009
|
|
|
999
1010
|
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.
|
|
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.
|
|
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,CAAC,0BAA0B,CAAC,CAAA;SAC5C;QAED,M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AAM,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.
|
|
3
|
+
"version": "4.3.598",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.595",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.591",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.595",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.598"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.591",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "e65dbc1974cf56e879a2359b5ebc44c2ff0e76ab"
|
|
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.
|
|
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.
|
|
61
|
+
status: ORDER_INVENTORY_STATUS.LOADING,
|
|
62
62
|
loadedAt: null,
|
|
63
63
|
loadedByUser: null,
|
|
64
64
|
loadedBy: null,
|