@things-factory/operato-wms 4.3.115 → 4.3.116

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.
@@ -538,7 +538,9 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
538
538
  this._validateCountry(e)
539
539
  }}
540
540
  >
541
- ${this._allCountry?.map((country, key) => html`<option value=${country.name}>${country.name}</option>`)}
541
+ ${this._allCountry?.map(
542
+ (country, key) => html`<option value=${country.description}>${country.name}</option>`
543
+ )}
542
544
  </select>
543
545
 
544
546
 
@@ -588,7 +590,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
588
590
  this._validateBillingCountry(e)
589
591
  }}
590
592
  >
591
- ${this._allCountry?.map((country, key) => html`<option value=${country.name}>${country.name}</option>`)}
593
+ ${this._allCountry?.map((country, key) => html`<option value=${country.description}>${country.name}</option>`)}
592
594
  </select>
593
595
 
594
596
  <label>${i18next.t('label.zip_postal_code')}</label>
@@ -1188,8 +1190,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1188
1190
  this._switchBillingCountryInput = false
1189
1191
  this._disableBillingAddress = false
1190
1192
  this._showExportInfo = true
1191
- this._selectedDeliveryCountry = 'MALAYSIA'
1192
- this._selectedBillingCountry = 'MALAYSIA'
1193
+ this._selectedDeliveryCountry = 'MY'
1194
+ this._selectedBillingCountry = 'MY'
1193
1195
  this.containerSizes = []
1194
1196
  this._containerClosureDate = ''
1195
1197
  this._recallToggle = false
@@ -2405,7 +2407,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2405
2407
  }
2406
2408
 
2407
2409
  _validateCountry(e) {
2408
- if (e.target.value != 'MALAYSIA') {
2410
+ if (e.target.value != 'MY') {
2409
2411
  this._switchDeliveryCountryInput = true
2410
2412
  } else {
2411
2413
  this._switchDeliveryCountryInput = false
@@ -2413,7 +2415,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2413
2415
  }
2414
2416
 
2415
2417
  _validateBillingCountry(e) {
2416
- if (e.target.value != 'MALAYSIA') {
2418
+ if (e.target.value != 'MY') {
2417
2419
  this._switchBillingCountryInput = true
2418
2420
  this._selectedBillingCountry = e.target.value
2419
2421
  } else {
@@ -2483,13 +2485,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2483
2485
 
2484
2486
  switch (name) {
2485
2487
  case 'postalCode':
2486
- this._cityInput.value = stateName
2487
- this._stateInput.value = cityName.toUpperCase()
2488
+ this._deliveryCity = cityName.toUpperCase()
2489
+ this._deliveryState = stateName
2488
2490
  break
2489
2491
 
2490
2492
  case 'billingPostalCode':
2491
- this._cityBillingInput.value = stateName
2492
- this._stateBillingInput.value = cityName.toUpperCase()
2493
+ this._billingCity = cityName.toUpperCase()
2494
+ this._billingState = stateName
2493
2495
 
2494
2496
  default:
2495
2497
  break
@@ -2934,7 +2936,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2934
2936
  city: data.city || '',
2935
2937
  state: data.state || '',
2936
2938
  postalCode: data.postCode || '',
2937
- country: 'Malaysia',
2939
+ country: 'MY',
2938
2940
  phone1: data.phone || '',
2939
2941
  deliveryAddress1: data.address ? data.address : '' + data.address2 ? data.address2 : '',
2940
2942
  billingAddress: data.billingAddress
@@ -494,7 +494,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
494
494
  >
495
495
  ${this._deliveryAllCountry?.map(
496
496
  (country, key) =>
497
- html`<option value=${country.name} ?selected=${country.name === this._selectedCountry}>
497
+ html`<option value=${country.description} ?selected=${country.description === this._selectedCountry}>
498
498
  ${country.name}
499
499
  </option>`
500
500
  )}
@@ -502,7 +502,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
502
502
 
503
503
  <label>${i18next.t('label.zip_postal_code')}</label>
504
504
  ${
505
- this._selectedCountry !== 'MALAYSIA'
505
+ this._selectedCountry !== 'MY'
506
506
  ? html` <input name="postalCode" .value="" /> `
507
507
  : html`<select
508
508
  name="postalCode"
@@ -551,7 +551,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
551
551
  >
552
552
  ${this._deliveryAllCountry.map(
553
553
  (country, key) =>
554
- html`<option value=${country.name} ?selected=${country.name === this._selectedBillingCountry}>
554
+ html`<option
555
+ value=${country.description}
556
+ ?selected=${country.description === this._selectedBillingCountry}
557
+ >
555
558
  ${country.name}
556
559
  </option>`
557
560
  )}
@@ -562,12 +565,12 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
562
565
 
563
566
 
564
567
  ${
565
- this._selectedBillingCountry !== 'MALAYSIA'
568
+ this._selectedBillingCountry !== 'MY'
566
569
  ? html`
567
570
  <input
568
571
  ?disabled=${this._disableBillingAddress}
569
572
  name="billingPostalCode"
570
- .value=${this._releaseOrder.billingPostalCode}
573
+ .value=${this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode}
571
574
  />
572
575
  `
573
576
  : html`<select
@@ -576,14 +579,15 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
576
579
  @change=${e => {
577
580
  this._getStateAndCityByPostCode(e.target.value, e.target.name)
578
581
  }}
579
- value=${this._releaseOrder.billingPostalCode}
582
+ value=${this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode}
580
583
  >
581
584
  <option value=""></option>
582
585
 
583
586
  ${this._billingPostCode.map(
584
587
  (country, key) =>
585
588
  html`<option
586
- ?selected=${this._releaseOrder.billingPostalCode == country.postalCode}
589
+ ?selected=${(this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode) ==
590
+ country.postalCode}
587
591
  value=${country.postalCode}
588
592
  >
589
593
  ${country.postalCode}
@@ -1659,7 +1663,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1659
1663
  _fillupDAForm(data) {
1660
1664
  this._fillupForm(this.shippingInfoForm, data)
1661
1665
  this._selectedCountry = data.country
1662
- this._selectedBillingCountry = data.billingCountry
1666
+ this._selectedBillingCountry = data.billingCountry || data.country
1663
1667
  this._releaseOrder.billingPostalCode = data.billingPostalCode
1664
1668
  }
1665
1669
 
@@ -2096,13 +2100,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2096
2100
 
2097
2101
  switch (name) {
2098
2102
  case 'postalCode':
2099
- this._cityInput.value = stateName
2100
- this._stateInput.value = cityName.toUpperCase()
2103
+ this._releaseOrder = { ...this._releaseOrder, city: cityName.toUpperCase(), state: stateName }
2101
2104
  break
2102
2105
 
2103
2106
  case 'billingPostalCode':
2104
- this._cityBillingInput.value = stateName
2105
- this._stateBillingInput.value = cityName.toUpperCase()
2107
+ this._releaseOrder = { ...this._releaseOrder, billingCity: cityName.toUpperCase(), billingState: stateName }
2106
2108
 
2107
2109
  default:
2108
2110
  break
@@ -2221,7 +2223,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2221
2223
  city: data.city || '',
2222
2224
  state: data.state || '',
2223
2225
  postalCode: data.postCode || '',
2224
- country: 'Malaysia',
2226
+ country: 'MY',
2225
2227
  phone1: data.phone || '',
2226
2228
  deliveryAddress1: data.address ? data.address : '' + data.address2 ? data.address2 : '',
2227
2229
  billingAddress: data.billingAddress
@@ -2233,7 +2235,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2233
2235
  }
2234
2236
 
2235
2237
  _validateCountry(e) {
2236
- if (e.target.value != 'MALAYSIA') {
2238
+ if (e.target.value != 'MY') {
2237
2239
  this._selectedCountry = e.target.value
2238
2240
  } else {
2239
2241
  this._selectedCountry = e.target.value
@@ -2241,7 +2243,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2241
2243
  }
2242
2244
 
2243
2245
  _validateBillingCountry(e) {
2244
- if (e.target.value != 'MALAYSIA') {
2246
+ if (e.target.value != 'MY') {
2245
2247
  this._selectedBillingCountry = e.target.value
2246
2248
  } else {
2247
2249
  this._selectedBillingCountry = e.target.value
@@ -96,12 +96,12 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
96
96
  this._showShippingInfo = true
97
97
  this._exportOption = false
98
98
  this._companyName = ''
99
- this._deliveryCountry = 'Malaysia'
99
+ this._deliveryCountry = 'MY'
100
100
  this._deliveryPostCode = []
101
101
  this._deliveryState = ''
102
102
  this._deliveryCity = ''
103
103
  this._deliveryContact = ''
104
- this._billingCountry = 'Malaysia'
104
+ this._billingCountry = 'MY'
105
105
  this._billingPostCode = []
106
106
  this._billingState = ''
107
107
  this._billingCity = ''
@@ -494,14 +494,14 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
494
494
  >
495
495
  ${this._deliveryAllCountry?.map(
496
496
  (country, key) =>
497
- html`<option value=${country.name} ?selected=${country.name === this._selectedCountry}>
497
+ html`<option value=${country.description} ?selected=${country.description === this._selectedCountry}>
498
498
  ${country.name}
499
499
  </option>`
500
500
  )}
501
501
  </select>
502
502
 
503
503
  <label>${i18next.t('label.zip_postal_code')}</label>
504
- ${this._selectedCountry !== 'MALAYSIA'
504
+ ${this._selectedCountry !== 'MY'
505
505
  ? html` <input name="postalCode" .value="" /> `
506
506
  : html`<select
507
507
  name="postalCode"
@@ -548,7 +548,10 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
548
548
  >
549
549
  ${this._deliveryAllCountry.map(
550
550
  (country, key) =>
551
- html`<option value=${country.name} ?selected=${country.name === this._selectedBillingCountry}>
551
+ html`<option
552
+ value=${country.description}
553
+ ?selected=${country.description === this._selectedBillingCountry}
554
+ >
552
555
  ${country.name}
553
556
  </option>`
554
557
  )}
@@ -556,7 +559,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
556
559
 
557
560
  <label>${i18next.t('label.zip_postal_code')}</label>
558
561
 
559
- ${this._selectedBillingCountry !== 'MALAYSIA'
562
+ ${this._selectedBillingCountry !== 'MY'
560
563
  ? html`
561
564
  <input
562
565
  ?disabled=${this._disableBillingAddress}
@@ -1507,7 +1510,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
1507
1510
  city: data.city || '',
1508
1511
  state: data.state || '',
1509
1512
  postalCode: data.postCode || '',
1510
- country: 'Malaysia',
1513
+ country: 'MY',
1511
1514
  phone1: data.phone || '',
1512
1515
  deliveryAddress1: data.address ? data.address : '' + data.address2 ? data.address2 : '',
1513
1516
  billingAddress: data.billingAddress
@@ -1547,7 +1550,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
1547
1550
  }
1548
1551
 
1549
1552
  _validateCountry(e) {
1550
- if (e.target.value != 'MALAYSIA') {
1553
+ if (e.target.value != 'MY') {
1551
1554
  this._selectedCountry = e.target.value
1552
1555
  } else {
1553
1556
  this._selectedCountry = e.target.value
@@ -1555,7 +1558,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
1555
1558
  }
1556
1559
 
1557
1560
  _validateBillingCountry(e) {
1558
- if (e.target.value != 'MALAYSIA') {
1561
+ if (e.target.value != 'MY') {
1559
1562
  this._selectedBillingCountry = e.target.value
1560
1563
  } else {
1561
1564
  this._selectedBillingCountry = e.target.value
@@ -1564,13 +1567,13 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
1564
1567
 
1565
1568
  _fillupDAForm(data) {
1566
1569
  this._fillupForm(this.deliveryAddressForm, data)
1567
- this._selectedCountry = data.country || 'MALAYSIA'
1570
+ this._selectedCountry = data.country || 'MY'
1568
1571
  this._deliveryOrder.postalCode = data.postalCode
1569
1572
  }
1570
1573
 
1571
1574
  _fillupBLForm(data) {
1572
1575
  this._fillupForm(this.billingAddressForm, data)
1573
- this._selectedBillingCountry = data.billingCountry || 'MALAYSIA'
1576
+ this._selectedBillingCountry = data.billingCountry || 'MY'
1574
1577
  this._deliveryOrder.billingPostalCode = data.billingPostalCode
1575
1578
  }
1576
1579
 
@@ -0,0 +1,104 @@
1
+ module.exports = {
2
+ domainType: 'warehouse',
3
+ domainExtType: 'warehouse',
4
+ useVirtualHostBasedDomain: false,
5
+ fallbackRoute: '/',
6
+ subdomainOffset: 2,
7
+ port: 1100,
8
+ inspect: '9430',
9
+ ormconfig: {
10
+ name: 'default',
11
+ type: 'postgres',
12
+ database: 'dev3',
13
+ username: 'postgres',
14
+ password: 'hatio',
15
+ host: '192.168.0.153',
16
+ port: 15432,
17
+ synchronize: true,
18
+ logging: true
19
+ },
20
+ // ormconfig: {
21
+ // name: 'default',
22
+ // type: 'postgres',
23
+ // database: 'postgres',
24
+ // username: 'postgres',
25
+ // password: 'abcd1234',
26
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
+ // port: 55432,
28
+ // synchronize: true,
29
+ // logging: true
30
+ // },
31
+ sellercraftIntegrationConfig: {
32
+ apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
+ },
34
+ SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
35
+ password: {
36
+ lowerCase: true,
37
+ upperCase: false,
38
+ digit: false,
39
+ specialCharacter: false,
40
+ allowRepeat: true,
41
+ useTightPattern: false,
42
+ useLoosePattern: true,
43
+ tightCharacterLength: 4,
44
+ looseCharacterLength: 4,
45
+ history: 2
46
+ },
47
+ // storage: {
48
+ // type: 's3',
49
+ // accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
50
+ // secretAccessKey: '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',
51
+ // bucketName: 'opa-one',
52
+ // region: 'ap-southeast-1'
53
+ // },
54
+ uploads: 'uploads',
55
+ attachmentsPath: 'attachments',
56
+ logger: {
57
+ file: {
58
+ filename: 'logs/application-%DATE%.log',
59
+ datePattern: 'YYYY-MM-DD-HH',
60
+ zippedArchive: true,
61
+ maxSize: '200m',
62
+ maxFiles: '1m',
63
+ level: 'info'
64
+ }
65
+ },
66
+ email: {
67
+ host: 'smtp.office365.com',
68
+ port: 587,
69
+ secure: false, // true for 465, false for other ports
70
+ auth: {
71
+ user: 'no-reply@hatiolab.com', // generated ethereal user
72
+ pass: 'h@ti0LAB1008' // generated ethereal password
73
+ },
74
+ secureConnection: false,
75
+ tls: {
76
+ ciphers: 'SSLv3'
77
+ }
78
+ },
79
+ sender: 'no-reply@hatiolab.com',
80
+ notification: {
81
+ // fcm: {
82
+ // serviceAccount: {
83
+ // project_id: 'operato',
84
+ // private_key:
85
+ // '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
86
+ // client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
87
+ // },
88
+ // appConfig: {
89
+ // apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
90
+ // projectId: 'operato',
91
+ // messagingSenderId: 79537064975,
92
+ // appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
93
+ // },
94
+ // serverKey:
95
+ // 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
96
+ // },
97
+ // vapidKey: {
98
+ // subject: 'mailto:heartyoh@hatiolab.com',
99
+ // publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
100
+ // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
101
+ // }
102
+ },
103
+ reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
104
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.115",
3
+ "version": "4.3.116",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -77,7 +77,7 @@
77
77
  "@things-factory/export-ui-excel": "^4.3.114",
78
78
  "@things-factory/fav-base": "^4.3.114",
79
79
  "@things-factory/form-ui": "^4.3.114",
80
- "@things-factory/geography": "^4.3.114",
80
+ "@things-factory/geography": "^4.3.116",
81
81
  "@things-factory/grist-ui": "^4.3.114",
82
82
  "@things-factory/help": "^4.3.114",
83
83
  "@things-factory/i18n-base": "^4.3.114",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "032345a5ce00068c1d704e3257b8ad4a5c3b084f"
121
+ "gitHead": "6b53bc722eaea83ef4f90ffbedf21ac3194b147d"
122
122
  }