@feedmepos/mf-inventory-portal 0.0.19-dev.14 → 0.0.19-dev.15
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/{ApprovalView-BY13XuOu.js → ApprovalView-CRHU3Bv0.js} +5 -5
- package/dist/{BindingsDialog-B3PP-XkE.js → BindingsDialog-ChIRg0d3.js} +1 -1
- package/dist/{BindingsPicker-DL17pRty.js → BindingsPicker-BJAbeiDf.js} +1 -1
- package/dist/{BindingsTable-CjKOv7Yw.js → BindingsTable-5MxWD_qa.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js} +1 -1
- package/dist/{IngredientsView-C-rsKAsF.js → IngredientsView-qXrDtzSK.js} +4 -4
- package/dist/{IntegrationView-BkhfPSjM.js → IntegrationView-D6yFqod1.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Buc21sEN.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BRijSilS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-CGMMozPA.js → PurchaseOrderPrintPreview-BWwjMRqb.js} +1 -1
- package/dist/{ReceiveRequestView-Bk0pUeEm.js → ReceiveRequestView-C94SWDaj.js} +7 -7
- package/dist/{RecipeView-kzA9kIg8.js → RecipeView-CG9H_ZOo.js} +4 -4
- package/dist/{StockView-DF-ucES_.js → StockView-BdXGfDNl.js} +7 -7
- package/dist/{SupplierView-XlzsU00G.js → SupplierView-ClL2oc8K.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bp7AJiJ-.js → TransferDetails.vue_vue_type_script_setup_true_lang-DktBkwCx.js} +4 -4
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js +1437 -0
- package/dist/{TransferTemplateView-CsA2SzQY.js → TransferTemplateView-BXrNS8pg.js} +26 -26
- package/dist/{UnitView-9VMIlEZ_.js → UnitView-Dx2vWJXi.js} +5 -5
- package/dist/{WarehouseView-JTYLFBsu.js → WarehouseView-UkmUZnqH.js} +3 -3
- package/dist/{app-kYGuBDV8.js → app-BLzTa0Ut.js} +4782 -4760
- package/dist/app.js +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +3 -1
- package/dist/{decimal-E3w4eGHF.js → decimal-DLYVb_I_.js} +1 -1
- package/dist/format-unit-display-D_Z4TNZd.js +668 -0
- package/dist/{id-to-date-gyR82hWy.js → id-to-date-CKplrnj_.js} +1 -1
- package/dist/{layout-BTYR4n3X.js → layout-B9sdKjL9.js} +1 -1
- package/dist/stores/feature.d.ts +1 -0
- package/dist/stores/location.d.ts +4 -0
- package/dist/{supplier-Ed-Bva_-.js → supplier-BZ6HZcYB.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/receive-request/components/select-template-dialog/SelectTemplateDialog.vue.d.ts +8 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1 -1
- package/dist/{xlsx-q6Ctgevr.js → xlsx-C3AV6UrJ.js} +1 -1
- package/dist/{xlsx.util-Cvqg56mI.js → xlsx.util-slrhXhsk.js} +2 -2
- package/package.json +1 -1
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-D1NAkXMT.js +0 -1690
- package/dist/purchase-order-transaction-type-CUtdDhYo.js +0 -299
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as W, onMounted as Ve, computed as M, ref as U, watch as ye, inject as Ge, resolveComponent as I, openBlock as R, createElementBlock as N, createElementVNode as a, createVNode as c, withCtx as B, renderSlot as we, withDirectives as Te, normalizeClass as ce, vModelText as Fe, reactive as Ye, h as D, toDisplayString as F, unref as e, createBlock as Q, isRef as Oe, createCommentVNode as ae, Fragment as Pe, renderList as We, normalizeStyle as Ke, Teleport as Ze, mergeProps as $e, normalizeProps as Je, guardReactiveProps as Xe } from "vue";
|
|
2
|
-
import { _ as et, a as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as et, a as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js";
|
|
3
3
|
import { useI18n as Y } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
4
|
+
import { P, a as ot, f as st, b as nt, c as Se, d as at } from "./format-unit-display-D_Z4TNZd.js";
|
|
5
5
|
import { F as le, R as Re } from "./row-action.enum-PMKMRrZR.js";
|
|
6
|
-
import { $ as me, t as Ie, I as lt, a0 as rt, a1 as it, a as E, D as Me, R as pe, a2 as ut, a3 as dt, r as de, a4 as mt, l as De, A as fe, M as Ae, G as
|
|
7
|
-
import { F as q, _ as
|
|
8
|
-
import { useBreakpoints as
|
|
6
|
+
import { $ as me, t as Ie, I as lt, a0 as rt, a1 as it, a as E, D as Me, R as pe, a2 as ut, a3 as dt, r as de, a4 as mt, l as De, A as fe, M as Ae, G as Be, a5 as ct, a6 as Le, b as Ue, u as pt, j as qe, y as ft, a7 as yt, a8 as vt } from "./app-BLzTa0Ut.js";
|
|
7
|
+
import { F as q, _ as Ee, u as bt } from "./layout-B9sdKjL9.js";
|
|
8
|
+
import { useBreakpoints as Ne, components as G, FmButtonVariant as _t, useDialog as xt, useSnackbar as ht, useProxiedModel as ze } from "@feedmepos/ui-library";
|
|
9
9
|
import { storeToRefs as gt } from "pinia";
|
|
10
|
-
import {
|
|
11
|
-
import { _ as je } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { d as He, c as re, u as kt, _ as Ct } from "./TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js";
|
|
11
|
+
import { _ as je } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js";
|
|
12
12
|
import { useRouter as wt } from "vue-router";
|
|
13
|
-
import { u as Tt } from "./supplier-
|
|
13
|
+
import { u as Tt } from "./supplier-BZ6HZcYB.js";
|
|
14
14
|
const Ft = { class: "flex flex-col" }, $t = { class: "flex flex-col" }, St = { class: "flex-1" }, Rt = { class: "flex items-center" }, It = { class: "flex-1" }, Mt = { class: "flex-1" }, Dt = /* @__PURE__ */ W({
|
|
15
15
|
__name: "FmMinMaxInput",
|
|
16
16
|
props: {
|
|
@@ -49,7 +49,7 @@ const Ft = { class: "flex flex-col" }, $t = { class: "flex flex-col" }, St = { c
|
|
|
49
49
|
helperState: {}
|
|
50
50
|
},
|
|
51
51
|
setup(u) {
|
|
52
|
-
const b = u, m =
|
|
52
|
+
const b = u, m = He("modelValue"), l = lt();
|
|
53
53
|
Ve(() => {
|
|
54
54
|
const { min: n, max: t } = m ?? {};
|
|
55
55
|
if (!(!n || !t) && n.precision !== t.precision) {
|
|
@@ -182,11 +182,11 @@ const Ot = () => {
|
|
|
182
182
|
zIndex: 50,
|
|
183
183
|
class: "whitespace-nowrap"
|
|
184
184
|
},
|
|
185
|
-
u("inventory.transfer.form.items.table.Cost", [
|
|
185
|
+
u("inventory.transfer.form.items.table.Cost", [Le()])
|
|
186
186
|
);
|
|
187
187
|
};
|
|
188
188
|
function Pt(u) {
|
|
189
|
-
const { t: b } = Y(), m = Ye({}), { breakpoints: l } =
|
|
189
|
+
const { t: b } = Y(), m = Ye({}), { breakpoints: l } = Ne();
|
|
190
190
|
Ve(() => {
|
|
191
191
|
for (const i of u.items) {
|
|
192
192
|
if (!i.totalCost)
|
|
@@ -387,7 +387,7 @@ function Pt(u) {
|
|
|
387
387
|
{
|
|
388
388
|
class: [u.disabled ? "text-fm-color-typo-disabled" : ""]
|
|
389
389
|
},
|
|
390
|
-
p ?
|
|
390
|
+
p ? Be(
|
|
391
391
|
re(s.sku, s.quantity, s.measurement, {
|
|
392
392
|
supplier: u.supplier
|
|
393
393
|
})
|
|
@@ -436,7 +436,7 @@ function Pt(u) {
|
|
|
436
436
|
u.disabled ? "text-fm-color-typo-disabled" : ""
|
|
437
437
|
]
|
|
438
438
|
},
|
|
439
|
-
|
|
439
|
+
Le()
|
|
440
440
|
) : null;
|
|
441
441
|
},
|
|
442
442
|
append() {
|
|
@@ -484,7 +484,7 @@ function Pt(u) {
|
|
|
484
484
|
}
|
|
485
485
|
];
|
|
486
486
|
return {
|
|
487
|
-
columnDefs: M(() =>
|
|
487
|
+
columnDefs: M(() => Ue().enableTotalCost && u.transferType === P.PURCHASE ? g : g.filter((s) => s.id !== "Cost"))
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
490
|
const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-center" }, Ut = { class: "flex-1 flex gap-1 items-center" }, qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Nt = { class: "flex gap-8 w-full" }, zt = { class: "flex-1 flex flex-col gap-4" }, Ht = { class: "flex-1 flex flex-col gap-4" }, jt = { class: "flex gap-8 w-full" }, Qt = { class: "flex-1 flex flex-col gap-4" }, Gt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Kt = { class: "flex-1 flex flex-col gap-4" }, Zt = /* @__PURE__ */ W({
|
|
@@ -592,7 +592,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
592
592
|
disabled: { type: Boolean }
|
|
593
593
|
},
|
|
594
594
|
setup(u, { expose: b }) {
|
|
595
|
-
const m = u, l =
|
|
595
|
+
const m = u, l = He(), { t: f } = Y(), g = qe(), k = pt(), i = Tt();
|
|
596
596
|
ye(
|
|
597
597
|
() => m.modelValue,
|
|
598
598
|
(n) => {
|
|
@@ -601,7 +601,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
601
601
|
), g.watchLocation(async () => {
|
|
602
602
|
location && (l.purchaseOrder.supplier || (l.purchaseOrder.supplier = i.suppliers.find((n) => n) ?? l.purchaseOrder.supplier));
|
|
603
603
|
});
|
|
604
|
-
const s = xt(), d =
|
|
604
|
+
const s = xt(), d = kt(
|
|
605
605
|
() => l.purchaseOrder,
|
|
606
606
|
(n) => {
|
|
607
607
|
l.purchaseOrder = {
|
|
@@ -809,7 +809,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
809
809
|
"hide-footer": ""
|
|
810
810
|
}, {
|
|
811
811
|
"list-row": B((x) => [
|
|
812
|
-
(R(), Q(
|
|
812
|
+
(R(), Q(Ee, {
|
|
813
813
|
row: x,
|
|
814
814
|
key: e(l).purchaseOrder.items.map((O) => O.sku._id).join(".")
|
|
815
815
|
}, {
|
|
@@ -840,7 +840,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
840
840
|
emits: ["update:show", "submitted"],
|
|
841
841
|
setup(u, { expose: b, emit: m }) {
|
|
842
842
|
var t;
|
|
843
|
-
const l = u, f = m, g =
|
|
843
|
+
const l = u, f = m, g = ot(), k = ht(), { t: i } = Y(), s = ze(l, "show");
|
|
844
844
|
function d() {
|
|
845
845
|
return {
|
|
846
846
|
_id: "",
|
|
@@ -1032,7 +1032,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1032
1032
|
},
|
|
1033
1033
|
emits: ["update:show", "action:use", "action:edit"],
|
|
1034
1034
|
setup(u, { emit: b }) {
|
|
1035
|
-
const m = u, l = b, f =
|
|
1035
|
+
const m = u, l = b, f = Ue(), { t: g } = Y(), k = M(() => {
|
|
1036
1036
|
var p;
|
|
1037
1037
|
return (p = m.template) == null ? void 0 : p.purchaseOrder;
|
|
1038
1038
|
}), i = M(
|
|
@@ -1040,7 +1040,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1040
1040
|
var p, _, C, T;
|
|
1041
1041
|
return ((_ = (p = k.value) == null ? void 0 : p.supplier) == null ? void 0 : _.internal) === "restaurant" || ((T = (C = k.value) == null ? void 0 : C.supplier) == null ? void 0 : T.internal) === "warehouse" ? P.TRANSFER : P.PURCHASE;
|
|
1042
1042
|
}
|
|
1043
|
-
), s = U(!0), d =
|
|
1043
|
+
), s = U(!0), d = ze(m, "show");
|
|
1044
1044
|
return (p, _) => {
|
|
1045
1045
|
var L;
|
|
1046
1046
|
const C = I("FmChip"), T = I("FmMenuDivider"), w = I("FmCard"), S = I("FmButton"), A = I("FmSideSheet");
|
|
@@ -1081,7 +1081,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1081
1081
|
a("div", fo, [
|
|
1082
1082
|
a("div", yo, F(e(g)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
1083
1083
|
]),
|
|
1084
|
-
a("div", vo, F(e(
|
|
1084
|
+
a("div", vo, F(e(st)(((t = p.template) == null ? void 0 : t._id) ?? "")), 1)
|
|
1085
1085
|
]),
|
|
1086
1086
|
(o = k.value) != null && o.effectiveAt ? (R(), N("div", bo, [
|
|
1087
1087
|
a("div", _o, F(e(g)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
@@ -1120,11 +1120,11 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1120
1120
|
a("div", Oo, [
|
|
1121
1121
|
a("div", Po, F(t.name), 1),
|
|
1122
1122
|
_[3] || (_[3] = a("div", { class: "flex-1 min-w-32" }, null, -1)),
|
|
1123
|
-
a("div", Bo, F(e(
|
|
1123
|
+
a("div", Bo, F(e(nt)(t.quantity, t.sku.unit, t.measurement)), 1)
|
|
1124
1124
|
]),
|
|
1125
1125
|
a("div", Lo, [
|
|
1126
1126
|
a("div", Uo, F(t.code), 1),
|
|
1127
|
-
t.totalCost && e(f).enableTotalCost ? (R(), N("div", qo, " (" + F(e(
|
|
1127
|
+
t.totalCost && e(f).enableTotalCost ? (R(), N("div", qo, " (" + F(e(Be)(t.totalCost)) + ") ", 1)) : ae("", !0)
|
|
1128
1128
|
])
|
|
1129
1129
|
]))), 128))
|
|
1130
1130
|
])
|
|
@@ -1154,7 +1154,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1154
1154
|
setup(u) {
|
|
1155
1155
|
const { t: b } = Y(), { createTemplate: m, viewTemplate: l } = Se(), { templateDialogProps: f, transferFormDialogProps: g, templateDetailsProps: k } = gt(
|
|
1156
1156
|
Se()
|
|
1157
|
-
), i =
|
|
1157
|
+
), i = at(), s = bt(), d = qe(), { breakpoints: p } = Ne();
|
|
1158
1158
|
d.watchLocation(i.fetchTemplates);
|
|
1159
1159
|
const _ = M(
|
|
1160
1160
|
() => i.loading.value || !d._currentLocation
|
|
@@ -1209,7 +1209,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1209
1209
|
"page-size": w.value
|
|
1210
1210
|
}, {
|
|
1211
1211
|
"list-row": B((y) => [
|
|
1212
|
-
c(
|
|
1212
|
+
c(Ee, {
|
|
1213
1213
|
row: y,
|
|
1214
1214
|
onRowClick: (v) => e(l)(v)
|
|
1215
1215
|
}, {
|
|
@@ -1264,7 +1264,7 @@ const Bt = { class: "flex flex-col gap-8 py-16" }, Lt = { class: "flex items-cen
|
|
|
1264
1264
|
_: 1
|
|
1265
1265
|
}, 8, ["title", "actions"]),
|
|
1266
1266
|
(R(), Q(Ze, { to: "body" }, [
|
|
1267
|
-
c(
|
|
1267
|
+
c(Ct, $e(e(g), { onSubmitted: L }), null, 16),
|
|
1268
1268
|
c(No, Je(Xe(e(k))), null, 16),
|
|
1269
1269
|
c(ro, $e(e(f), {
|
|
1270
1270
|
onSubmitted: o[2] || (o[2] = (h) => e(i).fetchTemplates())
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as H, computed as V, openBlock as v, createElementBlock as k, createElementVNode as l, Fragment as N, renderList as q, toDisplayString as h, createCommentVNode as O, ref as R, resolveComponent as E, createBlock as T, withCtx as I, createVNode as y, unref as a, isRef as X, normalizeStyle as se, Teleport as ae, normalizeProps as re, guardReactiveProps as ie } from "vue";
|
|
2
|
-
import { u as K, S as ue, c as ne, R as z, A as de, a as Y, l as me, m as ce, e as Z, j as pe } from "./app-
|
|
2
|
+
import { u as K, S as ue, c as ne, R as z, A as de, a as Y, l as me, m as ce, e as Z, j as pe } from "./app-BLzTa0Ut.js";
|
|
3
3
|
import { useDialog as fe, useSnackbar as oe, useProxiedModel as ee, useBreakpoints as ve } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as ye, _ as be } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as w, D as te, R as j } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { defineStore as ge, storeToRefs as xe } from "pinia";
|
|
7
|
-
import { c as _e, _ as he, F as Ve, u as Ue } from "./layout-
|
|
7
|
+
import { c as _e, _ as he, F as Ve, u as Ue } from "./layout-B9sdKjL9.js";
|
|
8
8
|
import { useI18n as G } from "@feedmepos/mf-common";
|
|
9
|
-
import { _ as we, a as Ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { F as ke } from "./decimal-
|
|
11
|
-
import { _ as Fe } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as we, a as Ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js";
|
|
10
|
+
import { F as ke } from "./decimal-DLYVb_I_.js";
|
|
11
|
+
import { _ as Fe } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js";
|
|
12
12
|
const Se = { class: "flex flex-col gap-8" }, $e = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "flex flex-col"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as W, defineComponent as O, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as j, toRaw as be, reactive as $e, createElementVNode as b, toDisplayString as L, unref as c, createVNode as k, resolveComponent as B, createSlots as De, withCtx as q, createTextVNode as We, renderSlot as Pe, createBlock as z, createCommentVNode as xe, computed as D, isRef as we, normalizeStyle as Se } from "vue";
|
|
2
|
-
import { n as Re, Q as Te, T as Ee, c as G, V as ae, W as le, X as Ue, i as Le, R as N, j as Ne } from "./app-
|
|
2
|
+
import { n as Re, Q as Te, T as Ee, c as G, V as ae, W as le, X as Ue, i as Le, R as N, j as Ne } from "./app-BLzTa0Ut.js";
|
|
3
3
|
import { useCoreStore as Be, useI18n as I } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as Ve, R as Z, F as E } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
-
import { c as qe, _ as Ie, F as J, u as je } from "./layout-
|
|
6
|
-
import { _ as ze, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { c as qe, _ as Ie, F as J, u as je } from "./layout-B9sdKjL9.js";
|
|
6
|
+
import { _ as ze, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js";
|
|
7
7
|
import { useDialogChild as Ge, useDialog as Ae, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
8
8
|
const Y = Re((p, m) => {
|
|
9
9
|
const f = Be();
|