@things-factory/operato-wms 4.3.781 → 4.3.783

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.
@@ -471,8 +471,23 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
471
471
  } else {
472
472
  let invalidDataError = response.errors.find(err => err.extensions.exception.errorCode == 'ivd1')
473
473
  if (invalidDataError) {
474
- this.records = JSON.parse(invalidDataError.extensions.exception.detail.data)
475
- this._showToast({ message: i18next.t('text.please_recheck_your_request_data') })
474
+ const detail = invalidDataError.extensions.exception.detail
475
+ this.records = JSON.parse(detail.data)
476
+
477
+ const successOrders = detail.successOrders || []
478
+ const failedOrders = detail.failedOrders || []
479
+
480
+ const parts = []
481
+ if (successOrders.length) {
482
+ parts.push(i18next.t('text.orders_created_successfully') + ': ' + successOrders.join(', '))
483
+ }
484
+ if (failedOrders.length) {
485
+ parts.push(i18next.t('text.orders_have_errors_please_review') + ': ' + failedOrders.join(', '))
486
+ }
487
+ this._showToast({
488
+ type: successOrders.length ? 'warning' : 'error',
489
+ message: parts.join(' | ')
490
+ })
476
491
  }
477
492
  }
478
493
  } catch (e) {
@@ -6,18 +6,29 @@ module.exports = {
6
6
  subdomainOffset: 2,
7
7
  port: 4000,
8
8
  inspect: '9330',
9
-
10
- storage: {
11
- type: 's3',
12
- accessKeyId: 'AKIAUQEOPWEJHCE4MTH4',
13
- secretAccessKey: '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',
14
- bucketName: 'opa-one',
15
- region: 'ap-southeast-1'
16
- },
17
- // arif
18
9
  // ormconfig: {
19
10
  // name: 'default',
20
11
  // type: 'postgres',
12
+ // database: 'postgres',
13
+ // username: 'izzah',
14
+ // password: 'hatio1234',
15
+ // host: 'my-operato-pg.cjcso4qmeuq0.ap-southeast-5.rds.amazonaws.com',
16
+ // port: 55432,
17
+ // synchronize: false,
18
+ // logging: true
19
+ // },
20
+ // postgres2
21
+ // ormconfig: {
22
+ // name: 'default',
23
+ // type: 'postgres',
24
+ // database: 'postgres',
25
+ // username: 'postgres',
26
+ // password: 'hatio',
27
+ // host: '192.168.0.151',
28
+ // port: 15432,
29
+ // synchronize: false,debug
30
+ // name: 'default',
31
+ // type: 'postgres',
21
32
  // database: 'arif',
22
33
  // username: 'postgres',
23
34
  // password: 'hatio',
@@ -26,7 +37,51 @@ module.exports = {
26
37
  // synchronize: false,
27
38
  // logging: true
28
39
  // },
29
-
40
+ // ormconfig: {
41
+ // name: 'default',
42
+ // type: 'postgres',
43
+ // database: 'operato-eric',
44
+ // username: 'postgres',
45
+ // password: 'hatio',
46
+ // host: '192.168.0.248',
47
+ // port: 15432,
48
+ // synchronize: false,
49
+ // logging: true
50
+ // },
51
+ //operato
52
+ // ormconfig: {
53
+ // name: 'default',
54
+ // type: 'postgres',
55
+ // database: 'operato',
56
+ // username: 'postgres',
57
+ // password: 'hatio',
58
+ // host: '192.168.0.151',
59
+ // port: 15432,
60
+ // synchronize: false,
61
+ // logging: true
62
+ // },
63
+ //153 - operatodebug
64
+ // type: 'postgres',
65
+ // database: 'operato',
66
+ // username: 'postgres',
67
+ // password: 'hatio',
68
+ // host: '192.168.0.153',
69
+ // port: 15432,
70
+ // synchronize: false,
71
+ // logging: true
72
+ // },
73
+ //eric2
74
+ // ormconfig: {
75
+ // name: 'default',
76
+ // type: 'postgres',
77
+ // database: 'eric2',
78
+ // username: 'postgres',
79
+ // password: 'hatio',
80
+ // host: '192.168.0.153',
81
+ // port: 15432,
82
+ // synchronize: false,
83
+ // logging: true
84
+ // },
30
85
  // STAGING DATABASE
31
86
  ormconfig: {
32
87
  name: 'default',
@@ -39,46 +94,30 @@ module.exports = {
39
94
  synchronize: false,
40
95
  logging: true
41
96
  },
42
-
97
+ //EMS
43
98
  // ormconfig: {
44
99
  // name: 'default',
45
100
  // type: 'postgres',
46
- // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
47
- // port: 55432,
48
- // database: 'postgres',
49
- // username: 'postgres',
50
- // password: 'abcd1234',
51
- // synchronize: false,
52
- // logging: true,
53
- // connectTimeoutMS: 30000,
54
- // extra: { poolSize: 30 }
55
- // },
56
-
57
- //db izzah
58
- // ormconfig: {
59
- // name: 'default',
60
- // type: 'postgres',
61
- // database: '06072023',
101
+ // database: 'EMS',
62
102
  // username: 'postgres',
63
103
  // password: 'hatio',
64
- // host: '192.168.0.153',
65
- // port: 15432,f
66
- // synchronize: true,
104
+ // host: '192.168.0.161',
105
+ // port: 15432,
106
+ // synchronize: false,
67
107
  // logging: true
68
108
  // },
109
+ //db nora
69
110
  // ormconfig: {
70
111
  // name: 'default',
71
112
  // type: 'postgres',
72
113
  // database: 'postgres',
73
114
  // username: 'postgres',
74
115
  // password: 'hatio',
75
- // host: '192.168.0.151',
116
+ // host: '192.168.0.36',
76
117
  // port: 15432,
77
- // synchronize: false,
118
+ // synchronize: true,
78
119
  // logging: true
79
120
  // },
80
-
81
- // //ERIC
82
121
  // ormconfig: {
83
122
  // name: 'default',
84
123
  // type: 'postgres',
@@ -87,15 +126,14 @@ module.exports = {
87
126
  // password: 'hatio',
88
127
  // host: '192.168.0.153',
89
128
  // port: 15432,
90
- // synchronize: false,
129
+ // synchronize: true,
91
130
  // logging: true
92
131
  // },
93
-
94
- //eric 2
132
+ //db izzah
95
133
  // ormconfig: {
96
134
  // name: 'default',
97
135
  // type: 'postgres',
98
- // database: 'eric2',
136
+ // database: '06072023',
99
137
  // username: 'postgres',
100
138
  // password: 'hatio',
101
139
  // host: '192.168.0.153',
@@ -103,21 +141,20 @@ module.exports = {
103
141
  // synchronize: false,
104
142
  // logging: true
105
143
  // },
106
-
107
144
  // ormconfig: {
108
145
  // name: 'default',
109
146
  // type: 'postgres',
110
- // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
111
- // port: 55432,
147
+ // host: 'a6cf0bb5671f54555985dede599d5a87-649005352.ap-southeast-1.elb.amazonaws.com',
148
+ // port: 15432,
112
149
  // database: 'postgres',
113
- // username: 'postgres',
114
- // password: 'abcd1234',
150
+ // username: 'operato-hub-app',
151
+ // password: 'a5Z(7|6n$Zti',
115
152
  // synchronize: false,
116
153
  // logging: true,
117
154
  // connectTimeoutMS: 30000,
118
155
  // extra: { poolSize: 30 }
119
156
  // },
120
- //ormconfig: {
157
+ // //ormconfig: {
121
158
  // name: 'default',
122
159
  // type: 'postgres',
123
160
  // database: 'dev2',
@@ -145,16 +182,7 @@ module.exports = {
145
182
  },
146
183
  uploads: 'uploads',
147
184
  attachmentsPath: 'attachments',
148
- logger: {
149
- file: {
150
- filename: 'logs/application-%DATE%.log',
151
- datePattern: 'YYYY-MM-DD-HH',
152
- zippedArchive: true,
153
- maxSize: '200m',
154
- maxFiles: '1m',
155
- level: 'info'
156
- }
157
- },
185
+ logger: {},
158
186
  email: {
159
187
  host: 'smtp.office365.com',
160
188
  port: 587,
@@ -192,30 +220,72 @@ module.exports = {
192
220
  // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
193
221
  // }
194
222
  },
195
- // reportApiUrl:
196
- // 'http://k8s-default-operator-8eeba2e246-3e3a5ee7979bcd57.elb.ap-southeast-1.amazonaws.com/rest/report/show_html',
197
- // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html',
198
- // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html',
223
+ fulfillmentIntegrationOperato: {
224
+ host: '192.168.0.161:3000',
225
+ protocol: 'http',
226
+ platform: 'operato',
227
+ application: 'Operato MMS',
228
+ appKey: 'a9bf751e622bf146662b240d58971051',
229
+ appSecret: '1c385935dc131c4b902b9bbf6a4798af',
230
+ callback: 'http://192.168.0.161:5000/callback-operato'
231
+ },
232
+ lmdIntegrationNinjavan: {
233
+ clientId: 'P8WCEwMo0FHNlPECwTLetwN3diAmt5KF',
234
+ secretKey: '1D0yNZGseOjhxnwri29xmuZiiuRp131L',
235
+ refreshThreshold: 43200
236
+ },
237
+
238
+ lmdIntegrationEms: { refreshThreshold: 43200 },
239
+ marketplaceIntegrationShopee: {
240
+ platform: 'shopee',
241
+ isUAT: false,
242
+ application: 'Operato MMS',
243
+ partnerId: 846025,
244
+ partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64',
245
+ v2: true
246
+ },
247
+ marketplaceIntegrationLazada: {
248
+ platform: 'lazada',
249
+ application: 'operato-mms',
250
+ appKey: '120961',
251
+ appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
252
+ callback: 'https://maybank.operato-m.com/lazada-callback'
253
+ },
254
+
255
+ //testinglazada
256
+ // marketplaceIntegrationLazada: {
257
+ // platform: 'lazada',
258
+ // application: 'powrup_bi',
259
+ // appKey: '117890',
260
+ // appSecret: 'tQVllnUa7irAHoNxAwXEVxoP1we1bUjE',
261
+ // callback: 'https://73c5-175-141-30-142.ngrok-free.app/lazada-callback'
262
+ // },
263
+ reportApiUrl: 'http://localhost:8090/rest/report/show_html',
264
+ // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
199
265
  // reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html',
200
266
  awbFileStorage: {
201
267
  type: 's3',
202
- accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
203
- secretAccessKey: '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',
268
+ accessKeyId: 'AKIAUQEOPWEJPXIVER74',
269
+ secretAccessKey: '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',
204
270
  bucketName: 'operato-awb',
205
271
  region: 'ap-southeast-1'
206
272
  },
207
- invoiceFileStorage: {
208
- type: 's3',
209
- accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
210
- secretAccessKey: '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',
211
- invoiceBucket: 'operato-invoice',
212
- region: 'ap-southeast-1'
213
- },
214
273
  lambda: {
215
274
  region: 'ap-southeast-1',
216
- accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
217
- secretAccessKey: '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'
275
+ accessKeyId: 'AKIAUQEOPWEJPXIVER74',
276
+ secretAccessKey: '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'
218
277
  },
219
- reportApiUrl:
220
- 'http://k8s-default-operator-8eeba2e246-3e3a5ee7979bcd57.elb.ap-southeast-1.amazonaws.com/rest/report/show_html'
278
+ lmdIntegrationConfig: {
279
+ version: {
280
+ v1: 'lmdMiddleware',
281
+ v2: 'lmdMiddlewareV2'
282
+ }
283
+ },
284
+ awsSesEmail: {
285
+ accessKeyId: 'AKIAUQEOPWEJPXIVER74',
286
+ secretAccessKey: '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',
287
+ email: 'support@hatio.asia'
288
+ }
289
+ // reportApiUrl:
290
+ // 'http://k8s-default-operator-2fd6178d98-66c66a0f76c09575.elb.ap-southeast-1.amazonaws.com/rest/report/show_html'
221
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.781",
3
+ "version": "4.3.783",
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.767",
90
90
  "@things-factory/print-proxy-service": "^4.3.767",
91
91
  "@things-factory/print-ui": "^4.3.767",
92
- "@things-factory/product-base": "^4.3.776",
92
+ "@things-factory/product-base": "^4.3.782",
93
93
  "@things-factory/resource-ui": "^4.3.770",
94
- "@things-factory/sales-ui": "^4.3.780",
94
+ "@things-factory/sales-ui": "^4.3.783",
95
95
  "@things-factory/scene-data-transform": "^4.3.767",
96
96
  "@things-factory/scene-excel": "^4.3.767",
97
97
  "@things-factory/scene-firebase": "^4.3.767",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.767",
108
108
  "@things-factory/transport-base": "^4.3.767",
109
109
  "@things-factory/tutorial-ui": "^4.3.767",
110
- "@things-factory/warehouse-base": "^4.3.780",
111
- "@things-factory/worksheet-base": "^4.3.781"
110
+ "@things-factory/warehouse-base": "^4.3.782",
111
+ "@things-factory/worksheet-base": "^4.3.783"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.767",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "c458ec42a3e32341a04c27e382e5604d51a3dc59"
120
+ "gitHead": "caafdd945941a4559bcb8de1b6498eceae9b94c0"
121
121
  }
@@ -1807,6 +1807,8 @@
1807
1807
  "text.release_date_is_required": "release date is required",
1808
1808
  "text.release_good_number_not_found": "release good number not found",
1809
1809
  "text.release_order_confirmed": "release order confirmed",
1810
+ "text.orders_created_successfully": "orders created successfully",
1811
+ "text.orders_have_errors_please_review": "orders have errors, please review",
1810
1812
  "text.release_order_created": "release order created",
1811
1813
  "text.release_order_details_updated": "release order details updated",
1812
1814
  "text.release_order_form_invalid": "release order form invalid",
@@ -1779,6 +1779,8 @@
1779
1779
  "text.release_date_is_required": "[ko]release date is required",
1780
1780
  "text.release_good_number_not_found": "출고 번호를 찾을 수 없습니다",
1781
1781
  "text.release_order_confirmed": "출고주문 확인",
1782
+ "text.orders_created_successfully": "주문 생성 성공",
1783
+ "text.orders_have_errors_please_review": "주문에 오류가 있습니다. 확인하세요",
1782
1784
  "text.release_order_created": "출고주문 생성",
1783
1785
  "text.release_order_details_updated": "[ko] release order details updated",
1784
1786
  "text.release_order_form_invalid": "출고주문 폼이 유효하지 않습니다",
@@ -1842,6 +1842,8 @@
1842
1842
  "text.release_date_is_required": "tarikh pelepasan diperlukan",
1843
1843
  "text.release_good_number_not_found": "nombor pelepasan barang tidak ditemui",
1844
1844
  "text.release_order_confirmed": "pesanan pengeluaran disemak",
1845
+ "text.orders_created_successfully": "pesanan berjaya dicipta",
1846
+ "text.orders_have_errors_please_review": "pesanan ada ralat, sila semak",
1845
1847
  "text.release_order_created": "pesanan pengeluaran dicipta",
1846
1848
  "text.release_order_details_updated": "maklumat pesanan pengeluaran dikemaskini",
1847
1849
  "text.release_order_form_invalid": "borang pelepasan pesanan tidak sah",
@@ -1868,6 +1868,8 @@
1868
1868
  "text.release_date_is_required": "日期为空",
1869
1869
  "text.release_good_number_not_found": "未找到发货单号",
1870
1870
  "text.release_order_confirmed": "释放订单已确认",
1871
+ "text.orders_created_successfully": "订单创建成功",
1872
+ "text.orders_have_errors_please_review": "订单有错误,请检查",
1871
1873
  "text.release_order_created": "释放订单已创建",
1872
1874
  "text.release_order_details_updated": "释放订单详情已更新",
1873
1875
  "text.release_order_form_invalid": "释放订单表单无效",