@things-factory/operato-wms 4.3.636 → 4.3.637
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 +12 -7
- package/client/pages/bulk-operation/bulk-operation.js +22 -24
- package/client/pages/bulk-operation/validate-b2c-ro-popup.js +4 -14
- package/client/pages/bulk-operation/validate-gan-popup.js +11 -26
- package/client/pages/bulk-operation/validate-ro-popup.js +6 -16
- package/client/pages/components/list-view/product-list-view.js +1 -1
- package/client/pages/components/select-inventory-popup.js +5 -1
- package/client/pages/components/select-product-popup.js +9 -4
- package/client/pages/inbound/putaway/putaway-product.js +70 -92
- package/client/pages/inbound/putaway/putaway-replenishment-same-product-popup.js +3 -10
- 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 +16 -19
- 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 +37 -33
- 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 +20 -5
- 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 +10 -2
- package/client/pages/inventory-check/cycle-count-recheck-popup.js +2 -2
- package/client/pages/inventory-check/cycle-count-report.js +14 -19
- package/client/pages/inventory-check/inspecting-product.js +14 -2
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +23 -27
- 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 +33 -29
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +8 -8
- package/client/pages/order/arrival-notice/edit-product-popup.js +29 -27
- 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 +92 -91
- package/client/pages/order/release-order/b2c/create-b2c-release-order.js +61 -56
- package/client/pages/order/release-order/create-release-order.js +64 -55
- 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 +11 -7
- package/client/pages/order/release-order/release-order-detail.js +158 -116
- package/client/pages/order/return-order/create-return-order.js +16 -3
- package/client/pages/order/return-order/return-order-inventory-popup.js +2 -1
- 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 +7 -26
- package/client/pages/outbound/picking-product.js +36 -16
- package/client/pages/outbound/picking-replacement-popup.js +4 -4
- package/client/pages/outbound/picking-v2/picking-execution-base.js +8 -4
- package/client/pages/outbound/sorting-product.js +5 -7
- package/client/pages/outbound/worksheet-batch-picking.js +30 -43
- 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 +23 -19
- package/client/pages/outbound/worksheet-return.js +1 -1
- package/client/pages/outbound/worksheet-sorting.js +12 -23
- package/client/pages/outbound/worksheet-zone-picking.js +3 -3
- package/client/pages/report/replenishment-report.js +5 -14
- package/client/pages/report/volume-summary-report.js +6 -6
- 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 +2 -1
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js +18 -7
- 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/outbound/sort-item.ts +1 -1
- package/server/graphql/resolvers/reports/cycle-count-report.ts +2 -1
- package/server/graphql/resolvers/zone-worksheet/zone-picking.ts +20 -8
- 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 +265 -259
- package/translations/ko.json +1 -0
- package/translations/ms.json +1580 -1463
- package/translations/zh.json +2354 -2150
|
@@ -401,7 +401,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
401
401
|
width: 150
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
|
-
type: '
|
|
404
|
+
type: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
427
427
|
},
|
|
428
428
|
width: 80
|
|
429
429
|
},
|
|
@@ -694,6 +694,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
694
694
|
type
|
|
695
695
|
isRequireSerialNumberScanningOutbound
|
|
696
696
|
isRequireSerialNumberScanningInbound
|
|
697
|
+
isInventoryDecimal
|
|
697
698
|
costPrice
|
|
698
699
|
}
|
|
699
700
|
productDetail {
|
|
@@ -781,6 +782,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
781
782
|
description
|
|
782
783
|
productInformation
|
|
783
784
|
costPrice
|
|
785
|
+
isInventoryDecimal
|
|
784
786
|
}
|
|
785
787
|
productDetail {
|
|
786
788
|
id
|
|
@@ -898,10 +900,23 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
898
900
|
}
|
|
899
901
|
break
|
|
900
902
|
case 'qty':
|
|
901
|
-
if (e.detail.after < 0 || !Number.
|
|
903
|
+
if (e.detail.after < 0 || isNaN(e.detail.after) || !Number.isFinite(e.detail.after)) {
|
|
902
904
|
item._data.records[e.detail.row].qty = e.detail.before
|
|
903
905
|
this.showToast({ level: 'error', message: i18next.t('text.invalid_qty') })
|
|
904
906
|
}
|
|
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
|
+
}
|
|
905
920
|
break
|
|
906
921
|
case 'packingType':
|
|
907
922
|
if (e.detail.after.trim() == '') {
|
|
@@ -1192,7 +1207,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1192
1207
|
throw new Error(i18next.t('text.invalid_value_in_list'))
|
|
1193
1208
|
}
|
|
1194
1209
|
}
|
|
1195
|
-
itm.qty =
|
|
1210
|
+
itm.qty = parseFloat(itm.qty)
|
|
1196
1211
|
itm.packingSize = parseFloat(itm.packingSize)
|
|
1197
1212
|
itm.uomValue = parseFloat(itm.uomValue)
|
|
1198
1213
|
|
|
@@ -467,33 +467,33 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
467
467
|
width: 150
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
|
-
type: '
|
|
470
|
+
type: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float',
|
|
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: 'float'
|
|
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: 'float',
|
|
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: 'float'
|
|
192
192
|
},
|
|
193
193
|
width: 110
|
|
194
194
|
},
|
|
@@ -194,7 +194,9 @@ 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
|
|
197
|
+
let inspectedExpirationDate = this.inspectedExpirationDateInput.value
|
|
198
|
+
? new Date(this.inspectedExpirationDateInput.value)
|
|
199
|
+
: null
|
|
198
200
|
let inspectedQty = Number(this.inspectedQtyInput.value)
|
|
199
201
|
let inspectedUomValue = this.enableCartonLabel ? inspectedQty : Number(this.inspectedUomValueInput.value)
|
|
200
202
|
let inspectedLocation = this.inspectedLocationInput.value
|
|
@@ -210,7 +212,7 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
210
212
|
$productDetailId: String!
|
|
211
213
|
$productId: String!
|
|
212
214
|
$inspectedBatchNo: String!
|
|
213
|
-
$inspectedQty:
|
|
215
|
+
$inspectedQty: Float!
|
|
214
216
|
$inspectedUomValue: Float!
|
|
215
217
|
$countNo: Int!
|
|
216
218
|
$inspectedExpirationDate: Date
|
|
@@ -260,6 +262,12 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
260
262
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('field.inspected_qty') } }))
|
|
261
263
|
}
|
|
262
264
|
|
|
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
|
+
|
|
263
271
|
if (inspectedQty <= 0) {
|
|
264
272
|
throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('field.inspected_qty') } }))
|
|
265
273
|
}
|
|
@@ -192,13 +192,13 @@ class CycleCountRecheckPopup extends localize(i18next)(LitElement) {
|
|
|
192
192
|
width: 120
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
type: '
|
|
195
|
+
type: 'float',
|
|
196
196
|
name: 'qty',
|
|
197
197
|
header: i18next.t('field.system_qty'),
|
|
198
198
|
width: 100
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
type: '
|
|
201
|
+
type: 'float',
|
|
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: 'float',
|
|
281
281
|
name: 'systemQty',
|
|
282
282
|
header: i18next.t('field.system_qty'),
|
|
283
283
|
width: 100
|
|
@@ -477,27 +477,23 @@ 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]) : '-'
|
|
481
481
|
}
|
|
482
482
|
return acc
|
|
483
483
|
}, {})
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
const findLatestCount = (data, prefix) => {
|
|
487
|
-
return [...Object.keys(data)]
|
|
488
|
-
.filter(key => key.startsWith(prefix) && data[key] !== '-')
|
|
489
|
-
.pop()
|
|
487
|
+
return [...Object.keys(data)].filter(key => key.startsWith(prefix) && data[key] !== '-').pop()
|
|
490
488
|
}
|
|
491
489
|
|
|
492
490
|
this._countData = mapCountData(countData, 'count')
|
|
493
491
|
this._countUomData = mapCountData(countUomData, 'uom count')
|
|
494
492
|
|
|
495
|
-
// Calculate the latest count key and finalCount
|
|
493
|
+
// Calculate the latest count key and finalCount
|
|
496
494
|
const latestCountKey = findLatestCount(this._countData, 'count ')
|
|
497
495
|
const latestUomCountKey = findLatestCount(this._countUomData, 'uom count ')
|
|
498
496
|
|
|
499
|
-
|
|
500
|
-
|
|
501
497
|
// Calculate finalCount based on the latest count
|
|
502
498
|
const finalCount = latestCountKey ? this._countData[latestCountKey] : item.systemQty
|
|
503
499
|
const finalUom = latestUomCountKey ? this._countUomData[latestUomCountKey] : item.systemUomValue
|
|
@@ -556,14 +552,14 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
556
552
|
executionDate,
|
|
557
553
|
originBatchNo,
|
|
558
554
|
inspectedBatchNo,
|
|
559
|
-
originUomValue,
|
|
560
|
-
inspectedUomValue,
|
|
561
|
-
originQty,
|
|
562
|
-
inspectedQty,
|
|
563
|
-
systemQty: item.systemQty,
|
|
555
|
+
originUomValue: parseFloat(originUomValue) || 0,
|
|
556
|
+
inspectedUomValue: parseFloat(inspectedUomValue) || 0,
|
|
557
|
+
originQty: parseFloat(originQty) || 0,
|
|
558
|
+
inspectedQty: parseFloat(inspectedQty) || 0,
|
|
559
|
+
systemQty: parseFloat(item.systemQty) || 0,
|
|
564
560
|
systemBatchNo: item.systemBatchNo,
|
|
565
561
|
systemLocationName: item.systemLocationName,
|
|
566
|
-
systemUomValue: item.systemUomValue,
|
|
562
|
+
systemUomValue: parseFloat(item.systemUomValue) || 0,
|
|
567
563
|
finalUom: item.finalUom,
|
|
568
564
|
originLocationId: item.originLocationId,
|
|
569
565
|
originLocationName,
|
|
@@ -580,7 +576,7 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
580
576
|
locationVariance: locationVariance,
|
|
581
577
|
uomValueVariance: uomValueVariance,
|
|
582
578
|
expirationDateVariance: expirationDateVariance,
|
|
583
|
-
countVariance,
|
|
579
|
+
countVariance: Number(Number(item.countVariance).toFixed(3)),
|
|
584
580
|
countStatus,
|
|
585
581
|
company: item.company,
|
|
586
582
|
finalCount,
|
|
@@ -618,8 +614,7 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
618
614
|
groupedRecords[groupKey].systemQty += record.systemQty
|
|
619
615
|
Object.keys(record).forEach(key => {
|
|
620
616
|
if (key.startsWith('count ') && record[key] !== '-') {
|
|
621
|
-
groupedRecords[groupKey][key] =
|
|
622
|
-
(groupedRecords[groupKey][key] || 0) + (parseInt(record[key], 10) || 0)
|
|
617
|
+
groupedRecords[groupKey][key] = (groupedRecords[groupKey][key] || 0) + (parseFloat(record[key]) || 0)
|
|
623
618
|
}
|
|
624
619
|
})
|
|
625
620
|
groupedRecords[groupKey].count += 1
|
|
@@ -632,12 +627,12 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
632
627
|
.pop()
|
|
633
628
|
|
|
634
629
|
const finalCount = latestCountKey ? groupedRecord[latestCountKey] : groupedRecord['systemQty']
|
|
635
|
-
let countVariance = finalCount - groupedRecord['systemQty']
|
|
630
|
+
let countVariance = Number((finalCount - groupedRecord['systemQty']).toFixed(3))
|
|
636
631
|
|
|
637
632
|
let countStatus
|
|
638
633
|
if (groupedRecord.countStatus === ORDER_STATUS.PENDING.value) {
|
|
639
634
|
countStatus = groupedRecord.countStatus
|
|
640
|
-
countVariance = groupedRecord.countVariance
|
|
635
|
+
countVariance = Number(groupedRecord.countVariance.toFixed(3))
|
|
641
636
|
} else if (finalCount === groupedRecord.systemQty) {
|
|
642
637
|
countStatus = 'HIT'
|
|
643
638
|
} else if (finalCount < groupedRecord.systemQty) {
|
|
@@ -782,6 +782,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
782
782
|
sku
|
|
783
783
|
name
|
|
784
784
|
description
|
|
785
|
+
isInventoryDecimal
|
|
785
786
|
}
|
|
786
787
|
productDetail {
|
|
787
788
|
id
|
|
@@ -1045,7 +1046,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1045
1046
|
mutation inspectingPallet(
|
|
1046
1047
|
$worksheetDetailName: String!
|
|
1047
1048
|
$inspectedBatchNo: String!
|
|
1048
|
-
$inspectedQty:
|
|
1049
|
+
$inspectedQty: Float!
|
|
1049
1050
|
$inspectedUomValue: Float!
|
|
1050
1051
|
$inspectedExpirationDate: Date
|
|
1051
1052
|
) {
|
|
@@ -1076,7 +1077,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1076
1077
|
$batchId: String!
|
|
1077
1078
|
$locationId: String!
|
|
1078
1079
|
$inspectedBatchNo: String!
|
|
1079
|
-
$inspectedQty:
|
|
1080
|
+
$inspectedQty: Float!
|
|
1080
1081
|
$inspectedUomValue: Float!
|
|
1081
1082
|
$inspectedExpirationDate: Date
|
|
1082
1083
|
) {
|
|
@@ -1204,6 +1205,12 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1204
1205
|
this._currentCard
|
|
1205
1206
|
inspectedQty = Number(inspectedQty)
|
|
1206
1207
|
|
|
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
|
+
|
|
1207
1214
|
// If the currentCard has both a cartonId and a palletId, set inspectedUomValue to be the same as inspectedQty
|
|
1208
1215
|
if (cartonId && palletId) {
|
|
1209
1216
|
inspectedUomValue = inspectedQty
|
|
@@ -1223,6 +1230,11 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1223
1230
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('field.inspected_qty') } }))
|
|
1224
1231
|
}
|
|
1225
1232
|
|
|
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
|
+
|
|
1226
1238
|
if (inspectedExpirationDate) {
|
|
1227
1239
|
let getYear = parseInt(inspectedExpirationDate?.slice(0, 4))
|
|
1228
1240
|
|