@things-factory/operato-wms 4.3.544 → 4.3.546
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/inventory/onhand-inventory.js +31 -4
- package/client/pages/order/vas-order/popup/proceed-edit-vas-popup.js +18 -8
- package/client/pages/order/vas-order/popup/vas-changes-popup.js +14 -7
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js +1 -1
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js.map +1 -1
- package/package.json +4 -4
- package/server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts +2 -2
|
@@ -252,7 +252,6 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
252
252
|
type: 'date',
|
|
253
253
|
name: 'manufactureDate',
|
|
254
254
|
header: i18next.t('field.manufacture_date'),
|
|
255
|
-
imex: { header: i18next.t('field.manufacture_date'), key: 'manufactureDate', width: 40, type: 'date' },
|
|
256
255
|
sortable: true,
|
|
257
256
|
width: 120
|
|
258
257
|
},
|
|
@@ -600,7 +599,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
600
599
|
{ header: i18next.t('field.uom'), key: 'uom', width: 15, type: 'string' },
|
|
601
600
|
{ header: i18next.t('field.location'), key: 'location_name', width: 25, type: 'string' },
|
|
602
601
|
{ header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'string' },
|
|
603
|
-
{ header: i18next.t('field.manufacture_date'), key: 'manufactureDate', width: 40, type: '
|
|
602
|
+
{ header: i18next.t('field.manufacture_date'), key: 'manufactureDate', width: 40, type: 'string' },
|
|
604
603
|
{ header: i18next.t('field.batch_no_ref'), key: 'batchIdRef', width: 50, type: 'string' },
|
|
605
604
|
{ header: i18next.t('field.volume_m3'), key: 'volume', width: 25, type: 'float' },
|
|
606
605
|
{ header: i18next.t('field.unit_cost'), key: 'unitCost', width: 25, type: 'float' },
|
|
@@ -611,13 +610,41 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
611
610
|
]
|
|
612
611
|
|
|
613
612
|
if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
|
|
614
|
-
data = this.dataGrist.selected
|
|
613
|
+
data = this.dataGrist.selected.map(item => {
|
|
614
|
+
const formatter = new Intl.DateTimeFormat(navigator.language)
|
|
615
|
+
const expirationDate = item.expirationDate
|
|
616
|
+
? formatter.format(new Date(item.expirationDate))
|
|
617
|
+
: ''
|
|
618
|
+
const manufactureDate = item.manufactureDate
|
|
619
|
+
? formatter.format(new Date(item.manufactureDate))
|
|
620
|
+
: ''
|
|
621
|
+
|
|
622
|
+
return {
|
|
623
|
+
...item,
|
|
624
|
+
expirationDate: expirationDate,
|
|
625
|
+
manufactureDate: manufactureDate
|
|
626
|
+
}
|
|
627
|
+
})
|
|
615
628
|
} else {
|
|
616
629
|
const bizplaceFilters = (await this.searchForm.getQueryFilters()).filter(x => x.name === 'bizplace')
|
|
617
630
|
if (bizplaceFilters.length == 0) {
|
|
618
631
|
throw new Error(`Please select a customer for export.`)
|
|
619
632
|
}
|
|
620
|
-
data = (await this.fetchHandler({ page: 1, limit: 9999999 })).records
|
|
633
|
+
data = (await this.fetchHandler({ page: 1, limit: 9999999 })).records.map(item => {
|
|
634
|
+
const formatter = new Intl.DateTimeFormat(navigator.language)
|
|
635
|
+
const expirationDate = item.expirationDate
|
|
636
|
+
? formatter.format(new Date(item.expirationDate))
|
|
637
|
+
: ''
|
|
638
|
+
const manufactureDate = item.manufactureDate
|
|
639
|
+
? formatter.format(new Date(item.manufactureDate))
|
|
640
|
+
: ''
|
|
641
|
+
|
|
642
|
+
return {
|
|
643
|
+
...item,
|
|
644
|
+
expirationDate: expirationDate,
|
|
645
|
+
manufactureDate: manufactureDate
|
|
646
|
+
}
|
|
647
|
+
})
|
|
621
648
|
}
|
|
622
649
|
|
|
623
650
|
return { header: headerSetting, data }
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
css,
|
|
6
|
+
html,
|
|
7
|
+
LitElement
|
|
8
|
+
} from 'lit-element'
|
|
5
9
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
10
|
+
import {
|
|
11
|
+
i18next,
|
|
12
|
+
localize
|
|
13
|
+
} from '@things-factory/i18n-base'
|
|
14
|
+
import {
|
|
15
|
+
client,
|
|
16
|
+
CustomAlert
|
|
17
|
+
} from '@things-factory/shell'
|
|
8
18
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
9
19
|
import { isMobileDevice } from '@things-factory/utils'
|
|
10
20
|
|
|
@@ -208,14 +218,14 @@ export class ProceedEditVasPopup extends localize(i18next)(LitElement) {
|
|
|
208
218
|
},
|
|
209
219
|
{
|
|
210
220
|
type: 'string',
|
|
211
|
-
name: '
|
|
212
|
-
header: i18next.t('field.
|
|
221
|
+
name: 'adjustedBatchId',
|
|
222
|
+
header: i18next.t('field.adjusted_batch_id'),
|
|
213
223
|
width: 150
|
|
214
224
|
},
|
|
215
225
|
{
|
|
216
226
|
type: 'string',
|
|
217
|
-
name: '
|
|
218
|
-
header: i18next.t('field.
|
|
227
|
+
name: 'productSKU',
|
|
228
|
+
header: i18next.t('field.sku'),
|
|
219
229
|
width: 150
|
|
220
230
|
},
|
|
221
231
|
{
|
|
@@ -320,7 +330,7 @@ export class ProceedEditVasPopup extends localize(i18next)(LitElement) {
|
|
|
320
330
|
},
|
|
321
331
|
{
|
|
322
332
|
type: 'string',
|
|
323
|
-
name: '
|
|
333
|
+
name: 'adjustedNewSku',
|
|
324
334
|
header: i18next.t('field.adjusted_new_sku'),
|
|
325
335
|
width: 200
|
|
326
336
|
},
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
css,
|
|
5
|
+
html,
|
|
6
|
+
LitElement
|
|
7
|
+
} from 'lit-element'
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
i18next,
|
|
11
|
+
localize
|
|
12
|
+
} from '@things-factory/i18n-base'
|
|
5
13
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
6
14
|
import { isMobileDevice } from '@things-factory/utils'
|
|
7
|
-
import { ORDER_VAS_STATUS } from '../../../constants'
|
|
8
15
|
|
|
9
16
|
export class VasChangesPopup extends localize(i18next)(LitElement) {
|
|
10
17
|
static get styles() {
|
|
@@ -163,14 +170,14 @@ export class VasChangesPopup extends localize(i18next)(LitElement) {
|
|
|
163
170
|
},
|
|
164
171
|
{
|
|
165
172
|
type: 'string',
|
|
166
|
-
name: '
|
|
167
|
-
header: i18next.t('field.
|
|
173
|
+
name: 'adjustedBatchId',
|
|
174
|
+
header: i18next.t('field.adjusted_batch_id'),
|
|
168
175
|
width: 150
|
|
169
176
|
},
|
|
170
177
|
{
|
|
171
178
|
type: 'string',
|
|
172
|
-
name: '
|
|
173
|
-
header: i18next.t('field.
|
|
179
|
+
name: 'productSKU',
|
|
180
|
+
header: i18next.t('field.sku'),
|
|
174
181
|
width: 150
|
|
175
182
|
},
|
|
176
183
|
{
|
|
@@ -56,7 +56,7 @@ exports.warehouseInventoryAdjustment = {
|
|
|
56
56
|
status: 'EXECUTING'
|
|
57
57
|
}, { status: 'DEACTIVATED' });
|
|
58
58
|
for (const invChange of _inventoryChanges) {
|
|
59
|
-
(0, integration_base_1.webhookHandler)(invChange, invChange.inventory.bizplace, integration_base_1.
|
|
59
|
+
(0, integration_base_1.webhookHandler)(invChange, invChange.inventory.bizplace, integration_base_1.WebhookEventsEnum.InventoryAdjusted);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
return item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-intentory-adjustment.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts"],"names":[],"mappings":";;;AACA,mEAAyF;AACzF,qCAAyC;AACzC,2DAAwE;AACxE,mEAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"warehouse-intentory-adjustment.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts"],"names":[],"mappings":";;;AACA,mEAAyF;AACzF,qCAAyC;AACzC,2DAAwE;AACxE,mEAA2E;AAC3E,uEAAmF;AAEtE,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,4BAA4B,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;QAClE,IAAI;YACF,MAAM,IAAI,GAAG,MAAM,IAAA,wCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAE5D,2BAA2B;YAC3B,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,MAAM,iBAAiB,GAAQ,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAe,CAAC,CAAC,IAAI,CAAC;gBAC1E,KAAK,EAAE,EAAE,EAAE,EAAE,IAAA,YAAE,EAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE;gBAC/C,SAAS,EAAE;oBACT,WAAW;oBACX,oBAAoB;oBACpB,2BAA2B;oBAC3B,mBAAmB;oBACnB,oBAAoB;oBACpB,qBAAqB;oBACrB,UAAU;oBACV,iBAAiB;oBACjB,kBAAkB;oBAClB,yBAAyB;oBACzB,SAAS;oBACT,wBAAwB;oBACxB,2CAA2C;oBAC3C,UAAU;iBACX;gBACD,KAAK,EAAE;oBACL,SAAS,EAAE,KAAK;iBACjB;aACF,CAAC,CAAA;YAEF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAChC,MAAM,KAAK,GAAU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,iBAAiB,EAAE;oBACzC,IAAA,iCAAc,EAAC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,oCAAiB,CAAC,iBAAiB,CAAC,CAAA;iBAC7F;aACF;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
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.546",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.535",
|
|
92
92
|
"@things-factory/product-base": "^4.3.535",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.535",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.546",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.534",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.534",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.534",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.535",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.535",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.544",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.546"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.534",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "c4bbae287b5f38f125b5c9f0337ac30ffafac94c"
|
|
121
121
|
}
|
package/server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InventoryChange, approveInventoryChanges } from '@things-factory/wareho
|
|
|
3
3
|
import { In, Not, IsNull } from 'typeorm'
|
|
4
4
|
import { OrderInventory, ReleaseGood } from '@things-factory/sales-base'
|
|
5
5
|
import { WorksheetDetail, Worksheet } from '@things-factory/worksheet-base'
|
|
6
|
-
import { webhookHandler,
|
|
6
|
+
import { webhookHandler,WebhookEventsEnum } from '@things-factory/integration-base'
|
|
7
7
|
|
|
8
8
|
export const warehouseInventoryAdjustment = {
|
|
9
9
|
async warehouseInventoryAdjustment(_: any, { patches }, context: any) {
|
|
@@ -73,7 +73,7 @@ export const warehouseInventoryAdjustment = {
|
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
for (const invChange of _inventoryChanges) {
|
|
76
|
-
webhookHandler(invChange, invChange.inventory.bizplace,
|
|
76
|
+
webhookHandler(invChange, invChange.inventory.bizplace, WebhookEventsEnum.InventoryAdjusted)
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return item
|