@feedmepos/mf-inventory-portal 1.8.1 → 1.9.0-dev.1
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-BPhAFsnf.js → App-OAKZ4Qdf.js} +9 -9
- package/dist/{ApprovalView-DuJIX7ux.js → ApprovalView-DN0rWMUh.js} +9 -9
- package/dist/{BindingsDialog-BiNopu6T.js → BindingsDialog-BWpIeq6j.js} +2 -2
- package/dist/{BindingsPicker-C2GUK3np.js → BindingsPicker-DRROpR8i.js} +3 -3
- package/dist/{BindingsTable-DlPl5o1h.js → BindingsTable-BFEoUCIT.js} +10 -10
- package/dist/{BulkReceiveRequestPage-YtqUSPUN.js → BulkReceiveRequestPage-wnXszulg.js} +217 -217
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CAKGP0N3.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js} +1 -1
- package/dist/{ClosingDraftView-C0XEpqat.js → ClosingDraftView-BRNRWXnj.js} +19 -19
- package/dist/{ClosingHistoryView-C2Bl2vnF.js → ClosingHistoryView-DWPINMVP.js} +7 -7
- package/dist/{ClosingTemplateView-DAXyH1l9.js → ClosingTemplateView-gqjNm3Wi.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-sP8-Pw8r.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js} +1 -1
- package/dist/{DefaultView-QUjOTT9z.js → DefaultView-CTQ0-HzQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CNO7dng4.js → DeliveryOrderPrintPreview-gReWM4vq.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-MiLvwxSQ.js → EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js} +11723 -11601
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Bo7xjTer.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js} +1 -1
- package/dist/{FeatureCapabilityGate-CQrRBMcC.js → FeatureCapabilityGate-Ce4_ozRL.js} +2 -2
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-CIKrUrln.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DfCQ8SNd.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BTeJz4Mm.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DiwH0vnm.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js} +2 -2
- package/dist/{FmMultiselectDialog-Dne8GSe8.js → FmMultiselectDialog-B4Diosc4.js} +2 -2
- package/dist/{FmMultiselectDialog-BZvKKnBB.js → FmMultiselectDialog-CJLfLql2.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D1-MLyJi.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js} +5 -5
- package/dist/{ImportView-Dr-2cv9N.js → ImportView-DnYVbQ6I.js} +7 -7
- package/dist/{IngredientsView-BnaNrWb7.js → IngredientsView-COUJUWAb.js} +68 -68
- package/dist/{IntegrationExplorerView-Bjflxeha.js → IntegrationExplorerView-CgE2WN-x.js} +6 -6
- package/dist/{IntegrationPlatformView-fO7R9fGT.js → IntegrationPlatformView-BtTv4P3n.js} +2 -2
- package/dist/{IntegrationView-CxpmB0o2.js → IntegrationView-D_YkXYOW.js} +3049 -3032
- package/dist/{InventoryBindingForm-DbgvnZ9I.js → InventoryBindingForm-B4HvjUs9.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-3stkPlAW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js} +4 -4
- package/dist/{InventoryBindingSummary-BrIFW5dO.js → InventoryBindingSummary-CCFW8rw_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BAVjiZbm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js} +2 -2
- package/dist/{ProductionRunDetailPage-DhImFq9B.js → ProductionRunDetailPage-ChNKrpyj.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CCUBGX4K.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js} +8 -8
- package/dist/{ProductionRunPage-D9SaErg3.js → ProductionRunPage-FIUKUyDB.js} +4 -4
- package/dist/{PublishView-CmqorDCm.js → PublishView-JDX28AHk.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CvplcGNv.js → PurchaseOrderPrintPreview-C8-zlH52.js} +13 -13
- package/dist/ReceiveRequestView-DIuftfMU.js +729 -0
- package/dist/{RecipeView-CgJcpA_f.js → RecipeView-BKYAdx6j.js} +16 -16
- package/dist/{SettingsView-I1XEa1NJ.js → SettingsView-CZR-ELPO.js} +7 -7
- package/dist/{StockView-C2tK0oPv.js → StockView-C-9o5zUV.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DSz37GY_.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js} +1 -1
- package/dist/{SupplierView-C69gOB_i.js → SupplierView-CHX-eb1W.js} +13 -13
- package/dist/{SurchargeView-DfDtR1jP.js → SurchargeView-D1y5BUvB.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CWD44FiP.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-5RLeEfkg.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js +4961 -0
- package/dist/{TransferTemplateView-Dc892CSr.js → TransferTemplateView-Bq7Euggq.js} +19 -19
- package/dist/{UnitCostHistoryView-DkuDLBSq.js → UnitCostHistoryView-CLpnjeEP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-3Iyv5v10.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js} +4 -4
- package/dist/{UnitView-CakqjGDe.js → UnitView-RxPdbO_C.js} +7 -7
- package/dist/{WarehouseView-AUPuNwRA.js → WarehouseView-Ba_77-lL.js} +8 -8
- package/dist/{WastageTemplateView-1kxcX31h.js → WastageTemplateView-DRB3J1CD.js} +15 -15
- package/dist/{app-tiHt7P8o.js → app-B2FciWDu.js} +1191 -1208
- package/dist/app.js +1 -1
- package/dist/{bulk-edit-simulation.helper-D490leZh.js → bulk-edit-simulation.helper-gZPNWgS7.js} +2 -2
- package/dist/{closing-template-CAahWrPo.js → closing-template-L7d2nmhr.js} +1 -1
- package/dist/{date2-CKKZ3b1E.js → date2--N7dpGRR.js} +1 -1
- package/dist/{dayjs.min-CXmScEL-.js → dayjs.min-CFhuhXoi.js} +1 -1
- package/dist/{decimal-CE8yRxZg.js → decimal-gywux_Ld.js} +2 -2
- package/dist/defineDeepModel-B2EkoePs.js +19 -0
- package/dist/{duplicate-template-DGrH04lc.js → duplicate-template-t-iu60N3.js} +1 -1
- package/dist/{feature-BuUIX2LY.js → feature-CvQ6eKvB.js} +51 -46
- package/dist/{format-time-from-id-BQOfGm26.js → format-time-from-id-BVk3iOfV.js} +1 -1
- package/dist/{format-unit-display-BuBfy3bb.js → format-unit-display-CLmFpKSI.js} +13 -12
- package/dist/{id-to-date-B_aPAdeF.js → id-to-date-DKmIZp6I.js} +1 -1
- package/dist/{import-export.helper-DPqodvrw.js → import-export.helper-qShUWqck.js} +5 -5
- package/dist/{index-EgLlcZ4g.js → index-CJ1pZPwZ.js} +3 -3
- package/dist/{index-yTHfPUVq.js → index-CoGFfqOs.js} +1 -1
- package/dist/{index-CBkSXbQw.js → index-CrUvC9l4.js} +1 -1
- package/dist/{lz-string-Dgq0u7oK.js → lz-string-mHxrGSbY.js} +1 -1
- package/dist/{netsuite-BgB1tjJx.js → netsuite-BDcapEOO.js} +2 -2
- package/dist/{netsuite-explorer-BMtIwGyi.js → netsuite-explorer-FeiogpVF.js} +1 -1
- package/dist/{predefined-templates-BiuP4m7R.js → predefined-templates-CVAkYLi5.js} +1 -1
- package/dist/{purchase-order-template-D5Z0bPLL.js → purchase-order-template-CrRp6r28.js} +1 -1
- package/dist/{recalculationUtils-BitV6W_8.js → recalculationUtils-BuhlMBRB.js} +1 -1
- package/dist/{row-action.enum-CTNl1V0l.js → row-action.enum-b--87Y19.js} +1 -1
- package/dist/{rules-BpG29H9Z.js → rules-CFEKk1zY.js} +3 -3
- package/dist/{stock-DNV9xfbE.js → stock-B4FZa2Ci.js} +1 -1
- package/dist/{stock-DTzUuxKl.js → stock-Bet2VY1l.js} +2 -2
- package/dist/stores/feature.d.ts +4 -2
- package/dist/{supplier-8uMx5fFa.js → supplier-DX_LR2LR.js} +2 -2
- package/dist/{surcharge-D0c44dor.js → surcharge-gnQZF_xQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BErW6UQ4.js → uom-rules-B4qbIOqA.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CZTe4ayv.js → use-ingredient-select-dialog-BE5IHSwH.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D_N7K7pw.js → use-inventory-binding-dialog-B0xEQiLV.js} +2 -2
- package/dist/{use-template-enabled-locations-C1xNZr4V.js → use-template-enabled-locations-BvAG1cJF.js} +2 -2
- package/dist/{use-transfer-locations-BlSNA3qv.js → use-transfer-locations-pyDvqZxC.js} +3 -2
- package/dist/{useHrmPermission-Bd1_Ia_U.js → useHrmPermission-kFc2vRek.js} +4 -4
- package/dist/{useNavigationMenu-DXrUeRX9.js → useNavigationMenu-C9-LqWKt.js} +31 -31
- package/dist/{useSseClient-Di0ywAz-.js → useSseClient-CoafBOe-.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-C029rfpt.js → vue-BMDdrHy_.js} +49 -53
- package/dist/{vue-i18n-Bg7KOfUG.js → vue-i18n-Bkodg08l.js} +290 -290
- package/dist/{xlsx.util-BQrh6imS.js → xlsx.util-DOCqFSat.js} +2 -2
- package/package.json +3 -2
- package/dist/ReceiveRequestView-DAN7eOH5.js +0 -346
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dzlex2fK.js +0 -4953
- package/dist/defineDeepModel-BRZrUePH.js +0 -19
package/dist/{use-ingredient-select-dialog-CZTe4ayv.js → use-ingredient-select-dialog-BE5IHSwH.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-B2FciWDu.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-CJLfLql2.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-D_N7K7pw.js → use-inventory-binding-dialog-B0xEQiLV.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-CJLfLql2.js";
|
|
2
|
+
import { a as S } from "./app-B2FciWDu.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-CJLfLql2.js";
|
|
2
|
+
import { u as S } from "./app-B2FciWDu.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-B2FciWDu.js";
|
|
2
|
+
import { u as E } from "./supplier-DX_LR2LR.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-B2FciWDu.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,9 +1,9 @@
|
|
|
1
1
|
import { computed as R, h as P } from "vue";
|
|
2
|
-
import { R as e,
|
|
2
|
+
import { R as e, af as O, ag as A, ae as U } from "./app-B2FciWDu.js";
|
|
3
3
|
import { useCoreStore as b, useI18n as L } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as y, I as E, e as
|
|
5
|
-
import { e as G, g, d as M, f as
|
|
6
|
-
import { _ as K } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as y, I as E, e as g } from "./feature-CvQ6eKvB.js";
|
|
5
|
+
import { e as G, g as v, d as M, f as H } from "./vue-BMDdrHy_.js";
|
|
6
|
+
import { _ as K } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js";
|
|
7
7
|
const h = [
|
|
8
8
|
{
|
|
9
9
|
route: e.STOCK,
|
|
@@ -140,10 +140,10 @@ const h = [
|
|
|
140
140
|
tier: "standard",
|
|
141
141
|
description: "Inspect and manage integration records and synchronization."
|
|
142
142
|
}
|
|
143
|
-
],
|
|
143
|
+
], F = Object.fromEntries(
|
|
144
144
|
h.map((o) => {
|
|
145
145
|
var u;
|
|
146
|
-
const s =
|
|
146
|
+
const s = v(o.featureKey ?? "");
|
|
147
147
|
return [
|
|
148
148
|
o.route,
|
|
149
149
|
M({
|
|
@@ -155,40 +155,40 @@ const h = [
|
|
|
155
155
|
];
|
|
156
156
|
})
|
|
157
157
|
);
|
|
158
|
-
function
|
|
158
|
+
function k(o) {
|
|
159
159
|
return h.find((s) => s.route === o) ?? null;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
return o ?
|
|
161
|
+
function B(o) {
|
|
162
|
+
return o ? F[o] ?? null : null;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
const u =
|
|
164
|
+
function q(o, s) {
|
|
165
|
+
const u = B(o);
|
|
166
166
|
return u ? G(u, s) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const D = A.reduce(
|
|
169
169
|
(o, s) => {
|
|
170
170
|
var u;
|
|
171
171
|
return s.name && (o[s.name] = (u = s.meta) == null ? void 0 : u.validationManifest), o;
|
|
172
172
|
},
|
|
173
173
|
{}
|
|
174
174
|
);
|
|
175
|
-
function
|
|
175
|
+
function x() {
|
|
176
176
|
const o = b(), s = y(), { t: u } = L(), a = (t) => O(t, u), _ = R(
|
|
177
177
|
() => {
|
|
178
178
|
var t;
|
|
179
179
|
return ((t = o.sessionUser.value) == null ? void 0 : t.permissions) ?? [];
|
|
180
180
|
}
|
|
181
|
-
),
|
|
182
|
-
const r =
|
|
183
|
-
return
|
|
181
|
+
), N = (t = []) => t.length === 0 ? !0 : U(t, _.value).granted, n = (t) => {
|
|
182
|
+
const r = D[t];
|
|
183
|
+
return N(r == null ? void 0 : r.requiredCaslPermissions);
|
|
184
184
|
}, c = (t) => {
|
|
185
185
|
var r;
|
|
186
186
|
return ((r = s.flags.find((d) => d.name === t)) == null ? void 0 : r.beta) !== !1 && !s.isFlagOn(t);
|
|
187
|
-
},
|
|
187
|
+
}, I = (t) => t.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: I(r.children) } : r).filter((r) => !r.children || r.children.length > 0), m = (t) => t.map((r) => {
|
|
188
188
|
const { hide: d, children: i, ...l } = r, T = { ...l };
|
|
189
|
-
return i && (T.children =
|
|
190
|
-
}),
|
|
191
|
-
const d = r.value, i =
|
|
189
|
+
return i && (T.children = m(i)), T;
|
|
190
|
+
}), S = (t) => t.map((r) => {
|
|
191
|
+
const d = r.value, i = k(d), l = v((i == null ? void 0 : i.featureKey) ?? ""), T = l == null ? void 0 : l.category, C = i && (i.tier === "premium" || T === "beta" || l != null && l.deprecateSoon) ? () => P(K, {
|
|
192
192
|
tier: i.tier,
|
|
193
193
|
category: T,
|
|
194
194
|
deprecateSoon: l == null ? void 0 : l.deprecateSoon,
|
|
@@ -197,9 +197,9 @@ function z() {
|
|
|
197
197
|
return {
|
|
198
198
|
...r,
|
|
199
199
|
badge: C,
|
|
200
|
-
children: r.children ?
|
|
200
|
+
children: r.children ? S(r.children) : void 0
|
|
201
201
|
};
|
|
202
|
-
}),
|
|
202
|
+
}), p = R(() => {
|
|
203
203
|
var d;
|
|
204
204
|
const t = [
|
|
205
205
|
{
|
|
@@ -213,7 +213,7 @@ function z() {
|
|
|
213
213
|
{
|
|
214
214
|
label: a(e.PRODUCTION_RUN),
|
|
215
215
|
value: e.PRODUCTION_RUN,
|
|
216
|
-
hide: !n(e.PRODUCTION_RUN) ||
|
|
216
|
+
hide: !n(e.PRODUCTION_RUN) || H("production-runs").disabled
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
label: a(e.WASTAGE_TEMPLATE),
|
|
@@ -223,7 +223,7 @@ function z() {
|
|
|
223
223
|
{
|
|
224
224
|
label: a(e.UNIT_COST_HISTORY),
|
|
225
225
|
value: e.UNIT_COST_HISTORY,
|
|
226
|
-
hide: !n(e.UNIT_COST_HISTORY) || s.isModuleBeta(
|
|
226
|
+
hide: !n(e.UNIT_COST_HISTORY) || s.isModuleBeta(g.Costing) && !s.isModuleEnabled(g.Costing)
|
|
227
227
|
}
|
|
228
228
|
]
|
|
229
229
|
},
|
|
@@ -288,7 +288,7 @@ function z() {
|
|
|
288
288
|
{
|
|
289
289
|
label: a(e.TRANSFER_TEMPLATE),
|
|
290
290
|
value: e.TRANSFER_TEMPLATE,
|
|
291
|
-
hide: !n(e.TRANSFER_TEMPLATE)
|
|
291
|
+
hide: !n(e.TRANSFER_TEMPLATE)
|
|
292
292
|
}
|
|
293
293
|
]
|
|
294
294
|
},
|
|
@@ -322,11 +322,11 @@ function z() {
|
|
|
322
322
|
value: e.SETTINGS,
|
|
323
323
|
hide: !n(e.SETTINGS)
|
|
324
324
|
}
|
|
325
|
-
], r =
|
|
325
|
+
], r = S(m(I(t)));
|
|
326
326
|
return ((d = o.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
|
|
327
327
|
(i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
|
|
328
328
|
) : r;
|
|
329
|
-
}),
|
|
329
|
+
}), f = R(() => {
|
|
330
330
|
function t(d) {
|
|
331
331
|
for (const i of d)
|
|
332
332
|
if (i.children && i.children.length > 0) {
|
|
@@ -335,12 +335,12 @@ function z() {
|
|
|
335
335
|
} else if (i.value)
|
|
336
336
|
return i.value;
|
|
337
337
|
}
|
|
338
|
-
return t(
|
|
338
|
+
return t(p.value) ?? null;
|
|
339
339
|
});
|
|
340
|
-
return { menuItems:
|
|
340
|
+
return { menuItems: p, firstAccessibleRouteName: f };
|
|
341
341
|
}
|
|
342
342
|
export {
|
|
343
|
-
|
|
343
|
+
q as e,
|
|
344
344
|
h as n,
|
|
345
|
-
|
|
345
|
+
x as u
|
|
346
346
|
};
|
|
@@ -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 {};
|
|
@@ -43,6 +43,47 @@ export declare function useTransferLocations(modelGetter: () => Partial<FdoPurch
|
|
|
43
43
|
country: string;
|
|
44
44
|
};
|
|
45
45
|
}[]>;
|
|
46
|
+
locationOptionsTypePurchaseBusinessLevel: import("vue").ComputedRef<{
|
|
47
|
+
_rev?: string | null | undefined;
|
|
48
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
49
|
+
contactName?: string | null | undefined;
|
|
50
|
+
email?: string | null | undefined;
|
|
51
|
+
phoneNumber?: string | null | undefined;
|
|
52
|
+
registrationNumber?: string | undefined;
|
|
53
|
+
supplyItems?: {
|
|
54
|
+
skuId: string;
|
|
55
|
+
defaultCost: {
|
|
56
|
+
measurement?: {
|
|
57
|
+
name: string;
|
|
58
|
+
id: string;
|
|
59
|
+
abbrev: string;
|
|
60
|
+
conversion: {
|
|
61
|
+
amount: number;
|
|
62
|
+
precision: number;
|
|
63
|
+
};
|
|
64
|
+
} | null | undefined;
|
|
65
|
+
costPerUnit: {
|
|
66
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
67
|
+
amount: number;
|
|
68
|
+
precision: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}[] | null | undefined;
|
|
72
|
+
preparationTime?: {
|
|
73
|
+
unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
|
|
74
|
+
value: number;
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
_id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
address: {
|
|
79
|
+
line2?: string | null | undefined;
|
|
80
|
+
line1: string;
|
|
81
|
+
state: string;
|
|
82
|
+
city: string;
|
|
83
|
+
postcode: string;
|
|
84
|
+
country: string;
|
|
85
|
+
};
|
|
86
|
+
}[]>;
|
|
46
87
|
locationOptionsTypePurchaseLocationLevel: import("vue").ComputedRef<{
|
|
47
88
|
_rev?: string | null | undefined;
|
|
48
89
|
internal?: "restaurant" | "warehouse" | null | undefined;
|