@things-factory/operato-wms 4.3.440 → 4.3.443
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.
|
@@ -1105,6 +1105,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1105
1105
|
'newPackingType',
|
|
1106
1106
|
'newUom',
|
|
1107
1107
|
'newUomValue',
|
|
1108
|
+
'newUnitUomValue',
|
|
1108
1109
|
'outputQty',
|
|
1109
1110
|
'remark'
|
|
1110
1111
|
]
|
|
@@ -1230,11 +1231,18 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1230
1231
|
},
|
|
1231
1232
|
{
|
|
1232
1233
|
type: 'float',
|
|
1233
|
-
name: '
|
|
1234
|
+
name: 'newUnitUomValue',
|
|
1234
1235
|
header: i18next.t('field.uom_value_sku', { sku: 'NEW SKU' }),
|
|
1235
1236
|
record: { editable: !this._strictProductSelection },
|
|
1236
1237
|
width: 150
|
|
1237
1238
|
},
|
|
1239
|
+
{
|
|
1240
|
+
type: 'float',
|
|
1241
|
+
name: 'newUomValue',
|
|
1242
|
+
header: i18next.t('field.total_uom_value_sku', { sku: 'NEW SKU' }),
|
|
1243
|
+
record: { editable: !this._strictProductSelection },
|
|
1244
|
+
width: 150
|
|
1245
|
+
},
|
|
1238
1246
|
{
|
|
1239
1247
|
type: 'integer',
|
|
1240
1248
|
name: 'outputQty',
|
|
@@ -2014,6 +2022,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2014
2022
|
changedColumn === 'newPackingType' ||
|
|
2015
2023
|
changedColumn === 'newUom' ||
|
|
2016
2024
|
changedColumn === 'newUomValue' ||
|
|
2025
|
+
changedColumn === 'newUnitUomValue' ||
|
|
2017
2026
|
changedColumn === 'outputQty' ||
|
|
2018
2027
|
changedColumn === 'remark'
|
|
2019
2028
|
) {
|
|
@@ -2060,8 +2069,9 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2060
2069
|
if (changeRecord.outputQty <= 0 || isNaN(changeRecord.outputQty)) {
|
|
2061
2070
|
throw new Error(i18next.t('text.invalid_quantity_input'))
|
|
2062
2071
|
} else {
|
|
2063
|
-
const totalUomValue = changeRecord.outputQty *
|
|
2072
|
+
const totalUomValue = changeRecord.outputQty * initialRecord.newUnitUomValue
|
|
2064
2073
|
changeRecord.newUomValue = totalUomValue.toFixed(2)
|
|
2074
|
+
|
|
2065
2075
|
}
|
|
2066
2076
|
if (isNaN(changeRecord.newUomValue)) {
|
|
2067
2077
|
changeRecord.newUomValue = null
|
|
@@ -2075,15 +2085,31 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2075
2085
|
if (decimalPlaces > 2) {
|
|
2076
2086
|
throw new Error(i18next.t('text.cannot_add_more_than_2_decimal_places'))
|
|
2077
2087
|
}
|
|
2088
|
+
const unitUomValue = changeRecord.newUomValue/initialRecord.outputQty
|
|
2089
|
+
changeRecord.newUnitUomValue = unitUomValue.toFixed(2)
|
|
2078
2090
|
} else if (changedColumn === 'vasQty') {
|
|
2079
2091
|
if (changeRecord.vasQty <= 0 || isNaN(changeRecord.vasQty)) {
|
|
2080
2092
|
throw new Error(i18next.t('text.invalid_quantity_input'))
|
|
2081
2093
|
}
|
|
2082
|
-
} else if (changedColumn === '
|
|
2094
|
+
} else if (changedColumn === ' ') {
|
|
2083
2095
|
if (changeRecord.outputQty <= 0 || isNaN(changeRecord.outputQty)) {
|
|
2084
2096
|
throw new Error(i18next.t('text.invalid_quantity_input'))
|
|
2085
2097
|
}
|
|
2086
2098
|
}
|
|
2099
|
+
else if (changedColumn === 'newUnitUomValue' && !this._strictProductSelection) {
|
|
2100
|
+
if (changeRecord.newUnitUomValue <= 0 || isNaN(changeRecord.newUnitUomValue)) {
|
|
2101
|
+
throw new Error(i18next.t('text.invalid_quantity_input'))
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
const decimalPlaces = (changeRecord.newUnitUomValue.toString().split('.')[1] || '').length
|
|
2105
|
+
|
|
2106
|
+
if (decimalPlaces > 2) {
|
|
2107
|
+
throw new Error(i18next.t('text.cannot_add_more_than_2_decimal_places'))
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
const totalUomValue = changeRecord.newUnitUomValue * initialRecord.outputQty
|
|
2111
|
+
changeRecord.newUomValue = totalUomValue.toFixed(2)
|
|
2112
|
+
}
|
|
2087
2113
|
this._updateVasTargets()
|
|
2088
2114
|
} catch (e) {
|
|
2089
2115
|
const beforeValue = event.detail.before && event.detail.before[event.detail.column.name]
|
|
@@ -2723,8 +2749,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2723
2749
|
this.vasGrist.dirtyData.records.map((record, index) => {
|
|
2724
2750
|
if (index === rowIndex && record.newSKU) {
|
|
2725
2751
|
if (record.qty) {
|
|
2726
|
-
record.outputQty =
|
|
2727
|
-
record.
|
|
2752
|
+
record.outputQty = record.qty
|
|
2753
|
+
record.newUnitUomValue = record.newUomValue
|
|
2728
2754
|
record.newUomValue = record.qty * record.newUomValue
|
|
2729
2755
|
} else {
|
|
2730
2756
|
record.newUomValue = null
|
|
@@ -151,7 +151,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
151
151
|
}
|
|
152
152
|
if (this._printItemLabel) {
|
|
153
153
|
actions.push({
|
|
154
|
-
title: i18next.t('button.
|
|
154
|
+
title: i18next.t('button.print_label'),
|
|
155
155
|
action: this._openItemLabelPrintPopup.bind(this),
|
|
156
156
|
...CommonButtonStyles.label
|
|
157
157
|
})
|
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.443",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@things-factory/pdf": "^4.3.381",
|
|
90
90
|
"@things-factory/print-proxy-service": "^4.3.434",
|
|
91
91
|
"@things-factory/print-ui": "^4.3.434",
|
|
92
|
-
"@things-factory/product-base": "^4.3.
|
|
92
|
+
"@things-factory/product-base": "^4.3.443",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.434",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.443",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.381",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.381",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.381",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.434",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.434",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.434",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.443",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.443"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.381",
|
|
@@ -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": "9756867524d3f488d74f22738ef3f2d2aec1da8c"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"button.activate": "activate",
|
|
4
4
|
"button.add_edit": "add & edit",
|
|
5
5
|
"button.add_new_product": "add new product",
|
|
6
|
-
"button.add_label": "add label",
|
|
7
6
|
"button.add_x": "add {state.x}",
|
|
8
7
|
"button.adjust_inventory": "adjust inventory",
|
|
9
8
|
"button.adjust": "adjust",
|
|
@@ -663,6 +662,7 @@
|
|
|
663
662
|
"field.total_uom": "total uom",
|
|
664
663
|
"field.total_volume": "total volume",
|
|
665
664
|
"field.total": "total",
|
|
665
|
+
"field.total_uom_value_sku": "total uom value ({sku})",
|
|
666
666
|
"field.tote_box": "tote box",
|
|
667
667
|
"field.tote_id": "tote id",
|
|
668
668
|
"field.tote_no": "tote no",
|
package/translations/ko.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"button.activate": "활성화",
|
|
6
6
|
"button.add_edit": "추가 & 수정",
|
|
7
7
|
"button.add_new_product": "[ko]add new product",
|
|
8
|
-
"button.add_label": "[ko]add label",
|
|
9
8
|
"button.add_x": "{state.x} 추가",
|
|
10
9
|
"button.adjust_inventory": "인벤토리 조정",
|
|
11
10
|
"button.adjust": "적용",
|
|
@@ -2176,6 +2175,7 @@
|
|
|
2176
2175
|
"title.task_no": "[ko]task no",
|
|
2177
2176
|
"title.tasks": "작업",
|
|
2178
2177
|
"title.template_info": "template info",
|
|
2178
|
+
"field.total_uom_value_sku": "[ko]total uom value ({sku})",
|
|
2179
2179
|
"title.tote_scanning": "[ko] tote scanning",
|
|
2180
2180
|
"title.tote": "[ko] tote",
|
|
2181
2181
|
"title.tracking_information": "[ko] tracking information",
|
package/translations/ms.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"button.activate": "aktifkan",
|
|
6
6
|
"button.add_edit": "tambah & sunting",
|
|
7
7
|
"button.add_new_product": "[ms]add new product",
|
|
8
|
-
"button.add_label": "[ms]add label",
|
|
9
8
|
"button.add_x": "tambah {state.x}",
|
|
10
9
|
"button.adjust_inventory": "ubah inventori",
|
|
11
10
|
"button.adjust": "ubah suai",
|
|
@@ -2052,6 +2051,7 @@
|
|
|
2052
2051
|
"title.task_list": "senarai tugasan",
|
|
2053
2052
|
"title.task_no": "[ms]task no",
|
|
2054
2053
|
"title.tasks": "tugasan",
|
|
2054
|
+
"field.total_uom_value_sku": "[ms]total uom value ({sku})",
|
|
2055
2055
|
"title.tote_scanning": "[ms] tote scanning",
|
|
2056
2056
|
"title.tote": "[ms] tote",
|
|
2057
2057
|
"title.tracking_information": "[ms]tracking information",
|
package/translations/zh.json
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
"button.activate": "activate",
|
|
5
5
|
"button.add_edit": "add & edit",
|
|
6
6
|
"button.add_new_product": "[zh]add new product",
|
|
7
|
-
"button.add_label": "[zh]add label",
|
|
8
7
|
"button.add_x": "add {state.x}",
|
|
9
8
|
"button.adjust_inventory": "adjust inventory",
|
|
10
9
|
"button.adjust": "adjust",
|
|
@@ -2008,6 +2007,7 @@
|
|
|
2008
2007
|
"title.task_list": "task list",
|
|
2009
2008
|
"title.task_no": "[zh]task no",
|
|
2010
2009
|
"title.tasks": "tasks",
|
|
2010
|
+
"field.total_uom_value_sku": "[zh]total uom value ({sku})",
|
|
2011
2011
|
"title.tote_scanning": "[zh] tote scanning",
|
|
2012
2012
|
"title.tote": "[zh] tote",
|
|
2013
2013
|
"title.tracking_information": "[zh]tracking information",
|