@feedmepos/mf-inventory-portal 1.2.59 → 1.2.60-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-Nwc0Ha2r.js → App-B_yr-6yL.js} +82 -78
- package/dist/{ApprovalView-Y5f915s3.js → ApprovalView-DoYBBuSD.js} +5 -5
- package/dist/{BindingsDialog-5N7R_u4c.js → BindingsDialog-DG7HOy6J.js} +5 -5
- package/dist/{BindingsPicker-BJwvLu2s.js → BindingsPicker-DVCYpyrR.js} +3 -3
- package/dist/{BindingsTable-B8sq-qXH.js → BindingsTable-CCel2b_W.js} +5 -5
- package/dist/{ClosingDraftView-BsyYOZsz.js → ClosingDraftView-CfM7gNBX.js} +891 -893
- package/dist/{ClosingHistoryView-BNpsMNy1.js → ClosingHistoryView-DWH4bFgg.js} +36 -36
- package/dist/{ClosingTemplateView-BBqbq07d.js → ClosingTemplateView-JYnnvm7L.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CmOO7wuE.js → DeliveryOrderPrintPreview-BihBTJGj.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXlY-Gu1.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CWjtQajS.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CAMkZRFI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js} +2 -2
- package/dist/{FmMultiselectDialog-CwJUv9tG.js → FmMultiselectDialog-CxDviJZM.js} +16 -16
- package/dist/{FmMultiselectDialog-LagHyTQP.js → FmMultiselectDialog-D51nW6yj.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BmHFIkt1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js} +16 -15
- package/dist/{ImportView-wQ_bNesb.js → ImportView-C52rZFib.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DtMrJIVs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CjZmd-Sa.js} +1 -1
- package/dist/{IngredientGroupView-DsGMhdwu.js → IngredientGroupView-DTHpZP2L.js} +5 -5
- package/dist/{IngredientsView-JdjcLdOx.js → IngredientsView-CrCW6heJ.js} +25 -24
- package/dist/{IntegrationView-CMmSIRUk.js → IntegrationView--DZANrHj.js} +18 -17
- package/dist/{InventoryBindingForm-UL-UKtYW.js → InventoryBindingForm-DLTpv-zQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-r875PDKP.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-hkIg4Rbp.js} +17 -16
- package/dist/{InventoryBindingSummary-BDAuT62b.js → InventoryBindingSummary-D9ptV8Cw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5zOYiqR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdPxhkg0.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B2zppgqk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ci3esisT.js} +2 -2
- package/dist/{PublishView-CSoZCSHT.js → PublishView-DxzL_D61.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-D5Qw44xo.js → PurchaseOrderPrintPreview-D0tg-2TC.js} +11 -11
- package/dist/{ReceiveRequestView-Chntp08E.js → ReceiveRequestView-2U534J1_.js} +251 -250
- package/dist/RecipeView-VZRyX3Mm.js +1558 -0
- package/dist/{StockView-CuCK7tD2.js → StockView-CvWbnYGz.js} +653 -651
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxjceLuZ.js +183 -0
- package/dist/{SupplierView-CA17Tz02.js → SupplierView-DMIunLvv.js} +20 -19
- package/dist/{SurchargeView-EIftjMCa.js → SurchargeView-jteWYvQz.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CqA6RmPy.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYXsAP0i.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DAkKiy0Z.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BbbAEIcW.js → TransferDetails.vue_vue_type_script_setup_true_lang-CEXA3vvS.js} +77 -78
- package/dist/{TransferTemplateView-CYfbm9aS.js → TransferTemplateView-DMQ1WIij.js} +22 -21
- package/dist/UnitCostHistoryView-DQ3sXVAQ.js +651 -0
- package/dist/{UnitView-6s5CsGEQ.js → UnitView-p6eZ8G2C.js} +9 -9
- package/dist/{WarehouseView-BXDQOyFZ.js → WarehouseView-BIShkEPs.js} +5 -5
- package/dist/{WastageTemplateView-Cq92TiRs.js → WastageTemplateView-DCbczB_0.js} +14 -14
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock-estimate.d.ts +2 -0
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-DJuq_faF.js → app-BAVBNKKH.js} +7461 -6448
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-D_zbp5V1.js → closing-template-DqxA750a.js} +1 -1
- package/dist/components/StockForecastProps.d.ts +6 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-4vrHarNG.js → date2-CgwRU403.js} +1 -1
- package/dist/{dayjs.min-Dwp8614O.js → dayjs.min-CjWVK_Fe.js} +16 -16
- package/dist/{defineDeepModel-DVt2Wz9r.js → defineDeepModel-B1j_kSRA.js} +1 -1
- package/dist/{duplicate-template-CkYWeFtL.js → duplicate-template-iHtqE_uw.js} +1 -1
- package/dist/{feature-Beh-qc03.js → feature-DEryk-Cv.js} +94 -89
- package/dist/{format-time-from-id-84iLSxVu.js → format-time-from-id-C-mbWMLS.js} +1 -1
- package/dist/{format-unit-display-DfeNpWk4.js → format-unit-display-C8Hzskg0.js} +16 -15
- package/dist/helper/number.d.ts +2 -0
- package/dist/helper/type.d.ts +5 -0
- package/dist/{import-export.helper-fAVzQM2q.js → import-export.helper-DGg16RXI.js} +17 -16
- package/dist/{index-CoEqhZLm.js → index-BAkoTUB0.js} +1 -1
- package/dist/{index-B2_16R5E.js → index-BLowSL6G.js} +1471 -1412
- package/dist/{index-Chogzhcq.js → index-CLr4DPan.js} +3 -3
- package/dist/{lodash-Cx8BU1GH.js → lodash-D1_0uR01.js} +1 -1
- package/dist/{netsuite-C1bml-v1.js → netsuite-Bbxz8tiD.js} +60 -60
- package/dist/number-Cof88Fjz.js +232 -0
- package/dist/{purchase-order-template-BqFnJ-6B.js → purchase-order-template-B-sXEbRE.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-CzPUVxD_.js +98 -0
- package/dist/{stock-KxT4JbNf.js → stock-BYPFH5a_.js} +1 -1
- package/dist/stock-D9E1uFb1.js +75 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +119 -30
- package/dist/{supplier-C7wUB1zT.js → supplier-wQYh275s.js} +2 -2
- package/dist/{surcharge-CjB_Qtbv.js → surcharge-Bi21qFa0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-D5KSqA4Z.js → use-ingredient-select-dialog-DH-mXl8H.js} +2 -2
- package/dist/{use-inventory-binding-dialog-eGOvztV3.js → use-inventory-binding-dialog-i8E2CNuV.js} +2 -2
- package/dist/{use-template-enabled-locations-2-3kcVWPQm.js → use-template-enabled-locations-2-DRk9TskI.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/stock/type.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
- package/dist/{vue-i18n-C6XNfngV.js → vue-i18n-Cf9iDkfk.js} +398 -398
- package/dist/{xlsx-BwNUbN_O.js → xlsx-lp5RXzSw.js} +398 -398
- package/dist/{xlsx.util-B_DE3inS.js → xlsx.util-BxpZNkEZ.js} +1 -1
- package/package.json +2 -2
- package/dist/RecipeView-Ck3Pa4fg.js +0 -646
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-fMji2qKG.js +0 -172
- package/dist/decimal-Bf6AG_d3.js +0 -99
- package/dist/rules-y2OYGOro.js +0 -201
- package/dist/stock-BWUzlDTa.js +0 -75
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as
|
|
1
|
+
import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as B, createElementVNode as n, toDisplayString as s, unref as a, Fragment as E, createTextVNode as N, createBlock as T, createCommentVNode as k, renderList as z, normalizeClass as ce, h as re, onMounted as de, Teleport as ue } from "vue";
|
|
2
2
|
import { F as me, _ as fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useI18n as J, useCoreStore as ve } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { H as Q, D as V, u as ye } from "./app-BAVBNKKH.js";
|
|
5
|
+
import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
6
6
|
import { useSnackbar as W, useDialog as ge } from "@feedmepos/ui-library";
|
|
7
|
-
import { u as _e } from "./stock-
|
|
7
|
+
import { u as _e } from "./stock-BYPFH5a_.js";
|
|
8
8
|
const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col gap-16" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-8" }, De = { class: "fm-typo-en-body-md-600" }, we = { class: "flex flex-col gap-8" }, Se = { class: "fm-typo-en-body-md-600" }, Ve = { class: "flex items-center gap-8 mb-8" }, Ae = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "text-red-500 text-sm mt-2"
|
|
@@ -14,16 +14,16 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
14
14
|
}, Re = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
17
|
-
},
|
|
17
|
+
}, Le = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "flex flex-col gap-8"
|
|
20
|
-
},
|
|
20
|
+
}, Be = { class: "fm-typo-en-body-sm-600" }, Te = { class: "flex flex-col gap-4" }, Ie = { key: 0 }, Oe = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "flex flex-col gap-8"
|
|
23
|
-
},
|
|
23
|
+
}, $e = { class: "fm-typo-en-body-md-600" }, Ee = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ne = { class: "flex items-center justify-between" }, Pe = { class: "fm-typo-en-body-sm-600" }, Ue = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, He = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
26
|
-
},
|
|
26
|
+
}, Me = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
29
29
|
}, je = {
|
|
@@ -65,7 +65,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
65
65
|
} catch (e) {
|
|
66
66
|
console.error("Error parsing date from closing ID:", e);
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), L = D(() => {
|
|
69
69
|
if (!d.value || !c.value) return "";
|
|
70
70
|
const e = V(d.value), o = c.value;
|
|
71
71
|
if (e && o) {
|
|
@@ -74,17 +74,17 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
74
74
|
return l("inventory.stock.recalculation.error.endDateBeforeOpening");
|
|
75
75
|
}
|
|
76
76
|
return "";
|
|
77
|
-
}), U = D(() => !!d.value && !!c.value && !
|
|
77
|
+
}), U = D(() => !!d.value && !!c.value && !L.value), K = D(() => w.value.some(
|
|
78
78
|
(e) => !e.completedAt && !e.failedReason
|
|
79
79
|
));
|
|
80
|
-
async function
|
|
81
|
-
y.value = !0, await Promise.all([ee(),
|
|
80
|
+
async function H() {
|
|
81
|
+
y.value = !0, await Promise.all([ee(), M()]), d.value = "", c.value = "", _.value = !1;
|
|
82
82
|
}
|
|
83
83
|
function q() {
|
|
84
84
|
y.value = !1;
|
|
85
85
|
}
|
|
86
86
|
h({
|
|
87
|
-
open:
|
|
87
|
+
open: H,
|
|
88
88
|
close: q
|
|
89
89
|
});
|
|
90
90
|
async function ee() {
|
|
@@ -102,7 +102,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
102
102
|
u.value = !1;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
async function
|
|
105
|
+
async function M() {
|
|
106
106
|
m.value = !0;
|
|
107
107
|
try {
|
|
108
108
|
const e = await A.recalculation.recalculationRequests();
|
|
@@ -138,7 +138,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
138
138
|
se(
|
|
139
139
|
[d, c],
|
|
140
140
|
() => {
|
|
141
|
-
d.value && c.value && !
|
|
141
|
+
d.value && c.value && !L.value ? te() : r.value = [];
|
|
142
142
|
},
|
|
143
143
|
{ immediate: !1 }
|
|
144
144
|
);
|
|
@@ -154,7 +154,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
154
154
|
title: l("common.success"),
|
|
155
155
|
message: "Stock recalculation has been scheduled successfully",
|
|
156
156
|
type: "success"
|
|
157
|
-
}), await
|
|
157
|
+
}), await M(), y.value = !1, C("submitted");
|
|
158
158
|
} catch (e) {
|
|
159
159
|
console.error("Error scheduling recalculation:", e), x.open({
|
|
160
160
|
title: l("common.error"),
|
|
@@ -167,12 +167,12 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return (e, o) => {
|
|
170
|
-
const b = S("FmButton"),
|
|
170
|
+
const b = S("FmButton"), $ = S("FmSelect"), j = S("FmRadio"), le = S("FmDatePicker"), ae = S("FmAlert"), ne = S("FmDialog");
|
|
171
171
|
return i(), f("div", null, [
|
|
172
172
|
g(b, {
|
|
173
173
|
"prepend-icon": "info",
|
|
174
174
|
variant: "tertiary",
|
|
175
|
-
onClick: ie(
|
|
175
|
+
onClick: ie(H, ["stop"])
|
|
176
176
|
}),
|
|
177
177
|
g(ne, {
|
|
178
178
|
modelValue: y.value,
|
|
@@ -181,10 +181,10 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
181
181
|
dismissAway: "",
|
|
182
182
|
"max-width": "600px"
|
|
183
183
|
}, {
|
|
184
|
-
"dialog-header":
|
|
184
|
+
"dialog-header": B(() => [
|
|
185
185
|
n("div", be, s(a(l)("inventory.stock.recalculation.title")), 1)
|
|
186
186
|
]),
|
|
187
|
-
"dialog-footer":
|
|
187
|
+
"dialog-footer": B(() => [
|
|
188
188
|
K.value ? (i(), f("div", Ge, [
|
|
189
189
|
g(b, {
|
|
190
190
|
variant: "tertiary",
|
|
@@ -207,17 +207,17 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
207
207
|
}, null, 8, ["disabled", "loading", "label"])
|
|
208
208
|
]))
|
|
209
209
|
]),
|
|
210
|
-
default:
|
|
210
|
+
default: B(() => [
|
|
211
211
|
n("div", he, [
|
|
212
212
|
n("div", ke, s(a(l)("inventory.stock.recalculation.description")), 1),
|
|
213
|
-
K.value ? k("", !0) : (i(), f(
|
|
213
|
+
K.value ? k("", !0) : (i(), f(E, { key: 0 }, [
|
|
214
214
|
n("div", xe, [
|
|
215
215
|
n("p", De, [
|
|
216
216
|
N(s(a(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
|
|
217
217
|
o[8] || (o[8] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
|
|
218
218
|
]),
|
|
219
219
|
o[9] || (o[9] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
|
|
220
|
-
g(
|
|
220
|
+
g($, {
|
|
221
221
|
modelValue: d.value,
|
|
222
222
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => d.value = t),
|
|
223
223
|
items: R.value,
|
|
@@ -245,7 +245,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
245
245
|
label: a(l)("inventory.stock.recalculation.selectByClosing")
|
|
246
246
|
}, null, 8, ["modelValue", "label"])
|
|
247
247
|
]),
|
|
248
|
-
_.value ? (i(), T(
|
|
248
|
+
_.value ? (i(), T($, {
|
|
249
249
|
key: 1,
|
|
250
250
|
modelValue: P.value,
|
|
251
251
|
"onUpdate:modelValue": o[4] || (o[4] = (t) => P.value = t),
|
|
@@ -261,22 +261,22 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
261
261
|
min: Z.value,
|
|
262
262
|
disabled: !d.value || u.value
|
|
263
263
|
}, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
|
|
264
|
-
|
|
264
|
+
L.value ? (i(), f("div", Ae, s(L.value), 1)) : k("", !0)
|
|
265
265
|
]),
|
|
266
|
-
d.value && c.value && !
|
|
266
|
+
d.value && c.value && !L.value ? (i(), T(ae, {
|
|
267
267
|
key: 0,
|
|
268
268
|
type: "info"
|
|
269
269
|
}, {
|
|
270
|
-
default:
|
|
270
|
+
default: B(() => [
|
|
271
271
|
n("div", Ce, s(a(l)("inventory.stock.recalculation.info")), 1)
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
274
274
|
})) : k("", !0),
|
|
275
275
|
r.value.length > 0 ? (i(), f("div", Fe, [
|
|
276
|
-
p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div",
|
|
277
|
-
n("div",
|
|
276
|
+
p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div", Le, [
|
|
277
|
+
n("div", Be, " Affected closing draft(s): " + s(r.value.length), 1),
|
|
278
278
|
n("div", Te, [
|
|
279
|
-
(i(!0), f(
|
|
279
|
+
(i(!0), f(E, null, z(r.value, (t) => (i(), f("div", {
|
|
280
280
|
key: t._id,
|
|
281
281
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
282
282
|
}, [
|
|
@@ -288,9 +288,9 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
288
288
|
])) : k("", !0)
|
|
289
289
|
], 64)),
|
|
290
290
|
w.value.length > 0 ? (i(), f("div", Oe, [
|
|
291
|
-
n("p",
|
|
292
|
-
n("div",
|
|
293
|
-
(i(!0), f(
|
|
291
|
+
n("p", $e, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
|
|
292
|
+
n("div", Ee, [
|
|
293
|
+
(i(!0), f(E, null, z(w.value, (t) => (i(), f("div", {
|
|
294
294
|
key: t._id,
|
|
295
295
|
class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
|
|
296
296
|
}, [
|
|
@@ -306,8 +306,8 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
306
306
|
]),
|
|
307
307
|
n("div", Ue, s(a(l)("inventory.stock.recalculation.from")) + ": " + s(new Date(t.recalculateStartDate).toLocaleDateString()), 1),
|
|
308
308
|
n("div", Ke, s(a(l)("inventory.stock.recalculation.to")) + ": " + s(new Date(t.recalculateEndDate).toLocaleDateString()), 1),
|
|
309
|
-
t.createdBy ? (i(), f("div",
|
|
310
|
-
t.completedAt ? (i(), f("div",
|
|
309
|
+
t.createdBy ? (i(), f("div", He, s(a(l)("inventory.stock.recalculation.requestedBy")) + ": " + s(t.createdBy.name || t.createdBy.id), 1)) : k("", !0),
|
|
310
|
+
t.completedAt ? (i(), f("div", Me, s(a(l)("inventory.stock.recalculation.completedAt")) + ": " + s(new Date(t.completedAt).toLocaleString()), 1)) : k("", !0),
|
|
311
311
|
t.failedReason ? (i(), f("div", je, s(t.failedReason), 1)) : k("", !0)
|
|
312
312
|
]))), 128))
|
|
313
313
|
])
|
|
@@ -416,7 +416,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
|
|
|
416
416
|
title: a(h)("inventory.closing.history.title"),
|
|
417
417
|
"onClick:action": _
|
|
418
418
|
}, {
|
|
419
|
-
default:
|
|
419
|
+
default: B(() => [
|
|
420
420
|
n("div", Qe, [
|
|
421
421
|
g(pe, {
|
|
422
422
|
"change-location": "",
|
|
@@ -4,24 +4,24 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ve, storeToRefs as Ne } from "pinia";
|
|
6
6
|
import { F as G } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
|
-
import { a as me } from "./closing-template-
|
|
8
|
-
import { u as fe, c as Ue, a as ve, n as ot } from "./app-
|
|
9
|
-
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-
|
|
7
|
+
import { a as me } from "./closing-template-DqxA750a.js";
|
|
8
|
+
import { u as fe, c as Ue, a as ve, n as ot } from "./app-BAVBNKKH.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-BxpZNkEZ.js";
|
|
10
10
|
import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
|
|
11
|
-
import { f as Be, a as le } from "./date2-
|
|
11
|
+
import { f as Be, a as le } from "./date2-CgwRU403.js";
|
|
12
12
|
import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
|
|
13
13
|
import { c as at } from "./component-DpCUABT3.js";
|
|
14
|
-
import { f as rt } from "./format-time-from-id-
|
|
15
|
-
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as ct } from "./netsuite-
|
|
17
|
-
import { u as mt } from "./duplicate-template-
|
|
18
|
-
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { R as dt, A as pt } from "./rules-
|
|
20
|
-
import { u as ft } from "./use-ingredient-select-dialog-
|
|
21
|
-
import { d as vt } from "./defineDeepModel-
|
|
14
|
+
import { f as rt } from "./format-time-from-id-C-mbWMLS.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DAkKiy0Z.js";
|
|
16
|
+
import { u as ct } from "./netsuite-Bbxz8tiD.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-iHtqE_uw.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-CzPUVxD_.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-DH-mXl8H.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-B1j_kSRA.js";
|
|
22
22
|
import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
23
|
-
import { u as gt } from "./use-template-enabled-locations-2-
|
|
24
|
-
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
23
|
+
import { u as gt } from "./use-template-enabled-locations-2-DRk9TskI.js";
|
|
24
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js";
|
|
25
25
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const ue = Ve(
|
|
27
27
|
"closingTemplateTable",
|
package/dist/{DeliveryOrderPrintPreview-CmOO7wuE.js → DeliveryOrderPrintPreview-BihBTJGj.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { O as y } from "./app-BAVBNKKH.js";
|
|
4
4
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "subtitle"
|
|
8
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" },
|
|
8
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
|
|
9
9
|
key: 1,
|
|
10
10
|
style: { "padding-top": "30px" }
|
|
11
11
|
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
@@ -107,7 +107,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
107
107
|
])
|
|
108
108
|
])
|
|
109
109
|
]),
|
|
110
|
-
t("div",
|
|
110
|
+
t("div", U, [
|
|
111
111
|
t("table", null, [
|
|
112
112
|
l[19] || (l[19] = t("thead", { class: "item-header" }, [
|
|
113
113
|
t("tr", null, [
|
|
@@ -127,9 +127,9 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
127
127
|
], -1)),
|
|
128
128
|
t("tbody", null, [
|
|
129
129
|
t("tr", null, [
|
|
130
|
-
t("td",
|
|
131
|
-
t("td",
|
|
132
|
-
t("td",
|
|
130
|
+
t("td", B, e(s.value.orderNumber), 1),
|
|
131
|
+
t("td", H, e(s.value.ref), 1),
|
|
132
|
+
t("td", L, e(s.value.supplier.phoneNumber), 1)
|
|
133
133
|
])
|
|
134
134
|
])
|
|
135
135
|
]),
|
|
@@ -153,7 +153,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
153
153
|
], -1)),
|
|
154
154
|
t("tbody", null, [
|
|
155
155
|
(u(!0), i(o, null, p(s.value.items, (r, a) => (u(), i("tr", { key: a }, [
|
|
156
|
-
t("td",
|
|
156
|
+
t("td", M, e(a + 1), 1),
|
|
157
157
|
t("td", V, e(r.description), 1),
|
|
158
158
|
t("td", {
|
|
159
159
|
class: g(["text-right", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as B, t as h,
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { computed as u, defineComponent as A, mergeModels as
|
|
4
|
-
import { F as j } from "./FmMultiselectDialog-
|
|
1
|
+
import { u as B, t as h, U as E, W as R, B as V } from "./app-BAVBNKKH.js";
|
|
2
|
+
import { u as z } from "./supplier-wQYh275s.js";
|
|
3
|
+
import { computed as u, defineComponent as A, mergeModels as U, useModel as q, ref as D, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as H, createElementVNode as M, createVNode as W, withCtx as $, createBlock as I, createCommentVNode as C, Fragment as x, renderList as Y, unref as N } from "vue";
|
|
4
|
+
import { F as j } from "./FmMultiselectDialog-CxDviJZM.js";
|
|
5
5
|
function _(o) {
|
|
6
6
|
const c = R.safeParse(o);
|
|
7
7
|
if (c.success) return c.data;
|
|
@@ -76,7 +76,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
76
76
|
return (p ? n.allLocations.filter(
|
|
77
77
|
(t) => t.doc._id !== n.currentLocation.doc._id
|
|
78
78
|
) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
|
|
79
|
-
}),
|
|
79
|
+
}), w = u(() => {
|
|
80
80
|
if (d.value === h.enum.purchase) {
|
|
81
81
|
const e = b.value.map((t) => ({
|
|
82
82
|
label: t.name,
|
|
@@ -105,7 +105,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
105
105
|
});
|
|
106
106
|
return {
|
|
107
107
|
transferLocationModel: v,
|
|
108
|
-
transferLocationOptions:
|
|
108
|
+
transferLocationOptions: w,
|
|
109
109
|
locationOptionsTypePurchase: F,
|
|
110
110
|
locationOptionsTypePurchaseLocationLevel: b,
|
|
111
111
|
locationOptionsTypeTransfer: l,
|
|
@@ -114,7 +114,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
114
114
|
}
|
|
115
115
|
const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
116
116
|
__name: "FmFilterableMenuOptions",
|
|
117
|
-
props: /* @__PURE__ */
|
|
117
|
+
props: /* @__PURE__ */ U({
|
|
118
118
|
modelValue: {},
|
|
119
119
|
maxHeight: {},
|
|
120
120
|
width: {},
|
|
@@ -127,29 +127,29 @@ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
|
127
127
|
}),
|
|
128
128
|
emits: ["update:search"],
|
|
129
129
|
setup(o) {
|
|
130
|
-
const c = o, p =
|
|
130
|
+
const c = o, p = q(o, "search"), f = u(
|
|
131
131
|
() => new j(c.items, ["label", "sublabel"], {
|
|
132
132
|
caseSensitive: !1,
|
|
133
133
|
sort: !0
|
|
134
134
|
})
|
|
135
|
-
), r = u(() => f.value.search(p.value)), n =
|
|
135
|
+
), r = u(() => f.value.search(p.value)), n = D();
|
|
136
136
|
return console.log({ stickyRef: n }), (d, v) => {
|
|
137
137
|
const b = g("FmButton"), L = g("FmTextField"), F = g("FmMenuItem");
|
|
138
138
|
return y(), O("div", {
|
|
139
139
|
class: "relative",
|
|
140
|
-
style:
|
|
140
|
+
style: H({ width: d.width })
|
|
141
141
|
}, [
|
|
142
142
|
M("div", {
|
|
143
143
|
class: "sticky top-0 bg-white mb-8",
|
|
144
144
|
ref_key: "stickyRef",
|
|
145
145
|
ref: n
|
|
146
146
|
}, [
|
|
147
|
-
|
|
147
|
+
W(L, {
|
|
148
148
|
modelValue: p.value,
|
|
149
149
|
"onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
|
|
150
150
|
placeholder: "Filter options"
|
|
151
151
|
}, {
|
|
152
|
-
append:
|
|
152
|
+
append: $(() => [
|
|
153
153
|
p.value ? (y(), I(b, {
|
|
154
154
|
key: 0,
|
|
155
155
|
variant: "tertiary",
|
|
@@ -161,15 +161,15 @@ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
|
161
161
|
}, 8, ["modelValue"])
|
|
162
162
|
], 512),
|
|
163
163
|
M("div", J, [
|
|
164
|
-
(y(!0), O(
|
|
165
|
-
key:
|
|
164
|
+
(y(!0), O(x, null, Y(r.value, (l, w) => (y(), I(F, {
|
|
165
|
+
key: w,
|
|
166
166
|
label: l.label,
|
|
167
167
|
sublabel: l.sublabel,
|
|
168
|
-
"model-value": N(
|
|
169
|
-
onClick: () => d.handleItemChange(N(
|
|
168
|
+
"model-value": N(V)(d.modelValue, l.value),
|
|
169
|
+
onClick: () => d.handleItemChange(N(V)(d.modelValue, l.value), l),
|
|
170
170
|
onVnodeMounted: (T) => {
|
|
171
171
|
var s, e;
|
|
172
|
-
return N(
|
|
172
|
+
return N(V)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
173
173
|
}
|
|
174
174
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
175
175
|
r.value.length ? C("", !0) : (y(), I(F, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
|
|
2
2
|
import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as q } from "./app-
|
|
4
|
-
import { d as U } from "./date2-
|
|
3
|
+
import { u as q } from "./app-BAVBNKKH.js";
|
|
4
|
+
import { d as U } from "./date2-CgwRU403.js";
|
|
5
5
|
import { useBreakpoints as G } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
7
7
|
import { D as A } from "./app-DiX-EfV6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var He = Object.defineProperty;
|
|
2
2
|
var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : F[i] = l;
|
|
3
3
|
var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
|
|
4
|
-
import { defineComponent as be, computed as x, ref as $, watch as ge, openBlock as d, createElementBlock as f, normalizeStyle as
|
|
5
|
-
import { useDialogChild as
|
|
6
|
-
import {
|
|
7
|
-
import { d as Je } from "./index-
|
|
4
|
+
import { defineComponent as be, computed as x, ref as $, watch as ge, openBlock as d, createElementBlock as f, normalizeStyle as G, Fragment as V, renderList as O, renderSlot as ke, createCommentVNode as D, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as Ge } from "vue";
|
|
5
|
+
import { useDialogChild as ze } from "@feedmepos/ui-library";
|
|
6
|
+
import { B as he } from "./app-BAVBNKKH.js";
|
|
7
|
+
import { d as Je } from "./index-BAkoTUB0.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as We, J as ye, D as Qe } from "./app-DiX-EfV6.js";
|
|
@@ -40,13 +40,13 @@ const Ye = /* @__PURE__ */ be({
|
|
|
40
40
|
}
|
|
41
41
|
return (S, p) => (d(), f("div", {
|
|
42
42
|
class: "relative",
|
|
43
|
-
style:
|
|
43
|
+
style: G({ minHeight: a.value })
|
|
44
44
|
}, [
|
|
45
45
|
(d(!0), f(V, null, O(m.value, (C) => (d(), f(V, { key: C }, [
|
|
46
46
|
C >= 0 && C < S.length ? (d(), f("div", {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "absolute w-full left-0 bg-white",
|
|
49
|
-
style:
|
|
49
|
+
style: G({
|
|
50
50
|
top: `${S.itemHeight * C}px`,
|
|
51
51
|
height: `${S.itemHeight}px`,
|
|
52
52
|
transition: "opacity 0.5s ease"
|
|
@@ -198,7 +198,7 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
198
198
|
emits: ["update:modelValue", "close"],
|
|
199
199
|
setup(F, { emit: i }) {
|
|
200
200
|
var oe, ie, re;
|
|
201
|
-
const { t: l } = Re(), u =
|
|
201
|
+
const { t: l } = Re(), u = ze(), a = F, v = Oe(), m = x(() => {
|
|
202
202
|
var t;
|
|
203
203
|
const e = (t = v.appendList) == null ? void 0 : t.call(v);
|
|
204
204
|
return Array.isArray(e) ? e : e ? [e] : [];
|
|
@@ -256,10 +256,10 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
256
256
|
a.items,
|
|
257
257
|
(e) => [e.label ?? "", e.sublabel ?? "", ...e.searchKeys ?? []].filter((t) => t)
|
|
258
258
|
)
|
|
259
|
-
), E = $(""),
|
|
259
|
+
), E = $(""), z = $(null), b = x(() => {
|
|
260
260
|
let e = xe.value.search(E.value);
|
|
261
|
-
if (
|
|
262
|
-
const t = We.build(
|
|
261
|
+
if (z.value && a.filterAttributes) {
|
|
262
|
+
const t = We.build(z.value);
|
|
263
263
|
e = a.attributeKey ? e.filter((n) => ye(n[a.attributeKey] ?? {}, t)) : e.filter((n) => ye(n, t));
|
|
264
264
|
}
|
|
265
265
|
return e;
|
|
@@ -401,8 +401,8 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
401
401
|
]),
|
|
402
402
|
e.filterAttributes && e.filterAttributes.length > 0 ? (d(), f("div", nt, [
|
|
403
403
|
k(L(Qe), {
|
|
404
|
-
modelValue:
|
|
405
|
-
"onUpdate:modelValue": t[2] || (t[2] = (s) =>
|
|
404
|
+
modelValue: z.value,
|
|
405
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => z.value = s),
|
|
406
406
|
attributes: e.filterAttributes
|
|
407
407
|
}, null, 8, ["modelValue", "attributes"])
|
|
408
408
|
])) : D("", !0),
|
|
@@ -513,7 +513,7 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
513
513
|
!g(s(b.value).value)
|
|
514
514
|
),
|
|
515
515
|
disabled: (me = (j = Fe.value[p(s(b.value).value)]) == null ? void 0 : j[0]) == null ? void 0 : me.disabled,
|
|
516
|
-
style:
|
|
516
|
+
style: G({
|
|
517
517
|
paddingTop: 4,
|
|
518
518
|
paddingBottom: 4,
|
|
519
519
|
paddingLeft: e.singleSelect === !0 ? 12 : 32
|
|
@@ -560,7 +560,7 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
560
560
|
sublabel: s.sublabel,
|
|
561
561
|
onClick: (y) => H(s.value, !g(s.value)),
|
|
562
562
|
disabled: s.disabled,
|
|
563
|
-
style:
|
|
563
|
+
style: G({
|
|
564
564
|
paddingTop: 4,
|
|
565
565
|
paddingBottom: 4,
|
|
566
566
|
paddingLeft: e.singleSelect === !0 ? 12 : 32
|
|
@@ -588,9 +588,9 @@ const qe = { class: "sticky top-0 bg-white z-50" }, et = {
|
|
|
588
588
|
]),
|
|
589
589
|
B("div", {
|
|
590
590
|
class: "sticky bottom-24",
|
|
591
|
-
style:
|
|
591
|
+
style: G({ transform: `translateX(${(((ce = R.value) == null ? void 0 : ce.clientWidth) ?? 0) - 80}px)` })
|
|
592
592
|
}, [
|
|
593
|
-
k(
|
|
593
|
+
k(Ge, { name: "fade" }, {
|
|
594
594
|
default: w(() => [
|
|
595
595
|
Me.value ? (d(), I(ue, {
|
|
596
596
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { a } from "./FmMultiselectDialog-
|
|
4
|
+
import { a } from "./FmMultiselectDialog-CxDviJZM.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as W, useModel as le, computed as v, ref as B, watch as E, onBeforeUnmount as ae, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as j, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
-
import { l as fe } from "./lodash-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { l as fe } from "./lodash-D1_0uR01.js";
|
|
3
|
+
import { y as D } from "./app-BAVBNKKH.js";
|
|
4
|
+
import { g as O, c as ve, a as M, t as be, e as ye, o as he, b as Me, u as ge } from "./number-Cof88Fjz.js";
|
|
5
|
+
import { I as R, a as xe } from "./rules-CzPUVxD_.js";
|
|
5
6
|
import "@feedmepos/ui-library";
|
|
6
7
|
function H() {
|
|
7
8
|
return {
|
|
@@ -13,12 +14,12 @@ function J() {
|
|
|
13
14
|
return R()(f.amountAsString);
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function We(a) {
|
|
17
18
|
return function(t) {
|
|
18
19
|
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < a ? `Must be at least ${a}` : !0;
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function Ee(a) {
|
|
22
23
|
return function(t) {
|
|
23
24
|
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > a ? `Must be at most ${a}` : !0;
|
|
24
25
|
};
|
|
@@ -35,8 +36,8 @@ function Z(a, f = !1) {
|
|
|
35
36
|
})}` : !0;
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
const f =
|
|
39
|
+
function Ge(a) {
|
|
40
|
+
const f = xe(a);
|
|
40
41
|
return function(c) {
|
|
41
42
|
return f(c.modelValue.amount);
|
|
42
43
|
};
|
|
@@ -56,7 +57,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
56
57
|
}, Te = {
|
|
57
58
|
class: "flex items-center",
|
|
58
59
|
style: { "pointer-events": "none" }
|
|
59
|
-
},
|
|
60
|
+
}, He = /* @__PURE__ */ ie({
|
|
60
61
|
__name: "FmUnitInput",
|
|
61
62
|
props: /* @__PURE__ */ W({
|
|
62
63
|
modelValue: {},
|
|
@@ -112,7 +113,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
112
113
|
return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
113
114
|
}), p = B((() => {
|
|
114
115
|
var o;
|
|
115
|
-
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n =
|
|
116
|
+
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = Me(e), i = t.formatMinimumPrecision ?? n.precision, l = ge(n, i);
|
|
116
117
|
return M(l);
|
|
117
118
|
})());
|
|
118
119
|
let x = null;
|
|
@@ -121,7 +122,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
121
122
|
var r;
|
|
122
123
|
const n = A(e), i = t.precision ?? w.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
123
124
|
if (n == !0) {
|
|
124
|
-
const g =
|
|
125
|
+
const g = be(+e, o);
|
|
125
126
|
((r = s.value) == null ? void 0 : r.amount) !== g && (s.value = {
|
|
126
127
|
...s.value,
|
|
127
128
|
amount: g
|
|
@@ -174,7 +175,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
174
175
|
var m;
|
|
175
176
|
if (!t.convertAmountOnChangeUnit)
|
|
176
177
|
return;
|
|
177
|
-
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), l = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = l ?
|
|
178
|
+
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), l = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = l ? ye(i, l.conversion) : i, g = o ? he(r, o.conversion) : r, T = O(t.unit, o), L = D.convertPrecision({
|
|
178
179
|
value: g,
|
|
179
180
|
precision: T
|
|
180
181
|
});
|
|
@@ -350,10 +351,10 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
350
351
|
}
|
|
351
352
|
});
|
|
352
353
|
export {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
354
|
+
Ge as F,
|
|
355
|
+
He as _,
|
|
356
|
+
We as a,
|
|
357
|
+
Ee as b,
|
|
357
358
|
J as c,
|
|
358
359
|
Z as d
|
|
359
360
|
};
|
|
@@ -2,14 +2,14 @@ import { defineComponent as De, ref as F, computed as J, watch as ze, resolveCom
|
|
|
2
2
|
import { u as Ve, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useCoreStore as Re, useI18n as je } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as We, useSnackbar as Oe, useDialog as Le, useBreakpoints as Je } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Xe } from "./feature-
|
|
6
|
-
import { a as ie } from "./app-
|
|
7
|
-
import "./dayjs.min-
|
|
5
|
+
import { u as Xe } from "./feature-DEryk-Cv.js";
|
|
6
|
+
import { a as ie } from "./app-BAVBNKKH.js";
|
|
7
|
+
import "./dayjs.min-CjWVK_Fe.js";
|
|
8
8
|
import "./app-DiX-EfV6.js";
|
|
9
|
-
import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-
|
|
10
|
-
import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-
|
|
9
|
+
import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-BxpZNkEZ.js";
|
|
10
|
+
import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-DGg16RXI.js";
|
|
11
11
|
import { r as nt } from "./random-CSbEbElR.js";
|
|
12
|
-
import {
|
|
12
|
+
import { c as Ae, a as pe } from "./number-Cof88Fjz.js";
|
|
13
13
|
import { F as ot } from "./FmDroppableField-J0xUsOTV.js";
|
|
14
14
|
function Ee() {
|
|
15
15
|
return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${nt()}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { a,
|
|
2
|
+
import { a, e as y } from "./number-Cof88Fjz.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|