@things-factory/operato-mms 3.6.25 → 3.6.33
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/order/logistics/request-ro-popup.js +54 -31
- package/client/pages/order/order-by-store.js +37 -18
- package/config.development.js +30 -53
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js +1 -1
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js.map +1 -1
- package/package.json +63 -63
- package/server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts +1 -1
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import '@material/mwc-button'
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import gql from 'graphql-tag'
|
|
4
|
+
import { css, html, LitElement } from 'lit-element'
|
|
5
|
+
|
|
3
6
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
7
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
4
8
|
import { client, CustomAlert } from '@things-factory/shell'
|
|
5
9
|
import { isMobileDevice } from '@things-factory/utils'
|
|
6
|
-
|
|
7
|
-
import { css, html, LitElement } from 'lit-element'
|
|
10
|
+
|
|
8
11
|
import { PLATFORM } from '../../constants'
|
|
9
12
|
|
|
10
13
|
class RequestROPopup extends LitElement {
|
|
@@ -164,6 +167,13 @@ class RequestROPopup extends LitElement {
|
|
|
164
167
|
sortable: true,
|
|
165
168
|
width: 130
|
|
166
169
|
},
|
|
170
|
+
{
|
|
171
|
+
type: 'string',
|
|
172
|
+
name: 'postCode',
|
|
173
|
+
header: i18next.t('field.post_code'),
|
|
174
|
+
sortable: true,
|
|
175
|
+
width: 130
|
|
176
|
+
},
|
|
167
177
|
{
|
|
168
178
|
type: 'string',
|
|
169
179
|
name: 'itemCount',
|
|
@@ -275,17 +285,18 @@ class RequestROPopup extends LitElement {
|
|
|
275
285
|
let filters = []
|
|
276
286
|
|
|
277
287
|
if (this.store) {
|
|
278
|
-
filters.push(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
filters.push(
|
|
289
|
+
{
|
|
290
|
+
name: 'marketplaceStoreId',
|
|
291
|
+
operator: 'eq',
|
|
292
|
+
value: this.store.id
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: 'status',
|
|
296
|
+
operator: 'in',
|
|
297
|
+
value: this.getROCreatableStatus()
|
|
298
|
+
}
|
|
299
|
+
)
|
|
289
300
|
}
|
|
290
301
|
|
|
291
302
|
const pagination = { page, limit }
|
|
@@ -356,7 +367,8 @@ class RequestROPopup extends LitElement {
|
|
|
356
367
|
marketplaceOrders = marketplaceOrders.map(item => {
|
|
357
368
|
return {
|
|
358
369
|
...item,
|
|
359
|
-
newTrackingNo: this.
|
|
370
|
+
newTrackingNo: this.getOrderShippingInformation(item.marketplaceOrderItems, 'trackingNo'),
|
|
371
|
+
postCode: this.getOrderShippingInformation(item.marketplaceOrderItems, 'postCode')
|
|
360
372
|
}
|
|
361
373
|
})
|
|
362
374
|
|
|
@@ -367,8 +379,8 @@ class RequestROPopup extends LitElement {
|
|
|
367
379
|
}
|
|
368
380
|
}
|
|
369
381
|
|
|
370
|
-
|
|
371
|
-
let
|
|
382
|
+
getOrderShippingInformation(marketplaceOrderItems, type) {
|
|
383
|
+
let item
|
|
372
384
|
let marketplaceOrderShippings = []
|
|
373
385
|
|
|
374
386
|
marketplaceOrderItems.map(item => {
|
|
@@ -383,23 +395,34 @@ class RequestROPopup extends LitElement {
|
|
|
383
395
|
return marketplaceOrderShippings.find(a => a.id === id)
|
|
384
396
|
})
|
|
385
397
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
if (
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
+
switch (type) {
|
|
399
|
+
case 'trackingNo':
|
|
400
|
+
if (uniqueMarketplaceOrderShippings) {
|
|
401
|
+
uniqueMarketplaceOrderShippings.map(marketplaceOrderShipping => {
|
|
402
|
+
if (this.store?.platform === PLATFORM.LAZADA.value) {
|
|
403
|
+
var newTrackingNo = []
|
|
404
|
+
if (marketplaceOrderShipping?.trackingNo) {
|
|
405
|
+
const trackingNos = JSON.parse(marketplaceOrderShipping.trackingNo)
|
|
406
|
+
newTrackingNo = trackingNos.map(item => item.tracking_code)
|
|
407
|
+
}
|
|
408
|
+
let uniqueTrackingNos = [...new Set(newTrackingNo)]
|
|
409
|
+
item = uniqueTrackingNos.join(', ')
|
|
410
|
+
} else {
|
|
411
|
+
item = marketplaceOrderShipping.trackingNo
|
|
412
|
+
}
|
|
413
|
+
})
|
|
398
414
|
}
|
|
399
|
-
|
|
415
|
+
break
|
|
416
|
+
case 'postCode':
|
|
417
|
+
if (uniqueMarketplaceOrderShippings) {
|
|
418
|
+
uniqueMarketplaceOrderShippings.map(marketplaceOrderShipping => {
|
|
419
|
+
item = marketplaceOrderShipping.postCode
|
|
420
|
+
})
|
|
421
|
+
}
|
|
422
|
+
break
|
|
400
423
|
}
|
|
401
424
|
|
|
402
|
-
return
|
|
425
|
+
return item
|
|
403
426
|
}
|
|
404
427
|
|
|
405
428
|
getROCreatableStatus() {
|
|
@@ -235,6 +235,13 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
235
235
|
sortable: true,
|
|
236
236
|
width: 130
|
|
237
237
|
},
|
|
238
|
+
{
|
|
239
|
+
type: 'string',
|
|
240
|
+
name: 'postCode',
|
|
241
|
+
header: i18next.t('field.post_code'),
|
|
242
|
+
sortable: true,
|
|
243
|
+
width: 130
|
|
244
|
+
},
|
|
238
245
|
{
|
|
239
246
|
type: 'string',
|
|
240
247
|
name: 'itemCount',
|
|
@@ -331,7 +338,7 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
331
338
|
|
|
332
339
|
if (this.store) {
|
|
333
340
|
filters.push({
|
|
334
|
-
name: '
|
|
341
|
+
name: 'marketplaceStoreId',
|
|
335
342
|
operator: 'eq',
|
|
336
343
|
value: this.store.id
|
|
337
344
|
})
|
|
@@ -415,7 +422,8 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
415
422
|
marketplaceOrders = marketplaceOrders.map(item => {
|
|
416
423
|
return {
|
|
417
424
|
...item,
|
|
418
|
-
newTrackingNo: this.
|
|
425
|
+
newTrackingNo: this.getOrderShippingInformation(item.marketplaceOrderItems, 'trackingNo'),
|
|
426
|
+
postCode: this.getOrderShippingInformation(item.marketplaceOrderItems, 'postCode')
|
|
419
427
|
}
|
|
420
428
|
})
|
|
421
429
|
|
|
@@ -426,8 +434,8 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
426
434
|
}
|
|
427
435
|
}
|
|
428
436
|
|
|
429
|
-
|
|
430
|
-
let
|
|
437
|
+
getOrderShippingInformation(marketplaceOrderItems, type) {
|
|
438
|
+
let item
|
|
431
439
|
let marketplaceOrderShippings = []
|
|
432
440
|
|
|
433
441
|
marketplaceOrderItems.map(item => {
|
|
@@ -442,23 +450,34 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
442
450
|
return marketplaceOrderShippings.find(a => a.id === id)
|
|
443
451
|
})
|
|
444
452
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
if (
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
switch (type) {
|
|
454
|
+
case 'trackingNo':
|
|
455
|
+
if (uniqueMarketplaceOrderShippings) {
|
|
456
|
+
uniqueMarketplaceOrderShippings.map(marketplaceOrderShipping => {
|
|
457
|
+
if (this.store?.platform === PLATFORM.LAZADA.value) {
|
|
458
|
+
var newTrackingNo = []
|
|
459
|
+
if (marketplaceOrderShipping?.trackingNo) {
|
|
460
|
+
const trackingNos = JSON.parse(marketplaceOrderShipping.trackingNo)
|
|
461
|
+
newTrackingNo = trackingNos.map(item => item.tracking_code)
|
|
462
|
+
}
|
|
463
|
+
let uniqueTrackingNos = [...new Set(newTrackingNo)]
|
|
464
|
+
item = uniqueTrackingNos.join(', ')
|
|
465
|
+
} else {
|
|
466
|
+
item = marketplaceOrderShipping.trackingNo
|
|
467
|
+
}
|
|
468
|
+
})
|
|
457
469
|
}
|
|
458
|
-
|
|
470
|
+
break
|
|
471
|
+
case 'postCode':
|
|
472
|
+
if (uniqueMarketplaceOrderShippings) {
|
|
473
|
+
uniqueMarketplaceOrderShippings.map(marketplaceOrderShipping => {
|
|
474
|
+
item = marketplaceOrderShipping.postCode
|
|
475
|
+
})
|
|
476
|
+
}
|
|
477
|
+
break
|
|
459
478
|
}
|
|
460
479
|
|
|
461
|
-
return
|
|
480
|
+
return item
|
|
462
481
|
}
|
|
463
482
|
|
|
464
483
|
_syncOrder() {
|
package/config.development.js
CHANGED
|
@@ -2,29 +2,30 @@ module.exports = {
|
|
|
2
2
|
domainType: 'company',
|
|
3
3
|
ormconfig: {
|
|
4
4
|
name: 'default',
|
|
5
|
-
type: '
|
|
6
|
-
database: '
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
type: 'sqlite',
|
|
6
|
+
database: 'db.sqlite',
|
|
7
|
+
synchronize: false,
|
|
8
|
+
logging: true,
|
|
9
|
+
logger: 'debug'
|
|
10
|
+
// name: 'default',
|
|
11
|
+
// type: 'postgres',
|
|
12
|
+
// database: 'postgres',
|
|
13
|
+
// username: 'postgres',
|
|
14
|
+
// password: 'abcd1234',
|
|
15
|
+
// host: 'localhost',
|
|
16
|
+
// port: 15432,
|
|
17
|
+
// synchronize: true,
|
|
18
|
+
// logging: true
|
|
19
|
+
},
|
|
20
|
+
oauth2: {
|
|
21
|
+
platforms: [
|
|
22
|
+
{
|
|
23
|
+
name: 'Operato Hub',
|
|
24
|
+
apiURL: 'http://operato-m.localhost:3000/api'
|
|
25
|
+
}
|
|
26
|
+
]
|
|
13
27
|
},
|
|
14
|
-
// ormconfig: {
|
|
15
|
-
// name: 'default',
|
|
16
|
-
// type: 'postgres',
|
|
17
|
-
// database: 'postgres',
|
|
18
|
-
// username: 'postgres',
|
|
19
|
-
// password: 'abcd1234',
|
|
20
|
-
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
21
|
-
// port: 55432,
|
|
22
|
-
// synchronize: true,
|
|
23
|
-
// logging: true
|
|
24
|
-
// },
|
|
25
28
|
useVirtualHostBasedDomain: false,
|
|
26
|
-
accessTokenCookieKey: 'access_token.mms',
|
|
27
|
-
subdomainOffset: 2,
|
|
28
29
|
port: 5000,
|
|
29
30
|
uploads: 'uploads',
|
|
30
31
|
attachmentsPath: 'attachments',
|
|
@@ -39,13 +40,14 @@ module.exports = {
|
|
|
39
40
|
level: 'info'
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
fulfillmentIntegrationOperato: {
|
|
44
|
+
host: 'operatohub.com',
|
|
45
|
+
platform: 'operato',
|
|
46
|
+
application: 'Operato MMS',
|
|
47
|
+
appKey: '480d19cbfb0655357878119559d47333',
|
|
48
|
+
appSecret: 'dc5078bc17d50a18ef6fc3188934bbbd',
|
|
49
|
+
callback: 'https://www.myoperato.com/callback-operato'
|
|
50
|
+
},
|
|
49
51
|
marketplaceIntegrationShopee: {
|
|
50
52
|
platform: 'shopee',
|
|
51
53
|
isUAT: false,
|
|
@@ -60,31 +62,6 @@ module.exports = {
|
|
|
60
62
|
appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
|
|
61
63
|
callback: 'https://myoperato.com/lazada-callback'
|
|
62
64
|
},
|
|
63
|
-
marketplaceIntegrationShopify: {
|
|
64
|
-
platform: 'shopify',
|
|
65
|
-
application: 'Operato MMS',
|
|
66
|
-
apiKey: '21e55f83b2b705172364c93a18cf560c',
|
|
67
|
-
apiSecret: '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'
|
|
68
|
-
},
|
|
69
|
-
marketplaceIntegrationShopifyPrivate: {
|
|
70
|
-
platform: 'shopify',
|
|
71
|
-
application: 'Operato MMS Test',
|
|
72
|
-
apiKey: '5be8c95bc9a03d41e3c0da3d8c033747',
|
|
73
|
-
apiSecret: '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'
|
|
74
|
-
},
|
|
75
|
-
fulfillmentIntegrationOperato: {
|
|
76
|
-
protocol: 'http',
|
|
77
|
-
host: 'operato-h.com:3000',
|
|
78
|
-
platform: 'operato',
|
|
79
|
-
application: 'Operato MMS',
|
|
80
|
-
appKey: 'a9bf751e622bf146662b240d58971051',
|
|
81
|
-
appSecret: '1c385935dc131c4b902b9bbf6a4798af',
|
|
82
|
-
callback: 'http://operato-m.com:5000/callback-operato'
|
|
83
|
-
},
|
|
84
|
-
lmdIntegrationCitylink: {
|
|
85
|
-
protocol: 'http',
|
|
86
|
-
host: '202.133.101.28:8889'
|
|
87
|
-
},
|
|
88
65
|
notification: {
|
|
89
66
|
fcm: {
|
|
90
67
|
serviceAccount: {
|
|
@@ -17,7 +17,7 @@ exports.autoAddReleaseOrderResolver = {
|
|
|
17
17
|
.leftJoinAndSelect('MO.marketplaceStore', 'MPS')
|
|
18
18
|
.where('MO.domain = :domainId', { domainId: domain.id })
|
|
19
19
|
.andWhere('MO.releaseOrderId IS NULL')
|
|
20
|
-
.andWhere('MO.status IN (:...status)', { status: ['ready_to_ship', 'unfulfilled'] })
|
|
20
|
+
.andWhere('MO.status IN (:...status)', { status: ['ready_to_ship', 'unfulfilled', 'packed'] })
|
|
21
21
|
.andWhere('MPS.status = :marketplaceStatus', { marketplaceStatus: 'ACTIVE' })
|
|
22
22
|
.getMany();
|
|
23
23
|
var fulfilmentCenter = await integration_fulfillment_1.FulfillmentAPI.getFulfillmentCenter(warehouseId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-add-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAA+E;AAE/E,uDAAyE;AACzE,qFAAwE;AACxE,uEAA6F;AAC7F,iDAA8C;AAEjC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,mBAAmB,CAAC,CAAO,EAAE,EAAE,WAAW,EAA2B,EAAE,OAAY;QACvF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QAEpD,MAAM,EAAE,GAAyC,IAAA,4BAAkB,EAAC,mCAAgB,EAAE,IAAI,CAAC,CAAA;QAC3F,MAAM,iBAAiB,GAAuB,MAAM,EAAE;aACnD,iBAAiB,CAAC,0BAA0B,EAAE,KAAK,CAAC;aACpD,iBAAiB,CAAC,8BAA8B,EAAE,KAAK,CAAC;aACxD,iBAAiB,CAAC,iCAAiC,EAAE,KAAK,CAAC;aAC3D,iBAAiB,CAAC,qBAAqB,EAAE,KAAK,CAAC;aAC/C,KAAK,CAAC,uBAAuB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;aACvD,QAAQ,CAAC,2BAA2B,CAAC;aACrC,QAAQ,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,CAAC,eAAe,EAAE,aAAa,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"auto-add-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAA+E;AAE/E,uDAAyE;AACzE,qFAAwE;AACxE,uEAA6F;AAC7F,iDAA8C;AAEjC,QAAA,2BAA2B,GAAG;IACzC,K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BACrD,MAAM,CAAC,IAAI,CAAC,EAAE;wBACb,IAAI,IAAI,CAAC,wBAAwB,CAAC,EAAE,KAAK,wBAAwB,CAAC,EAAE,EAAE;4BACpE,OAAO,IAAI,CAAA;yBACZ;oBACH,CAAC,CAAC;yBACD,GAAG,CAAC,CAAC,SAAc,EAAE,EAAE;wBACtB,MAAM,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,GAAQ,SAAS,CAAA;wBACxE,OAAO;4BACL,OAAO,EAAE;gCACP,GAAG,EAAE,gBAAgB,CAAC,GAAG;6BAC1B;4BACD,UAAU,EAAE,SAAS,CAAC,GAAG;yBAC1B,CAAA;oBACH,CAAC,CAAC;iBACL,CAAA;gBAED,IAAI,YAAY,GAAQ,MAAM,wCAAc,CAAC,mBAAmB,CAAC,gBAAgB,EAAE;oBACjF,kBAAkB;oBAClB,YAAY,EAAE,mBAAmB;iBAClC,CAAC,CAAA;aACH;YAED,gBAAgB,CAAC,cAAc,GAAG,YAAY,CAAC,EAAE,CAAA;YACjD,gBAAgB,CAAC,iBAAiB,GAAG,gBAAgB,CAAA;YACrD,MAAM,IAAA,uBAAa,EAAC,mCAAgB,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;SAC7D;IACH,CAAC;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-mms",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.33",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"clean:server": "rm -rf dist-server",
|
|
26
26
|
"clean:client": "rm -rf dist-client",
|
|
27
27
|
"clean": "npm run clean:server && npm run clean:client",
|
|
28
|
-
"migration": "
|
|
29
|
-
"migration:privileges": "
|
|
28
|
+
"migration": "things-factory-migration",
|
|
29
|
+
"migration:privileges": "things-factory-migration-privileges",
|
|
30
30
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations",
|
|
31
31
|
"migration:generate": "node ../../node_modules/typeorm/cli.js migration:generate",
|
|
32
32
|
"migration:run": "node ../../node_modules/typeorm/cli.js migration:run",
|
|
@@ -41,68 +41,68 @@
|
|
|
41
41
|
"@material/mwc-formfield": "^0.22.1",
|
|
42
42
|
"@material/mwc-linear-progress": "^0.22.1",
|
|
43
43
|
"@material/mwc-radio": "^0.22.1",
|
|
44
|
-
"@things-factory/apptool-ui": "^3.6.
|
|
45
|
-
"@things-factory/attachment-base": "^3.6.
|
|
46
|
-
"@things-factory/auth-ui": "^3.6.
|
|
47
|
-
"@things-factory/biz-base": "^3.6.
|
|
48
|
-
"@things-factory/board-service": "^3.6.
|
|
49
|
-
"@things-factory/board-ui": "^3.6.
|
|
50
|
-
"@things-factory/code-ui": "^3.6.
|
|
51
|
-
"@things-factory/context-ui": "^3.6.
|
|
52
|
-
"@things-factory/dashboard": "^3.6.
|
|
53
|
-
"@things-factory/export-ui": "^3.6.
|
|
54
|
-
"@things-factory/export-ui-csv": "^3.6.
|
|
55
|
-
"@things-factory/export-ui-excel": "^3.6.
|
|
56
|
-
"@things-factory/geography": "^3.6.
|
|
57
|
-
"@things-factory/grist-ui": "^3.6.
|
|
58
|
-
"@things-factory/help": "^3.6.
|
|
59
|
-
"@things-factory/i18n-ui": "^3.6.
|
|
60
|
-
"@things-factory/integration-fulfillment": "^3.6.
|
|
61
|
-
"@things-factory/integration-lmd": "^3.6.
|
|
62
|
-
"@things-factory/lite-menu": "^3.6.
|
|
63
|
-
"@things-factory/marketplace-base": "^3.6.
|
|
64
|
-
"@things-factory/more-ui": "^3.6.
|
|
65
|
-
"@things-factory/notification": "^3.6.
|
|
66
|
-
"@things-factory/oauth2-client": "^3.6.
|
|
67
|
-
"@things-factory/pdf": "^3.6.
|
|
68
|
-
"@things-factory/product-base": "^3.6.
|
|
69
|
-
"@things-factory/resource-ui": "^3.6.
|
|
70
|
-
"@things-factory/scene-chartjs": "^3.6.
|
|
71
|
-
"@things-factory/scene-clock": "^3.6.
|
|
72
|
-
"@things-factory/scene-clone": "^3.6.
|
|
73
|
-
"@things-factory/scene-compass": "^3.6.
|
|
74
|
-
"@things-factory/scene-data-transform": "^3.6.
|
|
75
|
-
"@things-factory/scene-excel": "^3.6.
|
|
76
|
-
"@things-factory/scene-firebase": "^3.6.
|
|
77
|
-
"@things-factory/scene-form": "^3.6.
|
|
78
|
-
"@things-factory/scene-gauge": "^3.6.
|
|
79
|
-
"@things-factory/scene-google-map": "^3.6.
|
|
80
|
-
"@things-factory/scene-graphql": "^3.6.
|
|
81
|
-
"@things-factory/scene-grist": "^3.6.
|
|
82
|
-
"@things-factory/scene-half-roundrect": "^3.6.
|
|
83
|
-
"@things-factory/scene-indoor-map": "^3.6.
|
|
84
|
-
"@things-factory/scene-integration": "^3.6.
|
|
85
|
-
"@things-factory/scene-label": "^3.6.
|
|
86
|
-
"@things-factory/scene-legend": "^3.6.
|
|
87
|
-
"@things-factory/scene-marker": "^3.6.
|
|
88
|
-
"@things-factory/scene-mqtt": "^3.6.
|
|
89
|
-
"@things-factory/scene-news-ticker": "^3.6.
|
|
90
|
-
"@things-factory/scene-progressbar": "^3.6.
|
|
91
|
-
"@things-factory/scene-random": "^3.6.
|
|
92
|
-
"@things-factory/scene-restful": "^3.6.
|
|
93
|
-
"@things-factory/scene-switch": "^3.6.
|
|
94
|
-
"@things-factory/scene-tab": "^3.6.
|
|
95
|
-
"@things-factory/scene-table": "^3.6.
|
|
96
|
-
"@things-factory/scene-timer": "^3.6.
|
|
97
|
-
"@things-factory/scene-visualizer": "^3.6.
|
|
98
|
-
"@things-factory/scene-wheel-sorter": "^3.6.
|
|
99
|
-
"@things-factory/setting-ui": "^3.6.
|
|
100
|
-
"@things-factory/system-ui": "^3.6.
|
|
101
|
-
"@things-factory/warehouse-base": "^3.6.
|
|
44
|
+
"@things-factory/apptool-ui": "^3.6.33",
|
|
45
|
+
"@things-factory/attachment-base": "^3.6.33",
|
|
46
|
+
"@things-factory/auth-ui": "^3.6.33",
|
|
47
|
+
"@things-factory/biz-base": "^3.6.33",
|
|
48
|
+
"@things-factory/board-service": "^3.6.33",
|
|
49
|
+
"@things-factory/board-ui": "^3.6.33",
|
|
50
|
+
"@things-factory/code-ui": "^3.6.33",
|
|
51
|
+
"@things-factory/context-ui": "^3.6.33",
|
|
52
|
+
"@things-factory/dashboard": "^3.6.33",
|
|
53
|
+
"@things-factory/export-ui": "^3.6.33",
|
|
54
|
+
"@things-factory/export-ui-csv": "^3.6.33",
|
|
55
|
+
"@things-factory/export-ui-excel": "^3.6.33",
|
|
56
|
+
"@things-factory/geography": "^3.6.33",
|
|
57
|
+
"@things-factory/grist-ui": "^3.6.33",
|
|
58
|
+
"@things-factory/help": "^3.6.33",
|
|
59
|
+
"@things-factory/i18n-ui": "^3.6.33",
|
|
60
|
+
"@things-factory/integration-fulfillment": "^3.6.33",
|
|
61
|
+
"@things-factory/integration-lmd": "^3.6.33",
|
|
62
|
+
"@things-factory/lite-menu": "^3.6.33",
|
|
63
|
+
"@things-factory/marketplace-base": "^3.6.33",
|
|
64
|
+
"@things-factory/more-ui": "^3.6.33",
|
|
65
|
+
"@things-factory/notification": "^3.6.33",
|
|
66
|
+
"@things-factory/oauth2-client": "^3.6.33",
|
|
67
|
+
"@things-factory/pdf": "^3.6.33",
|
|
68
|
+
"@things-factory/product-base": "^3.6.33",
|
|
69
|
+
"@things-factory/resource-ui": "^3.6.33",
|
|
70
|
+
"@things-factory/scene-chartjs": "^3.6.33",
|
|
71
|
+
"@things-factory/scene-clock": "^3.6.33",
|
|
72
|
+
"@things-factory/scene-clone": "^3.6.33",
|
|
73
|
+
"@things-factory/scene-compass": "^3.6.33",
|
|
74
|
+
"@things-factory/scene-data-transform": "^3.6.33",
|
|
75
|
+
"@things-factory/scene-excel": "^3.6.33",
|
|
76
|
+
"@things-factory/scene-firebase": "^3.6.33",
|
|
77
|
+
"@things-factory/scene-form": "^3.6.33",
|
|
78
|
+
"@things-factory/scene-gauge": "^3.6.33",
|
|
79
|
+
"@things-factory/scene-google-map": "^3.6.33",
|
|
80
|
+
"@things-factory/scene-graphql": "^3.6.33",
|
|
81
|
+
"@things-factory/scene-grist": "^3.6.33",
|
|
82
|
+
"@things-factory/scene-half-roundrect": "^3.6.33",
|
|
83
|
+
"@things-factory/scene-indoor-map": "^3.6.33",
|
|
84
|
+
"@things-factory/scene-integration": "^3.6.33",
|
|
85
|
+
"@things-factory/scene-label": "^3.6.33",
|
|
86
|
+
"@things-factory/scene-legend": "^3.6.33",
|
|
87
|
+
"@things-factory/scene-marker": "^3.6.33",
|
|
88
|
+
"@things-factory/scene-mqtt": "^3.6.33",
|
|
89
|
+
"@things-factory/scene-news-ticker": "^3.6.33",
|
|
90
|
+
"@things-factory/scene-progressbar": "^3.6.33",
|
|
91
|
+
"@things-factory/scene-random": "^3.6.33",
|
|
92
|
+
"@things-factory/scene-restful": "^3.6.33",
|
|
93
|
+
"@things-factory/scene-switch": "^3.6.33",
|
|
94
|
+
"@things-factory/scene-tab": "^3.6.33",
|
|
95
|
+
"@things-factory/scene-table": "^3.6.33",
|
|
96
|
+
"@things-factory/scene-timer": "^3.6.33",
|
|
97
|
+
"@things-factory/scene-visualizer": "^3.6.33",
|
|
98
|
+
"@things-factory/scene-wheel-sorter": "^3.6.33",
|
|
99
|
+
"@things-factory/setting-ui": "^3.6.33",
|
|
100
|
+
"@things-factory/system-ui": "^3.6.33",
|
|
101
|
+
"@things-factory/warehouse-base": "^3.6.33"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@things-factory/builder": "^3.6.
|
|
104
|
+
"@things-factory/builder": "^3.6.33",
|
|
105
105
|
"@types/node-fetch": "^2.5.7"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "965ef2f6fdc604b4f800e4d01337a3814b3b0d21"
|
|
108
108
|
}
|
|
@@ -17,7 +17,7 @@ export const autoAddReleaseOrderResolver = {
|
|
|
17
17
|
.leftJoinAndSelect('MO.marketplaceStore', 'MPS')
|
|
18
18
|
.where('MO.domain = :domainId', { domainId: domain.id })
|
|
19
19
|
.andWhere('MO.releaseOrderId IS NULL')
|
|
20
|
-
.andWhere('MO.status IN (:...status)', { status: ['ready_to_ship', 'unfulfilled'] })
|
|
20
|
+
.andWhere('MO.status IN (:...status)', { status: ['ready_to_ship', 'unfulfilled', 'packed'] })
|
|
21
21
|
.andWhere('MPS.status = :marketplaceStatus', { marketplaceStatus: 'ACTIVE' })
|
|
22
22
|
.getMany()
|
|
23
23
|
|
package/translations/en.json
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"field.pallet_qty": "pallet qty",
|
|
66
66
|
"field.pickup_date": "pickup date",
|
|
67
67
|
"field.pickup_time_id": "pickup time id",
|
|
68
|
+
"field.post_code": "post code",
|
|
68
69
|
"field.price": "price",
|
|
69
70
|
"field.product_info": "product info",
|
|
70
71
|
"field.product_name": "product name",
|
package/translations/ko.json
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"field.pallet_qty": "[ko] pallet qty",
|
|
66
66
|
"field.pickup_date": "[ko] pickup date",
|
|
67
67
|
"field.pickup_time_id": "[ko] pickup time id",
|
|
68
|
+
"field.post_code": "[ko] post code",
|
|
68
69
|
"field.price": "[ko] price",
|
|
69
70
|
"field.product_info": "[ko] product info",
|
|
70
71
|
"field.product_name": "[ko] product name",
|
package/translations/ms.json
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"field.pallet_qty": "[ms] pallet qty",
|
|
66
66
|
"field.pickup_date": "[ms] pickup date",
|
|
67
67
|
"field.pickup_time_id": "[ms] pickup time id",
|
|
68
|
+
"field.post_code": "[ms] post code",
|
|
68
69
|
"field.price": "[ms] price",
|
|
69
70
|
"field.product_info": "[ms] product info",
|
|
70
71
|
"field.product_name": "[ms] product name",
|
package/translations/zh.json
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"field.pallet_qty": "[zh] pallet qty",
|
|
66
66
|
"field.pickup_date": "[zh] pickup date",
|
|
67
67
|
"field.pickup_time_id": "[zh] pickup time id",
|
|
68
|
+
"field.post_code": "[zh] post code",
|
|
68
69
|
"field.price": "[zh] price",
|
|
69
70
|
"field.product_info": "[zh] product info",
|
|
70
71
|
"field.product_name": "[zh] product name",
|