@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.
@@ -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: patch?.costPrice ? parseFloat(patch.costPrice) : undefined,
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: patch?.bufferQty ? parseInt(patch.bufferQty) : undefined,
1000
- minQty: patch?.minQty ? parseInt(patch.minQty) : undefined,
1001
- maxQty: patch?.maxQty ? parseInt(patch.maxQty) : undefined,
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
- minInboundShelfLife: patch?.minInboundShelfLife ? parseInt(patch.minInboundShelfLife) : undefined,
1004
- minOutboundShelfLife: patch?.minOutboundShelfLife ? parseInt(patch.minOutboundShelfLife) : undefined,
1005
- outboundAlert: patch?.outboundAlert ? parseInt(patch.outboundAlert) : undefined,
1006
- productShelfLife: patch?.productShelfLife ? parseInt(patch.productShelfLife) : undefined,
1007
- commissionFee: patch?.commissionFee ? parseFloat(patch.commissionFee) : undefined,
1008
- platformFee: patch?.platformFee ? parseFloat(patch.platformFee) : undefined,
1009
- serviceFee: patch?.serviceFee ? parseFloat(patch.serviceFee) : undefined,
1010
- transactionFee: patch?.transactionFee ? parseFloat(patch.transactionFee) : undefined
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.595",
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": "5f3c80271b0e59c82c416f6444a90f57dc8edd6f"
34
+ "gitHead": "897591abbc6716566a0f675b53fe5bc9d1025e76"
35
35
  }