@things-factory/operato-wms 4.3.244 → 4.3.246
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/inventory/inventory-by-product.js +14 -3
- package/client/pages/order/release-order/b2b/b2b-order-list.js +6 -0
- package/client/pages/order/release-order/release-order-detail.js +50 -51
- package/config.development.js +15 -15
- package/package.json +5 -5
- package/translations/en.json +8 -7
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -421,9 +421,9 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
type: 'integer',
|
|
424
|
-
name: '
|
|
425
|
-
imex: { header: i18next.t('field.
|
|
426
|
-
header: i18next.t('field.
|
|
424
|
+
name: 'insufficientQty',
|
|
425
|
+
imex: { header: i18next.t('field.insufficient_qty'), key: 'insufficientQty', width: 20, type: 'integer' },
|
|
426
|
+
header: i18next.t('field.insufficient_qty'),
|
|
427
427
|
label: true,
|
|
428
428
|
width: 120
|
|
429
429
|
},
|
|
@@ -435,6 +435,14 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
435
435
|
label: true,
|
|
436
436
|
width: 120
|
|
437
437
|
},
|
|
438
|
+
{
|
|
439
|
+
type: 'integer',
|
|
440
|
+
name: 'availableQty',
|
|
441
|
+
imex: { header: i18next.t('field.available_qty'), key: 'availableQty', width: 20, type: 'integer' },
|
|
442
|
+
header: i18next.t('field.available_qty'),
|
|
443
|
+
label: true,
|
|
444
|
+
width: 120
|
|
445
|
+
},
|
|
438
446
|
{
|
|
439
447
|
type: 'integer',
|
|
440
448
|
name: 'quarantineQty',
|
|
@@ -520,6 +528,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
520
528
|
qty
|
|
521
529
|
putawayQty
|
|
522
530
|
availableQty
|
|
531
|
+
insufficientQty
|
|
523
532
|
releaseQty
|
|
524
533
|
quarantineQty
|
|
525
534
|
reserveQty
|
|
@@ -547,6 +556,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
547
556
|
record.putawayQty = item.putawayQty
|
|
548
557
|
record.qty = item.qty
|
|
549
558
|
record.availableQty = item.availableQty
|
|
559
|
+
record.insufficientQty = item.insufficientQty
|
|
550
560
|
record.releaseQty = item.releaseQty
|
|
551
561
|
record.quarantineQty = item.quarantineQty
|
|
552
562
|
record.reserveQty = item.reserveQty
|
|
@@ -689,6 +699,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
689
699
|
putawayQty: item.putawayQty,
|
|
690
700
|
minQty: item.minQty,
|
|
691
701
|
maxQty: item.maxQty,
|
|
702
|
+
insufficientQty: item.insufficientQty,
|
|
692
703
|
availableQty: item.availableQty,
|
|
693
704
|
releaseQty: item.releaseQty,
|
|
694
705
|
quarantineQty: item.quarantineQty,
|
|
@@ -176,6 +176,12 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
176
176
|
},
|
|
177
177
|
value: new Date().toISOString().split('T')[0]
|
|
178
178
|
},
|
|
179
|
+
{
|
|
180
|
+
label: i18next.t('field.product_info'),
|
|
181
|
+
name: 'sku',
|
|
182
|
+
type: 'text',
|
|
183
|
+
props: { searchOper: ' i_like' }
|
|
184
|
+
},
|
|
179
185
|
{
|
|
180
186
|
label: i18next.t('field.export_option'),
|
|
181
187
|
name: 'exportOption',
|
|
@@ -498,7 +498,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
498
498
|
</div>
|
|
499
499
|
|
|
500
500
|
<form name="shippingInfo" ?hidden="${this._showShippingInfo}" class="multi-column-form" autocomplete="off">
|
|
501
|
-
<legend>${i18next.t('title.shipping_information')}</legend>
|
|
501
|
+
<legend>${i18next.t('title.shipping_information')} (${this._releaseOrderNo})</legend>
|
|
502
502
|
|
|
503
503
|
<label>${i18next.t('label.company')}</label>
|
|
504
504
|
<input name="attentionCompany" .value="${this._releaseOrder.attentionCompany}" />
|
|
@@ -649,7 +649,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
649
649
|
</form>
|
|
650
650
|
|
|
651
651
|
<form name="exportInfo" ?hidden="${this._showExportInfo}" class="multi-column-form" autocomplete="off">
|
|
652
|
-
<legend>${i18next.t('title.export_information')}</legend>
|
|
652
|
+
<legend>${i18next.t('title.export_information')} (${this._releaseOrderNo})</legend>
|
|
653
653
|
|
|
654
654
|
<!-- <div remind-wrap>
|
|
655
655
|
<input type="checkbox" id="remindContainerDeparture" name="remindContainerDeparture"
|
|
@@ -749,15 +749,15 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
749
749
|
<!-- disable editing of vas -->
|
|
750
750
|
<!-- <div class="vas-button-container">
|
|
751
751
|
${this._editVasStatus.indexOf(this._status) >= 0
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
752
|
+
? html`
|
|
753
|
+
<mwc-button
|
|
754
|
+
raised
|
|
755
|
+
@click="${this._updateVass.bind(this)}"
|
|
756
|
+
label="${i18next.t('button.update_vas')}"
|
|
757
|
+
}
|
|
758
|
+
></mwc-button>
|
|
759
|
+
`
|
|
760
|
+
: ''}
|
|
761
761
|
</div> -->
|
|
762
762
|
</div>
|
|
763
763
|
</div>
|
|
@@ -1261,7 +1261,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1261
1261
|
type: 'string',
|
|
1262
1262
|
name: 'vas',
|
|
1263
1263
|
header: i18next.t('field.vas'),
|
|
1264
|
-
record: {editable: enableVasEditing},
|
|
1264
|
+
record: { editable: enableVasEditing },
|
|
1265
1265
|
width: 250
|
|
1266
1266
|
},
|
|
1267
1267
|
{
|
|
@@ -1614,42 +1614,43 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
|
|
1616
1616
|
this.vasData = {
|
|
1617
|
-
records: orderVass
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
if(idx== 0){
|
|
1632
|
-
acc[acc.length - 1] = {
|
|
1633
|
-
...acc[acc.length - 1],
|
|
1634
|
-
orderVasItemId: itm.vas.id,
|
|
1635
|
-
group: groupIdx,
|
|
1636
|
-
vas: itm.vas.name,
|
|
1637
|
-
vasQty: itm.vasQty
|
|
1638
|
-
}
|
|
1639
|
-
}else{
|
|
1640
|
-
acc.push({
|
|
1641
|
-
orderVasItemId: itm.vas.id,
|
|
1642
|
-
group: groupIdx,
|
|
1643
|
-
vas: itm.vas.name,
|
|
1644
|
-
vasQty: itm.vasQty,
|
|
1645
|
-
})
|
|
1646
|
-
}
|
|
1647
|
-
})
|
|
1617
|
+
records: orderVass
|
|
1618
|
+
.sort((a, b) => a.set - b.set)
|
|
1619
|
+
.reduce((acc, orderVas, groupIdx) => {
|
|
1620
|
+
const releaseQty = orderProducts.find(op => op.batchId === orderVas.batchId)?.releaseQty || 0
|
|
1621
|
+
acc.push({
|
|
1622
|
+
...orderVas,
|
|
1623
|
+
productSKU: orderVas.product?.sku,
|
|
1624
|
+
uom: orderVas.productDetail?.uom,
|
|
1625
|
+
newSku: orderVas.newProduct?.sku,
|
|
1626
|
+
newPackingType: orderVas.newProductDetail?.packingType,
|
|
1627
|
+
newUomValue: orderVas.newProductDetail?.uomValue,
|
|
1628
|
+
newUom: orderVas.newProductDetail?.uom,
|
|
1629
|
+
releaseQty: releaseQty
|
|
1630
|
+
})
|
|
1648
1631
|
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1632
|
+
orderVas.orderVasItems.forEach((itm, idx) => {
|
|
1633
|
+
if (idx == 0) {
|
|
1634
|
+
acc[acc.length - 1] = {
|
|
1635
|
+
...acc[acc.length - 1],
|
|
1636
|
+
orderVasItemId: itm.vas.id,
|
|
1637
|
+
group: groupIdx,
|
|
1638
|
+
vas: itm.vas.name,
|
|
1639
|
+
vasQty: itm.vasQty
|
|
1640
|
+
}
|
|
1641
|
+
} else {
|
|
1642
|
+
acc.push({
|
|
1643
|
+
orderVasItemId: itm.vas.id,
|
|
1644
|
+
group: groupIdx,
|
|
1645
|
+
vas: itm.vas.name,
|
|
1646
|
+
vasQty: itm.vasQty
|
|
1647
|
+
})
|
|
1648
|
+
}
|
|
1649
|
+
})
|
|
1652
1650
|
|
|
1651
|
+
return acc
|
|
1652
|
+
}, [])
|
|
1653
|
+
}
|
|
1653
1654
|
}
|
|
1654
1655
|
}
|
|
1655
1656
|
|
|
@@ -2124,7 +2125,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2124
2125
|
.vasList="${this.vasData.records}"
|
|
2125
2126
|
.record="${record}"
|
|
2126
2127
|
@selected="${selected => {
|
|
2127
|
-
let group = this.vasGrist.data.records[this.vasGrist.data.records.length -1].group
|
|
2128
|
+
let group = this.vasGrist.data.records[this.vasGrist.data.records.length - 1].group
|
|
2128
2129
|
|
|
2129
2130
|
const newRecords = selected.detail.map(d => {
|
|
2130
2131
|
return {
|
|
@@ -2282,7 +2283,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2282
2283
|
}
|
|
2283
2284
|
}
|
|
2284
2285
|
|
|
2285
|
-
|
|
2286
2286
|
get vasSummaryConfig() {
|
|
2287
2287
|
return {
|
|
2288
2288
|
rows: {
|
|
@@ -2626,8 +2626,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2626
2626
|
_updateVass() {
|
|
2627
2627
|
try {
|
|
2628
2628
|
let patches = this.vasGrist.data.records
|
|
2629
|
-
|
|
2630
|
-
debugger
|
|
2631
2629
|
|
|
2632
2630
|
// const result = await CustomAlert({
|
|
2633
2631
|
// title: i18next.t('title.are_you_sure'),
|
|
@@ -2650,7 +2648,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2650
2648
|
// qty: patch.qty,
|
|
2651
2649
|
// uomValue: patch.totalUomValue,
|
|
2652
2650
|
// // vas: { id: patch.orderVasItems.reduce((vasList = [], ovi) => [...vasList.push(ovi.vas.id)]) }
|
|
2653
|
-
// vas: { id: patch.orderVasItems.map(ovi => ovi.vas.id) },
|
|
2651
|
+
// vas: { id: patch.orderVasItems.map(ovi => ovi.vas.id) },
|
|
2654
2652
|
// vasQty: patch.orderVasItems.map(ovi => ovi.vasQty),
|
|
2655
2653
|
// newProduct: patch.newProduct?.id,
|
|
2656
2654
|
// outputQty: patch.outputQty,
|
|
@@ -2817,6 +2815,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2817
2815
|
_getFormInfo() {
|
|
2818
2816
|
let formData = this._serializeForm(this.releaseOrderForm)
|
|
2819
2817
|
delete formData.importedOrder
|
|
2818
|
+
delete formData.vas
|
|
2820
2819
|
|
|
2821
2820
|
return formData
|
|
2822
2821
|
}
|
package/config.development.js
CHANGED
|
@@ -6,28 +6,28 @@ module.exports = {
|
|
|
6
6
|
subdomainOffset: 2,
|
|
7
7
|
port: 1100,
|
|
8
8
|
inspect: '9430',
|
|
9
|
-
ormconfig: {
|
|
10
|
-
name: 'default',
|
|
11
|
-
type: 'postgres',
|
|
12
|
-
database: 'dev2',
|
|
13
|
-
username: 'postgres',
|
|
14
|
-
password: 'hatio',
|
|
15
|
-
host: '192.168.0.161',
|
|
16
|
-
port: 15432,
|
|
17
|
-
synchronize: true,
|
|
18
|
-
logging: true
|
|
19
|
-
},
|
|
20
9
|
// ormconfig: {
|
|
21
10
|
// name: 'default',
|
|
22
11
|
// type: 'postgres',
|
|
23
|
-
// database: '
|
|
12
|
+
// database: 'dev2',
|
|
24
13
|
// username: 'postgres',
|
|
25
|
-
// password: '
|
|
26
|
-
// host: '
|
|
27
|
-
// port:
|
|
14
|
+
// password: 'hatio',
|
|
15
|
+
// host: '192.168.0.161',
|
|
16
|
+
// port: 15432,
|
|
28
17
|
// synchronize: false,
|
|
29
18
|
// logging: true
|
|
30
19
|
// },
|
|
20
|
+
ormconfig: {
|
|
21
|
+
name: 'default',
|
|
22
|
+
type: 'postgres',
|
|
23
|
+
database: 'postgres',
|
|
24
|
+
username: 'postgres',
|
|
25
|
+
password: 'abcd1234',
|
|
26
|
+
host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
port: 55432,
|
|
28
|
+
synchronize: false,
|
|
29
|
+
logging: true
|
|
30
|
+
},
|
|
31
31
|
sellercraftIntegrationConfig: {
|
|
32
32
|
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
33
33
|
},
|
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.246",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.237",
|
|
92
92
|
"@things-factory/product-base": "^4.3.237",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.239",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.246",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.237",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.237",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.227",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.237",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.237",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.237",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.246",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.246"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.227",
|
|
@@ -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": "7e218f27deddcbd2c4585870c45f06cd889f74d3"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
"button.transfer": "transfer",
|
|
106
106
|
"button.turn_to_PDF": "turn to PDF",
|
|
107
107
|
"button.update_order_details": "update order details",
|
|
108
|
+
"button.update_vas": "update vas",
|
|
108
109
|
"button.update": "update",
|
|
109
110
|
"button.validate": "validate",
|
|
110
111
|
"button.vas_list": "vas list",
|
|
111
112
|
"button.vas": "vas",
|
|
112
113
|
"button.view_merged_list": "view merged list",
|
|
113
|
-
"button.wooden_pallet": "wooden pallet",
|
|
114
|
-
"button.update_vas": "update vas",
|
|
114
|
+
"button.wooden_pallet": "wooden pallet",
|
|
115
115
|
"claim_chit_list": "claim chit list",
|
|
116
116
|
"claim_created": "new claim created",
|
|
117
117
|
"claim_updated": "claim updated",
|
|
@@ -223,10 +223,10 @@
|
|
|
223
223
|
"field.combination": "combination",
|
|
224
224
|
"field.comment": "comment",
|
|
225
225
|
"field.company": "company",
|
|
226
|
+
"field.completed": "completed",
|
|
226
227
|
"field.completion_date": "completion date",
|
|
227
228
|
"field.completion_vas_from_date": "completion vas from date",
|
|
228
229
|
"field.completion_vas_to_date": "completion vas to date",
|
|
229
|
-
"field.completed": "completed",
|
|
230
230
|
"field.contact_name": "contact name",
|
|
231
231
|
"field.contact_point": "contact point",
|
|
232
232
|
"field.contact_type": "contact type",
|
|
@@ -328,6 +328,7 @@
|
|
|
328
328
|
"field.inspected_qty": "inspected qty",
|
|
329
329
|
"field.inspected_status": "inspected status",
|
|
330
330
|
"field.inspected_uom_value": "inspected uom value",
|
|
331
|
+
"field.insufficient_qty": "insufficient qty",
|
|
331
332
|
"field.inventory_account_code": "inventory account code",
|
|
332
333
|
"field.inventory_check_no": "inventory check no",
|
|
333
334
|
"field.inventory_list": "inventory list",
|
|
@@ -367,9 +368,9 @@
|
|
|
367
368
|
"field.mfg_year": "mfg. year",
|
|
368
369
|
"field.min_qty": "min qty",
|
|
369
370
|
"field.missing_qty": "missing qty",
|
|
371
|
+
"field.missing_stock": "missing stock",
|
|
370
372
|
"field.missing_volume": "missing volume",
|
|
371
373
|
"field.missing": "missing",
|
|
372
|
-
"field.missing_stock": "missing stock",
|
|
373
374
|
"field.month": "month",
|
|
374
375
|
"field.movement": "movement",
|
|
375
376
|
"field.name": "name",
|
|
@@ -441,13 +442,13 @@
|
|
|
441
442
|
"field.pallet": "pallet",
|
|
442
443
|
"field.partner": "partner",
|
|
443
444
|
"field.phone": "phone",
|
|
444
|
-
"field.picking_bin": "picking BIN",
|
|
445
445
|
"field.pick_qty": "pick qty",
|
|
446
446
|
"field.pick_uom_value": "pick uom value",
|
|
447
447
|
"field.picked_at": "picked at",
|
|
448
448
|
"field.picked_by": "picked by",
|
|
449
449
|
"field.picked_qty": "picked qty",
|
|
450
450
|
"field.picker": "picker",
|
|
451
|
+
"field.picking_bin": "picking BIN",
|
|
451
452
|
"field.picking_end": "picking end",
|
|
452
453
|
"field.picking_location": "picking location",
|
|
453
454
|
"field.picking_shelf_qty": "picking shelf qty",
|
|
@@ -635,10 +636,10 @@
|
|
|
635
636
|
"field.unit_gross_weight": "unit gross weight",
|
|
636
637
|
"field.unit_nett_weight": "unit nett weight",
|
|
637
638
|
"field.unit_price": "unit price",
|
|
639
|
+
"field.unit_uom_value": "unit uom value",
|
|
638
640
|
"field.unit_value": "unit value",
|
|
639
641
|
"field.unit_volume": "unit volume",
|
|
640
642
|
"field.unit": "unit",
|
|
641
|
-
"field.unit_uom_value": "unit uom value",
|
|
642
643
|
"field.unload_complete": "unload complete",
|
|
643
644
|
"field.unload_start": "unload start",
|
|
644
645
|
"field.unloaded_at": "unloaded at",
|
|
@@ -1362,7 +1363,6 @@
|
|
|
1362
1363
|
"text.is_empty": "is empty",
|
|
1363
1364
|
"text.is_not_an_integer": "is not an integer",
|
|
1364
1365
|
"text.issue_updated": "issue updated",
|
|
1365
|
-
"text.update_vas_order": "update vas order",
|
|
1366
1366
|
"text.job_sheet_has_been_updated": "job sheet has been updated",
|
|
1367
1367
|
"text.kindly_continue_inspect_the_inventory": "kindly continue inspect the inventory",
|
|
1368
1368
|
"text.kindly_inspect_and_relocate_this_inventory": "kindly inspect and relocate this inventory",
|
|
@@ -1637,6 +1637,7 @@
|
|
|
1637
1637
|
"text.uom_value_cannot_be_divided_completely": "uom value cannot be divided completely",
|
|
1638
1638
|
"text.update_arrival_notice_details": "update arrival notice details",
|
|
1639
1639
|
"text.update_release_order_details": "update release order details",
|
|
1640
|
+
"text.update_vas_order": "update vas order",
|
|
1640
1641
|
"text.use_normal_pallet": "use normal pallet",
|
|
1641
1642
|
"text.vas_has_been_completed": "vas has been completed",
|
|
1642
1643
|
"text.vas_is_completed": "vas is completed",
|
package/translations/ko.json
CHANGED
package/translations/ms.json
CHANGED