@things-factory/operato-wms 4.3.159 → 4.3.162
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/bulk-operation/bulk-operation.js +1 -1
- package/client/pages/bulk-operation/validate-gan-popup.js +11 -2
- package/client/pages/components/select-inventory-popup.js +2 -2
- package/client/pages/components/select-product-popup.js +19 -4
- package/client/pages/constants/adjustment-code.js +30 -0
- package/client/pages/constants/index.js +1 -0
- package/client/pages/constants/order.js +6 -4
- package/client/pages/inventory/inventory-adjustment-approval.js +73 -0
- package/client/pages/inventory/inventory-adjustment.js +149 -22
- package/client/pages/manifest/loading-manifest-detail.js +22 -13
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +2 -2
- package/client/pages/order/arrival-notice/create-arrival-notice.js +28 -5
- package/client/pages/order/arrival-notice/edit-product-popup.js +4 -1
- package/client/pages/order/arrival-notice/proceed-edit-product-popup.js +5 -1
- package/client/pages/order/arrival-notice/view-product-changes-popup.js +4 -1
- package/client/pages/outbound/inventory-reassign-popup.js +30 -11
- package/client/pages/outbound/picking-product.js +26 -18
- package/client/pages/outbound/worksheet-batch-picking.js +24 -2
- package/client/pages/outbound/worksheet-picking.js +23 -3
- package/config.development.js +15 -15
- package/helps/release-note.ko.md +1 -1
- package/helps/release-note.md +1 -1
- package/helps/release-note.ms.md +1 -1
- package/helps/release-note.zh.md +1 -1
- package/package.json +6 -6
- package/translations/en.json +8 -0
- package/translations/ko.json +9 -1
- package/translations/ms.json +9 -1
- package/translations/zh.json +9 -1
|
@@ -411,7 +411,7 @@ class BulkOperation extends localize(i18next)(PageView) {
|
|
|
411
411
|
uom: raw.uom && raw.uom != '' ? String(raw.uom) : null,
|
|
412
412
|
packQty: parseInt(raw.packQty || 0),
|
|
413
413
|
palletQty: parseInt(raw.palletQty || 0),
|
|
414
|
-
unitPrice:
|
|
414
|
+
unitPrice: raw.unitPrice,
|
|
415
415
|
manufactureDate: this._getStdDateStr(mfgDate),
|
|
416
416
|
etaDate: this._getStdDateStr(etaDate)
|
|
417
417
|
}
|
|
@@ -263,6 +263,11 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
|
|
|
263
263
|
|
|
264
264
|
async _getValidatedArrivalNoticeItems(rawArrivalNotices, bizplaceId) {
|
|
265
265
|
try {
|
|
266
|
+
rawArrivalNotices.map(raw => {
|
|
267
|
+
if (raw.unitPrice) {
|
|
268
|
+
raw.unitPrice = parseFloat(raw.unitPrice)
|
|
269
|
+
}
|
|
270
|
+
})
|
|
266
271
|
const response = await client.query({
|
|
267
272
|
query: gql`
|
|
268
273
|
query validateBulkArrivalNotices($rawArrivalNotices: [NewArrivalNotice!], $bizplaceId: String!) {
|
|
@@ -299,9 +304,13 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
|
|
|
299
304
|
`,
|
|
300
305
|
variables: { rawArrivalNotices, bizplaceId }
|
|
301
306
|
})
|
|
302
|
-
|
|
303
307
|
if (!response.errors) {
|
|
304
308
|
this.records = response.data.validateBulkArrivalNotices
|
|
309
|
+
this.records.map(record => {
|
|
310
|
+
if (record.unitPrice) {
|
|
311
|
+
record.unitPrice = record.unitPrice.toFixed(2)
|
|
312
|
+
}
|
|
313
|
+
})
|
|
305
314
|
}
|
|
306
315
|
} catch (e) {
|
|
307
316
|
console.error(e)
|
|
@@ -336,7 +345,7 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
|
|
|
336
345
|
uom: raw.uom,
|
|
337
346
|
packQty: raw.packQty,
|
|
338
347
|
palletQty: raw.palletQty,
|
|
339
|
-
unitPrice: raw.unitPrice,
|
|
348
|
+
unitPrice: parseFloat(raw.unitPrice),
|
|
340
349
|
manufactureDate: new Date(parseInt(raw.manufactureDate))
|
|
341
350
|
}
|
|
342
351
|
})
|
|
@@ -480,7 +480,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
|
|
|
480
480
|
if (data?.length > 0) {
|
|
481
481
|
filters.push({
|
|
482
482
|
name: 'id',
|
|
483
|
-
value: data.map(record => record
|
|
483
|
+
value: data.map(record => record?.inventory?.id),
|
|
484
484
|
operator: 'notin'
|
|
485
485
|
})
|
|
486
486
|
}
|
|
@@ -525,7 +525,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
|
|
|
525
525
|
response.data.inventoriesByPallet.items.map(item => {
|
|
526
526
|
return {
|
|
527
527
|
...item,
|
|
528
|
-
location: item
|
|
528
|
+
location: item?.location?.name
|
|
529
529
|
}
|
|
530
530
|
}) || []
|
|
531
531
|
}
|
|
@@ -183,6 +183,12 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
183
183
|
name: 'uomValue',
|
|
184
184
|
header: i18next.t('field.uom_value'),
|
|
185
185
|
width: 120
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: 'float',
|
|
189
|
+
name: 'costPrice',
|
|
190
|
+
header: i18next.t('field.unit_cost'),
|
|
191
|
+
width: 120
|
|
186
192
|
}
|
|
187
193
|
]
|
|
188
194
|
}
|
|
@@ -208,6 +214,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
208
214
|
packingSize
|
|
209
215
|
uom
|
|
210
216
|
uomValue
|
|
217
|
+
costPrice
|
|
211
218
|
product {
|
|
212
219
|
id
|
|
213
220
|
name
|
|
@@ -215,6 +222,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
215
222
|
brand
|
|
216
223
|
description
|
|
217
224
|
type
|
|
225
|
+
costPrice
|
|
218
226
|
}
|
|
219
227
|
}
|
|
220
228
|
total
|
|
@@ -236,7 +244,8 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
236
244
|
sku: item.product.sku,
|
|
237
245
|
brand: item.product.brand,
|
|
238
246
|
name: item.name,
|
|
239
|
-
description: item.product.description
|
|
247
|
+
description: item.product.description,
|
|
248
|
+
costPrice: (item.costPrice = (item?.costPrice || 0).toFixed(2))
|
|
240
249
|
}
|
|
241
250
|
}) || []
|
|
242
251
|
}
|
|
@@ -255,6 +264,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
255
264
|
productName: `${record.name}(${record.description}(${record.sku}))`,
|
|
256
265
|
isError: false,
|
|
257
266
|
productBrand: record.brand,
|
|
267
|
+
unitPrice: parseFloat(record.costPrice).toFixed(2),
|
|
258
268
|
product: {
|
|
259
269
|
id: record.productId,
|
|
260
270
|
name: record.name,
|
|
@@ -262,7 +272,8 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
262
272
|
packingType: record.packingType,
|
|
263
273
|
packingSize: record.packingSize,
|
|
264
274
|
primaryUnit: record.uom,
|
|
265
|
-
primaryValue: record.uomValue
|
|
275
|
+
primaryValue: record.uomValue,
|
|
276
|
+
costPrice: parseFloat(record.costPrice).toFixed(2)
|
|
266
277
|
}
|
|
267
278
|
}
|
|
268
279
|
})
|
|
@@ -284,6 +295,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
284
295
|
productName: `${selectedProduct.name}(${selectedProduct.description}(${selectedProduct.sku}))`,
|
|
285
296
|
isError: false,
|
|
286
297
|
productBrand: selectedProduct.brand,
|
|
298
|
+
unitPrice: parseFloat(selectedProduct.costPrice).toFixed(2),
|
|
287
299
|
product: {
|
|
288
300
|
id: selectedProduct.productId,
|
|
289
301
|
name: selectedProduct.name,
|
|
@@ -291,7 +303,8 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
291
303
|
packingType: selectedProduct.packingType,
|
|
292
304
|
packingSize: selectedProduct.packingSize,
|
|
293
305
|
primaryUnit: selectedProduct.uom,
|
|
294
|
-
primaryValue: selectedProduct.uomValue
|
|
306
|
+
primaryValue: selectedProduct.uomValue,
|
|
307
|
+
costPrice: parseFloat(selectedProduct.costPrice).toFixed(2)
|
|
295
308
|
}
|
|
296
309
|
}
|
|
297
310
|
})
|
|
@@ -313,6 +326,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
313
326
|
uomValue: itm.uomValue,
|
|
314
327
|
productName: `${itm.name}(${itm.description}(${itm.sku}))`,
|
|
315
328
|
isError: false,
|
|
329
|
+
unitPrice: parseFloat(itm.costPrice).toFixed(2),
|
|
316
330
|
productBrand: itm.brand,
|
|
317
331
|
product: {
|
|
318
332
|
id: itm.productId,
|
|
@@ -321,7 +335,8 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
321
335
|
packingType: itm.packingType,
|
|
322
336
|
packingSize: itm.packingSize,
|
|
323
337
|
primaryUnit: itm.uom,
|
|
324
|
-
primaryValue: itm.uomValue
|
|
338
|
+
primaryValue: itm.uomValue,
|
|
339
|
+
costPrice: parseFloat(itm.costPrice).costPrice
|
|
325
340
|
}
|
|
326
341
|
}
|
|
327
342
|
})
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const ADJUSTMENT_CODE = {
|
|
2
|
+
AC01: {
|
|
3
|
+
name: 'AC-01: LOST INVENTORY',
|
|
4
|
+
value: 'AC-01: LOST INVENTORY'
|
|
5
|
+
},
|
|
6
|
+
AC02: {
|
|
7
|
+
name: 'AC-02: DAMAGE',
|
|
8
|
+
value: 'AC-02: DAMAGE'
|
|
9
|
+
},
|
|
10
|
+
AC03: {
|
|
11
|
+
name: 'AC-03: SHELF LIFE',
|
|
12
|
+
value: 'AC-03: SHELF LIFE'
|
|
13
|
+
},
|
|
14
|
+
AC04: {
|
|
15
|
+
name: 'AC-04: STOCK NUMBER CHANGE',
|
|
16
|
+
value: 'AC-04: STOCK NUMBER CHANGE'
|
|
17
|
+
},
|
|
18
|
+
AC05: {
|
|
19
|
+
name: 'AC-05: OWNERSHIP CHANGE',
|
|
20
|
+
value: 'AC-05: OWNERSHIP CHANGE'
|
|
21
|
+
},
|
|
22
|
+
AC06: {
|
|
23
|
+
name: 'AC-06: TRANSFER',
|
|
24
|
+
value: 'AC-06: TRANSFER'
|
|
25
|
+
},
|
|
26
|
+
AC07: {
|
|
27
|
+
name: 'AC-07: OTHERS',
|
|
28
|
+
value: 'AC-07: OTHERS'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -48,8 +48,8 @@ export const ORDER_STATUS = {
|
|
|
48
48
|
INTRANSIT: { name: 'order_status_intransit', value: 'INTRANSIT' },
|
|
49
49
|
ARRIVED: { name: 'order_status_arrived', value: 'ARRIVED' },
|
|
50
50
|
RECEIVED: { name: 'order_status_received', value: 'RECEIVED' },
|
|
51
|
-
READY_TO_UNLOAD: { name: '
|
|
52
|
-
PUTTING_AWAY: { name: '
|
|
51
|
+
READY_TO_UNLOAD: { name: 'order_status_ready_to_unload', value: 'READY_TO_UNLOAD' },
|
|
52
|
+
PUTTING_AWAY: { name: 'order_status_putting_away', value: 'PUTTING_AWAY' },
|
|
53
53
|
PROCESSING: { name: 'order_status_processing', value: 'PROCESSING' },
|
|
54
54
|
DONE: { name: 'order_status_done', value: 'DONE' },
|
|
55
55
|
COLLECTING: { name: 'order_status_collecting', value: 'COLLECTING' },
|
|
@@ -64,7 +64,8 @@ export const ORDER_STATUS = {
|
|
|
64
64
|
LOADING: { name: 'order_status_loading', value: 'LOADING' },
|
|
65
65
|
READY_TO_DISPATCH: { name: 'order_status_ready_to_dispatch', value: 'READY_TO_DISPATCH' },
|
|
66
66
|
READY_TO_EXECUTE: { name: 'order_status_ready_to_execute', value: 'READY_TO_EXECUTE' },
|
|
67
|
-
READY_TO_SEND: { name: 'order_status_ready_to_send', value: 'READY_TO_SEND' }
|
|
67
|
+
READY_TO_SEND: { name: 'order_status_ready_to_send', value: 'READY_TO_SEND' },
|
|
68
|
+
OBSOLETE: { name: 'order_status_obsolete', value: 'OBSOLETE' }
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
export const MANIFEST_STATUS = {
|
|
@@ -123,7 +124,8 @@ export const ORDER_INVENTORY_STATUS = {
|
|
|
123
124
|
TERMINATED: { name: 'inventory_status_terminated', value: 'TERMINATED' },
|
|
124
125
|
DONE: { name: 'inventory_status_done', value: 'DONE' },
|
|
125
126
|
CANCELLED: { name: 'inventory_status_cancelled', value: 'CANCELLED' },
|
|
126
|
-
PENDING_CANCEL: { name: 'inventory_status_pending_cancel', value: 'PENDING_CANCEL' }
|
|
127
|
+
PENDING_CANCEL: { name: 'inventory_status_pending_cancel', value: 'PENDING_CANCEL' },
|
|
128
|
+
OBSOLETE: { name: 'inventory_status_obsolete', value: 'OBSOLETE' }
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
export const ORDER_VAS_STATUS = {
|
|
@@ -121,6 +121,14 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
121
121
|
return this.shadowRoot.querySelector('search-form')
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
get _fromDateInput() {
|
|
125
|
+
return this.searchForm.shadowRoot.querySelector('input[name=fromDate]')
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
get _toDateInput() {
|
|
129
|
+
return this.searchForm.shadowRoot.querySelector('input[name=toDate]')
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
async pageInitialized() {
|
|
125
133
|
this._selectedInventoryChange = null
|
|
126
134
|
this._lockedPallet = []
|
|
@@ -133,6 +141,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
133
141
|
{ column: 'packingType', name: 'Packing Type' },
|
|
134
142
|
{ column: 'packingSize', name: 'Packing Size' },
|
|
135
143
|
{ column: 'bizplace', name: 'Customer' },
|
|
144
|
+
{ column: 'sku', name: 'SKU' },
|
|
136
145
|
{ column: 'product', name: 'Product' },
|
|
137
146
|
{ column: 'location', name: 'Location' },
|
|
138
147
|
{ column: 'qty', name: 'Quantity' },
|
|
@@ -141,6 +150,8 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
141
150
|
{ column: 'expirationDate', name: 'Exp. Date' },
|
|
142
151
|
{ column: 'manufactureDate', name: 'Mfg. Date' },
|
|
143
152
|
{ column: 'unitCost', name: 'Unit Cost' },
|
|
153
|
+
{ column: 'adjustmentCode', name: 'Adjustment Code' },
|
|
154
|
+
{ column: 'adjustmentNote', name: 'Note' },
|
|
144
155
|
{ column: 'inventoryItemChange', name: 'Inventory Item Changes' },
|
|
145
156
|
{ column: 'status', name: 'Status' }
|
|
146
157
|
]
|
|
@@ -182,6 +193,8 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
182
193
|
break
|
|
183
194
|
}
|
|
184
195
|
|
|
196
|
+
compareData.sku = compareData?.product?.sku
|
|
197
|
+
|
|
185
198
|
if (compareData == null) {
|
|
186
199
|
this._compareColumn.map(item => {
|
|
187
200
|
if (record[item.column]) {
|
|
@@ -347,6 +360,12 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
347
360
|
type: 'text',
|
|
348
361
|
props: { searchOper: 'i_like' }
|
|
349
362
|
},
|
|
363
|
+
{
|
|
364
|
+
label: i18next.t('field.carton_id'),
|
|
365
|
+
name: 'cartonId',
|
|
366
|
+
type: 'text',
|
|
367
|
+
props: { searchOper: 'i_like' }
|
|
368
|
+
},
|
|
350
369
|
{
|
|
351
370
|
label: i18next.t('field.status'),
|
|
352
371
|
name: 'status',
|
|
@@ -361,6 +380,38 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
361
380
|
})
|
|
362
381
|
],
|
|
363
382
|
props: { searchOper: 'eq' }
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
label: i18next.t('field.from_date'),
|
|
386
|
+
name: 'fromDate',
|
|
387
|
+
type: 'date',
|
|
388
|
+
props: {
|
|
389
|
+
searchOper: 'eq',
|
|
390
|
+
max: new Date().toISOString().split('T')[0]
|
|
391
|
+
},
|
|
392
|
+
attrs: ['custom'],
|
|
393
|
+
value: (() => {
|
|
394
|
+
let date = new Date()
|
|
395
|
+
date.setMonth(date.getMonth() - 1)
|
|
396
|
+
return date.toISOString().split('T')[0]
|
|
397
|
+
})(),
|
|
398
|
+
handlers: { change: this._modifyDateRange.bind(this) }
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
label: i18next.t('field.to_date'),
|
|
402
|
+
name: 'toDate',
|
|
403
|
+
type: 'date',
|
|
404
|
+
props: {
|
|
405
|
+
searchOper: 'eq',
|
|
406
|
+
min: (() => {
|
|
407
|
+
let date = new Date()
|
|
408
|
+
date.setMonth(date.getMonth() - 1)
|
|
409
|
+
return date.toISOString().split('T')[0]
|
|
410
|
+
})(),
|
|
411
|
+
max: new Date().toISOString().split('T')[0]
|
|
412
|
+
},
|
|
413
|
+
attrs: ['custom'],
|
|
414
|
+
value: new Date().toISOString().split('T')[0]
|
|
364
415
|
}
|
|
365
416
|
]
|
|
366
417
|
}
|
|
@@ -393,6 +444,9 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
393
444
|
expirationDate
|
|
394
445
|
manufactureDate
|
|
395
446
|
unitCost
|
|
447
|
+
adjustmentCode
|
|
448
|
+
adjustmentNote
|
|
449
|
+
sku
|
|
396
450
|
bizplace {
|
|
397
451
|
id
|
|
398
452
|
name
|
|
@@ -401,6 +455,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
401
455
|
product {
|
|
402
456
|
id
|
|
403
457
|
name
|
|
458
|
+
sku
|
|
404
459
|
description
|
|
405
460
|
type
|
|
406
461
|
}
|
|
@@ -424,6 +479,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
424
479
|
product {
|
|
425
480
|
id
|
|
426
481
|
name
|
|
482
|
+
sku
|
|
427
483
|
description
|
|
428
484
|
type
|
|
429
485
|
}
|
|
@@ -438,6 +494,8 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
438
494
|
expirationDate
|
|
439
495
|
manufactureDate
|
|
440
496
|
unitCost
|
|
497
|
+
adjustmentCode
|
|
498
|
+
adjustmentNote
|
|
441
499
|
}
|
|
442
500
|
lastInventoryHistory {
|
|
443
501
|
batchId
|
|
@@ -452,6 +510,7 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
452
510
|
}
|
|
453
511
|
product {
|
|
454
512
|
id
|
|
513
|
+
sku
|
|
455
514
|
name
|
|
456
515
|
description
|
|
457
516
|
type
|
|
@@ -531,6 +590,20 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
|
|
|
531
590
|
}
|
|
532
591
|
}
|
|
533
592
|
|
|
593
|
+
_modifyDateRange(e) {
|
|
594
|
+
const fromDate = e.currentTarget.value
|
|
595
|
+
|
|
596
|
+
if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
|
|
597
|
+
|
|
598
|
+
let min = new Date(fromDate)
|
|
599
|
+
let today = new Date()
|
|
600
|
+
today.setHours(0, 0, 0, 0)
|
|
601
|
+
|
|
602
|
+
min = min.toISOString().split('T')[0]
|
|
603
|
+
|
|
604
|
+
this._toDateInput.min = min
|
|
605
|
+
}
|
|
606
|
+
|
|
534
607
|
async _fetchPartners() {
|
|
535
608
|
const response = await client.query({
|
|
536
609
|
query: gql`
|