@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
|
@@ -10,13 +10,27 @@ import '../../order/vas-order/popup/vas-target-product-popup'
|
|
|
10
10
|
import '../../order/vas-order/popup/select-vas-popup'
|
|
11
11
|
|
|
12
12
|
import gql from 'graphql-tag'
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
css,
|
|
15
|
+
html
|
|
16
|
+
} from 'lit-element'
|
|
14
17
|
|
|
15
18
|
import { getCodeByName } from '@things-factory/code-base'
|
|
16
|
-
import {
|
|
17
|
-
|
|
19
|
+
import {
|
|
20
|
+
MultiColumnFormStyles,
|
|
21
|
+
SingleColumnFormStyles
|
|
22
|
+
} from '@things-factory/form-ui'
|
|
23
|
+
import {
|
|
24
|
+
i18next,
|
|
25
|
+
localize
|
|
26
|
+
} from '@things-factory/i18n-base'
|
|
18
27
|
import { openPopup } from '@things-factory/layout-base'
|
|
19
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
client,
|
|
30
|
+
CustomAlert,
|
|
31
|
+
navigate,
|
|
32
|
+
PageView
|
|
33
|
+
} from '@things-factory/shell'
|
|
20
34
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
21
35
|
import { isMobileDevice } from '@things-factory/utils'
|
|
22
36
|
|
|
@@ -288,38 +302,39 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
288
302
|
}
|
|
289
303
|
}
|
|
290
304
|
|
|
291
|
-
.new-line
|
|
305
|
+
.new-line{
|
|
292
306
|
grid-column: span 12 / auto !important;
|
|
293
307
|
}
|
|
294
308
|
|
|
295
309
|
.header-with-checkbox {
|
|
296
310
|
display: flex;
|
|
297
311
|
align-self: flex-end;
|
|
298
|
-
align-items: center;
|
|
312
|
+
align-items: center;
|
|
299
313
|
grid-column: span 36 / auto !important;
|
|
300
314
|
text-align: left !important;
|
|
301
315
|
margin-top: 10px !important;
|
|
302
316
|
font-weight: 600 !important;
|
|
303
317
|
margin-right: 2px; /* Spacing between header and checkbox */
|
|
304
318
|
}
|
|
319
|
+
|
|
305
320
|
|
|
306
321
|
.checkbox-container label {
|
|
307
322
|
margin-left: 1px;
|
|
308
323
|
}
|
|
309
324
|
|
|
310
|
-
.checkbox-wrapper
|
|
325
|
+
.checkbox-wrapper{
|
|
311
326
|
margin-top: 10px;
|
|
312
327
|
}
|
|
313
328
|
|
|
314
329
|
.checkbox-wrapper::before {
|
|
315
|
-
content:
|
|
330
|
+
content: "("; /* Left bracket */
|
|
316
331
|
margin-left: 1px;
|
|
317
332
|
font-size: 0.9em; /* Adjust size as needed */
|
|
318
333
|
font-weight: 100 !important;
|
|
319
334
|
}
|
|
320
335
|
|
|
321
336
|
.checkbox-wrapper::after {
|
|
322
|
-
content:
|
|
337
|
+
content: ")"; /* Right bracket */
|
|
323
338
|
margin-left: 1em; /* Space between bracket and checkbox */
|
|
324
339
|
font-size: 0.9em; /* Adjust size as needed */
|
|
325
340
|
font-weight: 100 !important;
|
|
@@ -333,6 +348,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
333
348
|
#matchDeliveryAddress {
|
|
334
349
|
margin-top: 5px !important;
|
|
335
350
|
}
|
|
351
|
+
|
|
336
352
|
`
|
|
337
353
|
]
|
|
338
354
|
}
|
|
@@ -613,28 +629,26 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
613
629
|
<div class="checkbox-wrapper">
|
|
614
630
|
<input type="checkbox" id="matchDeliveryAddress" name="matchDeliveryAddressInput"
|
|
615
631
|
@click=${e => {
|
|
616
|
-
|
|
617
|
-
? (this._disableBillingAddress = true)
|
|
618
|
-
: (this._disableBillingAddress = false)
|
|
632
|
+
e.currentTarget.checked ? (this._disableBillingAddress = true) : (this._disableBillingAddress = false)
|
|
619
633
|
}} />
|
|
620
634
|
<label for="matchDeliveryAddress">${i18next.t('label.use_as_billing_address')}</label>
|
|
621
635
|
</div>
|
|
622
636
|
</div>
|
|
623
637
|
|
|
624
638
|
|
|
625
|
-
<label>${i18next.t(
|
|
639
|
+
<label>${i18next.t("label.address_1")}</label>
|
|
626
640
|
<textarea name="deliveryAddress1" required .value="${this._deliveryAddress1}"></textarea>
|
|
627
641
|
|
|
628
|
-
<label>${i18next.t(
|
|
642
|
+
<label>${i18next.t("label.address_2")}</label>
|
|
629
643
|
<textarea name="deliveryAddress2" required .value="${this._deliveryAddress2}"></textarea>
|
|
630
644
|
|
|
631
|
-
<label>${i18next.t(
|
|
645
|
+
<label>${i18next.t("label.address_3")}</label>
|
|
632
646
|
<textarea name="deliveryAddress3" required .value="${this._deliveryAddress3}"></textarea>
|
|
633
647
|
|
|
634
|
-
<label>${i18next.t(
|
|
648
|
+
<label>${i18next.t("label.address_4")}</label>
|
|
635
649
|
<textarea name="deliveryAddress4" required .value="${this._deliveryAddress4}"></textarea>
|
|
636
650
|
|
|
637
|
-
<label>${i18next.t(
|
|
651
|
+
<label>${i18next.t("label.address_5")}</label>
|
|
638
652
|
<textarea name="deliveryAddress5" required .value="${this._deliveryAddress5}"></textarea>
|
|
639
653
|
|
|
640
654
|
<label>${i18next.t('label.country')}</label>
|
|
@@ -679,34 +693,22 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
679
693
|
<input name="city" required .value="${this._deliveryCity}" />
|
|
680
694
|
|
|
681
695
|
<!-- billing -->
|
|
682
|
-
<label ?hidden=${this._disableBillingAddress} class="section-header">${i18next.t(
|
|
683
|
-
'label.billing_address'
|
|
684
|
-
)}</label>
|
|
696
|
+
<label ?hidden=${this._disableBillingAddress} class="section-header">${i18next.t('label.billing_address')}</label>
|
|
685
697
|
|
|
686
698
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_1')}</label>
|
|
687
|
-
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress" required .value="${
|
|
688
|
-
this._billingAddress
|
|
689
|
-
}"></textarea>
|
|
699
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress" required .value="${this._billingAddress}"></textarea>
|
|
690
700
|
|
|
691
701
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_2')}</label>
|
|
692
|
-
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress2" required .value="${
|
|
693
|
-
this._billingAddress2
|
|
694
|
-
}"></textarea>
|
|
702
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress2" required .value="${this._billingAddress2}"></textarea>
|
|
695
703
|
|
|
696
704
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_3')}</label>
|
|
697
|
-
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress3" required .value="${
|
|
698
|
-
this._billingAddress3
|
|
699
|
-
}"></textarea>
|
|
705
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress3" required .value="${this._billingAddress3}"></textarea>
|
|
700
706
|
|
|
701
707
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_4')}</label>
|
|
702
|
-
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress4" required .value="${
|
|
703
|
-
this._billingAddress4
|
|
704
|
-
}"></textarea>
|
|
708
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress4" required .value="${this._billingAddress4}"></textarea>
|
|
705
709
|
|
|
706
710
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_5')}</label>
|
|
707
|
-
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress5" required .value="${
|
|
708
|
-
this._billingAddress5
|
|
709
|
-
}"></textarea>
|
|
711
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress5" required .value="${this._billingAddress5}"></textarea>
|
|
710
712
|
|
|
711
713
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.country')}</label>
|
|
712
714
|
<select ?hidden=${this._disableBillingAddress}
|
|
@@ -721,19 +723,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
721
723
|
|
|
722
724
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.zip_postal_code')}</label>
|
|
723
725
|
|
|
724
|
-
${
|
|
726
|
+
${
|
|
725
727
|
this._switchBillingCountryInput
|
|
726
728
|
? html`
|
|
727
|
-
<input
|
|
728
|
-
?hidden=${this._disableBillingAddress}
|
|
729
|
+
<input ?hidden=${this._disableBillingAddress}
|
|
729
730
|
?disabled=${this._disableBillingAddress ? true : false}
|
|
730
731
|
name="billingPostalCode"
|
|
731
732
|
required
|
|
732
733
|
.value=""
|
|
733
734
|
/>
|
|
734
735
|
`
|
|
735
|
-
: html`<select
|
|
736
|
-
?hidden=${this._disableBillingAddress}
|
|
736
|
+
: html`<select ?hidden=${this._disableBillingAddress}
|
|
737
737
|
?disabled=${this._disableBillingAddress ? true : false}
|
|
738
738
|
name="billingPostalCode"
|
|
739
739
|
@change=${e => {
|
|
@@ -754,9 +754,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
754
754
|
.value="${this._billingState}" />
|
|
755
755
|
|
|
756
756
|
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.city')}</label>
|
|
757
|
-
<input ?hidden=${this._disableBillingAddress} ?disabled=${
|
|
758
|
-
this._disableBillingAddress ? true : false
|
|
759
|
-
} name="billingCity" required
|
|
757
|
+
<input ?hidden=${this._disableBillingAddress} ?disabled=${this._disableBillingAddress ? true : false} name="billingCity" required
|
|
760
758
|
.value="${this._billingCity}" />
|
|
761
759
|
|
|
762
760
|
</form>
|
|
@@ -1091,7 +1089,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1091
1089
|
this.initProperties()
|
|
1092
1090
|
this._getAllPostCode()
|
|
1093
1091
|
this.fetchCountry()
|
|
1094
|
-
this._disableBillingAddress = true
|
|
1092
|
+
this._disableBillingAddress = true;
|
|
1095
1093
|
this._pickingStd = PICKING_STANDARD.SELECT_BY_PRODUCT.value
|
|
1096
1094
|
this._bundleSettingData = []
|
|
1097
1095
|
this._vasExpanded = false
|
|
@@ -1454,7 +1452,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1454
1452
|
this._deliveryAddress2 = ''
|
|
1455
1453
|
this._deliveryAddress3 = ''
|
|
1456
1454
|
this._deliveryAddress4 = ''
|
|
1457
|
-
this._deliveryAddress5 = ''
|
|
1455
|
+
this._deliveryAddress5 = ''
|
|
1458
1456
|
this._billingAddress = ''
|
|
1459
1457
|
this._billingAddress2 = ''
|
|
1460
1458
|
this._billingAddress3 = ''
|
|
@@ -1619,13 +1617,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1619
1617
|
width: 100
|
|
1620
1618
|
},
|
|
1621
1619
|
{
|
|
1622
|
-
type: '
|
|
1620
|
+
type: 'integer',
|
|
1623
1621
|
name: 'remainQty',
|
|
1624
1622
|
header: i18next.t('field.available_qty'),
|
|
1625
1623
|
width: 140
|
|
1626
1624
|
},
|
|
1627
1625
|
{
|
|
1628
|
-
type: '
|
|
1626
|
+
type: 'integer',
|
|
1629
1627
|
name: 'releaseQty',
|
|
1630
1628
|
header: i18next.t('field.release_qty'),
|
|
1631
1629
|
imex: { header: i18next.t('field.release_qty'), key: 'releaseQty', width: 25, type: 'float' },
|
|
@@ -1785,13 +1783,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1785
1783
|
width: 100
|
|
1786
1784
|
},
|
|
1787
1785
|
{
|
|
1788
|
-
type: '
|
|
1786
|
+
type: 'integer',
|
|
1789
1787
|
name: 'remainQty',
|
|
1790
1788
|
header: i18next.t('field.available_qty'),
|
|
1791
1789
|
width: 100
|
|
1792
1790
|
},
|
|
1793
1791
|
{
|
|
1794
|
-
type: '
|
|
1792
|
+
type: 'integer',
|
|
1795
1793
|
name: 'releaseQty',
|
|
1796
1794
|
header: i18next.t('field.release_qty'),
|
|
1797
1795
|
record: { editable: true, options: { min: 0 } },
|
|
@@ -1855,7 +1853,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1855
1853
|
|
|
1856
1854
|
roundedUomValue = releaseQty * (e.detail.after.remainUomValue / e.detail.after.remainQty)
|
|
1857
1855
|
|
|
1858
|
-
roundedUomValue = parseFloat(roundedUomValue.toFixed(
|
|
1856
|
+
roundedUomValue = parseFloat(roundedUomValue.toFixed(2))
|
|
1859
1857
|
}
|
|
1860
1858
|
} else {
|
|
1861
1859
|
let packageUomValue = e.detail.record.remainUomValue / e.detail.record.remainQty
|
|
@@ -1866,13 +1864,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1866
1864
|
e.detail.record.remainQty > 0
|
|
1867
1865
|
) {
|
|
1868
1866
|
if (columnName === 'releaseQty') {
|
|
1869
|
-
releaseQty =
|
|
1867
|
+
releaseQty = e.detail.after || 0
|
|
1870
1868
|
} else {
|
|
1871
1869
|
releaseQty = Math.round(e.detail.after / packageUomValue)
|
|
1872
1870
|
}
|
|
1873
1871
|
|
|
1874
1872
|
roundedUomValue = releaseQty * packageUomValue
|
|
1875
|
-
roundedUomValue = parseFloat(roundedUomValue.toFixed(
|
|
1873
|
+
roundedUomValue = parseFloat(roundedUomValue.toFixed(2))
|
|
1876
1874
|
this.releaseQty = releaseQty
|
|
1877
1875
|
this.releaseUomValue = roundedUomValue
|
|
1878
1876
|
}
|
|
@@ -1952,7 +1950,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1952
1950
|
|
|
1953
1951
|
productGroup.forEach(group => {
|
|
1954
1952
|
if (group.productId === record.productId) {
|
|
1955
|
-
releaseUomValue = Math.round(releaseUomValue *
|
|
1953
|
+
releaseUomValue = Math.round(releaseUomValue * 100) / 100
|
|
1956
1954
|
|
|
1957
1955
|
if (releaseQty > record.remainQty || Number.isNaN(releaseQty)) {
|
|
1958
1956
|
releaseQty = record.remainQty
|
|
@@ -2004,7 +2002,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2004
2002
|
|
|
2005
2003
|
// await this.bundleGrist.updateComplete
|
|
2006
2004
|
this.releaseQty = totalReleaseQty
|
|
2007
|
-
this.releaseUomValue = Math.round(totalReleaseUomValue *
|
|
2005
|
+
this.releaseUomValue = Math.round(totalReleaseUomValue * 100) / 100
|
|
2008
2006
|
}
|
|
2009
2007
|
}
|
|
2010
2008
|
|
|
@@ -2423,7 +2421,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2423
2421
|
shippingOrderInfo.billingAddress3 = shippingOrderInfo.deliveryAddress3
|
|
2424
2422
|
shippingOrderInfo.billingAddress4 = shippingOrderInfo.deliveryAddress4
|
|
2425
2423
|
shippingOrderInfo.billingAddress5 = shippingOrderInfo.deliveryAddress5
|
|
2426
|
-
shippingOrderInfo.billingCountry = shippingOrderInfo.country
|
|
2424
|
+
shippingOrderInfo.billingCountry = shippingOrderInfo.country
|
|
2427
2425
|
shippingOrderInfo.billingPostalCode = shippingOrderInfo.postalCode
|
|
2428
2426
|
shippingOrderInfo.billingCity = shippingOrderInfo.city
|
|
2429
2427
|
shippingOrderInfo.billingState = shippingOrderInfo.state
|
|
@@ -2703,13 +2701,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2703
2701
|
}
|
|
2704
2702
|
}
|
|
2705
2703
|
|
|
2706
|
-
if (inventories.some(record => record.isInventoryDecimal === false && record.releaseQty % 1 !== 0)) {
|
|
2707
|
-
const invalidRecord = inventories.find(
|
|
2708
|
-
record => record.isInventoryDecimal === false && record.releaseQty % 1 !== 0
|
|
2709
|
-
)
|
|
2710
|
-
throw new Error(i18next.t('text.decimal_quantities_not_allowed_for_sku', { sku: invalidRecord.productSKU }))
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
2704
|
if (inventories.some(record => record.locationType == 'DAMAGE') && recall == false) {
|
|
2714
2705
|
throw new Error(i18next.t('text.there_are_damaged_inventories'))
|
|
2715
2706
|
}
|
|
@@ -3759,7 +3750,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
3759
3750
|
width: 150
|
|
3760
3751
|
},
|
|
3761
3752
|
{
|
|
3762
|
-
type: '
|
|
3753
|
+
type: 'integer',
|
|
3763
3754
|
name: 'releaseQty',
|
|
3764
3755
|
header: i18next.t('field.release_qty'),
|
|
3765
3756
|
imex: { header: i18next.t('field.release_qty'), key: 'releaseQty', width: 25, type: 'float' },
|
|
@@ -4212,4 +4203,4 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
4212
4203
|
}
|
|
4213
4204
|
}
|
|
4214
4205
|
|
|
4215
|
-
window.customElements.define('create-release-order', CreateReleaseOrder)
|
|
4206
|
+
window.customElements.define('create-release-order', CreateReleaseOrder)
|
|
@@ -414,7 +414,7 @@ class ReceiveReleaseOrderRequest extends connect(store)(localize(i18next)(PageVi
|
|
|
414
414
|
width: 150
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
|
-
type: '
|
|
417
|
+
type: 'integer',
|
|
418
418
|
name: 'releaseQty',
|
|
419
419
|
header: i18next.t('field.release_qty'),
|
|
420
420
|
record: { options: { min: 0 } },
|
|
@@ -342,13 +342,13 @@ class RejectedReleaseOrder extends localize(i18next)(PageView) {
|
|
|
342
342
|
width: 150
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
|
-
type: '
|
|
345
|
+
type: 'integer',
|
|
346
346
|
name: 'qty',
|
|
347
347
|
header: i18next.t('field.available_qty'),
|
|
348
348
|
width: 100
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
|
-
type: '
|
|
351
|
+
type: 'integer',
|
|
352
352
|
name: 'releaseQty',
|
|
353
353
|
header: i18next.t('field.release_qty'),
|
|
354
354
|
record: { options: { min: 0 } },
|
|
@@ -278,13 +278,13 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
278
278
|
width: 100
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
type: '
|
|
281
|
+
type: 'integer',
|
|
282
282
|
name: 'addableQty',
|
|
283
283
|
header: i18next.t('field.addable_qty'),
|
|
284
284
|
width: 100
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
|
-
type: '
|
|
287
|
+
type: 'integer',
|
|
288
288
|
name: 'releaseQty',
|
|
289
289
|
header: i18next.t('field.release_qty'),
|
|
290
290
|
record: { editable: true, options: { min: 0 } },
|
|
@@ -345,11 +345,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
345
345
|
{ name: 'status', operator: 'eq', value: INVENTORY_STATUS.STORED.value },
|
|
346
346
|
{ name: 'bizplace_id', value: this.bizplace, operator: 'eq' },
|
|
347
347
|
{ name: 'recall', value: this.recall ? this.recall : false, operator: '' },
|
|
348
|
-
{
|
|
349
|
-
name: 'invFilter',
|
|
350
|
-
value: this.existingInventoryGrist.dirtyData.records.map(itm => itm.inventory.id),
|
|
351
|
-
operator: 'eq'
|
|
352
|
-
}
|
|
348
|
+
{ name: 'invFilter', value: this.existingInventoryGrist.dirtyData.records.map(itm => itm.inventory.id), operator: 'eq' }
|
|
353
349
|
],
|
|
354
350
|
locationSortingRules
|
|
355
351
|
},
|
|
@@ -405,13 +401,13 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
405
401
|
width: 150
|
|
406
402
|
},
|
|
407
403
|
{
|
|
408
|
-
type: '
|
|
404
|
+
type: 'integer',
|
|
409
405
|
name: 'remainQty',
|
|
410
406
|
header: i18next.t('field.available_qty'),
|
|
411
407
|
width: 100
|
|
412
408
|
},
|
|
413
409
|
{
|
|
414
|
-
type: '
|
|
410
|
+
type: 'integer',
|
|
415
411
|
name: 'releaseQty',
|
|
416
412
|
header: i18next.t('field.release_qty'),
|
|
417
413
|
record: { editable: true, options: { min: 0 } },
|
|
@@ -647,7 +643,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
647
643
|
}
|
|
648
644
|
|
|
649
645
|
roundedUom = releaseQty * packageUom
|
|
650
|
-
roundedUom = parseFloat(roundedUom.toFixed(
|
|
646
|
+
roundedUom = parseFloat(roundedUom.toFixed(2))
|
|
651
647
|
}
|
|
652
648
|
} else {
|
|
653
649
|
releaseQty = afterValue
|
|
@@ -681,7 +677,7 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
681
677
|
}
|
|
682
678
|
}
|
|
683
679
|
roundedUomValue = releaseQty * packageUomValue
|
|
684
|
-
roundedUomValue = parseFloat(roundedUomValue.toFixed(
|
|
680
|
+
roundedUomValue = parseFloat(roundedUomValue.toFixed(2))
|
|
685
681
|
} else {
|
|
686
682
|
releaseQty = e.detail.after
|
|
687
683
|
roundedUomValue = e.detail.after
|