@things-factory/operato-wms 4.2.0 → 4.2.1
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/release-extra-product-popup.js +15 -10
- package/client/pages/outbound/single-outbound-worksheet.js +15 -13
- package/package.json +5 -5
- package/translations/en.json +2 -1
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -609,7 +609,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
609
609
|
|
|
610
610
|
if (afterValue >= 0) {
|
|
611
611
|
if (columnName == 'releaseUomValue' || columnName == 'releaseQty') {
|
|
612
|
-
if (originQty) {
|
|
612
|
+
if (originQty >= 0) {
|
|
613
613
|
if (originQty == 0 || originUom == 0) {
|
|
614
614
|
packageUom = originAddableUom / originAddableQty
|
|
615
615
|
} else {
|
|
@@ -643,6 +643,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
643
643
|
|
|
644
644
|
return { releaseQty, roundedUom }
|
|
645
645
|
}
|
|
646
|
+
|
|
646
647
|
_onInventoryFieldChanged(e) {
|
|
647
648
|
let columnName = e.detail.column.name
|
|
648
649
|
let roundedUomValue = e.detail.record.roundedUomValue || 0
|
|
@@ -650,7 +651,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
650
651
|
let packageUomValue = 0
|
|
651
652
|
|
|
652
653
|
try {
|
|
653
|
-
if (e.detail.after
|
|
654
|
+
if (Number.isNaN(e.detail.after)) {
|
|
654
655
|
throw new Error(i18next.t('text.invalid_form_value'))
|
|
655
656
|
}
|
|
656
657
|
} catch (e) {
|
|
@@ -707,15 +708,19 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
707
708
|
var totalAvailableQty = 0
|
|
708
709
|
var totalAvailableUomValue = 0
|
|
709
710
|
|
|
710
|
-
if (gristType == 'existing') {
|
|
711
|
-
totalAvailableQty = beforeRecord.addableQty + beforeRecord.releaseQty
|
|
712
|
-
totalAvailableUomValue = beforeRecord.addableUomValue + beforeRecord.releaseUomValue
|
|
713
|
-
} else {
|
|
714
|
-
totalAvailableQty = changeRecord.remainQty
|
|
715
|
-
totalAvailableUomValue = changeRecord.remainUomValue
|
|
716
|
-
}
|
|
717
|
-
|
|
718
711
|
try {
|
|
712
|
+
if (Number.isNaN(changeRecord.releaseQty) || Number.isNaN(changeRecord.releaseUomValue)) {
|
|
713
|
+
throw new Error(i18next.t('text.invalid_form_value'))
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
if (gristType == 'existing') {
|
|
717
|
+
totalAvailableQty = beforeRecord.addableQty + beforeRecord.releaseQty
|
|
718
|
+
totalAvailableUomValue = beforeRecord.addableUomValue + beforeRecord.releaseUomValue
|
|
719
|
+
} else {
|
|
720
|
+
totalAvailableQty = changeRecord.remainQty
|
|
721
|
+
totalAvailableUomValue = changeRecord.remainUomValue
|
|
722
|
+
}
|
|
723
|
+
|
|
719
724
|
if (changedColumn === 'releaseQty') {
|
|
720
725
|
this._validateReleaseQty(changeRecord.releaseQty, changeRecord.remainQty, totalAvailableQty)
|
|
721
726
|
} else if (changedColumn === 'releaseUomValue') {
|
|
@@ -66,7 +66,13 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
get context() {
|
|
69
|
-
var actions = [
|
|
69
|
+
var actions = [
|
|
70
|
+
{
|
|
71
|
+
title: i18next.t('button.assign_picker'),
|
|
72
|
+
action: this._assignPicker.bind(this),
|
|
73
|
+
...CommonButtonStyles.activate
|
|
74
|
+
}
|
|
75
|
+
]
|
|
70
76
|
|
|
71
77
|
if (this._routeLabelSetting) {
|
|
72
78
|
actions.push({
|
|
@@ -78,19 +84,12 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
78
84
|
|
|
79
85
|
return {
|
|
80
86
|
title: i18next.t('title.outbound_worksheet'),
|
|
81
|
-
actions
|
|
82
|
-
{
|
|
83
|
-
title: i18next.t('button.assign_picker'),
|
|
84
|
-
action: this._assignPicker.bind(this),
|
|
85
|
-
...CommonButtonStyles.activate
|
|
86
|
-
}
|
|
87
|
-
],
|
|
87
|
+
actions,
|
|
88
88
|
exportable: {
|
|
89
89
|
name: i18next.t('title.outbound_worksheet'),
|
|
90
90
|
data: this._exportableData.bind(this)
|
|
91
91
|
},
|
|
92
|
-
help: 'operato-wms/outbound/single-outbound-worksheet'
|
|
93
|
-
actions
|
|
92
|
+
help: 'operato-wms/outbound/single-outbound-worksheet'
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
95
|
|
|
@@ -431,8 +430,11 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
431
430
|
})
|
|
432
431
|
|
|
433
432
|
if (!response.errors) {
|
|
434
|
-
let domain = response.data.worksheets.items[0]
|
|
435
|
-
|
|
433
|
+
let domain = response.data.worksheets.items[0]?.domain
|
|
434
|
+
|
|
435
|
+
if (domain)
|
|
436
|
+
this._routeLabelSetting = await fetchSettingRule('enable-print-route-label', domain.id)
|
|
437
|
+
|
|
436
438
|
this.updateContext()
|
|
437
439
|
return {
|
|
438
440
|
total: response.data.worksheets.total || 0,
|
|
@@ -487,7 +489,7 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
487
489
|
return item.status == 'DEACTIVATED'
|
|
488
490
|
})
|
|
489
491
|
|
|
490
|
-
if (selectedData.length <= 0) throw new Error('
|
|
492
|
+
if (selectedData.length <= 0) throw new Error(i18next.t('text.no_available_worksheet_selected'))
|
|
491
493
|
|
|
492
494
|
openPopup(
|
|
493
495
|
html`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@things-factory/print-ui": "^4.1.40",
|
|
93
93
|
"@things-factory/product-base": "^4.2.0",
|
|
94
94
|
"@things-factory/resource-ui": "^4.1.40",
|
|
95
|
-
"@things-factory/sales-ui": "^4.2.
|
|
95
|
+
"@things-factory/sales-ui": "^4.2.1",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.1.40",
|
|
97
97
|
"@things-factory/scene-excel": "^4.1.40",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.1.40",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.1.40",
|
|
109
109
|
"@things-factory/transport-base": "^4.2.0",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.1.40",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.2.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.2.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.2.1",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.2.1"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.1.40",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "1aeab216e97c010d738ed7e49302750f3534c462"
|
|
122
122
|
}
|
package/translations/en.json
CHANGED
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"field.assigned_qty": "assigned qty",
|
|
135
135
|
"field.assigned_uom_value": "assigned uom value",
|
|
136
136
|
"field.assigned": "assigned",
|
|
137
|
-
"field.assigned_picker":"assigned picker",
|
|
137
|
+
"field.assigned_picker": "assigned picker",
|
|
138
138
|
"field.attention_to": "attention to",
|
|
139
139
|
"field.aux_unit_2": "aux unit 2",
|
|
140
140
|
"field.aux_unit": "aux unit",
|
|
@@ -1173,6 +1173,7 @@
|
|
|
1173
1173
|
"text.manufacture-date-cannot-be-later-than-today": "manufacture date cannot be later than today",
|
|
1174
1174
|
"text.missing_zone_name": "missing zone name",
|
|
1175
1175
|
"text.new_batch_id_is_empty": "new batch no is empty",
|
|
1176
|
+
"text.no_available_worksheet_selected": "no available worksheet selected",
|
|
1176
1177
|
"text.no_changes_to_be_submitted": "no changes to be submitted",
|
|
1177
1178
|
"text.no_company_selected": "no company selected",
|
|
1178
1179
|
"text.no_document_available": "no document available",
|
package/translations/ko.json
CHANGED
|
@@ -1224,6 +1224,7 @@
|
|
|
1224
1224
|
"text.missing_input": "missing input",
|
|
1225
1225
|
"text.missing_zone_name": "존 명칭이 없습니다",
|
|
1226
1226
|
"text.new_batch_id_is_empty": "새 배치 번호가 없습니다",
|
|
1227
|
+
"text.no_available_worksheet_selected": "[ko]no available worksheet selected",
|
|
1227
1228
|
"text.no_changes_to_be_submitted": "[ko]no changes to be submitted",
|
|
1228
1229
|
"text.no_company_selected": "회사가 선택되지 않았습니다",
|
|
1229
1230
|
"text.no_document_available": "[ko] no document available",
|
package/translations/ms.json
CHANGED
|
@@ -1185,6 +1185,7 @@
|
|
|
1185
1185
|
"text.manifest_items_is_empty": "[ms] manifest items is empty",
|
|
1186
1186
|
"text.missing_zone_name": "nama zon tidak lengkap",
|
|
1187
1187
|
"text.new_batch_id_is_empty": "new batch no is empty",
|
|
1188
|
+
"text.no_available_worksheet_selected": "[ms]no available worksheet selected",
|
|
1188
1189
|
"text.no_changes_to_be_submitted": "[ms]no changes to be submitted",
|
|
1189
1190
|
"text.no_company_selected": "no company selected",
|
|
1190
1191
|
"text.no_document_available": "[ms] no document available",
|
package/translations/zh.json
CHANGED
|
@@ -1153,6 +1153,7 @@
|
|
|
1153
1153
|
"text.manifest_items_is_empty": "[zh] manifest items is empty",
|
|
1154
1154
|
"text.missing_zone_name": "missing zone name",
|
|
1155
1155
|
"text.new_batch_id_is_empty": "new batch no is empty",
|
|
1156
|
+
"text.no_available_worksheet_selected": "[zh]no available worksheet selected",
|
|
1156
1157
|
"text.no_changes_to_be_submitted": "[zh]no changes to be submitted",
|
|
1157
1158
|
"text.no_company_selected": "no company selected",
|
|
1158
1159
|
"text.no_document_available": "[zh] no document available",
|