@feedmepos/mf-inventory-portal 1.8.3 → 1.9.0-dev.2
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/dist/{App-dPmHx6yu.js → App-0333Hh25.js} +10 -10
- package/dist/{ApprovalView-DgtYa5fe.js → ApprovalView-CZLYqnnT.js} +9 -9
- package/dist/{BindingsDialog-BDxnEduy.js → BindingsDialog-CA02lqel.js} +2 -2
- package/dist/{BindingsPicker-CU4L71lq.js → BindingsPicker-CwDLZ-ki.js} +3 -3
- package/dist/{BindingsTable-CIgv0rsF.js → BindingsTable-BX87v_kq.js} +10 -10
- package/dist/{BulkReceiveRequestPage-6dF9r-mz.js → BulkReceiveRequestPage-Vh0Rfa8e.js} +217 -217
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DdhFwF_6.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-0fI4-Pao.js} +1 -1
- package/dist/{ClosingDraftView-B7SnGjGQ.js → ClosingDraftView-CxNgkVY_.js} +19 -19
- package/dist/{ClosingHistoryView-CvnkFqgN.js → ClosingHistoryView-CUCepuA7.js} +7 -7
- package/dist/{ClosingTemplateView-Ci4q3Eok.js → ClosingTemplateView-BHe5gCFH.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-D4cDxN4Q.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-B6Ge_6VY.js} +1 -1
- package/dist/{DefaultView-M_bM_S8P.js → DefaultView-V-9a_YfK.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-C8Wwriji.js → DeliveryOrderPrintPreview-BiwT9953.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-icB0dmIu.js → EmailDialog.vue_vue_type_script_setup_true_lang-I_6Wu-P-.js} +11723 -11601
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BlBO823W.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js} +1 -1
- package/dist/{FeatureCapabilityGate-DLf5LdXz.js → FeatureCapabilityGate-B4VGdv_F.js} +2 -2
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-BmkxjjKw.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-CvFbN-7h.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BbKcW3S_.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Qd3R-TWu.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BCAV7Im3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8QTtw9i.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-_vGS-Cr4.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cz5saN2u.js} +2 -2
- package/dist/{FmMultiselectDialog-DeDs-TIr.js → FmMultiselectDialog-BK0r-tyZ.js} +2 -2
- package/dist/{FmMultiselectDialog-CsN4Ii6h.js → FmMultiselectDialog-CFx8Qcyc.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-f1NlYq6J.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Cuyu_K9x.js} +5 -5
- package/dist/{ImportView-CX4_wi57.js → ImportView-Ci9vufCx.js} +7 -7
- package/dist/{IngredientsView-DoNd32Ib.js → IngredientsView-4s7vcW9U.js} +68 -68
- package/dist/{IntegrationExplorerView-BTdmAin2.js → IntegrationExplorerView-CtGuW0uI.js} +6 -6
- package/dist/{IntegrationPlatformView-DKXQMng3.js → IntegrationPlatformView-SpCAu3Fu.js} +2 -2
- package/dist/{IntegrationView-ORNTg24P.js → IntegrationView-DjQ4wbXh.js} +15 -15
- package/dist/{InventoryBindingForm-x2LSXl9d.js → InventoryBindingForm-Bb5k9tav.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-ChS4qHky.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CISHYfRi.js} +4 -4
- package/dist/{InventoryBindingSummary-fmTmxL2I.js → InventoryBindingSummary-CkN9QdNL.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DWtQm-Wt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C9hasqsO.js} +2 -2
- package/dist/{ProductionRunDetailPage-CZUf9YLY.js → ProductionRunDetailPage-BTNY3v9C.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-B8gRymyO.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTOibYjJ.js} +8 -8
- package/dist/{ProductionRunPage-Bp0Wnkg0.js → ProductionRunPage-GrWt4iw2.js} +4 -4
- package/dist/{PublishView-CuXkWOeY.js → PublishView-1sBMVk4p.js} +5 -5
- package/dist/{PurchaseOrderPrintPreview-UasE6Fqr.js → PurchaseOrderPrintPreview-DYwbSUVy.js} +13 -13
- package/dist/ReceiveRequestView-DuU5hqQU.js +729 -0
- package/dist/{RecipeView-BNpt7mbz.js → RecipeView-CGkE2cX2.js} +16 -16
- package/dist/{SettingsView-CWCHOfEp.js → SettingsView-j5UKU2Z5.js} +7 -7
- package/dist/{StockView-BYhMoXqP.js → StockView-CMYUShkK.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DK360rT4.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcomAJoj.js} +1 -1
- package/dist/{SupplierView-pKEJiboE.js → SupplierView-whYEtaTf.js} +13 -13
- package/dist/{SurchargeView-muI0OHV3.js → SurchargeView-BqT_PfTk.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bp6i0ciG.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpiuOVuT.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DM5BKMB_.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C5GOz40T.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ajtRmauo.js +4961 -0
- package/dist/{TransferTemplateView-DZuCe50F.js → TransferTemplateView-ZJYWzTCZ.js} +19 -19
- package/dist/{UnitCostHistoryView-BuZUjek3.js → UnitCostHistoryView-DWcB9nbL.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BFznmzuq.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-60B3tkI-.js} +4 -4
- package/dist/{UnitView-C1tgtn8C.js → UnitView-BWX8BecE.js} +7 -7
- package/dist/{WarehouseView-B2K-eE4X.js → WarehouseView-CfWLJlP2.js} +8 -8
- package/dist/{WastageTemplateView-BwrSszU4.js → WastageTemplateView-Gb64MBgD.js} +15 -15
- package/dist/{app-B9scy5at.js → app-Coquqqkh.js} +1191 -1208
- package/dist/app.js +1 -1
- package/dist/{bulk-edit-simulation.helper-WjS-_pe-.js → bulk-edit-simulation.helper-DUAiYzrr.js} +2 -2
- package/dist/{closing-template-BTzPwPC9.js → closing-template-BK-yS2H4.js} +1 -1
- package/dist/{date2-D7Le3_bn.js → date2-79rkBzVf.js} +1 -1
- package/dist/{dayjs.min-D6kI4XKV.js → dayjs.min-CciBGvaL.js} +1 -1
- package/dist/{decimal-BgcHXtEW.js → decimal--BREmfoS.js} +2 -2
- package/dist/defineDeepModel-BRSFHwsW.js +19 -0
- package/dist/{duplicate-template-BwbInaPK.js → duplicate-template-CcEqsP8Q.js} +1 -1
- package/dist/{feature-Bq8EXhKG.js → feature-DdZZAV6X.js} +51 -46
- package/dist/{format-time-from-id-Cvflm51N.js → format-time-from-id-C7YvcXDM.js} +1 -1
- package/dist/{format-unit-display-Bg7Ff76p.js → format-unit-display-Dfiq_rw7.js} +13 -12
- package/dist/{id-to-date-DAY1m6PQ.js → id-to-date-6hzUYycs.js} +1 -1
- package/dist/{import-export.helper-0PY9JJKl.js → import-export.helper-D5QuDEDV.js} +5 -5
- package/dist/{index-BYyRelZz.js → index-CD9IHjp3.js} +1 -1
- package/dist/{index-7umhUG8Q.js → index-CPFsBIFO.js} +3 -3
- package/dist/{index-BK3t_4us.js → index-Crdk73ES.js} +1 -1
- package/dist/{lz-string-CK3kC4Eb.js → lz-string-CCRQaGZF.js} +1 -1
- package/dist/{netsuite-Cqoa7t4H.js → netsuite-C_VLrQoH.js} +2 -2
- package/dist/{netsuite-explorer-D96IbnhU.js → netsuite-explorer-BCuM8JZ1.js} +1 -1
- package/dist/{predefined-templates-B9c2s33F.js → predefined-templates-BV4NkB9O.js} +1 -1
- package/dist/{publish-versions-JlA3KSXU.js → publish-versions-BinCKAtn.js} +1 -1
- package/dist/{purchase-order-template-BFrjEkhb.js → purchase-order-template-BZUOWGmV.js} +1 -1
- package/dist/{recalculationUtils-anW9vYxT.js → recalculationUtils-ISOYv_rW.js} +1 -1
- package/dist/{row-action.enum-BDYmiPNT.js → row-action.enum-BQCb8S3i.js} +1 -1
- package/dist/{rules-BRjC9u5h.js → rules-CW08Pe1t.js} +3 -3
- package/dist/{stock-DusWqnp5.js → stock-Bh5IJNfM.js} +1 -1
- package/dist/{stock-RwhIoJMM.js → stock-Cv_zWpOe.js} +2 -2
- package/dist/stores/feature.d.ts +4 -2
- package/dist/{supplier-0dQn8fQ8.js → supplier-D3h2DfJz.js} +2 -2
- package/dist/{surcharge-i2ndhTQn.js → surcharge-9e8wa-vK.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-CJfwzrbF.js → uom-rules-BRmDOW0t.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CnUVZRMN.js → use-ingredient-select-dialog-D8ibotty.js} +2 -2
- package/dist/{use-inventory-binding-dialog-3c697f9B.js → use-inventory-binding-dialog-D2xL-vbo.js} +2 -2
- package/dist/{use-template-enabled-locations-DsR1qSPK.js → use-template-enabled-locations-Bb7vUiAf.js} +2 -2
- package/dist/{use-transfer-locations-Cqd4RYpk.js → use-transfer-locations-B2yday-I.js} +3 -2
- package/dist/{useHrmPermission-COaQXmjc.js → useHrmPermission-CPEJKpoy.js} +4 -4
- package/dist/{useNavigationMenu-CfNedojJ.js → useNavigationMenu-SHKOcKP-.js} +60 -60
- package/dist/{useSseClient-7I7QwRxw.js → useSseClient-ED9mFSXt.js} +1 -1
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
- package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
- package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
- package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
- package/dist/{vue-BUGlBKP5.js → vue-Tmyz7_6a.js} +49 -53
- package/dist/{vue-i18n-DMio3L-b.js → vue-i18n-BY0GeUdz.js} +492 -492
- package/dist/{xlsx.util-BUw39hzN.js → xlsx.util-DQnB9ape.js} +2 -2
- package/package.json +5 -5
- package/dist/ReceiveRequestView-QoBax953.js +0 -346
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CNSfZLiT.js +0 -4953
- package/dist/defineDeepModel-1Dyqqhij.js +0 -19
package/dist/{use-ingredient-select-dialog-CnUVZRMN.js → use-ingredient-select-dialog-D8ibotty.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-Coquqqkh.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-CFx8Qcyc.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
package/dist/{use-inventory-binding-dialog-3c697f9B.js → use-inventory-binding-dialog-D2xL-vbo.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as y } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as S } from "./app-
|
|
1
|
+
import { a as y } from "./FmMultiselectDialog-CFx8Qcyc.js";
|
|
2
|
+
import { a as S } from "./app-Coquqqkh.js";
|
|
3
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
function w() {
|
|
5
5
|
const c = S(), g = E();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-CFx8Qcyc.js";
|
|
2
|
+
import { u as S } from "./app-Coquqqkh.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l,
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, a3 as w, a5 as R } from "./app-Coquqqkh.js";
|
|
2
|
+
import { u as E } from "./supplier-D3h2DfJz.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -105,6 +105,7 @@ function F(n, c, y = !1, f = !1) {
|
|
|
105
105
|
transferLocationModel: h,
|
|
106
106
|
transferLocationOptions: O,
|
|
107
107
|
locationOptionsTypePurchase: S,
|
|
108
|
+
locationOptionsTypePurchaseBusinessLevel: T,
|
|
108
109
|
locationOptionsTypePurchaseLocationLevel: v,
|
|
109
110
|
locationOptionsTypeTransfer: b,
|
|
110
111
|
selectedLocation: P
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as p, toValue as o } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { ae as n } from "./app-Coquqqkh.js";
|
|
3
3
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
4
4
|
function g(t, i = "all") {
|
|
5
5
|
const m = c();
|
|
6
6
|
return { hasPermission: p(() => {
|
|
7
|
-
var
|
|
7
|
+
var s;
|
|
8
8
|
const r = o(t), u = o(i);
|
|
9
9
|
if (r.length === 0) return !0;
|
|
10
|
-
const
|
|
11
|
-
return u === "any" ? r.some((a) => n([a],
|
|
10
|
+
const e = ((s = m.sessionUser.value) == null ? void 0 : s.permissions) ?? [];
|
|
11
|
+
return u === "any" ? r.some((a) => n([a], e).granted) : n(r, e).granted;
|
|
12
12
|
}) };
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as R, h as p } from "vue";
|
|
2
2
|
import { components as U } from "@feedmepos/ui-library";
|
|
3
|
-
import { R as e, a as
|
|
4
|
-
import { useCoreStore as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as k, I as E, e as f } from "./feature-
|
|
7
|
-
import { e as V, g as _, d as B, f as D
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
3
|
+
import { R as e, a as L, af as y, ag as G, ae as M } from "./app-Coquqqkh.js";
|
|
4
|
+
import { useCoreStore as H, useI18n as K } from "@feedmepos/mf-common";
|
|
5
|
+
import { u as F } from "./publish-versions-BinCKAtn.js";
|
|
6
|
+
import { u as k, I as E, e as f } from "./feature-DdZZAV6X.js";
|
|
7
|
+
import { e as V, g as _, d as B, f as D } from "./vue-Tmyz7_6a.js";
|
|
8
|
+
import { _ as w } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js";
|
|
9
|
+
const C = [
|
|
10
10
|
{
|
|
11
11
|
route: e.STOCK,
|
|
12
12
|
module: "Stock",
|
|
@@ -142,58 +142,58 @@ const P = [
|
|
|
142
142
|
tier: "standard",
|
|
143
143
|
description: "Inspect and manage integration records and synchronization."
|
|
144
144
|
}
|
|
145
|
-
],
|
|
146
|
-
|
|
145
|
+
], W = Object.fromEntries(
|
|
146
|
+
C.map((s) => {
|
|
147
147
|
var d;
|
|
148
|
-
const
|
|
148
|
+
const o = _(s.featureKey ?? "");
|
|
149
149
|
return [
|
|
150
|
-
|
|
150
|
+
s.route,
|
|
151
151
|
B({
|
|
152
|
-
key:
|
|
153
|
-
minimumTier:
|
|
154
|
-
release:
|
|
155
|
-
flagKeys:
|
|
152
|
+
key: s.route,
|
|
153
|
+
minimumTier: s.tier,
|
|
154
|
+
release: s.release ?? ((d = o == null ? void 0 : o.definition) == null ? void 0 : d.release),
|
|
155
|
+
flagKeys: o == null ? void 0 : o.flagKeys
|
|
156
156
|
})
|
|
157
157
|
];
|
|
158
158
|
})
|
|
159
159
|
);
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function Q(s) {
|
|
161
|
+
return C.find((o) => o.route === s) ?? null;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
163
|
+
function Y(s) {
|
|
164
|
+
return s ? W[s] ?? null : null;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
const d =
|
|
168
|
-
return d ? V(d,
|
|
166
|
+
function te(s, o) {
|
|
167
|
+
const d = Y(s);
|
|
168
|
+
return d ? V(d, o) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
(
|
|
170
|
+
const x = G.reduce(
|
|
171
|
+
(s, o) => {
|
|
172
172
|
var d;
|
|
173
|
-
return
|
|
173
|
+
return o.name && (s[o.name] = (d = o.meta) == null ? void 0 : d.validationManifest), s;
|
|
174
174
|
},
|
|
175
175
|
{}
|
|
176
176
|
);
|
|
177
|
-
function
|
|
178
|
-
const
|
|
177
|
+
function re() {
|
|
178
|
+
const s = H(), o = k(), d = L(), I = F(), { t: m } = K(), a = (r) => y(r, m), N = R(
|
|
179
179
|
() => {
|
|
180
180
|
var r;
|
|
181
|
-
return ((r =
|
|
181
|
+
return ((r = s.sessionUser.value) == null ? void 0 : r.permissions) ?? [];
|
|
182
182
|
}
|
|
183
|
-
),
|
|
184
|
-
const t =
|
|
185
|
-
return
|
|
183
|
+
), P = (r = []) => r.length === 0 ? !0 : M(r, N.value).granted, n = (r) => {
|
|
184
|
+
const t = x[r];
|
|
185
|
+
return P(t == null ? void 0 : t.requiredCaslPermissions);
|
|
186
186
|
}, c = (r) => {
|
|
187
187
|
var t;
|
|
188
|
-
return ((t =
|
|
188
|
+
return ((t = o.flags.find((u) => u.name === r)) == null ? void 0 : t.beta) !== !1 && !o.isFlagOn(r);
|
|
189
189
|
}, S = (r) => r.filter((t) => !t.hide).map((t) => t.children ? { ...t, children: S(t.children) } : t).filter((t) => !t.children || t.children.length > 0), g = (r) => r.map((t) => {
|
|
190
|
-
const { hide:
|
|
191
|
-
return i && (
|
|
190
|
+
const { hide: u, children: i, ...l } = t, T = { ...l };
|
|
191
|
+
return i && (T.children = g(i)), T;
|
|
192
192
|
}), v = (r) => r.map((t) => {
|
|
193
|
-
const
|
|
193
|
+
const u = t.value, i = Q(u), l = _((i == null ? void 0 : i.featureKey) ?? ""), T = l == null ? void 0 : l.category, A = i && (i.tier === "premium" || T === "beta" || l != null && l.deprecateSoon) ? () => p(w, {
|
|
194
194
|
tier: i.tier,
|
|
195
|
-
category:
|
|
196
|
-
deprecateSoon:
|
|
195
|
+
category: T,
|
|
196
|
+
deprecateSoon: l == null ? void 0 : l.deprecateSoon,
|
|
197
197
|
featureKey: i.featureKey
|
|
198
198
|
}) : void 0;
|
|
199
199
|
return {
|
|
@@ -204,27 +204,27 @@ function ae() {
|
|
|
204
204
|
}), O = (r) => r.map((t) => {
|
|
205
205
|
if (t.value !== e.PUBLISH) return t;
|
|
206
206
|
if (I.loadingAll)
|
|
207
|
-
return { ...t, badge: () =>
|
|
208
|
-
const
|
|
209
|
-
return
|
|
207
|
+
return { ...t, badge: () => p(U.FmCircularProgress, { size: "md" }) };
|
|
208
|
+
const u = I.outdatedCount(d.state.inventory.updatedAt);
|
|
209
|
+
return u > 0 ? {
|
|
210
210
|
...t,
|
|
211
|
-
badge: () =>
|
|
211
|
+
badge: () => p(
|
|
212
212
|
"span",
|
|
213
213
|
{
|
|
214
|
-
title: `${
|
|
214
|
+
title: `${u} locations outdated`,
|
|
215
215
|
class: "inline-flex items-center justify-center min-w-[20px] h-[20px] px-[6px] rounded-full bg-fm-color-system-warning-400 text-white fm-typo-en-body-sm-600"
|
|
216
216
|
},
|
|
217
|
-
|
|
217
|
+
u > 99 ? "99+" : String(u)
|
|
218
218
|
)
|
|
219
219
|
} : t;
|
|
220
|
-
}), h =
|
|
221
|
-
var
|
|
220
|
+
}), h = R(() => {
|
|
221
|
+
var u;
|
|
222
222
|
const r = [
|
|
223
223
|
{
|
|
224
224
|
label: a(e.STOCK),
|
|
225
225
|
children: [
|
|
226
226
|
{
|
|
227
|
-
label:
|
|
227
|
+
label: m("inventory.stock.stock_balance.title"),
|
|
228
228
|
value: e.STOCK,
|
|
229
229
|
hide: !n(e.STOCK)
|
|
230
230
|
},
|
|
@@ -241,12 +241,12 @@ function ae() {
|
|
|
241
241
|
{
|
|
242
242
|
label: a(e.UNIT_COST_HISTORY),
|
|
243
243
|
value: e.UNIT_COST_HISTORY,
|
|
244
|
-
hide: !n(e.UNIT_COST_HISTORY) ||
|
|
244
|
+
hide: !n(e.UNIT_COST_HISTORY) || o.isModuleBeta(f.Costing) && !o.isModuleEnabled(f.Costing)
|
|
245
245
|
}
|
|
246
246
|
]
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
|
-
label:
|
|
249
|
+
label: m("inventory.closing.title"),
|
|
250
250
|
children: [
|
|
251
251
|
{
|
|
252
252
|
label: a(e.CLOSING_HISTORY),
|
|
@@ -281,7 +281,7 @@ function ae() {
|
|
|
281
281
|
hide: !n(e.UNIT)
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
|
-
label:
|
|
284
|
+
label: m("inventory.transfer.title"),
|
|
285
285
|
children: [
|
|
286
286
|
{
|
|
287
287
|
label: a(e.RECEIVE_REQUEST),
|
|
@@ -306,7 +306,7 @@ function ae() {
|
|
|
306
306
|
{
|
|
307
307
|
label: a(e.TRANSFER_TEMPLATE),
|
|
308
308
|
value: e.TRANSFER_TEMPLATE,
|
|
309
|
-
hide: !n(e.TRANSFER_TEMPLATE)
|
|
309
|
+
hide: !n(e.TRANSFER_TEMPLATE)
|
|
310
310
|
}
|
|
311
311
|
]
|
|
312
312
|
},
|
|
@@ -343,15 +343,15 @@ function ae() {
|
|
|
343
343
|
], t = O(
|
|
344
344
|
v(g(S(r)))
|
|
345
345
|
);
|
|
346
|
-
return ((
|
|
346
|
+
return ((u = s.currentBusiness.value) == null ? void 0 : u.menuVersion) === "v3" ? t.filter(
|
|
347
347
|
(i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
|
|
348
348
|
) : t;
|
|
349
|
-
}), b =
|
|
350
|
-
function r(
|
|
351
|
-
for (const i of
|
|
349
|
+
}), b = R(() => {
|
|
350
|
+
function r(u) {
|
|
351
|
+
for (const i of u)
|
|
352
352
|
if (i.children && i.children.length > 0) {
|
|
353
|
-
const
|
|
354
|
-
if (
|
|
353
|
+
const l = r(i.children);
|
|
354
|
+
if (l) return l;
|
|
355
355
|
} else if (i.value)
|
|
356
356
|
return i.value;
|
|
357
357
|
}
|
|
@@ -360,7 +360,7 @@ function ae() {
|
|
|
360
360
|
return { menuItems: h, firstAccessibleRouteName: b };
|
|
361
361
|
}
|
|
362
362
|
export {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
363
|
+
te as e,
|
|
364
|
+
C as n,
|
|
365
|
+
re as u
|
|
366
366
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CreateOrderDialogProps } from './CreateOrderDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CreateOrderDialogProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:show": (show: boolean) => void;
|
|
4
|
+
select: (choice: import("../../helper/create-order-selection").CreateOrderChoice) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CreateOrderDialogProps>>> & Readonly<{
|
|
6
|
+
onSelect?: ((choice: import("../../helper/create-order-selection").CreateOrderChoice) => any) | undefined;
|
|
7
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreateOrderChoice } from '../../helper/create-order-selection';
|
|
2
|
+
export interface CreateOrderDialogProps {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
supplierId?: string;
|
|
5
|
+
supplierName?: string;
|
|
6
|
+
}
|
|
7
|
+
export type CreateOrderDialogPropsWithEventBinding = CreateOrderDialogProps & {
|
|
8
|
+
'onUpdate:show'?(show: boolean): void;
|
|
9
|
+
onSelect?(choice: CreateOrderChoice): void;
|
|
10
|
+
};
|
|
11
|
+
export interface CreateOrderDialogEvents {
|
|
12
|
+
(event: 'update:show', show: boolean): void;
|
|
13
|
+
(event: 'select', choice: CreateOrderChoice): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface TemplateListEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
invalidReason?: string;
|
|
5
|
+
sourceName: string;
|
|
6
|
+
itemCount: number;
|
|
7
|
+
time: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
title: string;
|
|
11
|
+
kind?: string | undefined;
|
|
12
|
+
entries: TemplateListEntry[];
|
|
13
|
+
showSource: boolean;
|
|
14
|
+
query: string;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
showBlank: boolean;
|
|
17
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
pick: (templateId: string) => void;
|
|
19
|
+
search: (query: string) => void;
|
|
20
|
+
blank: () => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
22
|
+
title: string;
|
|
23
|
+
kind?: string | undefined;
|
|
24
|
+
entries: TemplateListEntry[];
|
|
25
|
+
showSource: boolean;
|
|
26
|
+
query: string;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
showBlank: boolean;
|
|
29
|
+
}>>> & Readonly<{
|
|
30
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
31
|
+
onPick?: ((templateId: string) => any) | undefined;
|
|
32
|
+
onBlank?: (() => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface SidebarGroup {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
kind: string;
|
|
5
|
+
kindLabel: string;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
groups: SidebarGroup[];
|
|
10
|
+
selectedId: string | null;
|
|
11
|
+
query: string;
|
|
12
|
+
total: number;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
select: (id: string | null) => void;
|
|
16
|
+
search: (query: string) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
groups: SidebarGroup[];
|
|
19
|
+
selectedId: string | null;
|
|
20
|
+
query: string;
|
|
21
|
+
total: number;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
}>>> & Readonly<{
|
|
24
|
+
onSelect?: ((id: string | null) => any) | undefined;
|
|
25
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PermissionSubjectBusinessNamespace } from '@feedmepos/hrm-permission';
|
|
2
|
+
import { type CreateOrderChoice, type SourceOption } from '../../helper/create-order-selection';
|
|
3
|
+
export interface CreateOrderPorts {
|
|
4
|
+
templates: {
|
|
5
|
+
list(): FdoPurchaseOrderTemplate[];
|
|
6
|
+
loading(): boolean;
|
|
7
|
+
};
|
|
8
|
+
sources: {
|
|
9
|
+
currentLocationId(): string;
|
|
10
|
+
};
|
|
11
|
+
permissions: {
|
|
12
|
+
has(subject: PermissionSubjectBusinessNamespace | null): boolean;
|
|
13
|
+
};
|
|
14
|
+
netsuite: {
|
|
15
|
+
subsidiaryError(supplier: FdoPurchaseOrderSupplier): string | undefined;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface CreateOrderPreset {
|
|
19
|
+
show?: boolean;
|
|
20
|
+
supplierId?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const kindLabels: Record<SourceOption, string>;
|
|
23
|
+
export declare function useDefaultCreateOrderPorts(): CreateOrderPorts;
|
|
24
|
+
export declare function useCreateOrderDialog(preset: () => CreateOrderPreset, onSelect: (choice: CreateOrderChoice) => void, ports?: CreateOrderPorts): {
|
|
25
|
+
viewState: import("vue").ComputedRef<{
|
|
26
|
+
loading: boolean;
|
|
27
|
+
sidebar: {
|
|
28
|
+
groups: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
kind: SourceOption;
|
|
32
|
+
kindLabel: string;
|
|
33
|
+
count: number;
|
|
34
|
+
}[];
|
|
35
|
+
selectedId: string | null;
|
|
36
|
+
query: string;
|
|
37
|
+
total: number;
|
|
38
|
+
};
|
|
39
|
+
templates: {
|
|
40
|
+
title: string;
|
|
41
|
+
kind: string | undefined;
|
|
42
|
+
showSource: boolean;
|
|
43
|
+
showBlank: boolean;
|
|
44
|
+
query: string;
|
|
45
|
+
entries: {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
invalidReason: string | undefined;
|
|
49
|
+
sourceName: string;
|
|
50
|
+
itemCount: number;
|
|
51
|
+
time: string;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
actions: {
|
|
56
|
+
selectSidebar(sourceId: string | null): void;
|
|
57
|
+
searchSidebar(query: string): void;
|
|
58
|
+
searchTemplates(query: string): void;
|
|
59
|
+
pickTemplate(templateId: string): void;
|
|
60
|
+
startBlank(): void;
|
|
61
|
+
};
|
|
62
|
+
};
|
package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,7 +6,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6
6
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"update:show": (show: boolean) => void;
|
|
8
8
|
submitted: () => void;
|
|
9
|
+
change: (preset: import("../../helper/create-order-selection").ChangeOrderSourcePreset) => void;
|
|
9
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferDialogProps>>> & Readonly<{
|
|
11
|
+
onChange?: ((preset: import("../../helper/create-order-selection").ChangeOrderSourcePreset) => any) | undefined;
|
|
10
12
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
13
|
onSubmitted?: (() => any) | undefined;
|
|
12
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
import type { ChangeOrderSourcePreset } from '../../helper/create-order-selection';
|
|
2
3
|
export interface TransferDialogProps {
|
|
3
4
|
mode?: FormMode;
|
|
4
5
|
modelValue?: FdoPurchaseOrder;
|
|
5
6
|
templateId?: string;
|
|
7
|
+
supplier?: FdoPurchaseOrderSupplier;
|
|
8
|
+
changeable?: boolean;
|
|
9
|
+
singleFlow?: boolean;
|
|
6
10
|
show?: boolean;
|
|
7
11
|
lastClosingDate?: Date | null;
|
|
8
12
|
}
|
|
9
13
|
export interface TransferDialogEvents {
|
|
10
14
|
(event: 'update:show', show: boolean): void;
|
|
11
15
|
(event: 'submitted'): void;
|
|
16
|
+
(event: 'change', preset: ChangeOrderSourcePreset): void;
|
|
12
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChangeOrderSourcePreset } from '../../helper/create-order-selection';
|
|
1
2
|
export interface TransferFormProps {
|
|
2
3
|
modelValue?: FdoPurchaseOrder;
|
|
3
4
|
request?: FdoPurchaseOrderRequest;
|
|
@@ -8,10 +9,14 @@ export interface TransferFormProps {
|
|
|
8
9
|
skuBalanceMap?: Map<string, FdoSkuBalance>;
|
|
9
10
|
isBalanceLoading?: boolean;
|
|
10
11
|
lockedSupplier?: FdoPurchaseOrderSupplier;
|
|
12
|
+
changeable?: boolean;
|
|
13
|
+
singleFlow?: boolean;
|
|
11
14
|
}
|
|
12
15
|
export interface TransferFormEvents {
|
|
13
16
|
(event: 'validation-success'): void;
|
|
14
17
|
(event: 'form:ready'): void;
|
|
18
|
+
(event: 'form:blocked', blocked: boolean): void;
|
|
19
|
+
(event: 'change', preset: ChangeOrderSourcePreset): void;
|
|
15
20
|
(event: 'form:data-change', items: FdoPurchaseOrderItem[]): void;
|
|
16
21
|
}
|
|
17
22
|
export interface TransferFormExpose {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts
CHANGED
|
@@ -655,6 +655,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
655
655
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
656
656
|
"validation-success": () => void;
|
|
657
657
|
"form:ready": () => void;
|
|
658
|
+
"form:blocked": (blocked: boolean) => void;
|
|
659
|
+
change: (preset: import("../../helper/create-order-selection").ChangeOrderSourcePreset) => void;
|
|
658
660
|
"form:data-change": (items: {
|
|
659
661
|
measurement?: {
|
|
660
662
|
name: string;
|
|
@@ -753,8 +755,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
753
755
|
};
|
|
754
756
|
}[]) => void;
|
|
755
757
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferFormProps>>> & Readonly<{
|
|
758
|
+
onChange?: ((preset: import("../../helper/create-order-selection").ChangeOrderSourcePreset) => any) | undefined;
|
|
756
759
|
"onValidation-success"?: (() => any) | undefined;
|
|
757
760
|
"onForm:ready"?: (() => any) | undefined;
|
|
761
|
+
"onForm:blocked"?: ((blocked: boolean) => any) | undefined;
|
|
758
762
|
"onForm:data-change"?: ((items: {
|
|
759
763
|
measurement?: {
|
|
760
764
|
name: string;
|
|
@@ -18,5 +18,7 @@ export type { PurchaseOrderFormController, PurchaseOrderFormState, PurchaseOrder
|
|
|
18
18
|
export declare function usePurchaseOrderFormController(): {
|
|
19
19
|
controller: import("vue").ShallowRef<PurchaseOrderFormController, PurchaseOrderFormController>;
|
|
20
20
|
state: import("vue").ShallowRef<PurchaseOrderFormState, PurchaseOrderFormState>;
|
|
21
|
-
init: (po?: FdoPurchaseOrder
|
|
21
|
+
init: (po?: FdoPurchaseOrder, options?: {
|
|
22
|
+
singleFlow?: boolean;
|
|
23
|
+
}) => void;
|
|
22
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type WithToInventoryLocation } from '@/api/purchase-order';
|
|
2
2
|
import type { DateRange } from 'node_modules/@feedmepos/ui-library/dist/components/form/calendar/date-range-picker/common';
|
|
3
3
|
import type { TransferDialogProps } from '../components/transfer-dialog/TransferDialogProps';
|
|
4
|
+
import type { CreateOrderDialogPropsWithEventBinding } from '../components/create-order-dialog/CreateOrderDialogProps';
|
|
4
5
|
import type { TransferDetailsProps } from '../components/transfer-details/TransferDetailsProps';
|
|
5
6
|
import { F_PURCHASE_ORDER_ACTION } from '@feedmepos/zod-inventory';
|
|
6
7
|
import type { XilnexImportDialogProps } from '../import/props';
|
|
@@ -4979,6 +4980,7 @@ export declare function useReceiveRequestForm(scope: PO_SCOPE, initialDateRange?
|
|
|
4979
4980
|
fetchData: () => Promise<void> | undefined;
|
|
4980
4981
|
loading: import("vue").Ref<boolean, boolean>;
|
|
4981
4982
|
transferDialogProps: import("vue").Ref<TransferDialogProps | undefined, TransferDialogProps | undefined>;
|
|
4983
|
+
createOrderDialogProps: import("vue").Ref<CreateOrderDialogPropsWithEventBinding | undefined, CreateOrderDialogPropsWithEventBinding | undefined>;
|
|
4982
4984
|
promptCreateTransferDialog: (init?: Partial<FdoPurchaseOrder>) => Promise<void>;
|
|
4983
4985
|
promptUpdateTransferDialog: (po: FdoPurchaseOrder) => void;
|
|
4984
4986
|
transferDetailsProps: import("vue").Ref<TransferDetailsProps | undefined, TransferDetailsProps | undefined>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type OrderType = F_PURCHASE_ORDER_TRANSACTION_TYPE;
|
|
2
|
+
export type SourceOption = 'supplier' | 'warehouse' | 'restaurant';
|
|
3
|
+
export declare function optionForSource(type: OrderType, internal?: string | null): SourceOption;
|
|
4
|
+
export interface TemplateEntry {
|
|
5
|
+
template: FdoPurchaseOrderTemplate;
|
|
6
|
+
type: OrderType;
|
|
7
|
+
supplierId: string;
|
|
8
|
+
supplier: FdoPurchaseOrderSupplier;
|
|
9
|
+
invalidReason?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ChangeOrderSourcePreset {
|
|
12
|
+
type?: OrderType;
|
|
13
|
+
supplierId?: string;
|
|
14
|
+
supplierName?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateOrderChoice {
|
|
17
|
+
templateId?: string;
|
|
18
|
+
supplier?: FdoPurchaseOrderSupplier;
|
|
19
|
+
}
|
|
20
|
+
export declare function templateRequiredKind(ctx: {
|
|
21
|
+
premium: boolean;
|
|
22
|
+
ruleOn: boolean;
|
|
23
|
+
vendorRuleOn?: boolean;
|
|
24
|
+
currentLocationType: string;
|
|
25
|
+
supplierInternal?: string | null;
|
|
26
|
+
isLocationSupplier?: boolean;
|
|
27
|
+
hasTemplate: boolean;
|
|
28
|
+
}): 'warehouse' | 'vendor' | null;
|
|
29
|
+
export declare function isTemplateRequired(ctx: Parameters<typeof templateRequiredKind>[0]): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Same visibility rules as `getTemplateId()` in use-transfer-template-actions.ts:
|
|
32
|
+
* hide templates sourced from the current location or restricted to other locations,
|
|
33
|
+
* and grey out (rather than hide) the invalid ones. Invalid entries sort last.
|
|
34
|
+
*/
|
|
35
|
+
export declare function buildTemplateEntries(templates: FdoPurchaseOrderTemplate[], currentLocationId: string, getInvalidReason: (template: FdoPurchaseOrderTemplate) => string | undefined): TemplateEntry[];
|
|
36
|
+
export declare function entryKind(entry: TemplateEntry): SourceOption;
|
|
37
|
+
export interface SourceGroup {
|
|
38
|
+
source: FdoPurchaseOrderSupplier;
|
|
39
|
+
kind: SourceOption;
|
|
40
|
+
templates: TemplateEntry[];
|
|
41
|
+
}
|
|
42
|
+
/** Sources that have at least one template, each with its templates. */
|
|
43
|
+
export declare function groupTemplatesBySource(entries: TemplateEntry[]): SourceGroup[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|