@things-factory/operato-wms 4.3.637 → 4.3.639
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/adjustment/transfer-inventory.js +7 -12
- package/client/pages/bulk-operation/bulk-operation.js +24 -22
- package/client/pages/bulk-operation/validate-b2c-ro-popup.js +14 -4
- package/client/pages/bulk-operation/validate-gan-popup.js +26 -11
- package/client/pages/bulk-operation/validate-ro-popup.js +16 -6
- package/client/pages/components/list-view/product-list-view.js +1 -1
- package/client/pages/components/select-inventory-popup.js +1 -5
- package/client/pages/components/select-product-popup.js +4 -9
- package/client/pages/inbound/putaway/putaway-product.js +92 -70
- package/client/pages/inbound/putaway/putaway-replenishment-same-product-popup.js +10 -3
- package/client/pages/inbound/putaway/putaway-same-carton-popup.js +1 -1
- package/client/pages/inbound/putaway/putaway-worksheet-generate-popup.js +1 -1
- package/client/pages/inbound/putaway/undo-putaway-popup.js +19 -16
- package/client/pages/inbound/putaway/worksheet-putaway-return.js +1 -1
- package/client/pages/inbound/putaway/worksheet-putaway.js +3 -3
- package/client/pages/inbound/undo-unload-popup.js +1 -1
- package/client/pages/inbound/unload-product.js +33 -37
- package/client/pages/inbound/unloaded-inventories-popup.js +1 -1
- package/client/pages/inbound/worksheet-unloading-return.js +1 -1
- package/client/pages/inbound/worksheet-unloading.js +2 -2
- package/client/pages/inventory/inventory-adjustment.js +5 -20
- package/client/pages/inventory/inventory-by-product.js +43 -43
- package/client/pages/inventory/onhand-inventory.js +2 -2
- package/client/pages/inventory-check/add-extra-inventory-popup.js +2 -10
- package/client/pages/inventory-check/cycle-count-recheck-popup.js +2 -2
- package/client/pages/inventory-check/cycle-count-report.js +19 -14
- package/client/pages/inventory-check/inspecting-product.js +2 -14
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +27 -23
- package/client/pages/order/arrival-notice/assign-buffer-location.js +2 -2
- package/client/pages/order/arrival-notice/check-arrived-notice.js +2 -2
- package/client/pages/order/arrival-notice/create-arrival-notice.js +29 -33
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +8 -8
- package/client/pages/order/arrival-notice/edit-product-popup.js +27 -29
- package/client/pages/order/arrival-notice/proceed-edit-product-popup.js +3 -3
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +1 -1
- package/client/pages/order/arrival-notice/rejected-arrival-notice.js +1 -1
- package/client/pages/order/arrival-notice/view-product-changes-popup.js +3 -3
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +2 -2
- package/client/pages/order/release-order/b2c/b2c-release-order-detail.js +91 -92
- package/client/pages/order/release-order/b2c/create-b2c-release-order.js +56 -61
- package/client/pages/order/release-order/create-release-order.js +55 -64
- package/client/pages/order/release-order/receive-release-order-request.js +1 -1
- package/client/pages/order/release-order/rejected-release-order.js +2 -2
- package/client/pages/order/release-order/release-extra-product-popup.js +7 -11
- package/client/pages/order/release-order/release-order-detail.js +116 -158
- package/client/pages/order/return-order/create-return-order.js +3 -16
- package/client/pages/order/return-order/return-order-inventory-popup.js +1 -2
- package/client/pages/outbound/inventory-assign-popup.js +2 -2
- package/client/pages/outbound/inventory-auto-assign-popup.js +1 -1
- package/client/pages/outbound/inventory-reassign-popup.js +6 -6
- package/client/pages/outbound/loading-product.js +3 -3
- package/client/pages/outbound/loading-v2/load-by-qty.js +2 -2
- package/client/pages/outbound/loading-v2/loading-execution-base.js +4 -4
- package/client/pages/outbound/packing-product.js +26 -7
- package/client/pages/outbound/picking-product.js +16 -36
- package/client/pages/outbound/picking-replacement-popup.js +4 -4
- package/client/pages/outbound/picking-v2/picking-execution-base.js +4 -8
- package/client/pages/outbound/sorting-product.js +7 -5
- package/client/pages/outbound/worksheet-batch-picking.js +43 -30
- package/client/pages/outbound/worksheet-loading.js +2 -2
- package/client/pages/outbound/worksheet-packing.js +1 -1
- package/client/pages/outbound/worksheet-picking.js +19 -23
- package/client/pages/outbound/worksheet-return.js +1 -1
- package/client/pages/outbound/worksheet-sorting.js +23 -12
- package/client/pages/outbound/worksheet-zone-picking.js +3 -3
- package/client/pages/report/replenishment-report.js +14 -5
- package/client/pages/report/volume-summary-report.js +6 -6
- package/dist-server/graphql/resolvers/other/add-release-good-products.js +9 -3
- package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
- package/dist-server/graphql/resolvers/outbound/complete-load.js +15 -3
- package/dist-server/graphql/resolvers/outbound/complete-load.js.map +1 -1
- package/dist-server/graphql/resolvers/outbound/sort-item.js +1 -1
- package/dist-server/graphql/resolvers/outbound/sort-item.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js +1 -2
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js +7 -18
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js.map +1 -1
- package/dist-server/graphql/types/outbound/index.js +1 -1
- package/dist-server/graphql/types/reports/cycle-count-report.js +1 -1
- package/dist-server/graphql/types/reports/inbound-order-details-report.js +1 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js +2 -2
- package/dist-server/graphql/types/zone-worksheet/index.js +1 -1
- package/package.json +16 -16
- package/server/graphql/resolvers/other/add-release-good-products.ts +9 -2
- package/server/graphql/resolvers/outbound/complete-load.ts +27 -10
- package/server/graphql/resolvers/outbound/sort-item.ts +1 -1
- package/server/graphql/resolvers/reports/cycle-count-report.ts +1 -2
- package/server/graphql/resolvers/zone-worksheet/zone-picking.ts +8 -20
- package/server/graphql/types/outbound/index.ts +1 -1
- package/server/graphql/types/reports/cycle-count-report.ts +1 -1
- package/server/graphql/types/reports/inbound-order-details-report.ts +1 -1
- package/server/graphql/types/reports/outbound-order-details-report.ts +2 -2
- package/server/graphql/types/zone-worksheet/index.ts +1 -1
- package/translations/en.json +259 -265
- package/translations/ko.json +0 -1
- package/translations/ms.json +1463 -1580
- package/translations/zh.json +2150 -2354
|
@@ -401,7 +401,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
401
401
|
width: 150
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
|
-
type: '
|
|
404
|
+
type: 'number',
|
|
405
405
|
name: 'qty',
|
|
406
406
|
header: i18next.t('field.qty'),
|
|
407
407
|
record: { editable: true },
|
|
@@ -415,7 +415,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
415
415
|
width: 80
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
|
-
type: '
|
|
418
|
+
type: 'integer',
|
|
419
419
|
name: 'transferQty',
|
|
420
420
|
header: i18next.t('field.transfer_qty'),
|
|
421
421
|
sortable: true,
|
|
@@ -423,7 +423,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
423
423
|
header: i18next.t('field.transfer_qty'),
|
|
424
424
|
key: 'transferQty',
|
|
425
425
|
width: 10,
|
|
426
|
-
type: '
|
|
426
|
+
type: 'integer'
|
|
427
427
|
},
|
|
428
428
|
width: 80
|
|
429
429
|
},
|
|
@@ -694,7 +694,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
694
694
|
type
|
|
695
695
|
isRequireSerialNumberScanningOutbound
|
|
696
696
|
isRequireSerialNumberScanningInbound
|
|
697
|
-
isInventoryDecimal
|
|
698
697
|
costPrice
|
|
699
698
|
}
|
|
700
699
|
productDetail {
|
|
@@ -782,7 +781,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
782
781
|
description
|
|
783
782
|
productInformation
|
|
784
783
|
costPrice
|
|
785
|
-
isInventoryDecimal
|
|
786
784
|
}
|
|
787
785
|
productDetail {
|
|
788
786
|
id
|
|
@@ -900,23 +898,10 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
900
898
|
}
|
|
901
899
|
break
|
|
902
900
|
case 'qty':
|
|
903
|
-
if (e.detail.after < 0 ||
|
|
901
|
+
if (e.detail.after < 0 || !Number.isInteger(e.detail.after)) {
|
|
904
902
|
item._data.records[e.detail.row].qty = e.detail.before
|
|
905
903
|
this.showToast({ level: 'error', message: i18next.t('text.invalid_qty') })
|
|
906
904
|
}
|
|
907
|
-
if (!item._data.records[e.detail.row].product.isInventoryDecimal && e.detail.after % 1 != 0) {
|
|
908
|
-
item._data.records[e.detail.row].qty = e.detail.before
|
|
909
|
-
this.showToast({ level: 'error', message: i18next.t('text.decimal_quantities_not_allowed') })
|
|
910
|
-
} else if (item._data.records[e.detail.row].product.isInventoryDecimal) {
|
|
911
|
-
const decimalPlaces = e.detail.after.toString().split('.')[1]?.length || 0
|
|
912
|
-
if (decimalPlaces > 3) {
|
|
913
|
-
item._data.records[e.detail.row].qty = e.detail.before
|
|
914
|
-
this.showToast({
|
|
915
|
-
level: 'error',
|
|
916
|
-
message: i18next.t('text.qty_cannot_exceed_three_decimal_places')
|
|
917
|
-
})
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
905
|
break
|
|
921
906
|
case 'packingType':
|
|
922
907
|
if (e.detail.after.trim() == '') {
|
|
@@ -1207,7 +1192,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1207
1192
|
throw new Error(i18next.t('text.invalid_value_in_list'))
|
|
1208
1193
|
}
|
|
1209
1194
|
}
|
|
1210
|
-
itm.qty =
|
|
1195
|
+
itm.qty = parseInt(itm.qty)
|
|
1211
1196
|
itm.packingSize = parseFloat(itm.packingSize)
|
|
1212
1197
|
itm.uomValue = parseFloat(itm.uomValue)
|
|
1213
1198
|
|
|
@@ -467,33 +467,33 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
467
467
|
width: 150
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
|
-
type: '
|
|
470
|
+
type: 'integer',
|
|
471
471
|
name: 'minQty',
|
|
472
472
|
imex: {
|
|
473
473
|
header: i18next.t('field.min_qty'),
|
|
474
474
|
key: 'minQty',
|
|
475
475
|
width: 20,
|
|
476
|
-
type: '
|
|
476
|
+
type: 'integer'
|
|
477
477
|
},
|
|
478
478
|
header: i18next.t('field.min_qty'),
|
|
479
479
|
label: true,
|
|
480
480
|
width: 80
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
|
-
type: '
|
|
483
|
+
type: 'integer',
|
|
484
484
|
name: 'uomValueMinQty',
|
|
485
485
|
imex: {
|
|
486
486
|
header: i18next.t('field.total_uom_value_min'),
|
|
487
487
|
key: 'uomValueMinQty',
|
|
488
488
|
width: 60,
|
|
489
|
-
type: '
|
|
489
|
+
type: 'integer'
|
|
490
490
|
},
|
|
491
491
|
header: i18next.t('field.total_uom_value_min'),
|
|
492
492
|
width: 120,
|
|
493
493
|
hidden: !this._showTotalUom
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
|
-
type: '
|
|
496
|
+
type: 'integer',
|
|
497
497
|
name: 'maxQty',
|
|
498
498
|
imex: { header: i18next.t('field.max_qty'), key: 'maxQty', width: 20, type: 'integer' },
|
|
499
499
|
header: i18next.t('field.max_qty'),
|
|
@@ -514,7 +514,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
514
514
|
hidden: !this._showTotalUom
|
|
515
515
|
},
|
|
516
516
|
{
|
|
517
|
-
type: '
|
|
517
|
+
type: 'integer',
|
|
518
518
|
name: 'qty',
|
|
519
519
|
imex: { header: i18next.t('field.shelf_qty'), key: 'qty', width: 20, type: 'integer' },
|
|
520
520
|
header: i18next.t('field.shelf_qty'),
|
|
@@ -522,20 +522,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
522
522
|
width: 120
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
|
-
type: '
|
|
525
|
+
type: 'integer',
|
|
526
526
|
name: 'uomValueShelfQty',
|
|
527
527
|
imex: {
|
|
528
528
|
header: i18next.t('field.total_uom_value_shelf'),
|
|
529
529
|
key: 'uomValueShelfQty',
|
|
530
530
|
width: 60,
|
|
531
|
-
type: '
|
|
531
|
+
type: 'integer'
|
|
532
532
|
},
|
|
533
533
|
header: i18next.t('field.total_uom_value_shelf'),
|
|
534
534
|
width: 120,
|
|
535
535
|
hidden: !this._showTotalUom
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
type: '
|
|
538
|
+
type: 'integer',
|
|
539
539
|
name: 'draftQty',
|
|
540
540
|
imex: { header: `${i18next.t('field.draft_qty')}(-)`, key: 'draftQty', width: 20, type: 'integer' },
|
|
541
541
|
header: `${i18next.t('field.draft_qty')}(-)`,
|
|
@@ -543,7 +543,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
543
543
|
width: 120
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
type: '
|
|
546
|
+
type: 'integer',
|
|
547
547
|
name: 'uomValueDraftQty',
|
|
548
548
|
imex: {
|
|
549
549
|
header: i18next.t('field.total_uom_value_draft'),
|
|
@@ -556,7 +556,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
556
556
|
hidden: !this._showTotalUom
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
|
-
type: '
|
|
559
|
+
type: 'integer',
|
|
560
560
|
name: 'releaseQty',
|
|
561
561
|
imex: { header: `${i18next.t('field.release_qty')}(-)`, key: 'releaseQty', width: 20, type: 'integer' },
|
|
562
562
|
header: `${i18next.t('field.release_qty')}(-)`,
|
|
@@ -564,20 +564,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
564
564
|
width: 120
|
|
565
565
|
},
|
|
566
566
|
{
|
|
567
|
-
type: '
|
|
567
|
+
type: 'integer',
|
|
568
568
|
name: 'uomValueReleaseQty',
|
|
569
569
|
imex: {
|
|
570
570
|
header: i18next.t('field.total_uom_value_release'),
|
|
571
571
|
key: 'uomValueReleaseQty',
|
|
572
572
|
width: 60,
|
|
573
|
-
type: '
|
|
573
|
+
type: 'integer'
|
|
574
574
|
},
|
|
575
575
|
header: i18next.t('field.total_uom_value_release'),
|
|
576
576
|
width: 120,
|
|
577
577
|
hidden: !this._showTotalUom
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
|
-
type: '
|
|
580
|
+
type: 'integer',
|
|
581
581
|
name: 'insufficientQty',
|
|
582
582
|
imex: { header: i18next.t('field.insufficient_qty'), key: 'insufficientQty', width: 20, type: 'integer' },
|
|
583
583
|
header: i18next.t('field.insufficient_qty'),
|
|
@@ -585,20 +585,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
585
585
|
width: 120
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
|
-
type: '
|
|
588
|
+
type: 'integer',
|
|
589
589
|
name: 'uomValueInsufficientQty',
|
|
590
590
|
imex: {
|
|
591
591
|
header: i18next.t('field.total_uom_value_insufficient'),
|
|
592
592
|
key: 'uomValueInsufficientQty',
|
|
593
593
|
width: 60,
|
|
594
|
-
type: '
|
|
594
|
+
type: 'integer'
|
|
595
595
|
},
|
|
596
596
|
header: i18next.t('field.total_uom_value_insufficient'),
|
|
597
597
|
width: 120,
|
|
598
598
|
hidden: !this._showTotalUom
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
|
-
type: '
|
|
601
|
+
type: 'integer',
|
|
602
602
|
name: 'putawayQty',
|
|
603
603
|
imex: { header: i18next.t('field.putaway_qty'), key: 'putawayQty', width: 20, type: 'integer' },
|
|
604
604
|
header: i18next.t('field.putaway_qty'),
|
|
@@ -606,20 +606,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
606
606
|
width: 120
|
|
607
607
|
},
|
|
608
608
|
{
|
|
609
|
-
type: '
|
|
609
|
+
type: 'integer',
|
|
610
610
|
name: 'uomValuePutawayQty',
|
|
611
611
|
imex: {
|
|
612
612
|
header: i18next.t('field.total_uom_value_putaway'),
|
|
613
613
|
key: 'uomValuePutawayQty',
|
|
614
614
|
width: 60,
|
|
615
|
-
type: '
|
|
615
|
+
type: 'integer'
|
|
616
616
|
},
|
|
617
617
|
header: i18next.t('field.total_uom_value_putaway'),
|
|
618
618
|
width: 120,
|
|
619
619
|
hidden: !this._showTotalUom
|
|
620
620
|
},
|
|
621
621
|
{
|
|
622
|
-
type: '
|
|
622
|
+
type: 'integer',
|
|
623
623
|
name: 'availableQty',
|
|
624
624
|
imex: { header: i18next.t('field.available_qty'), key: 'availableQty', width: 20, type: 'integer' },
|
|
625
625
|
header: i18next.t('field.available_qty'),
|
|
@@ -627,20 +627,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
627
627
|
width: 120
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
|
-
type: '
|
|
630
|
+
type: 'integer',
|
|
631
631
|
name: 'uomValueAvailableQty',
|
|
632
632
|
imex: {
|
|
633
633
|
header: i18next.t('field.total_uom_value_available'),
|
|
634
634
|
key: 'uomValueAvailableQty',
|
|
635
635
|
width: 60,
|
|
636
|
-
type: '
|
|
636
|
+
type: 'integer'
|
|
637
637
|
},
|
|
638
638
|
header: i18next.t('field.total_uom_value_available'),
|
|
639
639
|
width: 120,
|
|
640
640
|
hidden: !this._showTotalUom
|
|
641
641
|
},
|
|
642
642
|
{
|
|
643
|
-
type: '
|
|
643
|
+
type: 'integer',
|
|
644
644
|
name: 'quarantineQty',
|
|
645
645
|
imex: { header: i18next.t('field.quarantine_qty'), key: 'quarantineQty', width: 20, type: 'integer' },
|
|
646
646
|
header: i18next.t('field.quarantine_qty'),
|
|
@@ -648,20 +648,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
648
648
|
width: 120
|
|
649
649
|
},
|
|
650
650
|
{
|
|
651
|
-
type: '
|
|
651
|
+
type: 'integer',
|
|
652
652
|
name: 'uomValueQuarantineQty',
|
|
653
653
|
imex: {
|
|
654
654
|
header: i18next.t('field.total_uom_value_quarantine'),
|
|
655
655
|
key: 'uomValueQuarantineQty',
|
|
656
656
|
width: 60,
|
|
657
|
-
type: '
|
|
657
|
+
type: 'integer'
|
|
658
658
|
},
|
|
659
659
|
header: i18next.t('field.total_uom_value_quarantine'),
|
|
660
660
|
width: 120,
|
|
661
661
|
hidden: !this._showTotalUom
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
|
-
type: '
|
|
664
|
+
type: 'integer',
|
|
665
665
|
name: 'reserveQty',
|
|
666
666
|
imex: { header: i18next.t('field.reserve_qty'), key: 'reserveQty', width: 20, type: 'integer' },
|
|
667
667
|
header: i18next.t('field.reserve_qty'),
|
|
@@ -669,20 +669,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
669
669
|
width: 120
|
|
670
670
|
},
|
|
671
671
|
{
|
|
672
|
-
type: '
|
|
672
|
+
type: 'integer',
|
|
673
673
|
name: 'uomValueReserveQty',
|
|
674
674
|
imex: {
|
|
675
675
|
header: i18next.t('field.total_uom_value_reserve'),
|
|
676
676
|
key: 'uomValueReserveQty',
|
|
677
677
|
width: 60,
|
|
678
|
-
type: '
|
|
678
|
+
type: 'integer'
|
|
679
679
|
},
|
|
680
680
|
header: i18next.t('field.total_uom_value_reserve'),
|
|
681
681
|
width: 120,
|
|
682
682
|
hidden: !this._showTotalUom
|
|
683
683
|
},
|
|
684
684
|
{
|
|
685
|
-
type: '
|
|
685
|
+
type: 'integer',
|
|
686
686
|
name: 'warehouseQty',
|
|
687
687
|
imex: { header: i18next.t('field.warehouse_qty'), key: 'warehouseQty', width: 20, type: 'integer' },
|
|
688
688
|
header: i18next.t('field.warehouse_qty'),
|
|
@@ -690,20 +690,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
690
690
|
width: 120
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
|
-
type: '
|
|
693
|
+
type: 'integer',
|
|
694
694
|
name: 'uomValueWarehouseQty',
|
|
695
695
|
imex: {
|
|
696
696
|
header: i18next.t('field.total_uom_value_warehouse'),
|
|
697
697
|
key: 'uomValueWarehouseQty',
|
|
698
698
|
width: 60,
|
|
699
|
-
type: '
|
|
699
|
+
type: 'integer'
|
|
700
700
|
},
|
|
701
701
|
header: i18next.t('field.total_uom_value_warehouse'),
|
|
702
702
|
width: 120,
|
|
703
703
|
hidden: !this._showTotalUom
|
|
704
704
|
},
|
|
705
705
|
{
|
|
706
|
-
type: '
|
|
706
|
+
type: 'integer',
|
|
707
707
|
name: 'obsoleteQty',
|
|
708
708
|
imex: { header: i18next.t('field.obsolete_qty'), key: 'obsoleteQty', width: 20, type: 'integer' },
|
|
709
709
|
header: i18next.t('field.obsolete_qty'),
|
|
@@ -711,20 +711,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
711
711
|
width: 120
|
|
712
712
|
},
|
|
713
713
|
{
|
|
714
|
-
type: '
|
|
714
|
+
type: 'integer',
|
|
715
715
|
name: 'uomValueObsoleteQty',
|
|
716
716
|
imex: {
|
|
717
717
|
header: i18next.t('field.total_uom_value_obsolete'),
|
|
718
718
|
key: 'uomValueObsoleteQty',
|
|
719
719
|
width: 60,
|
|
720
|
-
type: '
|
|
720
|
+
type: 'integer'
|
|
721
721
|
},
|
|
722
722
|
header: i18next.t('field.total_uom_value_obsolete'),
|
|
723
723
|
width: 120,
|
|
724
724
|
hidden: !this._showTotalUom
|
|
725
725
|
},
|
|
726
726
|
{
|
|
727
|
-
type: '
|
|
727
|
+
type: 'integer',
|
|
728
728
|
name: 'damageQty',
|
|
729
729
|
imex: { header: i18next.t('field.damage_qty'), key: 'damageQty', width: 20, type: 'integer' },
|
|
730
730
|
header: i18next.t('field.damage_qty'),
|
|
@@ -732,20 +732,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
732
732
|
width: 120
|
|
733
733
|
},
|
|
734
734
|
{
|
|
735
|
-
type: '
|
|
735
|
+
type: 'integer',
|
|
736
736
|
name: 'uomValueDamageQty',
|
|
737
737
|
imex: {
|
|
738
738
|
header: i18next.t('field.total_uom_value_damage'),
|
|
739
739
|
key: 'uomValueDamageQty',
|
|
740
740
|
width: 60,
|
|
741
|
-
type: '
|
|
741
|
+
type: 'integer'
|
|
742
742
|
},
|
|
743
743
|
header: i18next.t('field.total_uom_value_damage'),
|
|
744
744
|
width: 120,
|
|
745
745
|
hidden: !this._showTotalUom
|
|
746
746
|
},
|
|
747
747
|
{
|
|
748
|
-
type: '
|
|
748
|
+
type: 'integer',
|
|
749
749
|
name: 'storageQty',
|
|
750
750
|
imex: { header: i18next.t('field.storage_qty'), key: 'storageQty', width: 20, type: 'integer' },
|
|
751
751
|
header: i18next.t('field.storage_qty'),
|
|
@@ -753,20 +753,20 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
753
753
|
width: 120
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
|
-
type: '
|
|
756
|
+
type: 'integer',
|
|
757
757
|
name: 'uomValueStorageQty',
|
|
758
758
|
imex: {
|
|
759
759
|
header: i18next.t('field.total_uom_value_storage'),
|
|
760
760
|
key: 'uomValueStorageQty',
|
|
761
761
|
width: 60,
|
|
762
|
-
type: '
|
|
762
|
+
type: 'integer'
|
|
763
763
|
},
|
|
764
764
|
header: i18next.t('field.total_uom_value_storage'),
|
|
765
765
|
width: 120,
|
|
766
766
|
hidden: !this._showTotalUom
|
|
767
767
|
},
|
|
768
768
|
{
|
|
769
|
-
type: '
|
|
769
|
+
type: 'integer',
|
|
770
770
|
name: 'transferQty',
|
|
771
771
|
imex: { header: i18next.t('field.transfer_qty'), key: 'transferQty', width: 20, type: 'integer' },
|
|
772
772
|
header: i18next.t('field.transfer_qty'),
|
|
@@ -774,13 +774,13 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
774
774
|
width: 120
|
|
775
775
|
},
|
|
776
776
|
{
|
|
777
|
-
type: '
|
|
777
|
+
type: 'integer',
|
|
778
778
|
name: 'uomValueTransferQty',
|
|
779
779
|
imex: {
|
|
780
780
|
header: i18next.t('field.total_uom_value_transfer'),
|
|
781
781
|
key: 'uomValueTransferQty',
|
|
782
782
|
width: 60,
|
|
783
|
-
type: '
|
|
783
|
+
type: 'integer'
|
|
784
784
|
},
|
|
785
785
|
header: i18next.t('field.total_uom_value_transfer'),
|
|
786
786
|
width: 120,
|
|
@@ -180,7 +180,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
180
180
|
width: 110
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
type: '
|
|
183
|
+
type: 'integer',
|
|
184
184
|
name: 'transferQty',
|
|
185
185
|
header: i18next.t('field.transfer_qty'),
|
|
186
186
|
sortable: true,
|
|
@@ -188,7 +188,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
188
188
|
header: i18next.t('field.transfer_qty'),
|
|
189
189
|
key: 'transferQty',
|
|
190
190
|
width: 10,
|
|
191
|
-
type: '
|
|
191
|
+
type: 'integer'
|
|
192
192
|
},
|
|
193
193
|
width: 110
|
|
194
194
|
},
|
|
@@ -194,9 +194,7 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
194
194
|
try {
|
|
195
195
|
await this._validateInput()
|
|
196
196
|
let inspectedBatchNo = this.inspectedBatchNoInput.value
|
|
197
|
-
let inspectedExpirationDate = this.inspectedExpirationDateInput.value
|
|
198
|
-
? new Date(this.inspectedExpirationDateInput.value)
|
|
199
|
-
: null
|
|
197
|
+
let inspectedExpirationDate = this.inspectedExpirationDateInput.value ? new Date(this.inspectedExpirationDateInput.value) : null
|
|
200
198
|
let inspectedQty = Number(this.inspectedQtyInput.value)
|
|
201
199
|
let inspectedUomValue = this.enableCartonLabel ? inspectedQty : Number(this.inspectedUomValueInput.value)
|
|
202
200
|
let inspectedLocation = this.inspectedLocationInput.value
|
|
@@ -212,7 +210,7 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
212
210
|
$productDetailId: String!
|
|
213
211
|
$productId: String!
|
|
214
212
|
$inspectedBatchNo: String!
|
|
215
|
-
$inspectedQty:
|
|
213
|
+
$inspectedQty: Int!
|
|
216
214
|
$inspectedUomValue: Float!
|
|
217
215
|
$countNo: Int!
|
|
218
216
|
$inspectedExpirationDate: Date
|
|
@@ -262,12 +260,6 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
262
260
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('field.inspected_qty') } }))
|
|
263
261
|
}
|
|
264
262
|
|
|
265
|
-
// Check if inspectedQty has more than 3 decimal places
|
|
266
|
-
const decimalPlaces = inspectedQty.toString().split('.')[1]?.length || 0
|
|
267
|
-
if (decimalPlaces > 3) {
|
|
268
|
-
throw new Error(i18next.t('text.maximum_3_decimal_places_allowed'))
|
|
269
|
-
}
|
|
270
|
-
|
|
271
263
|
if (inspectedQty <= 0) {
|
|
272
264
|
throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('field.inspected_qty') } }))
|
|
273
265
|
}
|
|
@@ -192,13 +192,13 @@ class CycleCountRecheckPopup extends localize(i18next)(LitElement) {
|
|
|
192
192
|
width: 120
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
type: '
|
|
195
|
+
type: 'integer',
|
|
196
196
|
name: 'qty',
|
|
197
197
|
header: i18next.t('field.system_qty'),
|
|
198
198
|
width: 100
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
type: '
|
|
201
|
+
type: 'integer',
|
|
202
202
|
name: 'inspectedQty',
|
|
203
203
|
header: i18next.t('field.inspected_qty'),
|
|
204
204
|
width: 100
|
|
@@ -277,7 +277,7 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
277
277
|
width: 100
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
|
-
type: '
|
|
280
|
+
type: 'integer',
|
|
281
281
|
name: 'systemQty',
|
|
282
282
|
header: i18next.t('field.system_qty'),
|
|
283
283
|
width: 100
|
|
@@ -477,23 +477,27 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
477
477
|
const mapCountData = (data, prefix) => {
|
|
478
478
|
return Object.keys(data).reduce((acc, key) => {
|
|
479
479
|
if (key.startsWith(prefix)) {
|
|
480
|
-
acc[key] = !isNaN(parseFloat(data[key])) && isFinite(data[key]) ? parseFloat(data[key]) : '-'
|
|
480
|
+
acc[key] = !isNaN(parseFloat(data[key])) && isFinite(data[key]) ? parseFloat(data[key], 10) : '-'
|
|
481
481
|
}
|
|
482
482
|
return acc
|
|
483
483
|
}, {})
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
const findLatestCount = (data, prefix) => {
|
|
487
|
-
return [...Object.keys(data)]
|
|
487
|
+
return [...Object.keys(data)]
|
|
488
|
+
.filter(key => key.startsWith(prefix) && data[key] !== '-')
|
|
489
|
+
.pop()
|
|
488
490
|
}
|
|
489
491
|
|
|
490
492
|
this._countData = mapCountData(countData, 'count')
|
|
491
493
|
this._countUomData = mapCountData(countUomData, 'uom count')
|
|
492
494
|
|
|
493
|
-
// Calculate the latest count key and finalCount
|
|
495
|
+
// Calculate the latest count key and finalCount
|
|
494
496
|
const latestCountKey = findLatestCount(this._countData, 'count ')
|
|
495
497
|
const latestUomCountKey = findLatestCount(this._countUomData, 'uom count ')
|
|
496
498
|
|
|
499
|
+
|
|
500
|
+
|
|
497
501
|
// Calculate finalCount based on the latest count
|
|
498
502
|
const finalCount = latestCountKey ? this._countData[latestCountKey] : item.systemQty
|
|
499
503
|
const finalUom = latestUomCountKey ? this._countUomData[latestUomCountKey] : item.systemUomValue
|
|
@@ -552,14 +556,14 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
552
556
|
executionDate,
|
|
553
557
|
originBatchNo,
|
|
554
558
|
inspectedBatchNo,
|
|
555
|
-
originUomValue
|
|
556
|
-
inspectedUomValue
|
|
557
|
-
originQty
|
|
558
|
-
inspectedQty
|
|
559
|
-
systemQty:
|
|
559
|
+
originUomValue,
|
|
560
|
+
inspectedUomValue,
|
|
561
|
+
originQty,
|
|
562
|
+
inspectedQty,
|
|
563
|
+
systemQty: item.systemQty,
|
|
560
564
|
systemBatchNo: item.systemBatchNo,
|
|
561
565
|
systemLocationName: item.systemLocationName,
|
|
562
|
-
systemUomValue:
|
|
566
|
+
systemUomValue: item.systemUomValue,
|
|
563
567
|
finalUom: item.finalUom,
|
|
564
568
|
originLocationId: item.originLocationId,
|
|
565
569
|
originLocationName,
|
|
@@ -576,7 +580,7 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
576
580
|
locationVariance: locationVariance,
|
|
577
581
|
uomValueVariance: uomValueVariance,
|
|
578
582
|
expirationDateVariance: expirationDateVariance,
|
|
579
|
-
countVariance
|
|
583
|
+
countVariance,
|
|
580
584
|
countStatus,
|
|
581
585
|
company: item.company,
|
|
582
586
|
finalCount,
|
|
@@ -614,7 +618,8 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
614
618
|
groupedRecords[groupKey].systemQty += record.systemQty
|
|
615
619
|
Object.keys(record).forEach(key => {
|
|
616
620
|
if (key.startsWith('count ') && record[key] !== '-') {
|
|
617
|
-
groupedRecords[groupKey][key] =
|
|
621
|
+
groupedRecords[groupKey][key] =
|
|
622
|
+
(groupedRecords[groupKey][key] || 0) + (parseInt(record[key], 10) || 0)
|
|
618
623
|
}
|
|
619
624
|
})
|
|
620
625
|
groupedRecords[groupKey].count += 1
|
|
@@ -627,12 +632,12 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
627
632
|
.pop()
|
|
628
633
|
|
|
629
634
|
const finalCount = latestCountKey ? groupedRecord[latestCountKey] : groupedRecord['systemQty']
|
|
630
|
-
let countVariance =
|
|
635
|
+
let countVariance = finalCount - groupedRecord['systemQty']
|
|
631
636
|
|
|
632
637
|
let countStatus
|
|
633
638
|
if (groupedRecord.countStatus === ORDER_STATUS.PENDING.value) {
|
|
634
639
|
countStatus = groupedRecord.countStatus
|
|
635
|
-
countVariance =
|
|
640
|
+
countVariance = groupedRecord.countVariance
|
|
636
641
|
} else if (finalCount === groupedRecord.systemQty) {
|
|
637
642
|
countStatus = 'HIT'
|
|
638
643
|
} else if (finalCount < groupedRecord.systemQty) {
|
|
@@ -782,7 +782,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
782
782
|
sku
|
|
783
783
|
name
|
|
784
784
|
description
|
|
785
|
-
isInventoryDecimal
|
|
786
785
|
}
|
|
787
786
|
productDetail {
|
|
788
787
|
id
|
|
@@ -1046,7 +1045,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1046
1045
|
mutation inspectingPallet(
|
|
1047
1046
|
$worksheetDetailName: String!
|
|
1048
1047
|
$inspectedBatchNo: String!
|
|
1049
|
-
$inspectedQty:
|
|
1048
|
+
$inspectedQty: Int!
|
|
1050
1049
|
$inspectedUomValue: Float!
|
|
1051
1050
|
$inspectedExpirationDate: Date
|
|
1052
1051
|
) {
|
|
@@ -1077,7 +1076,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1077
1076
|
$batchId: String!
|
|
1078
1077
|
$locationId: String!
|
|
1079
1078
|
$inspectedBatchNo: String!
|
|
1080
|
-
$inspectedQty:
|
|
1079
|
+
$inspectedQty: Int!
|
|
1081
1080
|
$inspectedUomValue: Float!
|
|
1082
1081
|
$inspectedExpirationDate: Date
|
|
1083
1082
|
) {
|
|
@@ -1205,12 +1204,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1205
1204
|
this._currentCard
|
|
1206
1205
|
inspectedQty = Number(inspectedQty)
|
|
1207
1206
|
|
|
1208
|
-
// Check if inspectedQty has more than 3 decimal places
|
|
1209
|
-
const decimalPlaces = inspectedQty.toString().split('.')[1]?.length || 0
|
|
1210
|
-
if (decimalPlaces > 3) {
|
|
1211
|
-
throw new Error(i18next.t('text.maximum_3_decimal_places_allowed'))
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
1207
|
// If the currentCard has both a cartonId and a palletId, set inspectedUomValue to be the same as inspectedQty
|
|
1215
1208
|
if (cartonId && palletId) {
|
|
1216
1209
|
inspectedUomValue = inspectedQty
|
|
@@ -1230,11 +1223,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1230
1223
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('field.inspected_qty') } }))
|
|
1231
1224
|
}
|
|
1232
1225
|
|
|
1233
|
-
// Check if quantity has decimals and validate against product settings
|
|
1234
|
-
if (inspectedQty % 1 !== 0 && !this._currentCard.product?.isInventoryDecimal) {
|
|
1235
|
-
throw new Error(i18next.t('text.decimal_quantities_not_allowed'))
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
1226
|
if (inspectedExpirationDate) {
|
|
1239
1227
|
let getYear = parseInt(inspectedExpirationDate?.slice(0, 4))
|
|
1240
1228
|
|