@feedmepos/mf-inventory-portal 1.2.60-dev.2 → 1.2.60
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-B_yr-6yL.js → App-B6JtYLP4.js} +78 -82
- package/dist/{ApprovalView-DoYBBuSD.js → ApprovalView-fiHlFJKJ.js} +5 -5
- package/dist/{BindingsDialog-DG7HOy6J.js → BindingsDialog-BlF79qCu.js} +5 -5
- package/dist/{BindingsPicker-DVCYpyrR.js → BindingsPicker-BS2OcyII.js} +3 -3
- package/dist/{BindingsTable-CCel2b_W.js → BindingsTable-RyfzT4g6.js} +5 -5
- package/dist/{ClosingDraftView-CfM7gNBX.js → ClosingDraftView-B2d-XA_E.js} +216 -217
- package/dist/{ClosingHistoryView-DWH4bFgg.js → ClosingHistoryView-DZPNorN6.js} +36 -36
- package/dist/{ClosingTemplateView-JYnnvm7L.js → ClosingTemplateView-L596UQJH.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-BihBTJGj.js → DeliveryOrderPrintPreview-C82JPcVR.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CWjtQajS.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CNf3PA0N.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js} +2 -2
- package/dist/{FmMultiselectDialog-CxDviJZM.js → FmMultiselectDialog-CcMB_4yD.js} +16 -16
- package/dist/{FmMultiselectDialog-D51nW6yj.js → FmMultiselectDialog-DTLcPYaF.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ChqG8Av1.js} +22 -23
- package/dist/{ImportView-C52rZFib.js → ImportView-diTEPSKt.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CjZmd-Sa.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cu-dNL-B.js} +1 -1
- package/dist/{IngredientGroupView-DTHpZP2L.js → IngredientGroupView-CYqZOXH1.js} +5 -5
- package/dist/{IngredientsView-CrCW6heJ.js → IngredientsView-DoCTezXa.js} +24 -25
- package/dist/{IntegrationView--DZANrHj.js → IntegrationView-JboVfhvd.js} +17 -18
- package/dist/{InventoryBindingForm-DLTpv-zQ.js → InventoryBindingForm-B1MrDzRK.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-hkIg4Rbp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Br1hzlQ5.js} +16 -17
- package/dist/{InventoryBindingSummary-D9ptV8Cw.js → InventoryBindingSummary-B09SU9pE.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdPxhkg0.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BX26mYQG.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Ci3esisT.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIk5aP_6.js} +2 -2
- package/dist/{PublishView-DxzL_D61.js → PublishView-BLu0VGTW.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-D0tg-2TC.js → PurchaseOrderPrintPreview-CFZX2Yen.js} +11 -11
- package/dist/{ReceiveRequestView-2U534J1_.js → ReceiveRequestView-DD0kz7x8.js} +37 -38
- package/dist/RecipeView-Cg7v20hW.js +646 -0
- package/dist/{StockView-CvWbnYGz.js → StockView-CJk1YeM_.js} +105 -106
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxjceLuZ.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BFCjZO6S.js} +1 -1
- package/dist/{SupplierView-DMIunLvv.js → SupplierView-CTEInwI-.js} +19 -20
- package/dist/{SurchargeView-jteWYvQz.js → SurchargeView-CKJ2LS9l.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DVhI5Qy6.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DAkKiy0Z.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DjjLI4tM.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dte8E0MX.js +3354 -0
- package/dist/{TransferTemplateView-DMQ1WIij.js → TransferTemplateView-rmrQtfX8.js} +21 -22
- package/dist/{UnitView-p6eZ8G2C.js → UnitView-Drvo3Tew.js} +10 -11
- package/dist/{WarehouseView-BIShkEPs.js → WarehouseView-DIBgCCzG.js} +5 -5
- package/dist/{WastageTemplateView-DCbczB_0.js → WastageTemplateView-Cdvx4Ist.js} +14 -14
- package/dist/api/inventory.d.ts +36 -126
- package/dist/api/netsuite.d.ts +1 -8
- package/dist/{app-BAVBNKKH.js → app-BQahEYX9.js} +6700 -7673
- package/dist/app.d.ts +24 -228
- package/dist/app.js +1 -1
- package/dist/{closing-template-DqxA750a.js → closing-template-ByR8ktYf.js} +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -37
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +0 -14
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -16
- package/dist/{date2-CgwRU403.js → date2-BTP8kRm1.js} +1 -1
- package/dist/{dayjs.min-CjWVK_Fe.js → dayjs.min-1rxaqCQM.js} +16 -16
- package/dist/{defineDeepModel-B1j_kSRA.js → defineDeepModel-BaJIlpWC.js} +1 -1
- package/dist/{duplicate-template-iHtqE_uw.js → duplicate-template-XaB2svr5.js} +1 -1
- package/dist/{feature-DEryk-Cv.js → feature-Ce7hky70.js} +1044 -908
- package/dist/{format-time-from-id-C-mbWMLS.js → format-time-from-id-DwTuSEMw.js} +1 -1
- package/dist/{format-unit-display-C8Hzskg0.js → format-unit-display-DviFIF9R.js} +15 -16
- package/dist/{import-export.helper-DGg16RXI.js → import-export.helper-CyeFjIHv.js} +15 -16
- package/dist/{index-BLowSL6G.js → index-CC_ls9B4.js} +1412 -1471
- package/dist/{index-CLr4DPan.js → index-CeTIFqwk.js} +3 -3
- package/dist/{index-BAkoTUB0.js → index-f1rjUE_a.js} +1 -1
- package/dist/{lodash-D1_0uR01.js → lodash-Be4onxQF.js} +1 -1
- package/dist/{netsuite-Bbxz8tiD.js → netsuite-CB9u725A.js} +374 -372
- package/dist/{purchase-order-template-B-sXEbRE.js → purchase-order-template-DoBDYEtP.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/rules-DZnC9R5E.js +327 -0
- package/dist/stock-DcXdnfU0.js +75 -0
- package/dist/{stock-BYPFH5a_.js → stock-DjHGX36M.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/integration/netsuite.d.ts +1 -8
- package/dist/stores/inventory.d.ts +30 -119
- package/dist/style.css +1 -1
- package/dist/{supplier-wQYh275s.js → supplier-BtZvsnMx.js} +2 -2
- package/dist/{surcharge-Bi21qFa0.js → surcharge-CDGjoxGm.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DH-mXl8H.js → use-ingredient-select-dialog-l54ucmfp.js} +2 -2
- package/dist/{use-inventory-binding-dialog-i8E2CNuV.js → use-inventory-binding-dialog-adxsJaIL.js} +2 -2
- package/dist/{use-template-enabled-locations-2-DRk9TskI.js → use-template-enabled-locations-2-CgWtnf8k.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -64
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -192
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -8
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -96
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -96
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +0 -14
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -32
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -28
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -8
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -16
- package/dist/views/receive-request/components/transfer-details/RejectDraftForm.vue.d.ts +19 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +5 -1
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +6 -33
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -16
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -32
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +7 -41
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +42 -246
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +49 -287
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +0 -16
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +0 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -8
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -96
- package/dist/vue-i18n-CgWPe8oO.js +2365 -0
- package/dist/{xlsx-lp5RXzSw.js → xlsx-FLEhrhiP.js} +398 -398
- package/dist/{xlsx.util-BxpZNkEZ.js → xlsx.util-DoAD8sxa.js} +1 -1
- package/package.json +2 -2
- package/dist/RecipeView-VZRyX3Mm.js +0 -1558
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CEXA3vvS.js +0 -3241
- package/dist/UnitCostHistoryView-DQ3sXVAQ.js +0 -651
- package/dist/api/unit-cost-history.d.ts +0 -28
- package/dist/number-Cof88Fjz.js +0 -232
- package/dist/rules-CzPUVxD_.js +0 -98
- package/dist/stock-D9E1uFb1.js +0 -75
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -169
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +0 -43
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +0 -25
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -125
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +0 -129
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +0 -30
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -4
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +0 -2
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +0 -19
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +0 -11
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +0 -65
- package/dist/vue-i18n-Cf9iDkfk.js +0 -2365
|
@@ -1,8 +1,7 @@
|
|
|
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 { g as
|
|
5
|
-
import { I as R, a as xe } from "./rules-CzPUVxD_.js";
|
|
2
|
+
import { l as fe } from "./lodash-Be4onxQF.js";
|
|
3
|
+
import { w as D } from "./app-BQahEYX9.js";
|
|
4
|
+
import { I as R, g as q, d as ve, a as M, c as be, t as ye, f as he, q as Me, b as ge, u as xe } from "./rules-DZnC9R5E.js";
|
|
6
5
|
import "@feedmepos/ui-library";
|
|
7
6
|
function H() {
|
|
8
7
|
return {
|
|
@@ -14,12 +13,12 @@ function J() {
|
|
|
14
13
|
return R()(f.amountAsString);
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
function
|
|
16
|
+
function ze(a) {
|
|
18
17
|
return function(t) {
|
|
19
18
|
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < a ? `Must be at least ${a}` : !0;
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function We(a) {
|
|
23
22
|
return function(t) {
|
|
24
23
|
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > a ? `Must be at most ${a}` : !0;
|
|
25
24
|
};
|
|
@@ -29,15 +28,15 @@ function Z(a, f = !1) {
|
|
|
29
28
|
const s = J()(c);
|
|
30
29
|
if (s != !0)
|
|
31
30
|
return f ? s : !0;
|
|
32
|
-
const A = typeof a == "number" ? a :
|
|
31
|
+
const A = typeof a == "number" ? a : q(a, c.modelValue.measurement);
|
|
33
32
|
return ve(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${M({
|
|
34
33
|
amount: 1,
|
|
35
34
|
precision: A
|
|
36
35
|
})}` : !0;
|
|
37
36
|
};
|
|
38
37
|
}
|
|
39
|
-
function
|
|
40
|
-
const f =
|
|
38
|
+
function Ee(a) {
|
|
39
|
+
const f = be(a);
|
|
41
40
|
return function(c) {
|
|
42
41
|
return f(c.modelValue.amount);
|
|
43
42
|
};
|
|
@@ -57,7 +56,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
57
56
|
}, Te = {
|
|
58
57
|
class: "flex items-center",
|
|
59
58
|
style: { "pointer-events": "none" }
|
|
60
|
-
},
|
|
59
|
+
}, Ge = /* @__PURE__ */ ie({
|
|
61
60
|
__name: "FmUnitInput",
|
|
62
61
|
props: /* @__PURE__ */ W({
|
|
63
62
|
modelValue: {},
|
|
@@ -110,10 +109,10 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
110
109
|
setup(a, { emit: f }) {
|
|
111
110
|
const t = a, c = f, s = le(a, "modelValue"), A = R(), w = v(() => {
|
|
112
111
|
var n;
|
|
113
|
-
return
|
|
112
|
+
return q(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
114
113
|
}), p = B((() => {
|
|
115
114
|
var o;
|
|
116
|
-
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n =
|
|
115
|
+
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = ge(e), i = t.formatMinimumPrecision ?? n.precision, l = xe(n, i);
|
|
117
116
|
return M(l);
|
|
118
117
|
})());
|
|
119
118
|
let x = null;
|
|
@@ -122,7 +121,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
122
121
|
var r;
|
|
123
122
|
const n = A(e), i = t.precision ?? w.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
124
123
|
if (n == !0) {
|
|
125
|
-
const g =
|
|
124
|
+
const g = ye(+e, o);
|
|
126
125
|
((r = s.value) == null ? void 0 : r.amount) !== g && (s.value = {
|
|
127
126
|
...s.value,
|
|
128
127
|
amount: g
|
|
@@ -133,7 +132,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
133
132
|
}), ae(() => {
|
|
134
133
|
x && clearTimeout(x);
|
|
135
134
|
});
|
|
136
|
-
const Q = Symbol.for("fm:form-state"), C = ue(Q, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), X = B(), S = B(!1),
|
|
135
|
+
const Q = Symbol.for("fm:form-state"), C = ue(Q, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), X = B(), S = B(!1), O = B(!1), Y = v(() => S.value || O.value), ee = v(() => {
|
|
137
136
|
var l;
|
|
138
137
|
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1), n = fe.groupBy(
|
|
139
138
|
e,
|
|
@@ -175,13 +174,13 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
175
174
|
var m;
|
|
176
175
|
if (!t.convertAmountOnChangeUnit)
|
|
177
176
|
return;
|
|
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 ?
|
|
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 ? he(i, l.conversion) : i, g = o ? Me(r, o.conversion) : r, T = q(t.unit, o), L = D.convertPrecision({
|
|
179
178
|
value: g,
|
|
180
179
|
precision: T
|
|
181
180
|
});
|
|
182
181
|
p.value = M(L);
|
|
183
182
|
});
|
|
184
|
-
const
|
|
183
|
+
const $ = v(() => {
|
|
185
184
|
var e;
|
|
186
185
|
return !((e = s.value) != null && e.measurement);
|
|
187
186
|
}), V = v(() => {
|
|
@@ -266,14 +265,14 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
266
265
|
]),
|
|
267
266
|
default: F(() => [
|
|
268
267
|
e.disableUnit ? (d(), y("div", Ue, [
|
|
269
|
-
|
|
268
|
+
$.value ? I("", !0) : (d(), U(l, {
|
|
270
269
|
key: 0,
|
|
271
270
|
name: "square_foot"
|
|
272
271
|
})),
|
|
273
272
|
u("div", De, _(V.value), 1)
|
|
274
273
|
])) : (d(), U(r, {
|
|
275
274
|
key: 1,
|
|
276
|
-
onMenuChanged: n[3] || (n[3] = (m) =>
|
|
275
|
+
onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
|
|
277
276
|
"z-index": 500,
|
|
278
277
|
placement: e.placement,
|
|
279
278
|
disabled: e.disabled
|
|
@@ -281,7 +280,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
281
280
|
"menu-button": F(() => [
|
|
282
281
|
u("div", Re, [
|
|
283
282
|
u("div", we, [
|
|
284
|
-
|
|
283
|
+
$.value ? I("", !0) : (d(), U(l, {
|
|
285
284
|
key: 0,
|
|
286
285
|
name: "square_foot"
|
|
287
286
|
})),
|
|
@@ -351,10 +350,10 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
351
350
|
}
|
|
352
351
|
});
|
|
353
352
|
export {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
353
|
+
Ee as F,
|
|
354
|
+
Ge as _,
|
|
355
|
+
ze as a,
|
|
356
|
+
We as b,
|
|
358
357
|
J as c,
|
|
359
358
|
Z as d
|
|
360
359
|
};
|
|
@@ -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-Ce7hky70.js";
|
|
6
|
+
import { a as ie } from "./app-BQahEYX9.js";
|
|
7
|
+
import "./dayjs.min-1rxaqCQM.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-DoAD8sxa.js";
|
|
10
|
+
import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-CyeFjIHv.js";
|
|
11
11
|
import { r as nt } from "./random-CSbEbElR.js";
|
|
12
|
-
import {
|
|
12
|
+
import { d as Ae, a as pe } from "./rules-DZnC9R5E.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, f as y } from "./rules-DZnC9R5E.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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as i, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
|
|
2
|
-
import { a as P, c as L, j as oe, u as Re } from "./app-
|
|
2
|
+
import { a as P, c as L, j as oe, u as Re } from "./app-BQahEYX9.js";
|
|
3
3
|
import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { F as S } from "./form-mode.enum-BKiNVH6A.js";
|
|
5
5
|
import { useI18n as z, useCoreStore as Ge } from "@feedmepos/mf-common";
|
|
@@ -8,11 +8,11 @@ import { D as ie, R as K } from "./row-action.enum-BcW_L_nE.js";
|
|
|
8
8
|
import { c as Ve } from "./component-DpCUABT3.js";
|
|
9
9
|
import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
10
10
|
import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
11
|
-
import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { d as de } from "./defineDeepModel-
|
|
13
|
-
import { I as Te, A as Ee, U as Me, R as ce } from "./rules-
|
|
11
|
+
import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js";
|
|
12
|
+
import { d as de } from "./defineDeepModel-BaJIlpWC.js";
|
|
13
|
+
import { I as Te, A as Ee, U as Me, R as ce } from "./rules-DZnC9R5E.js";
|
|
14
14
|
import { L as Ue, P as Be, D as Le } from "./app-DiX-EfV6.js";
|
|
15
|
-
import { u as Pe } from "./FmMultiselectDialog-
|
|
15
|
+
import { u as Pe } from "./FmMultiselectDialog-DTLcPYaF.js";
|
|
16
16
|
import { r as me } from "./random-CSbEbElR.js";
|
|
17
17
|
import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
|
|
18
18
|
const H = ue(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as B, defineComponent as pe, computed as b, resolveComponent as C, openBlock as c, createElementBlock as T, Fragment as X, unref as l, createVNode as s, withModifiers as Bt, createCommentVNode as L, withCtx as g, createElementVNode as n, toDisplayString as F, normalizeClass as te, renderList as ue, createBlock as O, h as Q, renderSlot as xe, createSlots as He, createTextVNode as Ye, mergeModels as dt, onMounted as Dt, watch as Tt, useModel as Ot, isRef as ut, normalizeStyle as Nt, Teleport as ct, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
|
|
2
|
-
import { a as Ce, c as wt, S as jt, d as mt, e as pt, f as Wt, h as vt, i as ft, j as yt, k as gt, u as qt, l as Ht } from "./app-
|
|
2
|
+
import { a as Ce, c as wt, S as jt, d as mt, e as pt, f as Wt, h as vt, i as ft, j as yt, k as gt, u as qt, l as Ht } from "./app-BQahEYX9.js";
|
|
3
3
|
import { useDialog as Ge, useSnackbar as Fe, components as Oe, useProxiedModel as bt, useDialogChild as Yt, useBreakpoints as Gt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Kt, _ as Jt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as q } from "./form-mode.enum-BKiNVH6A.js";
|
|
@@ -7,25 +7,24 @@ import { useI18n as ve, useCoreStore as Ke } from "@feedmepos/mf-common";
|
|
|
7
7
|
import { defineStore as Zt, storeToRefs as Qt } from "pinia";
|
|
8
8
|
import { D as ht, R as Me } from "./row-action.enum-BcW_L_nE.js";
|
|
9
9
|
import { c as Xt } from "./component-DpCUABT3.js";
|
|
10
|
-
import { u as Ae, _ as en } from "./netsuite-
|
|
10
|
+
import { u as Ae, _ as en } from "./netsuite-CB9u725A.js";
|
|
11
11
|
import { F as Re, u as tn, _ as nn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
12
|
-
import { A as Pe, R as Ne, U as
|
|
13
|
-
import { g as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as je } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as Vt } from "./feature-
|
|
17
|
-
import { a as dn, t as un, g as cn } from "./number-Cof88Fjz.js";
|
|
12
|
+
import { A as Pe, a as on, t as ln, R as Ne, U as an, M as sn, g as rn } from "./rules-DZnC9R5E.js";
|
|
13
|
+
import { g as dn, _ as ze, S as Le, a as un } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BFCjZO6S.js";
|
|
14
|
+
import { _ as cn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Br1hzlQ5.js";
|
|
15
|
+
import { _ as je } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cu-dNL-B.js";
|
|
16
|
+
import { u as Vt } from "./feature-Ce7hky70.js";
|
|
18
17
|
import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
19
|
-
import { d as Ue, g as mn, e as pn, a as vn } from "./import-export.helper-
|
|
18
|
+
import { d as Ue, g as mn, e as pn, a as vn } from "./import-export.helper-CyeFjIHv.js";
|
|
20
19
|
import { _ as fn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
21
|
-
import { F as yn, a as We } from "./FmMultiselectDialog-
|
|
22
|
-
import { u as It } from "./purchase-order-template-
|
|
23
|
-
import { u as St, a as Ct } from "./closing-template-
|
|
20
|
+
import { F as yn, a as We } from "./FmMultiselectDialog-CcMB_4yD.js";
|
|
21
|
+
import { u as It } from "./purchase-order-template-DoBDYEtP.js";
|
|
22
|
+
import { u as St, a as Ct } from "./closing-template-ByR8ktYf.js";
|
|
24
23
|
import { _ as gn, F as _t } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
25
|
-
import { r as bn } from "./xlsx.util-
|
|
24
|
+
import { r as bn } from "./xlsx.util-DoAD8sxa.js";
|
|
26
25
|
import { F as hn } from "./FmDroppableField-J0xUsOTV.js";
|
|
27
|
-
import { _ as _n } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
28
|
-
import { u as xn } from "./FmMultiselectDialog-
|
|
26
|
+
import { _ as _n } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js";
|
|
27
|
+
import { u as xn } from "./FmMultiselectDialog-DTLcPYaF.js";
|
|
29
28
|
import { P as kn, J as Tn } from "./app-DiX-EfV6.js";
|
|
30
29
|
const qe = Zt("ingredientForm", function() {
|
|
31
30
|
const r = Ge(), k = Fe(), d = Ce(), h = B(!1), { t: I } = ve(), E = B();
|
|
@@ -444,7 +443,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
444
443
|
inventoryBindings: []
|
|
445
444
|
}) : I("update:modelValue", null);
|
|
446
445
|
}
|
|
447
|
-
}), o = b(() =>
|
|
446
|
+
}), o = b(() => dn(d.value));
|
|
448
447
|
function u(i) {
|
|
449
448
|
const m = k.modelValue ?? {};
|
|
450
449
|
m.measurement = i ? `${i}` : null, I("update:modelValue", m);
|
|
@@ -486,7 +485,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
486
485
|
disabled: i.readonly
|
|
487
486
|
}, null, 8, ["label", "modelValue", "items", "disabled"])
|
|
488
487
|
]),
|
|
489
|
-
s(
|
|
488
|
+
s(cn, {
|
|
490
489
|
id: h.value,
|
|
491
490
|
"model-value": ((N = i.modelValue) == null ? void 0 : N.inventoryBindings) ?? [],
|
|
492
491
|
"onUpdate:modelValue": p,
|
|
@@ -719,7 +718,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
719
718
|
get() {
|
|
720
719
|
var t, x;
|
|
721
720
|
const e = (x = (t = o.modelValue) == null ? void 0 : t.defaultCost) == null ? void 0 : x.costPerUnit;
|
|
722
|
-
return e ? +
|
|
721
|
+
return e ? +on(e) : 0;
|
|
723
722
|
},
|
|
724
723
|
set(e) {
|
|
725
724
|
var x, S, Y, z;
|
|
@@ -740,7 +739,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
740
739
|
)
|
|
741
740
|
}), t.defaultCost.costPerUnit = {
|
|
742
741
|
...t.defaultCost.costPerUnit,
|
|
743
|
-
...
|
|
742
|
+
...ln(+e, 4)
|
|
744
743
|
}, u("update:modelValue", t);
|
|
745
744
|
}
|
|
746
745
|
}), ge = b(() => {
|
|
@@ -1036,7 +1035,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1036
1035
|
label: l(d)("inventory.ingredient.code"),
|
|
1037
1036
|
"model-value": le.value,
|
|
1038
1037
|
"onUpdate:modelValue": t[0] || (t[0] = (V) => le.value = V),
|
|
1039
|
-
rules: [l(Ne)(), l(
|
|
1038
|
+
rules: [l(Ne)(), l(an)(_e.value, Ee.value)],
|
|
1040
1039
|
"label-mark": "required"
|
|
1041
1040
|
}, null, 8, ["label", "model-value", "rules"])
|
|
1042
1041
|
]),
|
|
@@ -1203,7 +1202,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1203
1202
|
s(x, {
|
|
1204
1203
|
"model-value": ye.value,
|
|
1205
1204
|
"onUpdate:modelValue": t[6] || (t[6] = (V) => ye.value = V),
|
|
1206
|
-
rules: [l(Pe)(0), l(
|
|
1205
|
+
rules: [l(Pe)(0), l(sn)(4)]
|
|
1207
1206
|
}, {
|
|
1208
1207
|
label: g(() => [
|
|
1209
1208
|
s(he, { "z-index": 50 }, {
|
|
@@ -1560,7 +1559,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1560
1559
|
if (!K.purchaseOrder.items.find(
|
|
1561
1560
|
(J) => J.sku._id === _._id
|
|
1562
1561
|
)) {
|
|
1563
|
-
const J = { amount: 1, precision:
|
|
1562
|
+
const J = { amount: 1, precision: rn(_.unit) }, M = {
|
|
1564
1563
|
sku: _,
|
|
1565
1564
|
name: _.name,
|
|
1566
1565
|
code: _.code,
|
|
@@ -1938,7 +1937,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
1938
1937
|
}), sl = {
|
|
1939
1938
|
key: 0,
|
|
1940
1939
|
class: "flex items-center gap-1"
|
|
1941
|
-
}, rl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, il = { class: "flex flex-col py-8" }, dl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ul = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
1940
|
+
}, rl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, il = { class: "flex flex-col py-8" }, dl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ul = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Nl = /* @__PURE__ */ pe({
|
|
1942
1941
|
__name: "IngredientsView",
|
|
1943
1942
|
setup(W) {
|
|
1944
1943
|
const r = Ce(), k = Ae(), d = b(() => [
|
|
@@ -2179,7 +2178,7 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2179
2178
|
default: g(() => [
|
|
2180
2179
|
l(k).isEnabled ? (c(), T("div", sl, [
|
|
2181
2180
|
n("span", rl, F(l(a)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
|
|
2182
|
-
s(
|
|
2181
|
+
s(un),
|
|
2183
2182
|
s(Re, null, {
|
|
2184
2183
|
default: g(() => [
|
|
2185
2184
|
s(j, {
|
|
@@ -2271,5 +2270,5 @@ const zn = /* @__PURE__ */ pe({
|
|
|
2271
2270
|
}
|
|
2272
2271
|
});
|
|
2273
2272
|
export {
|
|
2274
|
-
|
|
2273
|
+
Nl as default
|
|
2275
2274
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { defineComponent as P, mergeModels as Ye, useModel as ke, onMounted as ie, ref as L, computed as O, resolveComponent as F, openBlock as x, createElementBlock as E, createElementVNode as l, toDisplayString as R, unref as V, createVNode as A, createBlock as H, withCtx as N, Fragment as Y, renderList as ee, normalizeClass as q, normalizeStyle as Qe, createSlots as oe, createCommentVNode as j, withModifiers as Je, reactive as Fe, watch as Ce, isRef as re, Teleport as pe, h as k, createTextVNode as K, watchEffect as Ke } from "vue";
|
|
2
2
|
import { E as qe } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { y as Ge, z as Ze, c as ae, u as se, A as We, a as ce, N as ge, B as Ae, C as $, w as ne, D as Be, E as Ve, v as fe } from "./app-BQahEYX9.js";
|
|
4
4
|
import { useDialogChild as $e, useDialog as be, useProxiedModel as ue, useSnackbar as G, useBreakpoints as _e, components as J } from "@feedmepos/ui-library";
|
|
5
5
|
import { F as Ee, _ as et } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as le } from "@feedmepos/mf-common";
|
|
7
|
-
import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as nt, a as st, b as ot, c as at } from "./index-
|
|
9
|
-
import { u as te, a as me } from "./netsuite-
|
|
10
|
-
import { b as lt, a as it } from "./FmMultiselectDialog-
|
|
11
|
-
import { R as rt } from "./rules-
|
|
7
|
+
import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js";
|
|
8
|
+
import { u as nt, a as st, b as ot, c as at } from "./index-CeTIFqwk.js";
|
|
9
|
+
import { u as te, a as me } from "./netsuite-CB9u725A.js";
|
|
10
|
+
import { b as lt, a as it } from "./FmMultiselectDialog-CcMB_4yD.js";
|
|
11
|
+
import { R as rt, a as ut } from "./rules-DZnC9R5E.js";
|
|
12
12
|
import { P as Ne, J as Le, D as De } from "./app-DiX-EfV6.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as ve } from "./vue-i18n-
|
|
15
|
-
import { _ as
|
|
16
|
-
import { a as
|
|
17
|
-
import {
|
|
18
|
-
import { u as Re } from "./feature-DEryk-Cv.js";
|
|
13
|
+
import { u as dt } from "./supplier-BtZvsnMx.js";
|
|
14
|
+
import { u as ve } from "./vue-i18n-CgWPe8oO.js";
|
|
15
|
+
import { _ as ct, a as mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-ChqG8Av1.js";
|
|
16
|
+
import { a as he, f as Te } from "./date2-BTP8kRm1.js";
|
|
17
|
+
import { u as Re } from "./feature-Ce7hky70.js";
|
|
19
18
|
import { F as Oe } from "./FmDroppableField-J0xUsOTV.js";
|
|
20
|
-
import { r as Me, u as ze } from "./xlsx-
|
|
19
|
+
import { r as Me, u as ze } from "./xlsx-FLEhrhiP.js";
|
|
21
20
|
const ft = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
22
21
|
var je = { exports: {} };
|
|
23
22
|
(function(_, h) {
|
|
@@ -1782,7 +1781,7 @@ const Mt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1782
1781
|
}, Un = /* @__PURE__ */ P({
|
|
1783
1782
|
__name: "VendorsTab",
|
|
1784
1783
|
setup(_) {
|
|
1785
|
-
const h =
|
|
1784
|
+
const h = dt(), o = te(), d = G(), s = L(""), i = L(!1), r = L([]), t = L(!1), p = L(null), S = L(null);
|
|
1786
1785
|
ie(async () => {
|
|
1787
1786
|
if (h.suppliers.length === 0)
|
|
1788
1787
|
try {
|
|
@@ -2362,7 +2361,7 @@ const Mt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2362
2361
|
minSize: 200,
|
|
2363
2362
|
cell(s) {
|
|
2364
2363
|
const i = s.row.original, r = s.row.index;
|
|
2365
|
-
return k(
|
|
2364
|
+
return k(ct, {
|
|
2366
2365
|
style: {
|
|
2367
2366
|
flex: "1 1 0%"
|
|
2368
2367
|
},
|
|
@@ -2385,7 +2384,7 @@ const Mt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2385
2384
|
...o.value.slice(r + 1)
|
|
2386
2385
|
];
|
|
2387
2386
|
},
|
|
2388
|
-
rules: [
|
|
2387
|
+
rules: [mt(+ut({ amount: 1, precision: 0 }))],
|
|
2389
2388
|
applyDefaultRules: !0
|
|
2390
2389
|
});
|
|
2391
2390
|
},
|
|
@@ -4524,7 +4523,7 @@ const _o = { class: "flex flex-col gap-4" }, Eo = { class: "flex flex-col" }, No
|
|
|
4524
4523
|
}, oa = {
|
|
4525
4524
|
key: 2,
|
|
4526
4525
|
class: "grid grid-cols-2 gap-5"
|
|
4527
|
-
},
|
|
4526
|
+
}, wa = /* @__PURE__ */ P({
|
|
4528
4527
|
__name: "IntegrationView",
|
|
4529
4528
|
setup(_) {
|
|
4530
4529
|
const h = se(), o = L(!1), d = at(), { breakpoints: s } = _e(), i = O(() => s.value.xs || s.value.sm), { t: r } = Z();
|
|
@@ -4581,5 +4580,5 @@ const _o = { class: "flex flex-col gap-4" }, Eo = { class: "flex flex-col" }, No
|
|
|
4581
4580
|
}
|
|
4582
4581
|
});
|
|
4583
4582
|
export {
|
|
4584
|
-
|
|
4583
|
+
wa as default
|
|
4585
4584
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineComponent as ne, computed as g, reactive as oe, resolveComponent as B, openBlock as a, createElementBlock as y, createVNode as m, withCtx as k, createElementVNode as n, toDisplayString as p, unref as i, createBlock as I, createCommentVNode as v, Fragment as E, renderList as C, nextTick as te } from "vue";
|
|
2
|
-
import { a as le,
|
|
3
|
-
import { a as h,
|
|
4
|
-
import { u as ae } from "./use-inventory-binding-dialog-
|
|
5
|
-
import {
|
|
6
|
-
import { _ as ue, c as me, d as ce } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js";
|
|
2
|
+
import { a as le, H as ie, aj as se, F as de } from "./app-BQahEYX9.js";
|
|
3
|
+
import { a as h, s as D, h as G, d as re } from "./rules-DZnC9R5E.js";
|
|
4
|
+
import { u as ae } from "./use-inventory-binding-dialog-adxsJaIL.js";
|
|
5
|
+
import { _ as ue, c as me, d as ce } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-ChqG8Av1.js";
|
|
7
6
|
import { useI18n as pe } from "@feedmepos/mf-common";
|
|
8
7
|
const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-16" }, ve = { class: "flex items-center" }, be = { class: "flex-1 fm-typo-en-title-sm-600" }, _e = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, xe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, he = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Ve = {
|
|
9
8
|
class: "flex items-center",
|
|
@@ -26,13 +25,13 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
26
25
|
}, Me = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, De = { class: "flex flex-col" }, Ke = { class: "w-[200px]" }, $e = {
|
|
27
26
|
key: 0,
|
|
28
27
|
class: "w-[52px]"
|
|
29
|
-
}, ze = { class: "flex flex-col gap-16" }, je = { class: "flex items-center" }, Le = { class: "flex-1 fm-typo-en-title-sm-600" }, Oe = { class: "flex flex-col" }, Ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" },
|
|
28
|
+
}, ze = { class: "flex flex-col gap-16" }, je = { class: "flex items-center" }, Le = { class: "flex-1 fm-typo-en-title-sm-600" }, Oe = { class: "flex flex-col" }, Ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, He = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, We = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, qe = {
|
|
30
29
|
class: "flex items-center w-full",
|
|
31
30
|
style: { "min-height": "48px" }
|
|
32
31
|
}, Je = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Qe = { class: "line-clamp-1 w-full" }, Xe = { class: "w-[150px]" }, Ze = {
|
|
33
32
|
key: 0,
|
|
34
33
|
class: "w-[52px]"
|
|
35
|
-
}, en = { class: "flex flex-col px-12 pb-4" },
|
|
34
|
+
}, en = { class: "flex flex-col px-12 pb-4" }, rn = /* @__PURE__ */ ne({
|
|
36
35
|
__name: "InventoryBindingForm",
|
|
37
36
|
props: {
|
|
38
37
|
id: {},
|
|
@@ -66,7 +65,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
66
65
|
return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
|
|
67
66
|
}))
|
|
68
67
|
), j = g(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ae();
|
|
69
|
-
async function
|
|
68
|
+
async function H() {
|
|
70
69
|
if (s.iframeMode) {
|
|
71
70
|
b("click:pick-inventory-bindings", "RECIPE");
|
|
72
71
|
return;
|
|
@@ -77,8 +76,8 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
77
76
|
s.id ? [s.id] : []
|
|
78
77
|
);
|
|
79
78
|
}
|
|
80
|
-
const
|
|
81
|
-
async function
|
|
79
|
+
const W = g(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
|
|
80
|
+
async function q() {
|
|
82
81
|
Y(
|
|
83
82
|
s.modelValue,
|
|
84
83
|
(e) => b("update:modelValue", e),
|
|
@@ -173,7 +172,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
173
172
|
"border-color": "primary",
|
|
174
173
|
label: i(u)("inventory.inventoryBindings.linkRecipe"),
|
|
175
174
|
"prepend-icon": "link",
|
|
176
|
-
onClick:
|
|
175
|
+
onClick: H
|
|
177
176
|
}, null, 8, ["label"]))
|
|
178
177
|
]),
|
|
179
178
|
n("div", _e, [
|
|
@@ -256,7 +255,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
256
255
|
"border-color": "primary",
|
|
257
256
|
label: i(u)("inventory.inventoryBindings.linkIngredientGroup"),
|
|
258
257
|
"prepend-icon": "link",
|
|
259
|
-
onClick:
|
|
258
|
+
onClick: q
|
|
260
259
|
}, null, 8, ["label"]))
|
|
261
260
|
]),
|
|
262
261
|
n("div", Ae, [
|
|
@@ -265,7 +264,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
265
264
|
l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
266
265
|
l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
|
|
267
266
|
]),
|
|
268
|
-
(a(!0), y(E, null, C(
|
|
267
|
+
(a(!0), y(E, null, C(W.value, (t) => (a(), I(o, {
|
|
269
268
|
key: t.id,
|
|
270
269
|
disabled: e.disabled,
|
|
271
270
|
modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
|
|
@@ -329,8 +328,8 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
329
328
|
]),
|
|
330
329
|
n("div", Oe, [
|
|
331
330
|
n("div", Ye, [
|
|
332
|
-
n("div",
|
|
333
|
-
n("div",
|
|
331
|
+
n("div", He, p(i(u)("inventory.inventoryBindings.ingredient")), 1),
|
|
332
|
+
n("div", We, p(i(u)("inventory.inventoryBindings.amount")), 1),
|
|
334
333
|
l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
335
334
|
]),
|
|
336
335
|
(a(!0), y(E, null, C(S.value, (t, V) => {
|
|
@@ -339,7 +338,7 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
339
338
|
key: t.id,
|
|
340
339
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
341
340
|
}, [
|
|
342
|
-
n("div",
|
|
341
|
+
n("div", qe, [
|
|
343
342
|
n("div", Je, [
|
|
344
343
|
m(f, {
|
|
345
344
|
zIndex: 51,
|
|
@@ -400,5 +399,5 @@ const ye = { class: "flex flex-col gap-24" }, fe = { class: "flex flex-col gap-1
|
|
|
400
399
|
}
|
|
401
400
|
});
|
|
402
401
|
export {
|
|
403
|
-
|
|
402
|
+
rn as _
|
|
404
403
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-BQahEYX9.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as d, openBlock as F, createBlock as g, withCtx as i, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
+
import { d as s } from "./rules-DZnC9R5E.js";
|
|
3
3
|
const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -35,7 +35,7 @@ const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
|
35
35
|
t.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
36
36
|
};
|
|
37
37
|
return (e, t) => {
|
|
38
|
-
const o =
|
|
38
|
+
const o = d("FmField"), a = d("FmFormGroup");
|
|
39
39
|
return F(), g(a, {
|
|
40
40
|
disabled: e.disabled,
|
|
41
41
|
modelValue: e.modelValue,
|
|
@@ -43,9 +43,9 @@ const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
|
|
|
43
43
|
"helper-text": e.helperText,
|
|
44
44
|
label: e.label
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
46
|
+
default: i(({ invalid: b }) => [
|
|
47
47
|
A(o, { invalid: b }, {
|
|
48
|
-
default:
|
|
48
|
+
default: i(() => [
|
|
49
49
|
k("input", {
|
|
50
50
|
value: l.value,
|
|
51
51
|
onInput: t[0] || (t[0] = (y) => l.value = y.target.value),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u, w as _ } from "./xlsx-
|
|
2
|
-
import { o as h, u as F } from "./app-
|
|
1
|
+
import { u, w as _ } from "./xlsx-FLEhrhiP.js";
|
|
2
|
+
import { o as h, u as F } from "./app-BQahEYX9.js";
|
|
3
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
4
|
import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as w } from "vue";
|
|
5
5
|
function O(e, t) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Q, ref as
|
|
2
|
-
import { u as ne, a as ae,
|
|
1
|
+
import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
|
|
2
|
+
import { u as ne, a as ae, x as se } from "./app-BQahEYX9.js";
|
|
3
3
|
import { u as le, _ as ie } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
4
4
|
import { useBreakpoints as re, useDialog as ce, useSnackbar as ue, components as B } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as me } from "./vue-i18n-
|
|
6
|
-
import { a as H } from "./date2-
|
|
5
|
+
import { u as me } from "./vue-i18n-CgWPe8oO.js";
|
|
6
|
+
import { a as H } from "./date2-BTP8kRm1.js";
|
|
7
7
|
const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xe = /* @__PURE__ */ Q({
|
|
8
8
|
__name: "PublishView",
|
|
9
9
|
setup(ve) {
|
|
10
|
-
const { t } = me(), { breakpoints: x } = re(), n = ne(), A = ae(), S = se(), i =
|
|
10
|
+
const { t } = me(), { breakpoints: x } = re(), n = ne(), A = ae(), S = se(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = le(), C = ce(), Y = ue(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
|
|
11
11
|
X(
|
|
12
12
|
() => n._locations,
|
|
13
13
|
async () => {
|
|
@@ -42,7 +42,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const w =
|
|
45
|
+
const w = D(!1), E = [
|
|
46
46
|
{
|
|
47
47
|
value: "publish",
|
|
48
48
|
label: t("inventory.publish.actions.publishAll")
|
|
@@ -146,7 +146,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
146
146
|
];
|
|
147
147
|
return (e, o) => {
|
|
148
148
|
const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), G = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
|
|
149
|
-
return
|
|
149
|
+
return W(), z(ie, {
|
|
150
150
|
title: h(t)("inventory.publish.title"),
|
|
151
151
|
actions: U.value,
|
|
152
152
|
"onClick:action": q
|
|
@@ -196,7 +196,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
198
198
|
], 2),
|
|
199
|
-
(
|
|
199
|
+
(W(), z(oe, { to: "body" }, [
|
|
200
200
|
a(O, {
|
|
201
201
|
"dismiss-away": "",
|
|
202
202
|
modelValue: w.value,
|