@things-factory/operato-wms 4.3.727 → 4.3.734
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.
|
@@ -26,6 +26,15 @@ import {
|
|
|
26
26
|
PALLET_LABEL_SETTING_KEY
|
|
27
27
|
} from '../constants'
|
|
28
28
|
|
|
29
|
+
// Excel/import often provides numbers as strings ("0", "1.5", "").
|
|
30
|
+
// GraphQL Float rejects NaN, so normalize invalid/blank to undefined.
|
|
31
|
+
const toFloatOrUndefined = v => {
|
|
32
|
+
if (v === null || v === undefined) return undefined
|
|
33
|
+
if (typeof v === 'string' && v.trim() === '') return undefined
|
|
34
|
+
const n = Number(v)
|
|
35
|
+
return Number.isFinite(n) ? n : undefined
|
|
36
|
+
}
|
|
37
|
+
|
|
29
38
|
class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
30
39
|
static get styles() {
|
|
31
40
|
return [
|
|
@@ -1097,9 +1106,11 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1097
1106
|
row.location = row.location ? { id: row.location.id } : undefined
|
|
1098
1107
|
row.productDetailId = row.product ? row.product.id : undefined
|
|
1099
1108
|
row.product = row.product ? { id: row.product.productId } : undefined
|
|
1100
|
-
row.uomValue =
|
|
1101
|
-
row.unitCost =
|
|
1109
|
+
row.uomValue = toFloatOrUndefined(row.uomValue)
|
|
1110
|
+
row.unitCost = toFloatOrUndefined(row.unitCost)
|
|
1102
1111
|
row.packingSize = row.packingSize ? parseInt(row.packingSize) : undefined
|
|
1112
|
+
row.transferQty = toFloatOrUndefined(row.transferQty)
|
|
1113
|
+
row.transferUomValue = toFloatOrUndefined(row.transferUomValue)
|
|
1103
1114
|
|
|
1104
1115
|
if (row?.inventoryItemChanges) {
|
|
1105
1116
|
row.inventoryItemChangesJson = row.inventoryItemChanges
|
|
@@ -1203,6 +1214,8 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1203
1214
|
itm.qty = parseFloat(itm.qty)
|
|
1204
1215
|
itm.packingSize = parseFloat(itm.packingSize)
|
|
1205
1216
|
itm.uomValue = parseFloat(itm.uomValue)
|
|
1217
|
+
itm.transferQty = toFloatOrUndefined(itm.transferQty)
|
|
1218
|
+
itm.transferUomValue = toFloatOrUndefined(itm.transferUomValue)
|
|
1206
1219
|
|
|
1207
1220
|
if (itm.unitCost == null && itm.unitCost != 0) {
|
|
1208
1221
|
itm.unitCost = null
|
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.734",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -62,60 +62,60 @@
|
|
|
62
62
|
"@operato/scene-tab": "^0.1.8",
|
|
63
63
|
"@operato/scene-table": "^0.1.8",
|
|
64
64
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
65
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
66
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
67
|
-
"@things-factory/auth-ui": "^4.3.
|
|
68
|
-
"@things-factory/barcode-ui": "^4.3.
|
|
69
|
-
"@things-factory/biz-ui": "^4.3.
|
|
70
|
-
"@things-factory/board-service": "^4.3.
|
|
71
|
-
"@things-factory/board-ui": "^4.3.
|
|
72
|
-
"@things-factory/code-ui": "^4.3.
|
|
73
|
-
"@things-factory/context-ui": "^4.3.
|
|
74
|
-
"@things-factory/export-ui": "^4.3.
|
|
75
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
76
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
77
|
-
"@things-factory/fav-base": "^4.3.
|
|
78
|
-
"@things-factory/form-ui": "^4.3.
|
|
79
|
-
"@things-factory/geography": "^4.3.
|
|
80
|
-
"@things-factory/grist-ui": "^4.3.
|
|
81
|
-
"@things-factory/help": "^4.3.
|
|
82
|
-
"@things-factory/i18n-base": "^4.3.
|
|
83
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
84
|
-
"@things-factory/import-ui": "^4.3.
|
|
85
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
86
|
-
"@things-factory/menu-ui": "^4.3.
|
|
87
|
-
"@things-factory/more-ui": "^4.3.
|
|
88
|
-
"@things-factory/notification": "^4.3.
|
|
89
|
-
"@things-factory/pdf": "^4.3.
|
|
90
|
-
"@things-factory/print-proxy-service": "^4.3.
|
|
91
|
-
"@things-factory/print-ui": "^4.3.
|
|
92
|
-
"@things-factory/product-base": "^4.3.
|
|
93
|
-
"@things-factory/resource-ui": "^4.3.
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
96
|
-
"@things-factory/scene-excel": "^4.3.
|
|
97
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
98
|
-
"@things-factory/scene-form": "^4.3.
|
|
99
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
100
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
101
|
-
"@things-factory/scene-label": "^4.3.
|
|
102
|
-
"@things-factory/scene-marker": "^4.3.
|
|
103
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
104
|
-
"@things-factory/scene-restful": "^4.3.
|
|
105
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
106
|
-
"@things-factory/setting-ui": "^4.3.
|
|
107
|
-
"@things-factory/system-ui": "^4.3.
|
|
108
|
-
"@things-factory/transport-base": "^4.3.
|
|
109
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
65
|
+
"@things-factory/apptool-ui": "^4.3.734",
|
|
66
|
+
"@things-factory/attachment-ui": "^4.3.734",
|
|
67
|
+
"@things-factory/auth-ui": "^4.3.734",
|
|
68
|
+
"@things-factory/barcode-ui": "^4.3.734",
|
|
69
|
+
"@things-factory/biz-ui": "^4.3.734",
|
|
70
|
+
"@things-factory/board-service": "^4.3.734",
|
|
71
|
+
"@things-factory/board-ui": "^4.3.734",
|
|
72
|
+
"@things-factory/code-ui": "^4.3.734",
|
|
73
|
+
"@things-factory/context-ui": "^4.3.734",
|
|
74
|
+
"@things-factory/export-ui": "^4.3.734",
|
|
75
|
+
"@things-factory/export-ui-csv": "^4.3.734",
|
|
76
|
+
"@things-factory/export-ui-excel": "^4.3.734",
|
|
77
|
+
"@things-factory/fav-base": "^4.3.734",
|
|
78
|
+
"@things-factory/form-ui": "^4.3.734",
|
|
79
|
+
"@things-factory/geography": "^4.3.734",
|
|
80
|
+
"@things-factory/grist-ui": "^4.3.734",
|
|
81
|
+
"@things-factory/help": "^4.3.734",
|
|
82
|
+
"@things-factory/i18n-base": "^4.3.734",
|
|
83
|
+
"@things-factory/id-rule-base": "^4.3.734",
|
|
84
|
+
"@things-factory/import-ui": "^4.3.734",
|
|
85
|
+
"@things-factory/import-ui-excel": "^4.3.734",
|
|
86
|
+
"@things-factory/menu-ui": "^4.3.734",
|
|
87
|
+
"@things-factory/more-ui": "^4.3.734",
|
|
88
|
+
"@things-factory/notification": "^4.3.734",
|
|
89
|
+
"@things-factory/pdf": "^4.3.734",
|
|
90
|
+
"@things-factory/print-proxy-service": "^4.3.734",
|
|
91
|
+
"@things-factory/print-ui": "^4.3.734",
|
|
92
|
+
"@things-factory/product-base": "^4.3.734",
|
|
93
|
+
"@things-factory/resource-ui": "^4.3.734",
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.734",
|
|
95
|
+
"@things-factory/scene-data-transform": "^4.3.734",
|
|
96
|
+
"@things-factory/scene-excel": "^4.3.734",
|
|
97
|
+
"@things-factory/scene-firebase": "^4.3.734",
|
|
98
|
+
"@things-factory/scene-form": "^4.3.734",
|
|
99
|
+
"@things-factory/scene-google-map": "^4.3.734",
|
|
100
|
+
"@things-factory/scene-graphql": "^4.3.734",
|
|
101
|
+
"@things-factory/scene-label": "^4.3.734",
|
|
102
|
+
"@things-factory/scene-marker": "^4.3.734",
|
|
103
|
+
"@things-factory/scene-mqtt": "^4.3.734",
|
|
104
|
+
"@things-factory/scene-restful": "^4.3.734",
|
|
105
|
+
"@things-factory/scene-visualizer": "^4.3.734",
|
|
106
|
+
"@things-factory/setting-ui": "^4.3.734",
|
|
107
|
+
"@things-factory/system-ui": "^4.3.734",
|
|
108
|
+
"@things-factory/transport-base": "^4.3.734",
|
|
109
|
+
"@things-factory/tutorial-ui": "^4.3.734",
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.734",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.734"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@things-factory/builder": "^4.3.
|
|
114
|
+
"@things-factory/builder": "^4.3.734",
|
|
115
115
|
"cypress": "^9.4.1",
|
|
116
116
|
"cypress-file-upload": "^5.0.8",
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "c85c5a1e8ed4f0c4e7c438b6067539216d96caa9"
|
|
121
121
|
}
|