@things-factory/operato-wms 4.3.154 → 4.3.156
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 +1 -1
- package/client/pages/bulk-operation/validate-gan-popup.js +18 -1
- package/client/pages/components/select-inventory-popup.js +2 -2
- package/client/pages/components/select-product-popup.js +35 -6
- package/client/pages/constants/adjustment-code.js +30 -0
- package/client/pages/constants/index.js +1 -0
- package/client/pages/constants/order.js +6 -4
- package/client/pages/inventory/inventory-adjustment-approval.js +67 -0
- package/client/pages/inventory/inventory-adjustment.js +106 -12
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +7 -0
- package/client/pages/order/arrival-notice/create-arrival-notice.js +38 -4
- package/client/pages/order/arrival-notice/edit-product-popup.js +4 -1
- package/client/pages/order/arrival-notice/proceed-edit-product-popup.js +5 -1
- package/client/pages/order/arrival-notice/view-product-changes-popup.js +3 -0
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +6 -7
- package/client/pages/outbound/inventory-reassign-popup.js +18 -2
- package/client/pages/outbound/packing-product.js +6 -1
- package/client/pages/outbound/picking-product.js +20 -16
- package/client/pages/outbound/worksheet-batch-picking.js +10 -1
- package/client/pages/outbound/worksheet-picking.js +10 -2
- package/client/pages/report/tote-loading-qc-report.js +56 -3
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +8 -9
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/tote-loading-qc-report.js +24 -16
- package/dist-server/graphql/resolvers/reports/tote-loading-qc-report.js.map +1 -1
- package/package.json +50 -50
- package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +8 -9
- package/server/graphql/resolvers/reports/tote-loading-qc-report.ts +23 -16
- package/translations/en.json +6 -0
- package/translations/ko.json +7 -1
- package/translations/ms.json +7 -1
- package/translations/zh.json +7 -1
|
@@ -719,7 +719,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
719
719
|
type: 'float',
|
|
720
720
|
name: 'unitPrice',
|
|
721
721
|
header: i18next.t('field.unit_price'),
|
|
722
|
-
imex: { header: i18next.t('field.unit_price'), key: 'unitPrice', width: 25, type: '
|
|
722
|
+
imex: { header: i18next.t('field.unit_price'), key: 'unitPrice', width: 25, type: 'string' },
|
|
723
723
|
record: { editable: editable },
|
|
724
724
|
sortable: true,
|
|
725
725
|
width: 80
|
|
@@ -871,6 +871,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
if (changedColumn === 'unitPrice') {
|
|
874
|
+
changeRecord.unitPrice = changeRecord.unitPrice.toFixed(2)
|
|
874
875
|
let unitPrice = changeRecord.unitPrice
|
|
875
876
|
if (typeof unitPrice === undefined || unitPrice < 0 || isNaN(unitPrice)) {
|
|
876
877
|
throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('label.unit_price') } }))
|
|
@@ -1313,6 +1314,9 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1313
1314
|
|
|
1314
1315
|
_getOrderProducts() {
|
|
1315
1316
|
return this.productGrist.dirtyData.records.map(record => {
|
|
1317
|
+
if (record.unitPrice) {
|
|
1318
|
+
record.unitPrice = parseFloat(record.unitPrice)
|
|
1319
|
+
}
|
|
1316
1320
|
let orderProduct = {
|
|
1317
1321
|
batchId: record.batchId,
|
|
1318
1322
|
batchIdRef: record?.batchIdRef ? record.batchIdRef : null,
|
|
@@ -1663,6 +1667,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1663
1667
|
brand
|
|
1664
1668
|
primaryUnit
|
|
1665
1669
|
primaryValue
|
|
1670
|
+
costPrice
|
|
1666
1671
|
}
|
|
1667
1672
|
productDetail {
|
|
1668
1673
|
id
|
|
@@ -1679,10 +1684,20 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1679
1684
|
if (!foundErrors) {
|
|
1680
1685
|
if (!response.errors) {
|
|
1681
1686
|
const data = response.data.bulkUploadValidateOrderProducts.map(item => {
|
|
1687
|
+
let unitPrice = item.unitPrice
|
|
1688
|
+
if (item.unitPrice != null) {
|
|
1689
|
+
unitPrice = item.unitPrice
|
|
1690
|
+
}
|
|
1691
|
+
if (item.unitPrice == null && item.unitPrice != 0) {
|
|
1692
|
+
unitPrice = item.product.costPrice
|
|
1693
|
+
if (item.product.costPrice == null) {
|
|
1694
|
+
unitPrice = 0
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1682
1697
|
return {
|
|
1683
1698
|
...item,
|
|
1684
1699
|
productName: item?.productName,
|
|
1685
|
-
unitPrice:
|
|
1700
|
+
unitPrice: unitPrice.toFixed(2) || 0,
|
|
1686
1701
|
packQty: parseFloat(item.packQty) || '',
|
|
1687
1702
|
palletQty: parseFloat(item.palletQty) || ''
|
|
1688
1703
|
}
|
|
@@ -1708,7 +1723,6 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1708
1723
|
async importHandler(patches) {
|
|
1709
1724
|
try {
|
|
1710
1725
|
patches.map(itm => {
|
|
1711
|
-
itm.unitPrice = parseFloat(itm.unitPrice) || ''
|
|
1712
1726
|
if (itm.manufactureDate) {
|
|
1713
1727
|
let mdt = new Date(itm.manufactureDate)
|
|
1714
1728
|
itm.manufactureDate =
|
|
@@ -1722,10 +1736,18 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1722
1736
|
})
|
|
1723
1737
|
|
|
1724
1738
|
const orderProducts = patches.map(patch => {
|
|
1739
|
+
let unitPrice = patch.unitPrice
|
|
1740
|
+
if (patch.unitPrice == null) {
|
|
1741
|
+
unitPrice = null
|
|
1742
|
+
}
|
|
1743
|
+
if (patch.unitPrice != null) {
|
|
1744
|
+
unitPrice = parseFloat(unitPrice)
|
|
1745
|
+
}
|
|
1725
1746
|
delete patch.cuFlag
|
|
1747
|
+
// delete patch.costPrice
|
|
1726
1748
|
return {
|
|
1727
1749
|
...patch,
|
|
1728
|
-
unitPrice:
|
|
1750
|
+
unitPrice: unitPrice,
|
|
1729
1751
|
uomValue: parseFloat(patch.uomValue) || 0,
|
|
1730
1752
|
packQty: parseInt(patch.packQty) || 0,
|
|
1731
1753
|
palletQty: parseInt(patch.palletQty) || 0
|
|
@@ -1749,6 +1771,18 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1749
1771
|
records = records
|
|
1750
1772
|
.filter(record => record.productSKU)
|
|
1751
1773
|
.map(record => {
|
|
1774
|
+
if (record.unitPrice) {
|
|
1775
|
+
//here
|
|
1776
|
+
record.unitPrice = parseFloat(record.unitPrice)
|
|
1777
|
+
record.unitPrice = record.unitPrice.toFixed(2)
|
|
1778
|
+
}
|
|
1779
|
+
if (!record.unitPrice && record.unitPrice != 0) {
|
|
1780
|
+
if (record.unitPrice == NaN) {
|
|
1781
|
+
record.unitPrice = NaN
|
|
1782
|
+
} else {
|
|
1783
|
+
record.unitPrice = null
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1752
1786
|
return {
|
|
1753
1787
|
...record
|
|
1754
1788
|
}
|
|
@@ -431,6 +431,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
|
|
|
431
431
|
|
|
432
432
|
if (changedColumn === 'unitPrice') {
|
|
433
433
|
let unitPrice = changeRecord.unitPrice
|
|
434
|
+
changeRecord.unitPrice = changeRecord.unitPrice.toFixed(2)
|
|
434
435
|
if (typeof unitPrice === undefined || unitPrice < 0 || isNaN(unitPrice)) {
|
|
435
436
|
throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('label.unit_price') } }))
|
|
436
437
|
}
|
|
@@ -644,6 +645,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
|
|
|
644
645
|
|
|
645
646
|
_getNewOrderProducts() {
|
|
646
647
|
return this.addProductGrist.dirtyData.records.map(record => {
|
|
648
|
+
record.unitPrice = parseFloat(record.unitPrice)
|
|
647
649
|
return {
|
|
648
650
|
batchId: `N/A`,
|
|
649
651
|
adjustedBatchId: record.batchId,
|
|
@@ -677,6 +679,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
|
|
|
677
679
|
let editedOrderProducts = []
|
|
678
680
|
if (this.editProductGrist.dirtyData.records.some(record => record.__dirty__)) {
|
|
679
681
|
this.editProductGrist.dirtyData.records.map(record => {
|
|
682
|
+
record.unitPrice = parseFloat(record.unitPrice)
|
|
680
683
|
editedOrderProducts.push({
|
|
681
684
|
id: record.id,
|
|
682
685
|
adjustedBatchId: record.batchId === record.__origin__.batchId ? null : record.batchId,
|
|
@@ -690,7 +693,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
|
|
|
690
693
|
adjustedPackQty: record.packQty == record.__origin__.packQty ? null : record.packQty,
|
|
691
694
|
adjustedTotalUomValue: record.totalUomValue == record.__origin__.totalUomValue ? null : record.totalUomValue,
|
|
692
695
|
manufactureDate: record?.manufactureDate ? record.manufactureDate : null,
|
|
693
|
-
adjustedUnitPrice: record?.unitPrice ? record.
|
|
696
|
+
adjustedUnitPrice: record?.unitPrice ? record.unitPrice : null,
|
|
694
697
|
remark: record?.remark ? record.remark : null
|
|
695
698
|
})
|
|
696
699
|
})
|
|
@@ -135,6 +135,9 @@ export class ProceedEditProductPopup extends localize(i18next)(LitElement) {
|
|
|
135
135
|
if (changedProps.has('data')) {
|
|
136
136
|
this.approvedData = {
|
|
137
137
|
...this.data,
|
|
138
|
+
records: this.data.records.map(item => {
|
|
139
|
+
item.adjustedUnitPrice = item.adjustedUnitPrice.toFixed(2)
|
|
140
|
+
}),
|
|
138
141
|
records: this.data.records.filter(
|
|
139
142
|
item => item.status === ORDER_PRODUCT_STATUS.ADDED.value || item.status === ORDER_PRODUCT_STATUS.EDITED.value
|
|
140
143
|
)
|
|
@@ -162,7 +165,8 @@ export class ProceedEditProductPopup extends localize(i18next)(LitElement) {
|
|
|
162
165
|
'adjustedTotalUomValue',
|
|
163
166
|
'batchIdRef',
|
|
164
167
|
'adjustedBatchIdRef',
|
|
165
|
-
'unitPrice'
|
|
168
|
+
'unitPrice',
|
|
169
|
+
'adjustedUnitPrice'
|
|
166
170
|
]
|
|
167
171
|
},
|
|
168
172
|
pagination: { infinite: true },
|
|
@@ -100,6 +100,9 @@ export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
|
|
|
100
100
|
if (changedProps.has('data')) {
|
|
101
101
|
this.productData = {
|
|
102
102
|
...this.data,
|
|
103
|
+
records: this.data.records.map(item => {
|
|
104
|
+
item.adjustedUnitPrice = item.adjustedUnitPrice.toFixed(2)
|
|
105
|
+
}),
|
|
103
106
|
records: this.data.records.filter(
|
|
104
107
|
item => item.status === ORDER_PRODUCT_STATUS.ADDED.value || item.status === ORDER_PRODUCT_STATUS.EDITED.value
|
|
105
108
|
)
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
2
|
import '@things-factory/biz-ui'
|
|
3
3
|
import '@things-factory/warehouse-ui'
|
|
4
|
+
import '@things-factory/import-ui'
|
|
4
5
|
|
|
5
6
|
import gql from 'graphql-tag'
|
|
6
7
|
import { css, html } from 'lit-element'
|
|
8
|
+
import isEmpty from 'lodash-es/isEmpty'
|
|
7
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
8
10
|
|
|
9
11
|
import { getCodeByName } from '@things-factory/code-base'
|
|
@@ -14,12 +16,9 @@ import { fetchSettingRule } from '@things-factory/setting-ui'
|
|
|
14
16
|
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
15
17
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
16
18
|
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
17
|
-
import isEmpty from 'lodash-es/isEmpty'
|
|
18
19
|
|
|
19
20
|
import { DRAFT_RELEASE_ORDER_STATUS, PRODUCT_GROUP_TYPES } from '../../../constants'
|
|
20
21
|
|
|
21
|
-
import '@things-factory/import-ui'
|
|
22
|
-
|
|
23
22
|
class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
24
23
|
static get properties() {
|
|
25
24
|
return {
|
|
@@ -1142,10 +1141,10 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
1142
1141
|
this._serializeForm(this._draftReleaseOrderForm).collectionOrderNo == this._draftOrderData.collectionOrderNo
|
|
1143
1142
|
// check changes in shipping form info
|
|
1144
1143
|
let checkShippingFormInfo =
|
|
1145
|
-
this._draftOrderData
|
|
1146
|
-
this._draftOrderData
|
|
1147
|
-
this._draftOrderData
|
|
1148
|
-
this._draftOrderData
|
|
1144
|
+
this._draftOrderData?.shippingOrder?.containerNo == this._shippingOrderForm.containerNo.value &&
|
|
1145
|
+
this._draftOrderData?.shippingOrder?.containerArrivalDate == this._shippingOrderForm.containerArrivalDate.value &&
|
|
1146
|
+
this._draftOrderData?.shippingOrder?.containerLeavingDate == this._shippingOrderForm.containerLeavingDate.value &&
|
|
1147
|
+
this._draftOrderData?.shippingOrder?.shipName == this._shippingOrderForm.shipName.value
|
|
1149
1148
|
// check changes in product
|
|
1150
1149
|
let checkProductDataChange = this._compareArray(
|
|
1151
1150
|
this._productGrist.dirtyData.records,
|
|
@@ -420,6 +420,12 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
|
|
|
420
420
|
name: 'batchIdRef',
|
|
421
421
|
header: i18next.t('field.batch_no_ref'),
|
|
422
422
|
width: 100
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
type: 'boolean',
|
|
426
|
+
name: 'obsolete',
|
|
427
|
+
header: i18next.t('field.obsolete'),
|
|
428
|
+
width: 60
|
|
423
429
|
}
|
|
424
430
|
]
|
|
425
431
|
}
|
|
@@ -584,6 +590,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
|
|
|
584
590
|
uom
|
|
585
591
|
uomValue
|
|
586
592
|
lockedUomValue
|
|
593
|
+
obsolete
|
|
587
594
|
product {
|
|
588
595
|
id
|
|
589
596
|
name
|
|
@@ -613,7 +620,11 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
|
|
|
613
620
|
})
|
|
614
621
|
|
|
615
622
|
if (!response.errors) {
|
|
623
|
+
let isObsolete
|
|
616
624
|
const data = response.data.orderInventories.items.map(item => {
|
|
625
|
+
if (item.inventory.obsolete) {
|
|
626
|
+
isObsolete = true
|
|
627
|
+
}
|
|
617
628
|
return {
|
|
618
629
|
...item,
|
|
619
630
|
product: item.inventory.product,
|
|
@@ -624,13 +635,18 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
|
|
|
624
635
|
remainQty: Math.round(item.inventory.qty - item.inventory.lockedQty),
|
|
625
636
|
remainUomValue: Math.round(item.inventory.uomValue - item.inventory.lockedUomValue),
|
|
626
637
|
remainUomValueWithUom: `${item.inventory.uomValue - item.inventory.lockedUomValue} ${item.inventory.uom}`,
|
|
627
|
-
notReassignable: item?.pickedQty ? true : false
|
|
638
|
+
notReassignable: item?.pickedQty && !isObsolete ? true : false
|
|
628
639
|
}
|
|
629
640
|
})
|
|
630
641
|
this.orderInventoryData = {
|
|
631
642
|
records: data
|
|
632
643
|
}
|
|
633
644
|
|
|
645
|
+
this.orderProductGrist.data.records.map(itm => {
|
|
646
|
+
if (itm.id == this._selectedOrderProduct.id) {
|
|
647
|
+
itm.obsolete = isObsolete
|
|
648
|
+
}
|
|
649
|
+
})
|
|
634
650
|
this._updateOrderInventoryConfig()
|
|
635
651
|
}
|
|
636
652
|
}
|
|
@@ -689,7 +705,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
|
|
|
689
705
|
throw new Error(i18next.t('text.available_quantity_insufficient'))
|
|
690
706
|
}
|
|
691
707
|
} else {
|
|
692
|
-
if (changeRecord.releaseQty > remainQty) {
|
|
708
|
+
if (changeRecord.releaseQty > changeRecord.remainQty) {
|
|
693
709
|
throw new Error(i18next.t('text.available_quantity_insufficient'))
|
|
694
710
|
}
|
|
695
711
|
}
|
|
@@ -472,6 +472,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
472
472
|
packingType
|
|
473
473
|
packingSize
|
|
474
474
|
gtin
|
|
475
|
+
productBarcodes {
|
|
476
|
+
gtin
|
|
477
|
+
}
|
|
475
478
|
}
|
|
476
479
|
}
|
|
477
480
|
qty
|
|
@@ -977,7 +980,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
977
980
|
//find product match with input barcode
|
|
978
981
|
const foundOrderInventory = this.data.records.find(
|
|
979
982
|
itm =>
|
|
980
|
-
itm.product.productDetails.find(detail =>
|
|
983
|
+
itm.product.productDetails.find(detail =>
|
|
984
|
+
detail.productBarcodes.find(pb => pb.gtin === this.productBarcodeInput.value.trim())
|
|
985
|
+
) != undefined
|
|
981
986
|
)
|
|
982
987
|
|
|
983
988
|
if (foundOrderInventory) {
|
|
@@ -1809,25 +1809,29 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
1811
|
if (!response.errors) {
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1812
|
+
if (!response.data.completePicking) {
|
|
1813
|
+
showToast({ message: i18next.t('text.obsolete_inventory_found_please_reassign') })
|
|
1814
|
+
} else {
|
|
1815
|
+
this.clearView()
|
|
1816
|
+
this._orderNo = ''
|
|
1817
|
+
this._bizplaceName = ''
|
|
1818
|
+
this._currentBinLocation = ''
|
|
1819
|
+
this._selectedOrderInventory = null
|
|
1820
|
+
await CustomAlert({
|
|
1821
|
+
title: i18next.t('title.picking'),
|
|
1822
|
+
text: i18next.t('text.picking_is_completed'),
|
|
1823
|
+
confirmButton: { text: i18next.t('button.confirm') }
|
|
1824
|
+
})
|
|
1822
1825
|
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1826
|
+
if (!this.orderNo) {
|
|
1827
|
+
if (this.refPickingType === PICKING_TYPES.PICKING.value) {
|
|
1828
|
+
this.releaseGoodNoInput.value = ''
|
|
1829
|
+
} else {
|
|
1830
|
+
this.taskNoInput.value = ''
|
|
1831
|
+
}
|
|
1828
1832
|
}
|
|
1833
|
+
this.updateContext()
|
|
1829
1834
|
}
|
|
1830
|
-
this.updateContext()
|
|
1831
1835
|
}
|
|
1832
1836
|
}
|
|
1833
1837
|
|
|
@@ -353,6 +353,12 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
353
353
|
name: 'releaseUomValue',
|
|
354
354
|
header: i18next.t('field.release_uom_value'),
|
|
355
355
|
width: 60
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
type: 'boolean',
|
|
359
|
+
name: 'obsolete',
|
|
360
|
+
header: i18next.t('field.obsolete'),
|
|
361
|
+
width: 60
|
|
356
362
|
}
|
|
357
363
|
]
|
|
358
364
|
}
|
|
@@ -469,7 +475,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
469
475
|
|
|
470
476
|
get activatable() {
|
|
471
477
|
if (this.productGristData?.records.every(record => record.completed)) {
|
|
472
|
-
return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value
|
|
478
|
+
return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value && !this.worksheetDetailData.obsolete
|
|
473
479
|
}
|
|
474
480
|
}
|
|
475
481
|
|
|
@@ -527,6 +533,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
527
533
|
palletId
|
|
528
534
|
cartonId
|
|
529
535
|
uom
|
|
536
|
+
obsolete
|
|
530
537
|
location {
|
|
531
538
|
name
|
|
532
539
|
description
|
|
@@ -787,6 +794,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
787
794
|
packingType
|
|
788
795
|
packingSize
|
|
789
796
|
uom
|
|
797
|
+
obsolete
|
|
790
798
|
product {
|
|
791
799
|
name
|
|
792
800
|
sku
|
|
@@ -877,6 +885,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
877
885
|
cartonId
|
|
878
886
|
batchId
|
|
879
887
|
packingType
|
|
888
|
+
obsolete
|
|
880
889
|
warehouse {
|
|
881
890
|
name
|
|
882
891
|
description
|
|
@@ -517,6 +517,12 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
517
517
|
name: 'releaseUomValueWithUom',
|
|
518
518
|
header: i18next.t('field.release_uom_value'),
|
|
519
519
|
width: 60
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
type: 'boolean',
|
|
523
|
+
name: 'obsolete',
|
|
524
|
+
header: i18next.t('field.obsolete'),
|
|
525
|
+
width: 60
|
|
520
526
|
}
|
|
521
527
|
]
|
|
522
528
|
}
|
|
@@ -698,6 +704,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
698
704
|
palletId
|
|
699
705
|
cartonId
|
|
700
706
|
uom
|
|
707
|
+
obsolete
|
|
701
708
|
location {
|
|
702
709
|
name
|
|
703
710
|
description
|
|
@@ -920,6 +927,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
920
927
|
packingType
|
|
921
928
|
packingSize
|
|
922
929
|
uom
|
|
930
|
+
obsolete
|
|
923
931
|
product {
|
|
924
932
|
sku
|
|
925
933
|
name
|
|
@@ -996,7 +1004,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
996
1004
|
batchId
|
|
997
1005
|
batchIdRef
|
|
998
1006
|
packingType
|
|
999
|
-
|
|
1007
|
+
obsolete
|
|
1000
1008
|
warehouse {
|
|
1001
1009
|
name
|
|
1002
1010
|
description
|
|
@@ -1106,7 +1114,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1106
1114
|
this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value
|
|
1107
1115
|
)
|
|
1108
1116
|
} else {
|
|
1109
|
-
return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value
|
|
1117
|
+
return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value && !this.worksheetDetailData.obsolete
|
|
1110
1118
|
}
|
|
1111
1119
|
}
|
|
1112
1120
|
}
|
|
@@ -66,6 +66,14 @@ class ToteLoadingQcReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
66
66
|
return this.searchForm.shadowRoot.querySelector('select[name=bizplace]')
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
get _fromDateInput() {
|
|
70
|
+
return this.searchForm.shadowRoot.querySelector('input[name=fromDate]')
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
get _toDateInput() {
|
|
74
|
+
return this.searchForm.shadowRoot.querySelector('input[name=toDate]')
|
|
75
|
+
}
|
|
76
|
+
|
|
69
77
|
render() {
|
|
70
78
|
return html`
|
|
71
79
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.report.fetch()}></search-form>
|
|
@@ -100,8 +108,8 @@ class ToteLoadingQcReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
100
108
|
props: { searchOper: 'eq' }
|
|
101
109
|
},
|
|
102
110
|
{
|
|
103
|
-
label: i18next.t('field.
|
|
104
|
-
name: '
|
|
111
|
+
label: i18next.t('field.from_date'),
|
|
112
|
+
name: 'fromDate',
|
|
105
113
|
type: 'date',
|
|
106
114
|
props: {
|
|
107
115
|
searchOper: 'eq',
|
|
@@ -109,8 +117,29 @@ class ToteLoadingQcReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
109
117
|
},
|
|
110
118
|
value: (() => {
|
|
111
119
|
let date = new Date()
|
|
120
|
+
date.setDate(date.getDate() - 1)
|
|
112
121
|
return date.toISOString().split('T')[0]
|
|
113
|
-
})()
|
|
122
|
+
})(),
|
|
123
|
+
handlers: { change: this._modifyDateRange.bind(this) }
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: i18next.t('field.to_date'),
|
|
127
|
+
name: 'toDate',
|
|
128
|
+
type: 'date',
|
|
129
|
+
props: {
|
|
130
|
+
searchOper: 'eq',
|
|
131
|
+
min: (() => {
|
|
132
|
+
let date = new Date()
|
|
133
|
+
date.setDate(date.getDate() - 1)
|
|
134
|
+
return date.toISOString().split('T')[0]
|
|
135
|
+
})(),
|
|
136
|
+
max: (() => {
|
|
137
|
+
var max = new Date()
|
|
138
|
+
max.setMonth(max.getMonth())
|
|
139
|
+
return max.toISOString().split('T')[0]
|
|
140
|
+
})()
|
|
141
|
+
},
|
|
142
|
+
value: new Date().toISOString().split('T')[0]
|
|
114
143
|
},
|
|
115
144
|
{
|
|
116
145
|
label: i18next.t('field.route_id'),
|
|
@@ -367,6 +396,30 @@ class ToteLoadingQcReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
367
396
|
})
|
|
368
397
|
)
|
|
369
398
|
}
|
|
399
|
+
|
|
400
|
+
_modifyDateRange(e) {
|
|
401
|
+
const fromDate = e.currentTarget.value
|
|
402
|
+
|
|
403
|
+
if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
|
|
404
|
+
|
|
405
|
+
let min = new Date(fromDate)
|
|
406
|
+
let max = new Date(fromDate)
|
|
407
|
+
max.setMonth(max.getMonth() + 1)
|
|
408
|
+
|
|
409
|
+
let today = new Date()
|
|
410
|
+
today.setHours(0, 0, 0, 0)
|
|
411
|
+
if (!Number.isNaN(new Date(min).getTime())) {
|
|
412
|
+
min = min.toISOString().split('T')[0]
|
|
413
|
+
max = max.toISOString().split('T')[0]
|
|
414
|
+
} else {
|
|
415
|
+
return
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (this._toDateInput.value > max) this._toDateInput.value = max
|
|
419
|
+
|
|
420
|
+
this._toDateInput.min = min
|
|
421
|
+
this._toDateInput.max = max
|
|
422
|
+
}
|
|
370
423
|
}
|
|
371
424
|
|
|
372
425
|
window.customElements.define('tote-loading-qc-report', ToteLoadingQcReport)
|
|
@@ -76,10 +76,10 @@ exports.outboundOrderByStatusResolver = {
|
|
|
76
76
|
GROUP BY "status"
|
|
77
77
|
UNION ALL
|
|
78
78
|
SELECT 'AWAITING DISPATCH' AS "status", count(*) FROM manifests m
|
|
79
|
-
INNER JOIN
|
|
79
|
+
INNER JOIN order_packages op ON op.manifest_id = m.id
|
|
80
80
|
WHERE m."status" in ('OPEN', 'IN_QUEUE')
|
|
81
81
|
AND m."domain_id" = $1
|
|
82
|
-
AND
|
|
82
|
+
AND op."bizplace_id" IN (${bizplaceIds})
|
|
83
83
|
UNION ALL
|
|
84
84
|
SELECT 'PICKING ASSIGNED' AS "status", count(*) FROM worksheets w
|
|
85
85
|
WHERE w."domain_id" = $1
|
|
@@ -101,13 +101,12 @@ exports.outboundOrderByStatusResolver = {
|
|
|
101
101
|
AND w."status" IN ('DEACTIVATED','EXECUTING')
|
|
102
102
|
GROUP BY w."status"
|
|
103
103
|
UNION ALL
|
|
104
|
-
SELECT 'PENDING MANIFEST CREATION' AS "status", count(*) FROM
|
|
105
|
-
WHERE
|
|
106
|
-
AND
|
|
107
|
-
AND
|
|
108
|
-
AND
|
|
109
|
-
AND
|
|
110
|
-
AND rg."updated_at" >= (CURRENT_DATE - 30)
|
|
104
|
+
SELECT 'PENDING MANIFEST CREATION' AS "status", count(*) FROM order_packages op
|
|
105
|
+
WHERE op."domain_id" = $1
|
|
106
|
+
AND op."bizplace_id" IN (${bizplaceIds})
|
|
107
|
+
AND op."status" = 'DONE'
|
|
108
|
+
AND op."manifest_id" ISNULL
|
|
109
|
+
AND op."updated_at" >= (CURRENT_DATE - 30)
|
|
111
110
|
UNION ALL
|
|
112
111
|
SELECT 'DRAFT' AS "status", count(*) FROM draft_release_goods drg
|
|
113
112
|
WHERE drg."domain_id" = $1
|
|
@@ -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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
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;;;;;;;sCAOV,WAAW;;;;;;KAM5C,EACC,CAAC,MAAM,CAAC,EAAE,CAAC,CACZ,CAAA;QAED,OAAO,WAAW,CAAA;IACpB,CAAC;CACF,CAAA"}
|
|
@@ -8,7 +8,8 @@ exports.loadingQcReport = {
|
|
|
8
8
|
try {
|
|
9
9
|
const { domain } = context.state;
|
|
10
10
|
let bizplaceFilter = params.filters.find(filter => filter.name === 'bizplace');
|
|
11
|
-
let
|
|
11
|
+
let fromDateFilter = params.filters.find(filter => filter.name === 'fromDate');
|
|
12
|
+
let toDateFilter = params.filters.find(filter => filter.name === 'toDate');
|
|
12
13
|
let routeIdFilter = params.filters.find(filter => filter.name === 'routeId');
|
|
13
14
|
let stopIdFilter = params.filters.find(filter => filter.name === 'stopId');
|
|
14
15
|
let toteIdFilter = params.filters.find(filter => filter.name === 'toteId');
|
|
@@ -30,19 +31,20 @@ exports.loadingQcReport = {
|
|
|
30
31
|
.addSelect('rg.route_id', 'routeId')
|
|
31
32
|
.addSelect('rg.stop_id', 'stopId')
|
|
32
33
|
.addSelect('rg.release_date', 'releaseDate')
|
|
33
|
-
.addSelect('oti.qty', 'orderQuantity')
|
|
34
|
+
.addSelect('case when oti.qty is null then oi.release_qty else oti.qty end', 'orderQuantity')
|
|
34
35
|
.addSelect('ot.name', 'tote')
|
|
35
36
|
.addSelect('case when ot.tote_id is null then false else true end', 'toteBox')
|
|
36
37
|
.addSelect('ots.name', 'sealId')
|
|
37
38
|
.innerJoin('worksheets', 'w', 'w.release_good_id = rg.id')
|
|
38
39
|
.innerJoin('order_inventories', 'oi', 'oi.release_good_id = rg.id')
|
|
39
40
|
.innerJoin('bizplaces', 'bizplace', 'bizplace.id = rg.bizplace_id')
|
|
40
|
-
.
|
|
41
|
-
.
|
|
42
|
-
.
|
|
41
|
+
.leftJoin('order_tote_items', 'oti', 'oti.order_inventory_id = oi.id')
|
|
42
|
+
.leftJoin('order_totes', 'ot', 'ot.id = oti.order_tote_id')
|
|
43
|
+
.leftJoin('order_tote_seals', 'ots', 'ots.order_tote_id = ot.id')
|
|
43
44
|
.where('rg.status = :status', { status: 'LOADING' })
|
|
44
45
|
.andWhere('bizplace.id = :bizplaceId', { bizplaceId: bizplaceFilter.value })
|
|
45
|
-
.andWhere('rg.release_date
|
|
46
|
+
.andWhere('rg.release_date <= :toDate', { toDate: toDateFilter.value })
|
|
47
|
+
.andWhere('rg.release_date >= :fromDate', { fromDate: fromDateFilter.value })
|
|
46
48
|
.andWhere('w.type = :type', { type: 'LOADING' })
|
|
47
49
|
.andWhere('rg.domain_id = :domainId', { domainId: domain.id });
|
|
48
50
|
orderInfoFilter
|
|
@@ -58,19 +60,25 @@ exports.loadingQcReport = {
|
|
|
58
60
|
let items = await qb.getRawMany();
|
|
59
61
|
console.timeEnd('loadingQcReport');
|
|
60
62
|
items = items.reduce((prev, curr, idx) => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
if (curr.tote) {
|
|
64
|
+
let reducedItemIndex = prev.findIndex(itm => itm.releaseGoodNo == curr.releaseGoodNo && itm.tote == curr.tote);
|
|
65
|
+
if (reducedItemIndex == -1) {
|
|
66
|
+
prev.push(curr);
|
|
67
|
+
prev[prev.length - 1].totalSeal = 1;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
prev[reducedItemIndex].orderQuantity += curr.orderQuantity;
|
|
71
|
+
if (!prev[reducedItemIndex].sealId.includes(curr.sealId)) {
|
|
72
|
+
prev[reducedItemIndex].sealId = prev[reducedItemIndex].sealId.concat(', ', curr.sealId);
|
|
73
|
+
prev[reducedItemIndex].totalSeal++;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return prev;
|
|
65
77
|
}
|
|
66
78
|
else {
|
|
67
|
-
prev
|
|
68
|
-
|
|
69
|
-
prev[reducedItemIndex].sealId = prev[reducedItemIndex].sealId.concat(', ', curr.sealId);
|
|
70
|
-
prev[reducedItemIndex].totalSeal++;
|
|
71
|
-
}
|
|
79
|
+
prev.push(curr);
|
|
80
|
+
return prev;
|
|
72
81
|
}
|
|
73
|
-
return prev;
|
|
74
82
|
}, []);
|
|
75
83
|
return items;
|
|
76
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tote-loading-qc-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/tote-loading-qc-report.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAK1E,2DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,KAAK,CAAC,eAAe,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC3D,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;YAEpD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC9E,IAAI,
|
|
1
|
+
{"version":3,"file":"tote-loading-qc-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/tote-loading-qc-report.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAK1E,2DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,KAAK,CAAC,eAAe,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC3D,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;YAEpD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC9E,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,I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