@things-factory/operato-wms 4.3.47 → 4.3.50
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/bulk-operation/bulk-operation.js +81 -4
- package/client/pages/bulk-operation/validate-gan-popup.js +37 -27
- package/client/pages/components/select-product-popup.js +4 -40
- package/client/pages/constants/order.js +2 -1
- package/client/pages/inventory/serial-number-list-popup.js +18 -4
- package/client/pages/manifest/create-loading-manifest.js +47 -22
- package/client/pages/manifest/dispatcher-verification-popup.js +24 -13
- package/client/pages/manifest/loading-manifest-detail.js +311 -46
- package/client/pages/manifest/loading-manifest-list.js +86 -13
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +303 -50
- package/client/pages/order/arrival-notice/arrival-notice-list.js +20 -1
- package/client/pages/order/release-order/release-order-detail.js +0 -11
- package/client/pages/outbound/packing-worksheet-list.js +10 -9
- package/client/pages/outbound/worksheet-packing.js +17 -4
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +5 -4
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/costing-report.js +1 -1
- package/helps/release-note.ko.md +7 -10
- package/helps/release-note.md +7 -10
- package/helps/release-note.ms.md +7 -10
- package/helps/release-note.zh.md +7 -10
- package/package.json +5 -6
- package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +9 -7
- package/server/graphql/resolvers/reports/costing-report.ts +1 -1
- package/translations/en.json +37 -18
- package/translations/ko.json +18 -1
- package/translations/ms.json +18 -1
- package/translations/zh.json +18 -1
|
@@ -24,7 +24,8 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
24
24
|
orderInformation: Object,
|
|
25
25
|
wsdGristConfig: Object,
|
|
26
26
|
worksheetDetailData: Object,
|
|
27
|
-
_logisticsInitiated: Boolean
|
|
27
|
+
_logisticsInitiated: Boolean,
|
|
28
|
+
_isManifested: Boolean
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -167,7 +168,10 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
167
168
|
<label>${i18next.t('label.ref_no_2')}</label>
|
|
168
169
|
<input name="refNo2" readonly />
|
|
169
170
|
|
|
170
|
-
<label>${i18next.t('label.
|
|
171
|
+
<label>${i18next.t('label.ref_no_3')}</label>
|
|
172
|
+
<input name="refNo3" readonly />
|
|
173
|
+
|
|
174
|
+
<label>${i18next.t('label.transporter')}</label>
|
|
171
175
|
<input name="shippingProvider" readonly />
|
|
172
176
|
|
|
173
177
|
<label>${i18next.t('label.tracking_no')}</label>
|
|
@@ -182,6 +186,9 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
182
186
|
key => html`<option value="${WORKSHEET_STATUS[key].value}">${WORKSHEET_STATUS[key].name}</option>`
|
|
183
187
|
)}
|
|
184
188
|
</select>
|
|
189
|
+
|
|
190
|
+
<input id="manifested" type="checkbox" name="manifested" ?checked="${this._isManifested}" disabled />
|
|
191
|
+
<label for="manifested">${i18next.t('label.manifested')}</label>
|
|
185
192
|
</fieldset>
|
|
186
193
|
</form>
|
|
187
194
|
|
|
@@ -307,12 +314,17 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
307
314
|
releaseGood {
|
|
308
315
|
name
|
|
309
316
|
description
|
|
317
|
+
transporter
|
|
318
|
+
trackingNo
|
|
310
319
|
refNo
|
|
311
320
|
refNo2
|
|
312
321
|
refNo3
|
|
313
322
|
ownTransport
|
|
314
323
|
releaseDate
|
|
315
324
|
remark
|
|
325
|
+
manifest {
|
|
326
|
+
id
|
|
327
|
+
}
|
|
316
328
|
}
|
|
317
329
|
marketplaceOrder {
|
|
318
330
|
name
|
|
@@ -401,6 +413,7 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
401
413
|
this._trackingNo = worksheet.marketplaceOrder?.trackingNo
|
|
402
414
|
this._refNo = worksheet?.releaseGood?.refNo
|
|
403
415
|
this._roNo = worksheet?.releaseGood?.name || ''
|
|
416
|
+
this._isManifested = worksheet?.releaseGood?.manifest?.id ? true : false
|
|
404
417
|
|
|
405
418
|
this._fillupForm({
|
|
406
419
|
...worksheet,
|
|
@@ -411,8 +424,8 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
411
424
|
refNo3: worksheet.releaseGood.refNo3,
|
|
412
425
|
ownCollection: worksheet.releaseGood.ownTransport,
|
|
413
426
|
releaseDate: worksheet.releaseGood.releaseDate,
|
|
414
|
-
shippingProvider: worksheet.
|
|
415
|
-
trackingNo: worksheet.
|
|
427
|
+
shippingProvider: worksheet.releaseGood?.transporter || '',
|
|
428
|
+
trackingNo: worksheet.releaseGood?.trackingNo || '',
|
|
416
429
|
remark: worksheet.releaseGood.remark || ''
|
|
417
430
|
})
|
|
418
431
|
|
|
@@ -11,9 +11,11 @@ exports.outboundOrderByStatusResolver = {
|
|
|
11
11
|
let bizplaceIds;
|
|
12
12
|
if (bizplaceId && (bizplaceId == 'ALL' || bizplaceId.match(v4))) {
|
|
13
13
|
let bizplaces = bizplaceId && bizplaceId != 'ALL' ? [bizplaceId] : await (0, biz_base_1.getPermittedBizplaceIds)(domain, user);
|
|
14
|
-
bizplaceIds = bizplaces
|
|
14
|
+
bizplaceIds = bizplaces
|
|
15
|
+
.map(bizplace => {
|
|
15
16
|
return "'" + (bizplace === null || bizplace === void 0 ? void 0 : bizplace.trim()) + "'";
|
|
16
|
-
})
|
|
17
|
+
})
|
|
18
|
+
.join(',');
|
|
17
19
|
}
|
|
18
20
|
else
|
|
19
21
|
throw new Error('invalid bizplaceId');
|
|
@@ -68,7 +70,6 @@ exports.outboundOrderByStatusResolver = {
|
|
|
68
70
|
WHERE "domain_id" = $1
|
|
69
71
|
AND rg."bizplace_id" IN (${bizplaceIds})
|
|
70
72
|
AND rg."dispatchment_status" IN ('READY_TO_DISPATCH', 'DISPATCHED')
|
|
71
|
-
AND rg."status" NOT IN ('CANCELLED','PENDING_CANCEL')
|
|
72
73
|
AND rg."tracking_no" NOTNULL
|
|
73
74
|
AND rg."type" = 'b2c'
|
|
74
75
|
) AS foo
|
|
@@ -76,7 +77,7 @@ exports.outboundOrderByStatusResolver = {
|
|
|
76
77
|
UNION ALL
|
|
77
78
|
SELECT 'AWAITING DISPATCH' AS "status", count(*) FROM manifests m
|
|
78
79
|
INNER JOIN release_goods rg ON rg.manifest_id = m.id
|
|
79
|
-
WHERE m."status" = 'OPEN'
|
|
80
|
+
WHERE m."status" = 'OPEN' or m."status" = 'IN_QUEUE'
|
|
80
81
|
AND m."domain_id" = $1
|
|
81
82
|
AND rg."bizplace_id" IN (${bizplaceIds})
|
|
82
83
|
UNION ALL
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbound-order-by-status.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/dashboard/outbound-order-by-status.ts"],"names":[],"mappings":";;;AAIA,uDAAkE;AAErD,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,qBAAqB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;;QACjE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAC7F,MAAM,UAAU,GAAW,CAAA,MAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,0CAAE,KAAK,KAAI,KAAK,CAAA;QAC3G,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,wEAAwE,CAAC,CAAA;QAC/F,IAAI,WAAmB,CAAA;QAEvB,IAAI,UAAU,IAAI,CAAC,UAAU,IAAI,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"outbound-order-by-status.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/dashboard/outbound-order-by-status.ts"],"names":[],"mappings":";;;AAIA,uDAAkE;AAErD,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,qBAAqB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;;QACjE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAC7F,MAAM,UAAU,GAAW,CAAA,MAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,0CAAE,KAAK,KAAI,KAAK,CAAA;QAC3G,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,wEAAwE,CAAC,CAAA;QAC/F,IAAI,WAAmB,CAAA;QAEvB,IAAI,UAAU,IAAI,CAAC,UAAU,IAAI,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE;YAC/D,IAAI,SAAS,GACX,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,kCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YAChG,WAAW,GAAG,SAAS;iBACpB,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACd,OAAO,GAAG,IAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAA,GAAG,GAAG,CAAA;YACrC,CAAC,CAAC;iBACD,IAAI,CAAC,GAAG,CAAC,CAAA;SACb;;YAAM,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QAE5C,MAAM,WAAW,GAAwC,MAAM,EAAE,CAAC,KAAK,CACrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAsCiC,WAAW;;;;;;;;;;;uCAWX,WAAW;;;;;;;;;;;qCAWb,WAAW;;;;oCAIZ,WAAW;;;;;;;oCAOX,WAAW;;;;;;;oCAOX,WAAW;;;;;;qCAMV,WAAW;;;;;;;;sCAQV,WAAW;;;;;;KAM5C,EACC,CAAC,MAAM,CAAC,EAAE,CAAC,CACZ,CAAA;QAED,OAAO,WAAW,CAAA;IACpB,CAAC;CACF,CAAA"}
|
|
@@ -81,7 +81,7 @@ exports.costingReport = {
|
|
|
81
81
|
WITH RECURSIVE cte_forwarded_cost as (
|
|
82
82
|
select src.domain_id, src.bizplace_id, src.product_id, src.packing_type, src.packing_size, src.uom, TO_DATE(src.created_year_month,'YYYY-MM')::timestamp as running_year_month,
|
|
83
83
|
sum(src.qty) as qty, sum(src.total_cost)/ sum(src.qty) as monthly_avg_cost,
|
|
84
|
-
coalesce(
|
|
84
|
+
coalesce(sum(src.qty)) as closing_qty from (
|
|
85
85
|
select distinct on (pallet_id)
|
|
86
86
|
ih.domain_id, ih.bizplace_id, ih.pallet_id, ih.unit_cost, (ih.unit_cost * (ih.opening_qty + ih.qty)) as total_cost, ih.status, ih.transaction_type, ih.product_id, ih.packing_type, ih.packing_size, coalesce(ih.uom, pd.uom) as uom,
|
|
87
87
|
ih.created_at, to_char(ih.created_at, 'YYYY-MM') as created_year_month,
|
package/helps/release-note.ko.md
CHANGED
|
@@ -2,29 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 4 July Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.6.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
#### Make
|
|
11
|
+
#### Make July even better with the new features and enhancements we have in store for you!
|
|
12
12
|
|
|
13
13
|
<div>
|
|
14
|
-
1.
|
|
14
|
+
1. Shorten Order Processing of Goods Arrival Notices (GAN)
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
|
-
2.
|
|
17
|
+
2. Edit Order Details of Goods Arrival Notice (GAN)
|
|
18
18
|
</div>
|
|
19
19
|
<div>
|
|
20
|
-
3.
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. SKU in Inventory Report
|
|
20
|
+
3. Enhancement of Loading Manifest
|
|
24
21
|
</div>
|
|
25
22
|
<br>
|
|
26
23
|
For additional information about the aspects of the release, see the following link
|
|
27
|
-
<a href="https://bit.ly/
|
|
24
|
+
<a href="https://bit.ly/3IexqWA">V4.6.0 Release Note</a>
|
|
28
25
|
<br>
|
|
29
26
|
|
|
30
27
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/helps/release-note.md
CHANGED
|
@@ -2,29 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 4 July Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.6.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
#### Make
|
|
11
|
+
#### Make July even better with the new features and enhancements we have in store for you!
|
|
12
12
|
|
|
13
13
|
<div>
|
|
14
|
-
1.
|
|
14
|
+
1. Shorten Order Processing of Goods Arrival Notices (GAN)
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
|
-
2.
|
|
17
|
+
2. Edit Order Details of Goods Arrival Notice (GAN)
|
|
18
18
|
</div>
|
|
19
19
|
<div>
|
|
20
|
-
3.
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. SKU in Inventory Report
|
|
20
|
+
3. Enhancement of Loading Manifest
|
|
24
21
|
</div>
|
|
25
22
|
<br>
|
|
26
23
|
For additional information about the aspects of the release, see the following link
|
|
27
|
-
<a href="https://bit.ly/
|
|
24
|
+
<a href="https://bit.ly/3IexqWA">V4.6.0 Release Note</a>
|
|
28
25
|
<br>
|
|
29
26
|
|
|
30
27
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/helps/release-note.ms.md
CHANGED
|
@@ -2,29 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 4 July Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.6.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
#### Make
|
|
11
|
+
#### Make July even better with the new features and enhancements we have in store for you!
|
|
12
12
|
|
|
13
13
|
<div>
|
|
14
|
-
1.
|
|
14
|
+
1. Shorten Order Processing of Goods Arrival Notices (GAN)
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
|
-
2.
|
|
17
|
+
2. Edit Order Details of Goods Arrival Notice (GAN)
|
|
18
18
|
</div>
|
|
19
19
|
<div>
|
|
20
|
-
3.
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. SKU in Inventory Report
|
|
20
|
+
3. Enhancement of Loading Manifest
|
|
24
21
|
</div>
|
|
25
22
|
<br>
|
|
26
23
|
For additional information about the aspects of the release, see the following link
|
|
27
|
-
<a href="https://bit.ly/
|
|
24
|
+
<a href="https://bit.ly/3IexqWA">V4.6.0 Release Note</a>
|
|
28
25
|
<br>
|
|
29
26
|
|
|
30
27
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/helps/release-note.zh.md
CHANGED
|
@@ -2,29 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 4 July Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.6.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
#### Make
|
|
11
|
+
#### Make July even better with the new features and enhancements we have in store for you!
|
|
12
12
|
|
|
13
13
|
<div>
|
|
14
|
-
1.
|
|
14
|
+
1. Shorten Order Processing of Goods Arrival Notices (GAN)
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
|
-
2.
|
|
17
|
+
2. Edit Order Details of Goods Arrival Notice (GAN)
|
|
18
18
|
</div>
|
|
19
19
|
<div>
|
|
20
|
-
3.
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. SKU in Inventory Report
|
|
20
|
+
3. Enhancement of Loading Manifest
|
|
24
21
|
</div>
|
|
25
22
|
<br>
|
|
26
23
|
For additional information about the aspects of the release, see the following link
|
|
27
|
-
<a href="https://bit.ly/
|
|
24
|
+
<a href="https://bit.ly/3IexqWA">V4.6.0 Release Note</a>
|
|
28
25
|
<br>
|
|
29
26
|
|
|
30
27
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.50",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -89,11 +89,10 @@
|
|
|
89
89
|
"@things-factory/notification": "^4.3.47",
|
|
90
90
|
"@things-factory/pdf": "^4.3.47",
|
|
91
91
|
"@things-factory/print-proxy-service": "^4.3.47",
|
|
92
|
-
"@things-factory/print-service": "^4.3.47",
|
|
93
92
|
"@things-factory/print-ui": "^4.3.47",
|
|
94
93
|
"@things-factory/product-base": "^4.3.47",
|
|
95
94
|
"@things-factory/resource-ui": "^4.3.47",
|
|
96
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.50",
|
|
97
96
|
"@things-factory/scene-data-transform": "^4.3.47",
|
|
98
97
|
"@things-factory/scene-excel": "^4.3.47",
|
|
99
98
|
"@things-factory/scene-firebase": "^4.3.47",
|
|
@@ -109,8 +108,8 @@
|
|
|
109
108
|
"@things-factory/system-ui": "^4.3.47",
|
|
110
109
|
"@things-factory/transport-base": "^4.3.47",
|
|
111
110
|
"@things-factory/tutorial-ui": "^4.3.47",
|
|
112
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
113
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.50",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.50"
|
|
114
113
|
},
|
|
115
114
|
"devDependencies": {
|
|
116
115
|
"@things-factory/builder": "^4.3.47",
|
|
@@ -119,5 +118,5 @@
|
|
|
119
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
120
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
121
120
|
},
|
|
122
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "4be34f9fc5e863e89894a44501e6194a3b74c21e"
|
|
123
122
|
}
|
|
@@ -11,11 +11,14 @@ export const outboundOrderByStatusResolver = {
|
|
|
11
11
|
const v4 = new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i)
|
|
12
12
|
let bizplaceIds: string
|
|
13
13
|
|
|
14
|
-
if (bizplaceId && (bizplaceId == 'ALL' || bizplaceId.match(v4))){
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
if (bizplaceId && (bizplaceId == 'ALL' || bizplaceId.match(v4))) {
|
|
15
|
+
let bizplaces: string[] =
|
|
16
|
+
bizplaceId && bizplaceId != 'ALL' ? [bizplaceId] : await getPermittedBizplaceIds(domain, user)
|
|
17
|
+
bizplaceIds = bizplaces
|
|
18
|
+
.map(bizplace => {
|
|
19
|
+
return "'" + bizplace?.trim() + "'"
|
|
20
|
+
})
|
|
21
|
+
.join(',')
|
|
19
22
|
} else throw new Error('invalid bizplaceId')
|
|
20
23
|
|
|
21
24
|
const orderStatus: { status: string; count: number }[] = await tx.query(
|
|
@@ -70,7 +73,6 @@ export const outboundOrderByStatusResolver = {
|
|
|
70
73
|
WHERE "domain_id" = $1
|
|
71
74
|
AND rg."bizplace_id" IN (${bizplaceIds})
|
|
72
75
|
AND rg."dispatchment_status" IN ('READY_TO_DISPATCH', 'DISPATCHED')
|
|
73
|
-
AND rg."status" NOT IN ('CANCELLED','PENDING_CANCEL')
|
|
74
76
|
AND rg."tracking_no" NOTNULL
|
|
75
77
|
AND rg."type" = 'b2c'
|
|
76
78
|
) AS foo
|
|
@@ -78,7 +80,7 @@ export const outboundOrderByStatusResolver = {
|
|
|
78
80
|
UNION ALL
|
|
79
81
|
SELECT 'AWAITING DISPATCH' AS "status", count(*) FROM manifests m
|
|
80
82
|
INNER JOIN release_goods rg ON rg.manifest_id = m.id
|
|
81
|
-
WHERE m."status" = 'OPEN'
|
|
83
|
+
WHERE m."status" = 'OPEN' or m."status" = 'IN_QUEUE'
|
|
82
84
|
AND m."domain_id" = $1
|
|
83
85
|
AND rg."bizplace_id" IN (${bizplaceIds})
|
|
84
86
|
UNION ALL
|
|
@@ -97,7 +97,7 @@ export const costingReport = {
|
|
|
97
97
|
WITH RECURSIVE cte_forwarded_cost as (
|
|
98
98
|
select src.domain_id, src.bizplace_id, src.product_id, src.packing_type, src.packing_size, src.uom, TO_DATE(src.created_year_month,'YYYY-MM')::timestamp as running_year_month,
|
|
99
99
|
sum(src.qty) as qty, sum(src.total_cost)/ sum(src.qty) as monthly_avg_cost,
|
|
100
|
-
coalesce(
|
|
100
|
+
coalesce(sum(src.qty)) as closing_qty from (
|
|
101
101
|
select distinct on (pallet_id)
|
|
102
102
|
ih.domain_id, ih.bizplace_id, ih.pallet_id, ih.unit_cost, (ih.unit_cost * (ih.opening_qty + ih.qty)) as total_cost, ih.status, ih.transaction_type, ih.product_id, ih.packing_type, ih.packing_size, coalesce(ih.uom, pd.uom) as uom,
|
|
103
103
|
ih.created_at, to_char(ih.created_at, 'YYYY-MM') as created_year_month,
|