@things-factory/product-ui 4.3.595 → 4.3.607
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/product-list.js +67 -13
- package/package.json +2 -2
|
@@ -456,6 +456,12 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
456
456
|
name: 'isRequiredCheckExpiry',
|
|
457
457
|
header: i18next.t('field.required_checking_expiry'),
|
|
458
458
|
record: { editable: true, align: 'center' },
|
|
459
|
+
imex: {
|
|
460
|
+
header: i18next.t('field.required_checking_expiry'),
|
|
461
|
+
key: 'isRequiredCheckExpiry',
|
|
462
|
+
width: 30,
|
|
463
|
+
type: 'string'
|
|
464
|
+
},
|
|
459
465
|
sortable: true,
|
|
460
466
|
width: 120
|
|
461
467
|
},
|
|
@@ -464,6 +470,12 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
464
470
|
name: 'isRequireSerialNumberScanningInbound',
|
|
465
471
|
header: i18next.t('field.require_serial_number_scanning_inbound'),
|
|
466
472
|
record: { editable: true, align: 'center' },
|
|
473
|
+
imex: {
|
|
474
|
+
header: i18next.t('field.require_serial_number_scanning_inbound'),
|
|
475
|
+
key: 'isRequireSerialNumberScanningInbound',
|
|
476
|
+
width: 30,
|
|
477
|
+
type: 'string'
|
|
478
|
+
},
|
|
467
479
|
sortable: true,
|
|
468
480
|
width: 120
|
|
469
481
|
},
|
|
@@ -472,6 +484,12 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
472
484
|
name: 'isRequireSerialNumberScanningOutbound',
|
|
473
485
|
header: i18next.t('field.require_serial_number_scanning_outbound'),
|
|
474
486
|
record: { editable: true, align: 'center' },
|
|
487
|
+
imex: {
|
|
488
|
+
header: i18next.t('field.require_serial_number_scanning_outbound'),
|
|
489
|
+
key: 'isRequireSerialNumberScanningOutbound',
|
|
490
|
+
width: 30,
|
|
491
|
+
type: 'string'
|
|
492
|
+
},
|
|
475
493
|
sortable: true,
|
|
476
494
|
width: 120
|
|
477
495
|
},
|
|
@@ -994,20 +1012,48 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
994
1012
|
: undefined,
|
|
995
1013
|
productRef: patch.productRef?.id ? { id: patch.productRef?.id } : undefined,
|
|
996
1014
|
parentProductRef: patch.parentProductRef?.id ? { id: patch.parentProductRef?.id } : undefined,
|
|
997
|
-
costPrice:
|
|
1015
|
+
costPrice:
|
|
1016
|
+
patch?.costPrice || patch?.costPrice == 0
|
|
1017
|
+
? parseFloat(patch.costPrice)
|
|
1018
|
+
: undefined,
|
|
998
1019
|
uomValue: patch?.uomValue ? parseFloat(patch.uomValue) : undefined,
|
|
999
|
-
bufferQty:
|
|
1000
|
-
|
|
1001
|
-
|
|
1020
|
+
bufferQty:
|
|
1021
|
+
patch?.bufferQty || patch?.bufferQty == 0
|
|
1022
|
+
? parseInt(patch.bufferQty)
|
|
1023
|
+
: undefined,
|
|
1024
|
+
minQty:
|
|
1025
|
+
patch?.minQty || patch?.minQty == 0
|
|
1026
|
+
? parseInt(patch.minQty)
|
|
1027
|
+
: undefined,
|
|
1028
|
+
maxQty:
|
|
1029
|
+
patch?.maxQty || patch?.maxQty == 0
|
|
1030
|
+
? parseInt(patch.maxQty)
|
|
1031
|
+
: undefined,
|
|
1002
1032
|
packingSize: patch?.packingSize ? parseInt(patch.packingSize) : undefined,
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1033
|
+
outboundAlert:
|
|
1034
|
+
patch?.outboundAlert || patch?.outboundAlert == 0
|
|
1035
|
+
? parseInt(patch.outboundAlert)
|
|
1036
|
+
: undefined,
|
|
1037
|
+
productShelfLife:
|
|
1038
|
+
patch?.productShelfLife || patch?.productShelfLife == 0
|
|
1039
|
+
? parseInt(patch.productShelfLife)
|
|
1040
|
+
: undefined,
|
|
1041
|
+
commissionFee:
|
|
1042
|
+
patch?.commissionFee || patch?.commissionFee == 0
|
|
1043
|
+
? parseFloat(patch.commissionFee)
|
|
1044
|
+
: undefined,
|
|
1045
|
+
platformFee:
|
|
1046
|
+
patch?.platformFee || patch?.platformFee == 0
|
|
1047
|
+
? parseFloat(patch.platformFee)
|
|
1048
|
+
: undefined,
|
|
1049
|
+
serviceFee:
|
|
1050
|
+
patch?.serviceFee || patch?.serviceFee == 0
|
|
1051
|
+
? parseFloat(patch.serviceFee)
|
|
1052
|
+
: undefined,
|
|
1053
|
+
transactionFee:
|
|
1054
|
+
patch?.transactionFee || patch?.transactionFee == 0
|
|
1055
|
+
? parseFloat(patch.transactionFee)
|
|
1056
|
+
: undefined
|
|
1011
1057
|
}
|
|
1012
1058
|
})
|
|
1013
1059
|
|
|
@@ -1044,6 +1090,11 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
1044
1090
|
|
|
1045
1091
|
patches = patches.map(patch => {
|
|
1046
1092
|
patch.costPrice = patch.costPrice == null ? 0 : patch.costPrice
|
|
1093
|
+
patch.isRequiredCheckExpiry = patch.isRequiredCheckExpiry?.toString().toLowerCase() === 'true'
|
|
1094
|
+
patch.isRequireSerialNumberScanningInbound =
|
|
1095
|
+
patch.isRequireSerialNumberScanningInbound?.toString().toLowerCase() === 'true'
|
|
1096
|
+
patch.isRequireSerialNumberScanningOutbound =
|
|
1097
|
+
patch.isRequireSerialNumberScanningOutbound?.toString().toLowerCase() === 'true'
|
|
1047
1098
|
|
|
1048
1099
|
return {
|
|
1049
1100
|
...patch,
|
|
@@ -1067,7 +1118,10 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
1067
1118
|
depth: patch?.depth ? parseFloat(patch.depth) : undefined,
|
|
1068
1119
|
height: patch?.height ? parseFloat(patch.height) : undefined,
|
|
1069
1120
|
grossWeight: patch?.grossWeight ? parseFloat(patch.grossWeight) : undefined,
|
|
1070
|
-
volume: patch?.volume ? parseFloat(patch.volume) : undefined
|
|
1121
|
+
volume: patch?.volume ? parseFloat(patch.volume) : undefined,
|
|
1122
|
+
isRequiredCheckExpiry: patch?.isRequiredCheckExpiry || false,
|
|
1123
|
+
isRequireSerialNumberScanningInbound: patch?.isRequireSerialNumberScanningInbound || false,
|
|
1124
|
+
isRequireSerialNumberScanningOutbound: patch?.isRequireSerialNumberScanningOutbound || false
|
|
1071
1125
|
}
|
|
1072
1126
|
})
|
|
1073
1127
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.607",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@things-factory/product-base": "^4.3.595",
|
|
32
32
|
"@things-factory/shell": "^4.3.591"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "897591abbc6716566a0f675b53fe5bc9d1025e76"
|
|
35
35
|
}
|