@things-factory/operato-wms 4.3.156 → 4.3.159

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.
@@ -411,7 +411,7 @@ class BulkOperation extends localize(i18next)(PageView) {
411
411
  uom: raw.uom && raw.uom != '' ? String(raw.uom) : null,
412
412
  packQty: parseInt(raw.packQty || 0),
413
413
  palletQty: parseInt(raw.palletQty || 0),
414
- unitPrice: raw.unitPrice,
414
+ unitPrice: Number(raw.unitPrice || 0),
415
415
  manufactureDate: this._getStdDateStr(mfgDate),
416
416
  etaDate: this._getStdDateStr(etaDate)
417
417
  }
@@ -263,11 +263,6 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
263
263
 
264
264
  async _getValidatedArrivalNoticeItems(rawArrivalNotices, bizplaceId) {
265
265
  try {
266
- rawArrivalNotices.map(raw => {
267
- if (raw.unitPrice) {
268
- raw.unitPrice = parseFloat(raw.unitPrice)
269
- }
270
- })
271
266
  const response = await client.query({
272
267
  query: gql`
273
268
  query validateBulkArrivalNotices($rawArrivalNotices: [NewArrivalNotice!], $bizplaceId: String!) {
@@ -304,21 +299,9 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
304
299
  `,
305
300
  variables: { rawArrivalNotices, bizplaceId }
306
301
  })
302
+
307
303
  if (!response.errors) {
308
304
  this.records = response.data.validateBulkArrivalNotices
309
- this.records.map(record => {
310
- if (record.unitPrice) {
311
- record.unitPrice = record.unitPrice.toFixed(2)
312
- }
313
- if (record.unitPrice < 0) {
314
- if (record.unitPrice == -1) {
315
- record.unitPrice = 'negative value'
316
- }
317
- if (record.unitPrice == -2) {
318
- record.unitPrice = 'not a number'
319
- }
320
- }
321
- })
322
305
  }
323
306
  } catch (e) {
324
307
  console.error(e)
@@ -480,7 +480,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
480
480
  if (data?.length > 0) {
481
481
  filters.push({
482
482
  name: 'id',
483
- value: data.map(record => record?.inventory?.id),
483
+ value: data.map(record => record.inventory.id),
484
484
  operator: 'notin'
485
485
  })
486
486
  }
@@ -525,7 +525,7 @@ class SelectInventoryPopUp extends localize(i18next)(LitElement) {
525
525
  response.data.inventoriesByPallet.items.map(item => {
526
526
  return {
527
527
  ...item,
528
- location: item?.location?.name
528
+ location: item.location.name
529
529
  }
530
530
  }) || []
531
531
  }
@@ -1,16 +1,9 @@
1
1
  import '@things-factory/grist-ui'
2
2
 
3
3
  import gql from 'graphql-tag'
4
- import {
5
- css,
6
- html,
7
- LitElement
8
- } from 'lit-element'
4
+ import { css, html, LitElement } from 'lit-element'
9
5
 
10
- import {
11
- i18next,
12
- localize
13
- } from '@things-factory/i18n-base'
6
+ import { i18next, localize } from '@things-factory/i18n-base'
14
7
  import { client } from '@things-factory/shell'
15
8
  import { ScrollbarStyles } from '@things-factory/styles'
16
9
  import { isMobileDevice } from '@things-factory/utils'
@@ -190,12 +183,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
190
183
  name: 'uomValue',
191
184
  header: i18next.t('field.uom_value'),
192
185
  width: 120
193
- },
194
- {
195
- type: 'float',
196
- name: 'costPrice',
197
- header: i18next.t('field.unit_cost'),
198
- width: 120
199
186
  }
200
187
  ]
201
188
  }
@@ -221,7 +208,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
221
208
  packingSize
222
209
  uom
223
210
  uomValue
224
- costPrice
225
211
  product {
226
212
  id
227
213
  name
@@ -229,7 +215,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
229
215
  brand
230
216
  description
231
217
  type
232
- costPrice
233
218
  }
234
219
  }
235
220
  total
@@ -244,13 +229,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
244
229
  total: response.data.productDetails.total || 0,
245
230
  records:
246
231
  response.data.productDetails.items.map(item => {
247
- if (item.costPrice) {
248
- item.costPrice = item.costPrice.toFixed(2)
249
- }
250
- if (item.costPrice == 0 || item.costPrice == null) {
251
- item.costPrice = 0
252
- item.costPrice == item.costPrice.toFixed(2)
253
- }
254
232
  return {
255
233
  ...item,
256
234
  productName: item.product.name,
@@ -258,8 +236,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
258
236
  sku: item.product.sku,
259
237
  brand: item.product.brand,
260
238
  name: item.name,
261
- description: item.product.description,
262
- costPrice: parseFloat(item.costPrice).toFixed(2)
239
+ description: item.product.description
263
240
  }
264
241
  }) || []
265
242
  }
@@ -278,7 +255,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
278
255
  productName: `${record.name}(${record.description}(${record.sku}))`,
279
256
  isError: false,
280
257
  productBrand: record.brand,
281
- unitPrice: parseFloat(record.costPrice).toFixed(2),
282
258
  product: {
283
259
  id: record.productId,
284
260
  name: record.name,
@@ -286,8 +262,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
286
262
  packingType: record.packingType,
287
263
  packingSize: record.packingSize,
288
264
  primaryUnit: record.uom,
289
- primaryValue: record.uomValue,
290
- costPrice: parseFloat(record.costPrice).toFixed(2)
265
+ primaryValue: record.uomValue
291
266
  }
292
267
  }
293
268
  })
@@ -309,7 +284,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
309
284
  productName: `${selectedProduct.name}(${selectedProduct.description}(${selectedProduct.sku}))`,
310
285
  isError: false,
311
286
  productBrand: selectedProduct.brand,
312
- unitPrice: parseFloat(selectedProduct.costPrice).toFixed(2),
313
287
  product: {
314
288
  id: selectedProduct.productId,
315
289
  name: selectedProduct.name,
@@ -317,8 +291,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
317
291
  packingType: selectedProduct.packingType,
318
292
  packingSize: selectedProduct.packingSize,
319
293
  primaryUnit: selectedProduct.uom,
320
- primaryValue: selectedProduct.uomValue,
321
- costPrice: parseFloat(selectedProduct.costPrice).toFixed(2)
294
+ primaryValue: selectedProduct.uomValue
322
295
  }
323
296
  }
324
297
  })
@@ -340,7 +313,6 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
340
313
  uomValue: itm.uomValue,
341
314
  productName: `${itm.name}(${itm.description}(${itm.sku}))`,
342
315
  isError: false,
343
- unitPrice: parseFloat(itm.costPrice).toFixed(2),
344
316
  productBrand: itm.brand,
345
317
  product: {
346
318
  id: itm.productId,
@@ -349,8 +321,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
349
321
  packingType: itm.packingType,
350
322
  packingSize: itm.packingSize,
351
323
  primaryUnit: itm.uom,
352
- primaryValue: itm.uomValue,
353
- costPrice: parseFloat(itm.costPrice).costPrice
324
+ primaryValue: itm.uomValue
354
325
  }
355
326
  }
356
327
  })
@@ -17,4 +17,3 @@ export * from './pallet'
17
17
  export * from './platform'
18
18
  export * from './group-type'
19
19
  export * from './tote'
20
- export * from './adjustment-code'
@@ -48,8 +48,8 @@ export const ORDER_STATUS = {
48
48
  INTRANSIT: { name: 'order_status_intransit', value: 'INTRANSIT' },
49
49
  ARRIVED: { name: 'order_status_arrived', value: 'ARRIVED' },
50
50
  RECEIVED: { name: 'order_status_received', value: 'RECEIVED' },
51
- READY_TO_UNLOAD: { name: 'order_status_ready_to_unload', value: 'READY_TO_UNLOAD' },
52
- PUTTING_AWAY: { name: 'order_status_putting_away', value: 'PUTTING_AWAY' },
51
+ READY_TO_UNLOAD: { name: 'ready_to_unload', value: 'READY_TO_UNLOAD' },
52
+ PUTTING_AWAY: { name: 'putting_away', value: 'PUTTING_AWAY' },
53
53
  PROCESSING: { name: 'order_status_processing', value: 'PROCESSING' },
54
54
  DONE: { name: 'order_status_done', value: 'DONE' },
55
55
  COLLECTING: { name: 'order_status_collecting', value: 'COLLECTING' },
@@ -64,8 +64,7 @@ export const ORDER_STATUS = {
64
64
  LOADING: { name: 'order_status_loading', value: 'LOADING' },
65
65
  READY_TO_DISPATCH: { name: 'order_status_ready_to_dispatch', value: 'READY_TO_DISPATCH' },
66
66
  READY_TO_EXECUTE: { name: 'order_status_ready_to_execute', value: 'READY_TO_EXECUTE' },
67
- READY_TO_SEND: { name: 'order_status_ready_to_send', value: 'READY_TO_SEND' },
68
- OBSOLETE: { name: 'order_status_obsolete', value: 'OBSOLETE' }
67
+ READY_TO_SEND: { name: 'order_status_ready_to_send', value: 'READY_TO_SEND' }
69
68
  }
70
69
 
71
70
  export const MANIFEST_STATUS = {
@@ -124,8 +123,7 @@ export const ORDER_INVENTORY_STATUS = {
124
123
  TERMINATED: { name: 'inventory_status_terminated', value: 'TERMINATED' },
125
124
  DONE: { name: 'inventory_status_done', value: 'DONE' },
126
125
  CANCELLED: { name: 'inventory_status_cancelled', value: 'CANCELLED' },
127
- PENDING_CANCEL: { name: 'inventory_status_pending_cancel', value: 'PENDING_CANCEL' },
128
- OBSOLETE: { name: 'inventory_status_obsolete', value: 'OBSOLETE' }
126
+ PENDING_CANCEL: { name: 'inventory_status_pending_cancel', value: 'PENDING_CANCEL' }
129
127
  }
130
128
 
131
129
  export const ORDER_VAS_STATUS = {
@@ -121,14 +121,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
121
121
  return this.shadowRoot.querySelector('search-form')
122
122
  }
123
123
 
124
- get _fromDateInput() {
125
- return this.searchForm.shadowRoot.querySelector('input[name=fromDate]')
126
- }
127
-
128
- get _toDateInput() {
129
- return this.searchForm.shadowRoot.querySelector('input[name=toDate]')
130
- }
131
-
132
124
  async pageInitialized() {
133
125
  this._selectedInventoryChange = null
134
126
  this._lockedPallet = []
@@ -141,7 +133,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
141
133
  { column: 'packingType', name: 'Packing Type' },
142
134
  { column: 'packingSize', name: 'Packing Size' },
143
135
  { column: 'bizplace', name: 'Customer' },
144
- { column: 'sku', name: 'SKU' },
145
136
  { column: 'product', name: 'Product' },
146
137
  { column: 'location', name: 'Location' },
147
138
  { column: 'qty', name: 'Quantity' },
@@ -150,8 +141,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
150
141
  { column: 'expirationDate', name: 'Exp. Date' },
151
142
  { column: 'manufactureDate', name: 'Mfg. Date' },
152
143
  { column: 'unitCost', name: 'Unit Cost' },
153
- { column: 'adjustmentCode', name: 'Adjustment Code' },
154
- { column: 'adjustmentNote', name: 'Note' },
155
144
  { column: 'inventoryItemChange', name: 'Inventory Item Changes' },
156
145
  { column: 'status', name: 'Status' }
157
146
  ]
@@ -193,8 +182,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
193
182
  break
194
183
  }
195
184
 
196
- compareData.sku = compareData?.product?.sku
197
-
198
185
  if (compareData == null) {
199
186
  this._compareColumn.map(item => {
200
187
  if (record[item.column]) {
@@ -374,38 +361,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
374
361
  })
375
362
  ],
376
363
  props: { searchOper: 'eq' }
377
- },
378
- {
379
- label: i18next.t('field.from_date'),
380
- name: 'fromDate',
381
- type: 'date',
382
- props: {
383
- searchOper: 'eq',
384
- max: new Date().toISOString().split('T')[0]
385
- },
386
- attrs: ['custom'],
387
- value: (() => {
388
- let date = new Date()
389
- date.setMonth(date.getMonth() - 1)
390
- return date.toISOString().split('T')[0]
391
- })(),
392
- handlers: { change: this._modifyDateRange.bind(this) }
393
- },
394
- {
395
- label: i18next.t('field.to_date'),
396
- name: 'toDate',
397
- type: 'date',
398
- props: {
399
- searchOper: 'eq',
400
- min: (() => {
401
- let date = new Date()
402
- date.setMonth(date.getMonth() - 1)
403
- return date.toISOString().split('T')[0]
404
- })(),
405
- max: new Date().toISOString().split('T')[0]
406
- },
407
- attrs: ['custom'],
408
- value: new Date().toISOString().split('T')[0]
409
364
  }
410
365
  ]
411
366
  }
@@ -438,9 +393,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
438
393
  expirationDate
439
394
  manufactureDate
440
395
  unitCost
441
- adjustmentCode
442
- adjustmentNote
443
- sku
444
396
  bizplace {
445
397
  id
446
398
  name
@@ -449,7 +401,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
449
401
  product {
450
402
  id
451
403
  name
452
- sku
453
404
  description
454
405
  type
455
406
  }
@@ -473,7 +424,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
473
424
  product {
474
425
  id
475
426
  name
476
- sku
477
427
  description
478
428
  type
479
429
  }
@@ -488,8 +438,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
488
438
  expirationDate
489
439
  manufactureDate
490
440
  unitCost
491
- adjustmentCode
492
- adjustmentNote
493
441
  }
494
442
  lastInventoryHistory {
495
443
  batchId
@@ -504,7 +452,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
504
452
  }
505
453
  product {
506
454
  id
507
- sku
508
455
  name
509
456
  description
510
457
  type
@@ -584,20 +531,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
584
531
  }
585
532
  }
586
533
 
587
- _modifyDateRange(e) {
588
- const fromDate = e.currentTarget.value
589
-
590
- if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
591
-
592
- let min = new Date(fromDate)
593
- let today = new Date()
594
- today.setHours(0, 0, 0, 0)
595
-
596
- min = min.toISOString().split('T')[0]
597
-
598
- this._toDateInput.min = min
599
- }
600
-
601
534
  async _fetchPartners() {
602
535
  const response = await client.query({
603
536
  query: gql`
@@ -10,6 +10,7 @@ import { css, html } from 'lit-element'
10
10
  import { connect } from 'pwa-helpers/connect-mixin'
11
11
 
12
12
  import { DirectPrinter } from '@things-factory/barcode-base'
13
+ import { getCodeByName } from '@things-factory/code-base'
13
14
  import { i18next, localize } from '@things-factory/i18n-base'
14
15
  import { openPopup } from '@things-factory/layout-base'
15
16
  import { client, CustomAlert, PageView, store } from '@things-factory/shell'
@@ -17,12 +18,8 @@ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
17
18
  import { isMobileDevice } from '@things-factory/utils'
18
19
 
19
20
  import { fetchPageSettings } from '../../util/index'
20
- import {
21
- ADJUSTMENT_CODE,
22
- CARTON_LABEL_SETTING_KEY,
23
- INVENTORY_ITEM_CHANGE_TYPE,
24
- PALLET_LABEL_SETTING_KEY
25
- } from '../constants'
21
+
22
+ import { CARTON_LABEL_SETTING_KEY, INVENTORY_ITEM_CHANGE_TYPE, PALLET_LABEL_SETTING_KEY } from '../constants'
26
23
 
27
24
  class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
28
25
  static get styles() {
@@ -326,7 +323,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
326
323
  { name: 'packingType', header: i18next.t('field.packing_type'), width: 200 },
327
324
  { name: 'packingSize', header: i18next.t('field.packing_size'), width: 150 },
328
325
  { name: 'uom', header: i18next.t('field.uom'), width: 150 },
329
- { name: 'costPrice', header: i18next.t('field.unit_cost'), width: 150 },
330
326
  {
331
327
  name: 'isRequireSerialNumberScanningInbound',
332
328
  header: i18next.t('field.require_serial_number_scanning_inbound'),
@@ -483,13 +479,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
483
479
  sortable: true,
484
480
  width: 120
485
481
  },
486
- {
487
- type: 'boolean',
488
- name: 'obsolete',
489
- header: i18next.t('field.obsolete'),
490
- record: { editable: false },
491
- width: 80
492
- },
493
482
  {
494
483
  type: 'date',
495
484
  name: 'expirationDate',
@@ -541,42 +530,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
541
530
  },
542
531
  width: 80
543
532
  },
544
- {
545
- type: 'select',
546
- name: 'adjustmentCode',
547
- header: i18next.t('field.adjustment_code'),
548
- record: {
549
- editable: true,
550
- options: [
551
- '',
552
- ...Object.values(ADJUSTMENT_CODE)
553
- .map(ac => ac.value)
554
- .sort()
555
- ]
556
- },
557
- imex: {
558
- header: i18next.t('field.adjustment_code'),
559
- key: 'adjustmentCode',
560
- width: 30,
561
- type: 'array',
562
- arrData: Object.values(ADJUSTMENT_CODE).map(ac => {
563
- return {
564
- name: ac.name
565
- }
566
- })
567
- },
568
- sortable: true,
569
- width: 200
570
- },
571
- {
572
- type: 'string',
573
- name: 'adjustmentNote',
574
- header: i18next.t('field.adjustment_note'),
575
- imex: { header: i18next.t('field.adjustment_note'), key: 'adjustmentNote', width: 30, type: 'string' },
576
- record: { editable: true },
577
- sortable: true,
578
- width: 200
579
- },
580
533
  {
581
534
  type: 'datetime',
582
535
  name: 'updatedAt',
@@ -621,7 +574,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
621
574
  uomValue
622
575
  manufactureDate
623
576
  serialNumbers
624
- obsolete
625
577
  bizplace {
626
578
  id
627
579
  name
@@ -639,11 +591,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
639
591
  type
640
592
  isRequireSerialNumberScanningOutbound
641
593
  isRequireSerialNumberScanningInbound
642
- costPrice
643
594
  }
644
595
  productDetail {
645
596
  id
646
- costPrice
647
597
  }
648
598
  qty
649
599
  lockedQty
@@ -672,8 +622,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
672
622
  orderProductRemark
673
623
  arrivalNoticeRefNo
674
624
  arrivalNoticeNo
675
- adjustmentCode
676
- adjustmentNote
677
625
  }
678
626
  total
679
627
  }
@@ -701,10 +649,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
701
649
  expirationDate
702
650
  manufactureDate
703
651
  unitCost
704
- adjustmentCode
705
- adjustmentNote
706
652
  serialNumbers
707
- obsolete
708
653
  bizplace {
709
654
  id
710
655
  name
@@ -717,11 +662,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
717
662
  name
718
663
  description
719
664
  productInformation
720
- costPrice
721
665
  }
722
666
  productDetail {
723
667
  id
724
- costPrice
725
668
  }
726
669
  qty
727
670
  lockedQty
@@ -758,7 +701,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
758
701
  ...item,
759
702
  sku: item.product.sku,
760
703
  brand: item.product.brand,
761
- unitPrice: parseFloat(item.product.unitPrice).toFixed(2),
762
704
  lockedQty: item.lockedQty || 0,
763
705
  remainQty: item.qty - (item.lockedQty || 0)
764
706
  }
@@ -820,7 +762,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
820
762
 
821
763
  switch (e.detail.column.name) {
822
764
  case 'batchId':
823
- if (e.detail.after == '' || e.detail.after == null || e.detail.after.toString() == NaN.toString()) {
765
+ if(e.detail.after == '' || e.detail.after == null || e.detail.after.toString() == NaN.toString()){
824
766
  item._data.records[e.detail.row].batchId = e.detail.before
825
767
  this.showToast({ level: 'error', message: i18next.t('text.invalid_batch_no') })
826
768
  }
@@ -860,32 +802,13 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
860
802
  this.showToast({ message: i18next.t('text.invalid_manufacture_date') })
861
803
  }
862
804
  break
863
- case 'adjustmentCode':
864
- if (e.detail.after == '' || e.detail.after == null || e.detail.after.toString() == NaN.toString()) {
865
- item._data.records[e.detail.row].adjustmentCode = e.detail.before
866
- this.showToast({ level: 'error', message: i18next.t('text.invalid_adjustment_code') })
867
- }
868
- break
869
- case 'adjustmentNote':
870
- if (e.detail.after == '' || e.detail.after == null || e.detail.after.toString() == NaN.toString()) {
871
- item._data.records[e.detail.row].adjustmentNote = e.detail.before
872
- this.showToast({ level: 'error', message: i18next.t('text.invalid_adjustment_note') })
873
- }
874
- break
875
805
  case 'product':
876
806
  item._data.records[e.detail.row].uom = e.detail.after?.uom ? e.detail.after.uom : ''
877
807
  item._data.records[e.detail.row].packingType = e.detail.after?.packingType ? e.detail.after.packingType : ''
878
808
  item._data.records[e.detail.row].packingSize = e.detail.after?.packingSize ? e.detail.after.packingSize : 1
879
809
  item._data.records[e.detail.row].brand = e.detail.after?.brand ? e.detail.after.brand : ''
880
810
  item._data.records[e.detail.row].sku = e.detail.after?.sku ? e.detail.after.sku : ''
881
-
882
- if (e.detail.before == undefined) {
883
- item._data.records[e.detail.row].unitCost = e.detail.after?.costPrice ? e.detail.after.costPrice : undefined
884
- } else {
885
- item._data.records[e.detail.row].unitCost
886
- }
887
811
  break
888
-
889
812
  case 'bizplace':
890
813
  item._data.records[e.detail.row].uom = ''
891
814
  item._data.records[e.detail.row].packingType = ''
@@ -963,7 +886,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
963
886
  delete row.productUomValue
964
887
  delete row.inventoryItemCount
965
888
 
966
- if (new Date(row.expirationDate) < new Date()) {
889
+ if (new Date(row.expirationDate) < new Date()){
967
890
  throw new Error(i18next.t('text.invalid_expiration_date'))
968
891
  }
969
892
 
@@ -975,8 +898,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
975
898
  !row.batchId ||
976
899
  !row.qty ||
977
900
  !row.uomValue ||
978
- !row.adjustmentCode ||
979
- !row.adjustmentNote ||
980
901
  !row.uom ||
981
902
  row?.uom.trim() == ''
982
903
  ) {
@@ -990,9 +911,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
990
911
  (row.hasOwnProperty('uom') && row.uom?.trim() == '') ||
991
912
  (row.hasOwnProperty('packingType') && row.packingType?.trim() == '') ||
992
913
  (row.hasOwnProperty('unitCost') && (row.unitCost == null || row.unitCost < 0)) ||
993
- (row.hasOwnProperty('packingSize') && (row.packingSize == null || row.packingSize < 0)) ||
994
- (row.hasOwnProperty('adjustmentCode') && row.adjustmentCode?.trim() == '') ||
995
- (row.hasOwnProperty('adjustmentNote') && row.adjustmentNote?.trim() == '')
914
+ (row.hasOwnProperty('packingSize') && (row.packingSize == null || row.packingSize < 0))
996
915
  ) {
997
916
  throw new Error(i18next.t('text.empty_value_in_list'))
998
917
  }
@@ -1013,7 +932,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
1013
932
  return row
1014
933
  })
1015
934
 
1016
- if (patches.length == 0) {
935
+ if (patches.length == 0){
1017
936
  this.showToast({ message: i18next.t('text.nothing_updated') })
1018
937
  }
1019
938
 
@@ -1074,17 +993,11 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
1074
993
  if (new Date(itm?.manufactureDate) > new Date()) {
1075
994
  throw new Error(i18next.t('text.invalid_manufacture_date'))
1076
995
  }
1077
- if (itm.expirationDate != null) {
1078
- if (new Date(itm.expirationDate) < new Date()) {
1079
- throw new Error(i18next.t('text.invalid_expiration_date'))
996
+ if (itm.expirationDate != null){
997
+ if (new Date(itm.expirationDate) < new Date()){
998
+ throw new Error(i18next.t('text.invalid_expiration_date'))
1080
999
  }
1081
1000
  }
1082
- if (itm?.adjustmentCode?.trim() == '') {
1083
- throw new Error(i18next.t('text.invalid_adjustment_code'))
1084
- }
1085
- if (itm?.adjustmentNote?.trim() == '') {
1086
- throw new Error(i18next.t('text.invalid_adjustment_note'))
1087
- }
1088
1001
 
1089
1002
  if (itm.cuFlag == '+') {
1090
1003
  if (
@@ -1095,9 +1008,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
1095
1008
  !itm.qty ||
1096
1009
  !itm.uomValue ||
1097
1010
  !itm.uom ||
1098
- !itm.packingType ||
1099
- !itm.adjustmentCode ||
1100
- !itm.adjustmentNote
1011
+ !itm.packingType
1101
1012
  ) {
1102
1013
  throw new Error(i18next.t('text.empty_value_in_list'))
1103
1014
  }
@@ -1116,12 +1027,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
1116
1027
  itm.qty = parseInt(itm.qty)
1117
1028
  itm.packingSize = parseFloat(itm.packingSize)
1118
1029
  itm.uomValue = parseFloat(itm.uomValue)
1119
- if (itm.unitCost == null && itm.unitCost != 0) {
1120
- itm.unitCost = null
1121
- }
1122
- if (itm.unitCost != null) {
1123
- itm.unitCost = parseFloat(itm.unitCost.toFixed(2))
1124
- }
1030
+ itm.unitCost = parseFloat(itm.unitCost)
1125
1031
 
1126
1032
  //if user repic location after import
1127
1033
  if (itm.location.zone || itm.location.row || itm.location.column) {
@@ -188,12 +188,6 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
188
188
  action: () => history.back(),
189
189
  ...CommonButtonStyles.back
190
190
  }
191
- //uncomment this for testing only
192
- // {
193
- // title: i18next.t('button.inspect_changes'),
194
- // action: this.openApproveProductPopup.bind(this),
195
- // ...CommonButtonStyles.approve
196
- // }
197
191
  ]
198
192
 
199
193
  if (this._status === ORDER_STATUS.PENDING.value) {
@@ -1022,7 +1016,6 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1022
1016
  this.setProductGristConfig()
1023
1017
  this.productData = {
1024
1018
  records: orderProducts.map(record => {
1025
- record.unitPrice = record.unitPrice.toFixed(2)
1026
1019
  return {
1027
1020
  ...record,
1028
1021
  productSku: record.product.sku,
@@ -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: 'string' },
722
+ imex: { header: i18next.t('field.unit_price'), key: 'unitPrice', width: 25, type: 'float' },
723
723
  record: { editable: editable },
724
724
  sortable: true,
725
725
  width: 80
@@ -871,7 +871,6 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
871
871
  }
872
872
 
873
873
  if (changedColumn === 'unitPrice') {
874
- changeRecord.unitPrice = changeRecord.unitPrice.toFixed(2)
875
874
  let unitPrice = changeRecord.unitPrice
876
875
  if (typeof unitPrice === undefined || unitPrice < 0 || isNaN(unitPrice)) {
877
876
  throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('label.unit_price') } }))
@@ -1314,9 +1313,6 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1314
1313
 
1315
1314
  _getOrderProducts() {
1316
1315
  return this.productGrist.dirtyData.records.map(record => {
1317
- if (record.unitPrice) {
1318
- record.unitPrice = parseFloat(record.unitPrice)
1319
- }
1320
1316
  let orderProduct = {
1321
1317
  batchId: record.batchId,
1322
1318
  batchIdRef: record?.batchIdRef ? record.batchIdRef : null,
@@ -1667,7 +1663,6 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1667
1663
  brand
1668
1664
  primaryUnit
1669
1665
  primaryValue
1670
- costPrice
1671
1666
  }
1672
1667
  productDetail {
1673
1668
  id
@@ -1684,20 +1679,10 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1684
1679
  if (!foundErrors) {
1685
1680
  if (!response.errors) {
1686
1681
  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
- }
1697
1682
  return {
1698
1683
  ...item,
1699
1684
  productName: item?.productName,
1700
- unitPrice: unitPrice.toFixed(2) || 0,
1685
+ unitPrice: parseFloat(item.unitPrice) || '',
1701
1686
  packQty: parseFloat(item.packQty) || '',
1702
1687
  palletQty: parseFloat(item.palletQty) || ''
1703
1688
  }
@@ -1723,6 +1708,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1723
1708
  async importHandler(patches) {
1724
1709
  try {
1725
1710
  patches.map(itm => {
1711
+ itm.unitPrice = parseFloat(itm.unitPrice) || ''
1726
1712
  if (itm.manufactureDate) {
1727
1713
  let mdt = new Date(itm.manufactureDate)
1728
1714
  itm.manufactureDate =
@@ -1736,18 +1722,10 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1736
1722
  })
1737
1723
 
1738
1724
  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
- }
1746
1725
  delete patch.cuFlag
1747
- // delete patch.costPrice
1748
1726
  return {
1749
1727
  ...patch,
1750
- unitPrice: unitPrice,
1728
+ unitPrice: parseFloat(patch.unitPrice) || 0,
1751
1729
  uomValue: parseFloat(patch.uomValue) || 0,
1752
1730
  packQty: parseInt(patch.packQty) || 0,
1753
1731
  palletQty: parseInt(patch.palletQty) || 0
@@ -1771,18 +1749,6 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1771
1749
  records = records
1772
1750
  .filter(record => record.productSKU)
1773
1751
  .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
- }
1786
1752
  return {
1787
1753
  ...record
1788
1754
  }
@@ -431,7 +431,6 @@ 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)
435
434
  if (typeof unitPrice === undefined || unitPrice < 0 || isNaN(unitPrice)) {
436
435
  throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('label.unit_price') } }))
437
436
  }
@@ -645,7 +644,6 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
645
644
 
646
645
  _getNewOrderProducts() {
647
646
  return this.addProductGrist.dirtyData.records.map(record => {
648
- record.unitPrice = parseFloat(record.unitPrice)
649
647
  return {
650
648
  batchId: `N/A`,
651
649
  adjustedBatchId: record.batchId,
@@ -679,7 +677,6 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
679
677
  let editedOrderProducts = []
680
678
  if (this.editProductGrist.dirtyData.records.some(record => record.__dirty__)) {
681
679
  this.editProductGrist.dirtyData.records.map(record => {
682
- record.unitPrice = parseFloat(record.unitPrice)
683
680
  editedOrderProducts.push({
684
681
  id: record.id,
685
682
  adjustedBatchId: record.batchId === record.__origin__.batchId ? null : record.batchId,
@@ -693,7 +690,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
693
690
  adjustedPackQty: record.packQty == record.__origin__.packQty ? null : record.packQty,
694
691
  adjustedTotalUomValue: record.totalUomValue == record.__origin__.totalUomValue ? null : record.totalUomValue,
695
692
  manufactureDate: record?.manufactureDate ? record.manufactureDate : null,
696
- adjustedUnitPrice: record?.unitPrice ? record.unitPrice : null,
693
+ adjustedUnitPrice: record?.unitPrice ? record.__origin__.unitPrice : null,
697
694
  remark: record?.remark ? record.remark : null
698
695
  })
699
696
  })
@@ -135,9 +135,6 @@ 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
- }),
141
138
  records: this.data.records.filter(
142
139
  item => item.status === ORDER_PRODUCT_STATUS.ADDED.value || item.status === ORDER_PRODUCT_STATUS.EDITED.value
143
140
  )
@@ -165,8 +162,7 @@ export class ProceedEditProductPopup extends localize(i18next)(LitElement) {
165
162
  'adjustedTotalUomValue',
166
163
  'batchIdRef',
167
164
  'adjustedBatchIdRef',
168
- 'unitPrice',
169
- 'adjustedUnitPrice'
165
+ 'unitPrice'
170
166
  ]
171
167
  },
172
168
  pagination: { infinite: true },
@@ -100,9 +100,6 @@ 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
- }),
106
103
  records: this.data.records.filter(
107
104
  item => item.status === ORDER_PRODUCT_STATUS.ADDED.value || item.status === ORDER_PRODUCT_STATUS.EDITED.value
108
105
  )
@@ -420,12 +420,6 @@ 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
429
423
  }
430
424
  ]
431
425
  }
@@ -590,7 +584,6 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
590
584
  uom
591
585
  uomValue
592
586
  lockedUomValue
593
- obsolete
594
587
  product {
595
588
  id
596
589
  name
@@ -620,11 +613,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
620
613
  })
621
614
 
622
615
  if (!response.errors) {
623
- let isObsolete
624
616
  const data = response.data.orderInventories.items.map(item => {
625
- if (item.inventory.obsolete) {
626
- isObsolete = true
627
- }
628
617
  return {
629
618
  ...item,
630
619
  product: item.inventory.product,
@@ -635,18 +624,13 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
635
624
  remainQty: Math.round(item.inventory.qty - item.inventory.lockedQty),
636
625
  remainUomValue: Math.round(item.inventory.uomValue - item.inventory.lockedUomValue),
637
626
  remainUomValueWithUom: `${item.inventory.uomValue - item.inventory.lockedUomValue} ${item.inventory.uom}`,
638
- notReassignable: item?.pickedQty && !isObsolete ? true : false
627
+ notReassignable: item?.pickedQty ? true : false
639
628
  }
640
629
  })
641
630
  this.orderInventoryData = {
642
631
  records: data
643
632
  }
644
633
 
645
- this.orderProductGrist.data.records.map(itm => {
646
- if (itm.id == this._selectedOrderProduct.id) {
647
- itm.obsolete = isObsolete
648
- }
649
- })
650
634
  this._updateOrderInventoryConfig()
651
635
  }
652
636
  }
@@ -705,7 +689,7 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
705
689
  throw new Error(i18next.t('text.available_quantity_insufficient'))
706
690
  }
707
691
  } else {
708
- if (changeRecord.releaseQty > changeRecord.remainQty) {
692
+ if (changeRecord.releaseQty > remainQty) {
709
693
  throw new Error(i18next.t('text.available_quantity_insufficient'))
710
694
  }
711
695
  }
@@ -1809,29 +1809,25 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1809
1809
  }
1810
1810
 
1811
1811
  if (!response.errors) {
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
- })
1812
+ this.clearView()
1813
+ this._orderNo = ''
1814
+ this._bizplaceName = ''
1815
+ this._currentBinLocation = ''
1816
+ this._selectedOrderInventory = null
1817
+ await CustomAlert({
1818
+ title: i18next.t('title.picking'),
1819
+ text: i18next.t('text.picking_is_completed'),
1820
+ confirmButton: { text: i18next.t('button.confirm') }
1821
+ })
1825
1822
 
1826
- if (!this.orderNo) {
1827
- if (this.refPickingType === PICKING_TYPES.PICKING.value) {
1828
- this.releaseGoodNoInput.value = ''
1829
- } else {
1830
- this.taskNoInput.value = ''
1831
- }
1823
+ if (!this.orderNo) {
1824
+ if (this.refPickingType === PICKING_TYPES.PICKING.value) {
1825
+ this.releaseGoodNoInput.value = ''
1826
+ } else {
1827
+ this.taskNoInput.value = ''
1832
1828
  }
1833
- this.updateContext()
1834
1829
  }
1830
+ this.updateContext()
1835
1831
  }
1836
1832
  }
1837
1833
 
@@ -353,12 +353,6 @@ 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
362
356
  }
363
357
  ]
364
358
  }
@@ -475,7 +469,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
475
469
 
476
470
  get activatable() {
477
471
  if (this.productGristData?.records.every(record => record.completed)) {
478
- return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value && !this.worksheetDetailData.obsolete
472
+ return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value
479
473
  }
480
474
  }
481
475
 
@@ -533,7 +527,6 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
533
527
  palletId
534
528
  cartonId
535
529
  uom
536
- obsolete
537
530
  location {
538
531
  name
539
532
  description
@@ -794,7 +787,6 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
794
787
  packingType
795
788
  packingSize
796
789
  uom
797
- obsolete
798
790
  product {
799
791
  name
800
792
  sku
@@ -885,7 +877,6 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
885
877
  cartonId
886
878
  batchId
887
879
  packingType
888
- obsolete
889
880
  warehouse {
890
881
  name
891
882
  description
@@ -517,12 +517,6 @@ 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
526
520
  }
527
521
  ]
528
522
  }
@@ -704,7 +698,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
704
698
  palletId
705
699
  cartonId
706
700
  uom
707
- obsolete
708
701
  location {
709
702
  name
710
703
  description
@@ -927,7 +920,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
927
920
  packingType
928
921
  packingSize
929
922
  uom
930
- obsolete
931
923
  product {
932
924
  sku
933
925
  name
@@ -1004,7 +996,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
1004
996
  batchId
1005
997
  batchIdRef
1006
998
  packingType
1007
- obsolete
999
+
1008
1000
  warehouse {
1009
1001
  name
1010
1002
  description
@@ -1114,7 +1106,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
1114
1106
  this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value
1115
1107
  )
1116
1108
  } else {
1117
- return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value && !this.worksheetDetailData.obsolete
1109
+ return this._worksheetStatus === WORKSHEET_STATUS.DEACTIVATED.value
1118
1110
  }
1119
1111
  }
1120
1112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.156",
3
+ "version": "4.3.159",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -62,60 +62,60 @@
62
62
  "@operato/scene-tab": "^0.1.8",
63
63
  "@operato/scene-table": "^0.1.8",
64
64
  "@operato/scene-wheel-sorter": "^0.1.8",
65
- "@things-factory/apptool-ui": "^4.3.156",
66
- "@things-factory/attachment-ui": "^4.3.156",
67
- "@things-factory/auth-ui": "^4.3.156",
68
- "@things-factory/barcode-ui": "^4.3.156",
69
- "@things-factory/biz-ui": "^4.3.156",
70
- "@things-factory/board-service": "^4.3.156",
71
- "@things-factory/board-ui": "^4.3.156",
72
- "@things-factory/code-ui": "^4.3.156",
73
- "@things-factory/context-ui": "^4.3.156",
74
- "@things-factory/export-ui": "^4.3.156",
75
- "@things-factory/export-ui-csv": "^4.3.156",
76
- "@things-factory/export-ui-excel": "^4.3.156",
77
- "@things-factory/fav-base": "^4.3.156",
78
- "@things-factory/form-ui": "^4.3.156",
79
- "@things-factory/geography": "^4.3.156",
80
- "@things-factory/grist-ui": "^4.3.156",
81
- "@things-factory/help": "^4.3.156",
82
- "@things-factory/i18n-base": "^4.3.156",
83
- "@things-factory/id-rule-base": "^4.3.156",
84
- "@things-factory/import-ui": "^4.3.156",
85
- "@things-factory/import-ui-excel": "^4.3.156",
86
- "@things-factory/menu-ui": "^4.3.156",
87
- "@things-factory/more-ui": "^4.3.156",
88
- "@things-factory/notification": "^4.3.156",
89
- "@things-factory/pdf": "^4.3.156",
90
- "@things-factory/print-proxy-service": "^4.3.156",
91
- "@things-factory/print-ui": "^4.3.156",
92
- "@things-factory/product-base": "^4.3.156",
93
- "@things-factory/resource-ui": "^4.3.156",
94
- "@things-factory/sales-ui": "^4.3.156",
95
- "@things-factory/scene-data-transform": "^4.3.156",
96
- "@things-factory/scene-excel": "^4.3.156",
97
- "@things-factory/scene-firebase": "^4.3.156",
98
- "@things-factory/scene-form": "^4.3.156",
99
- "@things-factory/scene-google-map": "^4.3.156",
100
- "@things-factory/scene-graphql": "^4.3.156",
101
- "@things-factory/scene-label": "^4.3.156",
102
- "@things-factory/scene-marker": "^4.3.156",
103
- "@things-factory/scene-mqtt": "^4.3.156",
104
- "@things-factory/scene-restful": "^4.3.156",
105
- "@things-factory/scene-visualizer": "^4.3.156",
106
- "@things-factory/setting-ui": "^4.3.156",
107
- "@things-factory/system-ui": "^4.3.156",
108
- "@things-factory/transport-base": "^4.3.156",
109
- "@things-factory/tutorial-ui": "^4.3.156",
110
- "@things-factory/warehouse-base": "^4.3.156",
111
- "@things-factory/worksheet-base": "^4.3.156"
65
+ "@things-factory/apptool-ui": "^4.3.159",
66
+ "@things-factory/attachment-ui": "^4.3.159",
67
+ "@things-factory/auth-ui": "^4.3.159",
68
+ "@things-factory/barcode-ui": "^4.3.159",
69
+ "@things-factory/biz-ui": "^4.3.159",
70
+ "@things-factory/board-service": "^4.3.159",
71
+ "@things-factory/board-ui": "^4.3.159",
72
+ "@things-factory/code-ui": "^4.3.159",
73
+ "@things-factory/context-ui": "^4.3.159",
74
+ "@things-factory/export-ui": "^4.3.159",
75
+ "@things-factory/export-ui-csv": "^4.3.159",
76
+ "@things-factory/export-ui-excel": "^4.3.159",
77
+ "@things-factory/fav-base": "^4.3.159",
78
+ "@things-factory/form-ui": "^4.3.159",
79
+ "@things-factory/geography": "^4.3.159",
80
+ "@things-factory/grist-ui": "^4.3.159",
81
+ "@things-factory/help": "^4.3.159",
82
+ "@things-factory/i18n-base": "^4.3.159",
83
+ "@things-factory/id-rule-base": "^4.3.159",
84
+ "@things-factory/import-ui": "^4.3.159",
85
+ "@things-factory/import-ui-excel": "^4.3.159",
86
+ "@things-factory/menu-ui": "^4.3.159",
87
+ "@things-factory/more-ui": "^4.3.159",
88
+ "@things-factory/notification": "^4.3.159",
89
+ "@things-factory/pdf": "^4.3.159",
90
+ "@things-factory/print-proxy-service": "^4.3.159",
91
+ "@things-factory/print-ui": "^4.3.159",
92
+ "@things-factory/product-base": "^4.3.159",
93
+ "@things-factory/resource-ui": "^4.3.159",
94
+ "@things-factory/sales-ui": "^4.3.159",
95
+ "@things-factory/scene-data-transform": "^4.3.159",
96
+ "@things-factory/scene-excel": "^4.3.159",
97
+ "@things-factory/scene-firebase": "^4.3.159",
98
+ "@things-factory/scene-form": "^4.3.159",
99
+ "@things-factory/scene-google-map": "^4.3.159",
100
+ "@things-factory/scene-graphql": "^4.3.159",
101
+ "@things-factory/scene-label": "^4.3.159",
102
+ "@things-factory/scene-marker": "^4.3.159",
103
+ "@things-factory/scene-mqtt": "^4.3.159",
104
+ "@things-factory/scene-restful": "^4.3.159",
105
+ "@things-factory/scene-visualizer": "^4.3.159",
106
+ "@things-factory/setting-ui": "^4.3.159",
107
+ "@things-factory/system-ui": "^4.3.159",
108
+ "@things-factory/transport-base": "^4.3.159",
109
+ "@things-factory/tutorial-ui": "^4.3.159",
110
+ "@things-factory/warehouse-base": "^4.3.159",
111
+ "@things-factory/worksheet-base": "^4.3.159"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/builder": "^4.3.156",
114
+ "@things-factory/builder": "^4.3.159",
115
115
  "cypress": "^9.4.1",
116
116
  "cypress-file-upload": "^5.0.8",
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "cbdf5546969663ba03bb1f4f10666599aa6d00bc"
120
+ "gitHead": "4ef9913b22e5b7baee27d9057fb04c707f7f49ec"
121
121
  }
@@ -141,8 +141,6 @@
141
141
  "field.adjusted_uom": "adjusted uom",
142
142
  "field.adjusted_volume": "adjusted volume",
143
143
  "field.adjusted": "adjusted",
144
- "field.adjustment_code": "adjustment code",
145
- "field.adjustment_note": "adjustment note",
146
144
  "field.after": "after",
147
145
  "field.amount": "amount",
148
146
  "field.arrival_notice": "arrival notice",
@@ -377,7 +375,6 @@
377
375
  "field.number_of_depth": "number of depth",
378
376
  "field.number_of_row": "number of row",
379
377
  "field.number_of_shelf": "number of shelf",
380
- "field.obsolete": "obsolete",
381
378
  "field.onhand_inventory_quantity": "onhand inventory quantity",
382
379
  "field.opening_balance": "opening balance",
383
380
  "field.opening_qty": "opening qty",
@@ -1277,8 +1274,6 @@
1277
1274
  "text.inspected_uom value_is_empty": "inspected uom value is empty",
1278
1275
  "text.inspection_is_completed": "inspection is completed",
1279
1276
  "text.insufficient_stock": "insufficient stock",
1280
- "text.invalid_adjustment_code": "invalid adjustment code",
1281
- "text.invalid_adjustment_note": "invalid adjustment note",
1282
1277
  "text.invalid_carton_id": "invalid carton id",
1283
1278
  "text.invalid_data_in_list": "invalid data in list ",
1284
1279
  "text.invalid_form_value": "invalid form value",
@@ -1364,7 +1359,6 @@
1364
1359
  "text.not_found_in_putaway_list": "not found in putaway list",
1365
1360
  "text.now_using_normal_pallet": "now using normal pallet",
1366
1361
  "text.now_using_reusable_pallet": "now using reusable pallet",
1367
- "text.obsolete_inventory_found_please_reassign": "obsolete inventory found, please reassign",
1368
1362
  "text.offline": "offline",
1369
1363
  "text.online": "online",
1370
1364
  "text.only_supports_search_of_single_field": "only supports search of single field",
@@ -166,8 +166,6 @@
166
166
  "field.adjusted_uom": "[ko]adjusted uom",
167
167
  "field.adjusted_volume": "[ko] adjusted volume",
168
168
  "field.adjusted": "[ko] adjusted",
169
- "field.adjustment_code": "[ko] adjustment code",
170
- "field.adjustment_note": "[ko] adjustment note",
171
169
  "field.after": "이후",
172
170
  "field.amount": "양",
173
171
  "field.arrival_notice": "입고 통지",
@@ -1276,8 +1274,6 @@
1276
1274
  "text.inspected_uom value_is_empty": "검수 측량치가 빈값 입니다",
1277
1275
  "text.inspection_is_completed": "검수가 완료 되었습니다",
1278
1276
  "text.insufficient_stock": "[ko]insufficient stock",
1279
- "text.invalid_adjustment_code": "[ko] invalid adjustment code",
1280
- "text.invalid_adjustment_note": "[ko] invalid adjustment note",
1281
1277
  "text.invalid_batch_no": "유효하지 않은 배치 번호",
1282
1278
  "text.invalid_carton_id": "[ko]invalid carton id",
1283
1279
  "text.invalid_form_value": "유효하지 않은 폼 입력 값",
@@ -2090,7 +2086,5 @@
2090
2086
  "field.seal_id": "[ko] seal id",
2091
2087
  "field.order_quantity": "[ko] order quantity",
2092
2088
  "field.tote_box": "[ko] tote box",
2093
- "field.total_seal": "[ko] total seal",
2094
- "field.obsolete": "[ko] obsolete",
2095
- "text.obsolete_inventory_found_please_reassign": "[ko] obsolete inventory found, please reassign"
2089
+ "field.total_seal": "[ko] total seal"
2096
2090
  }
@@ -162,8 +162,6 @@
162
162
  "field.adjusted_uom": "[ms]adjusted uom",
163
163
  "field.adjusted_volume": "[ms] adjusted volume",
164
164
  "field.adjusted": "[ms] adjusted",
165
- "field.adjustment_code": "[ms] adjustment code",
166
- "field.adjustment_note": "[ms] adjustment note",
167
165
  "field.after": "after",
168
166
  "field.amount": "jumlah",
169
167
  "field.arrival_notice": "notis ketibaan",
@@ -1241,8 +1239,6 @@
1241
1239
  "text.inspected_uom value_is_empty": "inspected uom value is empty",
1242
1240
  "text.inspection_is_completed": "inspection is completed",
1243
1241
  "text.insufficient_stock": "[ms]insufficient stock",
1244
- "text.invalid_adjustment_code": "[ms] invalid adjustment code",
1245
- "text.invalid_adjustment_note": "[ms] invalid adjustment note",
1246
1242
  "text.invalid_batch_no": "invalid batch no",
1247
1243
  "text.invalid_carton_id": "[ms]invalid carton id",
1248
1244
  "text.invalid_form_value": "nilai dalam borang tidak sah",
@@ -1963,7 +1959,5 @@
1963
1959
  "field.seal_id": "[ms] seal id",
1964
1960
  "field.order_quantity": "[ms] order quantity",
1965
1961
  "field.tote_box": "[ms] tote box",
1966
- "field.total_seal": "[ms] total seal",
1967
- "field.obsolete": "[ms] obsolete",
1968
- "text.obsolete_inventory_found_please_reassign": "[ms] obsolete inventory found, please reassign"
1962
+ "field.total_seal": "[ms] total seal"
1969
1963
  }
@@ -159,8 +159,6 @@
159
159
  "field.adjusted_uom": "[zh]adjusted uom",
160
160
  "field.adjusted_volume": "[zh] adjusted volume",
161
161
  "field.adjusted": "[zh] adjusted",
162
- "field.adjustment_code": "[zh] adjustment code",
163
- "field.adjustment_note": "[zh] adjustment note",
164
162
  "field.after": "after",
165
163
  "field.amount": "amount",
166
164
  "field.arrival_notice": "arrival notice",
@@ -1208,8 +1206,6 @@
1208
1206
  "text.inspected_uom value_is_empty": "inspected uom value is empty",
1209
1207
  "text.inspection_is_completed": "inspection is completed",
1210
1208
  "text.insufficient_stock": "[zh]insufficient stock",
1211
- "text.invalid_adjustment_code": "[zh] invalid adjustment code",
1212
- "text.invalid_adjustment_note": "[zh] invalid adjustment note",
1213
1209
  "text.invalid_batch_no": "invalid batch no",
1214
1210
  "text.invalid_carton_id": "[zh]invalid carton id",
1215
1211
  "text.invalid_form_value": "invalid form value",
@@ -1913,7 +1909,5 @@
1913
1909
  "field.seal_id": "[zh] seal id",
1914
1910
  "field.order_quantity": "[zh] order quantity",
1915
1911
  "field.tote_box": "[zh] tote box",
1916
- "field.total_seal": "[zh] total seal",
1917
- "field.obsolete": "[zh] obsolete",
1918
- "text.obsolete_inventory_found_please_reassign": "[zh] obsolete inventory found, please reassign"
1912
+ "field.total_seal": "[zh] total seal"
1919
1913
  }
@@ -1,30 +0,0 @@
1
- export const ADJUSTMENT_CODE = {
2
- AC01: {
3
- name: 'AC-01: LOST INVENTORY',
4
- value: 'AC-01: LOST INVENTORY'
5
- },
6
- AC02: {
7
- name: 'AC-02: DAMAGE',
8
- value: 'AC-02: DAMAGE'
9
- },
10
- AC03: {
11
- name: 'AC-03: SHELF LIFE',
12
- value: 'AC-03: SHELF LIFE'
13
- },
14
- AC04: {
15
- name: 'AC-04: STOCK NUMBER CHANGE',
16
- value: 'AC-04: STOCK NUMBER CHANGE'
17
- },
18
- AC05: {
19
- name: 'AC-05: OWNERSHIP CHANGE',
20
- value: 'AC-05: OWNERSHIP CHANGE'
21
- },
22
- AC06: {
23
- name: 'AC-06: TRANSFER',
24
- value: 'AC-06: TRANSFER'
25
- },
26
- AC07: {
27
- name: 'AC-07: OTHERS',
28
- value: 'AC-07: OTHERS'
29
- }
30
- }