@feedmepos/mf-inventory-portal 0.0.22-dev.15 → 0.0.22-dev.17
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-BOP6b_Yd.js → ApprovalView-CejADKvT.js} +4 -4
- package/dist/{BindingsDialog-BLyRf9wO.js → BindingsDialog-CCS9ek6i.js} +1 -1
- package/dist/{BindingsPicker-CNbfKeSB.js → BindingsPicker-aN6Bt5S-.js} +1 -1
- package/dist/{BindingsTable-CH73rDTZ.js → BindingsTable-BWy16dDq.js} +1 -1
- package/dist/{ClosingTemplateView-c572PM5W.js → ClosingTemplateView-CcpTmujq.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CpmzTuAj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnqvCwZ1.js} +1 -1
- package/dist/{IngredientsView-CdE3WOqJ.js → IngredientsView-e1fUwLV5.js} +3 -3
- package/dist/{IntegrationView-B29NSwpf.js → IntegrationView-wClaTngm.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZsQjzBa.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BLcWv-4F.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwKpNPDY.js → PremiumBadge.vue_vue_type_script_setup_true_lang-5oJQidum.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-mHevDWzN.js → PurchaseOrderPrintPreview-B8L_w8dN.js} +1 -1
- package/dist/{ReceiveRequestView-Bl4SuM6j.js → ReceiveRequestView-DjkgdIE_.js} +6 -6
- package/dist/RecipeView-DCBx5IFe.js +590 -0
- package/dist/{StockView-C4z9Qi7T.js → StockView-Cn1b4T7N.js} +50 -50
- package/dist/{SupplierView-CXyWhB9D.js → SupplierView-DYtpWPFD.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C_cTUji8.js → TransferDetails.vue_vue_type_script_setup_true_lang-DVlkmZxl.js} +4 -4
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-DV59BWff.js → TransferDialog.vue_vue_type_script_setup_true_lang-B7DXQ57v.js} +5 -5
- package/dist/{TransferTemplateView-Dpxk9Zwt.js → TransferTemplateView-CxZIwfiT.js} +8 -8
- package/dist/{UnitView-BQlwparN.js → UnitView-EQl6iujM.js} +4 -4
- package/dist/{WarehouseView-Cu7pKilf.js → WarehouseView-BMBM2emY.js} +2 -2
- package/dist/{app-CFkNddzq.js → app-Ai2ZyFFs.js} +6697 -6583
- package/dist/app.js +1 -1
- package/dist/{decimal-D0W3dojG.js → decimal-CHqei97s.js} +1 -1
- package/dist/{defineDeepModel-DWffbsZh.js → defineDeepModel-CkReIsWC.js} +1 -1
- package/dist/{format-time-from-id-BZAepMJZ.js → format-time-from-id-Cb2zp48Q.js} +1 -1
- package/dist/{id-to-date-BJEGh6zQ.js → id-to-date-CnOKmysf.js} +1 -1
- package/dist/{purchase-order-transaction-type-CAJDFGQP.js → purchase-order-transaction-type-CHRCkOeZ.js} +3 -3
- package/dist/{supplier-ChSqlZUK.js → supplier-rHVJDY4i.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-B4M8z0b7.js → use-template-enabled-locations-2-EztCYYTj.js} +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +362 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +713 -167
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +723 -177
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1096 -16
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +360 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +90 -0
- package/dist/{xlsx-BH3xrhEk.js → xlsx-_U0K6u2_.js} +1 -1
- package/dist/{xlsx.util-DlY5MITI.js → xlsx.util-BCiEge44.js} +2 -2
- package/package.json +1 -1
- package/dist/RecipeView-BHBJlY-_.js +0 -581
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as H, defineComponent as re, computed as U, resolveComponent as M, openBlock as B, createBlock as O, withCtx as D, createElementVNode as n, normalizeClass as he, toDisplayString as x, createVNode as S, createElementBlock as L, Fragment as ne, renderList as ae, unref as v, h as ye, watch as ge, isRef as Pe, createCommentVNode as te, reactive as it, onMounted as
|
|
2
|
-
import { i as ct, u as dt, _ as mt, a as pt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import {
|
|
4
|
-
import { useCoreStore as
|
|
5
|
-
import { useSnackbar as de, useDialog as
|
|
6
|
-
import { c as Ut, _ as Pt, F as
|
|
7
|
-
import { g as xe } from "./decimal-
|
|
8
|
-
import { e as Tt, i as ot } from "./id-to-date-
|
|
1
|
+
import { ref as H, defineComponent as re, computed as U, resolveComponent as M, openBlock as B, createBlock as O, withCtx as D, createElementVNode as n, normalizeClass as he, toDisplayString as x, createVNode as S, createElementBlock as L, Fragment as ne, renderList as ae, unref as v, h as ye, watch as ge, isRef as Pe, createCommentVNode as te, reactive as it, onMounted as Qe, normalizeStyle as Xe, createTextVNode as ve, Teleport as ut, normalizeProps as Be, mergeProps as Fe } from "vue";
|
|
2
|
+
import { i as ct, u as dt, _ as mt, a as pt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnqvCwZ1.js";
|
|
3
|
+
import { o as Ze, j as ue, u as $e, p as vt, q as ft, c as Te, r as yt, k as ze, s as Me, a as ie, l as _t, t as be, n as je, A as kt, M as ht, m as fe, v as gt, w as ee, x as bt, y as Ye, R as xt, z as St, B as $t, D as et, E as W, G as wt, f as tt, H as Ie, J as Bt, d as Ke, b as Ft, K as At, L as Vt, C as Ae, N as Ct, O as Dt, P as Mt, Q as jt } from "./app-Ai2ZyFFs.js";
|
|
4
|
+
import { useCoreStore as nt, useI18n as le } from "@feedmepos/mf-common";
|
|
5
|
+
import { useSnackbar as de, useDialog as Re, useProxiedModel as He, useBreakpoints as It } from "@feedmepos/ui-library";
|
|
6
|
+
import { c as Ut, _ as Pt, F as Ge } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
7
|
+
import { g as xe } from "./decimal-CHqei97s.js";
|
|
8
|
+
import { e as Tt, i as ot } from "./id-to-date-CnOKmysf.js";
|
|
9
9
|
import { _ as Ue, S as Ve, g as st } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
10
10
|
import { _ as Rt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
11
|
-
import { u as at, _ as
|
|
11
|
+
import { u as at, _ as qe } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-5oJQidum.js";
|
|
12
12
|
import { defineStore as Ht } from "pinia";
|
|
13
|
-
import { _ as Et } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { _ as Et } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BLcWv-4F.js";
|
|
14
14
|
import { E as Lt } from "./empty-placeholder-wf6-BWE8.js";
|
|
15
|
-
const we =
|
|
16
|
-
const r = ue(), s =
|
|
15
|
+
const we = Ze((d, u) => {
|
|
16
|
+
const r = ue(), s = nt(), k = de();
|
|
17
17
|
return u.onError(async (l) => {
|
|
18
18
|
l.name === "SvcForbiddenError" && (k == null || k.open({
|
|
19
19
|
title: l.title,
|
|
@@ -71,7 +71,7 @@ function Nt() {
|
|
|
71
71
|
productBalance: []
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const _e = H(Nt()),
|
|
74
|
+
const _e = H(Nt()), Ee = () => {
|
|
75
75
|
const d = we();
|
|
76
76
|
return {
|
|
77
77
|
// state
|
|
@@ -281,7 +281,7 @@ const Kt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
|
|
|
281
281
|
}));
|
|
282
282
|
}
|
|
283
283
|
}), lt = Ht("stockActions", () => {
|
|
284
|
-
const d = H(!1), u = ue(), r =
|
|
284
|
+
const d = H(!1), u = ue(), r = Ee(), s = at(), k = de(), l = Re(), { t: a } = le();
|
|
285
285
|
async function i() {
|
|
286
286
|
if (u._currentLocation) {
|
|
287
287
|
d.value = !0;
|
|
@@ -473,7 +473,7 @@ const Jt = {
|
|
|
473
473
|
return this;
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
function
|
|
476
|
+
function We(d) {
|
|
477
477
|
return { ...Jt, context: d };
|
|
478
478
|
}
|
|
479
479
|
const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-800" }, Zt = { class: "flex flex-col gap-24 w-full" }, en = { class: "flex flex-col gap-8" }, tn = { class: "fm-typo-en-body-lg-600" }, nn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary flex-grow" }, on = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-error" }, sn = { class: "flex flex-col p-16 gap-8" }, an = { class: "flex flex-col gap-4" }, rn = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 border-b py-12 px-16" }, ln = { class: "grid grid-cols-[auto_100px_100px_48px] xs:grid-cols-[auto_80px_120px_48px] gap-8 px-8 items-center" }, un = { class: "xs:col-span-3" }, cn = { class: "flex gap-8" }, dn = /* @__PURE__ */ re({
|
|
@@ -489,7 +489,7 @@ const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-80
|
|
|
489
489
|
() => {
|
|
490
490
|
var t, e;
|
|
491
491
|
return (((e = (t = s.sku) == null ? void 0 : t.convert) == null ? void 0 : e.inventoryBindings) ?? []).filter(
|
|
492
|
-
(f) => f.type ===
|
|
492
|
+
(f) => f.type === ze.enum.SKU
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
), g = U({
|
|
@@ -509,7 +509,7 @@ const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-80
|
|
|
509
509
|
function E(t) {
|
|
510
510
|
if (o.value)
|
|
511
511
|
return !0;
|
|
512
|
-
const e =
|
|
512
|
+
const e = We(t).isInteger().max(s.maxCount ?? 0).error ?? "";
|
|
513
513
|
return e || !0;
|
|
514
514
|
}
|
|
515
515
|
function V(t) {
|
|
@@ -518,7 +518,7 @@ const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-80
|
|
|
518
518
|
var z;
|
|
519
519
|
return A.id === ((z = s.sku.convert) == null ? void 0 : z.measurement);
|
|
520
520
|
}) ?? null : null, f = Me(s.sku.unit, e), m = gt(+t);
|
|
521
|
-
return
|
|
521
|
+
return We(m).isInteger().max(f).error ? "Precision cannot be more than " + f : !0;
|
|
522
522
|
}
|
|
523
523
|
const $ = U(
|
|
524
524
|
() => {
|
|
@@ -532,17 +532,17 @@ const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-80
|
|
|
532
532
|
var f, m, _;
|
|
533
533
|
const t = (m = (f = s.sku.convert) == null ? void 0 : f.inventoryBindings) == null ? void 0 : m.filter((y) => y.type === "SKU");
|
|
534
534
|
return (_ = o.value ?? t) == null ? void 0 : _.map((y) => {
|
|
535
|
-
var Z, q, se,
|
|
535
|
+
var Z, q, se, Le, Ne;
|
|
536
536
|
const A = a.skus.find((pe) => pe._id === y.id), z = ((Z = y.measurement) == null ? void 0 : Z.abbrev) ?? ((q = A == null ? void 0 : A.unit) == null ? void 0 : q.abbrev), X = (se = s.sku.convert) != null && se.measurement ? s.sku.unit.measurements.find((pe) => {
|
|
537
|
-
var
|
|
538
|
-
return pe.id === ((
|
|
537
|
+
var Oe;
|
|
538
|
+
return pe.id === ((Oe = s.sku.convert) == null ? void 0 : Oe.measurement);
|
|
539
539
|
}) ?? null : null, me = Me(s.sku.unit, X), I = V(`${c.value}`) === !0 ? ie(
|
|
540
540
|
_t(
|
|
541
541
|
y.amount,
|
|
542
542
|
be(+c.value, me)
|
|
543
543
|
),
|
|
544
544
|
!1
|
|
545
|
-
) : "0", G = (
|
|
545
|
+
) : "0", G = (Ne = (Le = o.value) == null ? void 0 : Le.find((pe) => pe.id === (A == null ? void 0 : A._id))) == null ? void 0 : Ne.amount, J = G ? ie(G, !1) : null;
|
|
546
546
|
return {
|
|
547
547
|
sku: A,
|
|
548
548
|
convertAmount: J ?? I,
|
|
@@ -564,7 +564,7 @@ const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-80
|
|
|
564
564
|
(e = (t = P.value) == null ? void 0 : t.resetInputs) == null || e.call(t);
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
|
-
const T =
|
|
567
|
+
const T = He(s, "show");
|
|
568
568
|
async function Q(t, e, f) {
|
|
569
569
|
p.value = !0;
|
|
570
570
|
try {
|
|
@@ -630,7 +630,7 @@ const Qt = { class: "flex items-center" }, Xt = { class: "fm-typo-en-title-md-80
|
|
|
630
630
|
function oe() {
|
|
631
631
|
const t = (o.value ?? []).map((e) => ({
|
|
632
632
|
...e,
|
|
633
|
-
type:
|
|
633
|
+
type: ze.enum.SKU
|
|
634
634
|
}));
|
|
635
635
|
l.promptIngredientsBinding(
|
|
636
636
|
t,
|
|
@@ -800,7 +800,7 @@ function Ce(d, u) {
|
|
|
800
800
|
const r = be(d, u);
|
|
801
801
|
return { ...r, amount: -r.amount };
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Je(d, u) {
|
|
804
804
|
return be(Math.abs(d), u);
|
|
805
805
|
}
|
|
806
806
|
const De = {
|
|
@@ -818,11 +818,11 @@ const De = {
|
|
|
818
818
|
},
|
|
819
819
|
[ee.enum.EXTRA]: {
|
|
820
820
|
label: "Extra",
|
|
821
|
-
toAdjustmentAmount:
|
|
821
|
+
toAdjustmentAmount: Je
|
|
822
822
|
},
|
|
823
823
|
[ee.enum.PURCHASE]: {
|
|
824
824
|
label: "Purchase",
|
|
825
|
-
toAdjustmentAmount:
|
|
825
|
+
toAdjustmentAmount: Je
|
|
826
826
|
}
|
|
827
827
|
}, mn = { class: "col-span-2 flex" }, pn = { class: "fm-typo-en-body-lg-600 flex-1" }, vn = /* @__PURE__ */ re({
|
|
828
828
|
__name: "AdjustedItemForm",
|
|
@@ -846,7 +846,7 @@ const De = {
|
|
|
846
846
|
...r.modelValue
|
|
847
847
|
};
|
|
848
848
|
o.type = c;
|
|
849
|
-
const w =
|
|
849
|
+
const w = Ye(r.modelValue.amount);
|
|
850
850
|
o.amount = De[o.type].toAdjustmentAmount(
|
|
851
851
|
+ie(w),
|
|
852
852
|
w.precision
|
|
@@ -854,7 +854,7 @@ const De = {
|
|
|
854
854
|
}
|
|
855
855
|
}), i = U({
|
|
856
856
|
get() {
|
|
857
|
-
const c =
|
|
857
|
+
const c = Ye(r.modelValue.amount);
|
|
858
858
|
return +ie(c);
|
|
859
859
|
},
|
|
860
860
|
set(c) {
|
|
@@ -953,7 +953,7 @@ const De = {
|
|
|
953
953
|
},
|
|
954
954
|
emits: ["update:show", "submitted"],
|
|
955
955
|
setup(d, { expose: u, emit: r }) {
|
|
956
|
-
const s = d, k = r, l = $e(), a =
|
|
956
|
+
const s = d, k = r, l = $e(), a = Re(), i = we(), b = de(), h = H(!1), { t: c } = le();
|
|
957
957
|
function o() {
|
|
958
958
|
p(Te(g));
|
|
959
959
|
}
|
|
@@ -972,7 +972,7 @@ const De = {
|
|
|
972
972
|
($ = (V = w.value) == null ? void 0 : V.resetInputs) == null || $.call(V);
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
|
-
const F =
|
|
975
|
+
const F = He(s, "show"), g = it({
|
|
976
976
|
remark: "",
|
|
977
977
|
adjustments: [
|
|
978
978
|
{
|
|
@@ -1123,7 +1123,7 @@ const De = {
|
|
|
1123
1123
|
}, 8, ["modelValue"]);
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
|
-
}), bn =
|
|
1126
|
+
}), bn = Ze((d, u) => ({
|
|
1127
1127
|
// TODO: remove once latest inventory backend has been push
|
|
1128
1128
|
async findBillsByBusinessId(r, s, k) {
|
|
1129
1129
|
const l = `${d.businessesBackendUrl}/${r}/reports/find-many`, a = {
|
|
@@ -1158,7 +1158,7 @@ const De = {
|
|
|
1158
1158
|
},
|
|
1159
1159
|
setup(d) {
|
|
1160
1160
|
const u = d, r = H(!1), s = H(), k = H(null), l = U(() => k.value === null ? "unset" : r.value ? `${k.value}px` : "0px");
|
|
1161
|
-
|
|
1161
|
+
Qe(() => {
|
|
1162
1162
|
var h;
|
|
1163
1163
|
k.value = ((h = s.value) == null ? void 0 : h.scrollHeight) || 0;
|
|
1164
1164
|
});
|
|
@@ -1170,7 +1170,7 @@ const De = {
|
|
|
1170
1170
|
}).flatMap((p) => p.amounts);
|
|
1171
1171
|
for (const p of F) {
|
|
1172
1172
|
const j = p.measurement ? $t(p.measurement.conversion, p.amount) : p.amount;
|
|
1173
|
-
o[g = p.type] ?? (o[g] = { amount: 0, precision: 0 }), o[p.type] =
|
|
1173
|
+
o[g = p.type] ?? (o[g] = { amount: 0, precision: 0 }), o[p.type] = et(j, o[p.type]);
|
|
1174
1174
|
}
|
|
1175
1175
|
return Object.entries(o).reduce(
|
|
1176
1176
|
(p, [j, E]) => (p[j] = /// comment, because without it formatter makes code uglier
|
|
@@ -1239,7 +1239,7 @@ const De = {
|
|
|
1239
1239
|
n("div", {
|
|
1240
1240
|
ref_key: "detailRef",
|
|
1241
1241
|
ref: s,
|
|
1242
|
-
style:
|
|
1242
|
+
style: Xe({
|
|
1243
1243
|
fontSize: "0.8rem",
|
|
1244
1244
|
maxHeight: l.value,
|
|
1245
1245
|
overflow: "hidden",
|
|
@@ -1266,7 +1266,7 @@ const De = {
|
|
|
1266
1266
|
"z-index": 50
|
|
1267
1267
|
}, {
|
|
1268
1268
|
content: D(() => [
|
|
1269
|
-
n("div", Vn, x(v(i)("inventory.stock.record.backdate", [v(
|
|
1269
|
+
n("div", Vn, x(v(i)("inventory.stock.record.backdate", [v(tt)(new Date(p.backdateFrom))])), 1)
|
|
1270
1270
|
]),
|
|
1271
1271
|
default: D(() => [
|
|
1272
1272
|
S(o, {
|
|
@@ -1380,7 +1380,7 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1380
1380
|
},
|
|
1381
1381
|
emits: ["update:show"],
|
|
1382
1382
|
setup(d) {
|
|
1383
|
-
const u =
|
|
1383
|
+
const u = nt(), r = Ee(), s = we(), k = bn(), l = ue(), a = Ft(), { t: i } = le(), b = d, h = H(!1), c = de(), o = H(ct(0));
|
|
1384
1384
|
async function w() {
|
|
1385
1385
|
h.value = !0;
|
|
1386
1386
|
try {
|
|
@@ -1395,14 +1395,14 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1395
1395
|
h.value = !1;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
|
|
1398
|
+
Qe(() => {
|
|
1399
1399
|
w();
|
|
1400
1400
|
}), ge([() => o.value, () => b.sku], () => {
|
|
1401
1401
|
w();
|
|
1402
1402
|
});
|
|
1403
1403
|
const F = H([]), g = H([]), p = H(new Array());
|
|
1404
1404
|
function j(t, e) {
|
|
1405
|
-
return e === "day" ? Mt(t) :
|
|
1405
|
+
return e === "day" ? Mt(t) : tt(t);
|
|
1406
1406
|
}
|
|
1407
1407
|
function E(t, e) {
|
|
1408
1408
|
const f = t.reduce(
|
|
@@ -1498,14 +1498,14 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1498
1498
|
currency: y.currency
|
|
1499
1499
|
};
|
|
1500
1500
|
return {
|
|
1501
|
-
...
|
|
1501
|
+
...et(A, y),
|
|
1502
1502
|
currency: m.currency
|
|
1503
1503
|
};
|
|
1504
1504
|
},
|
|
1505
1505
|
{
|
|
1506
1506
|
amount: 0,
|
|
1507
1507
|
precision: 0,
|
|
1508
|
-
currency: Y(((f = u.currentCountry) == null ? void 0 : f.value) ??
|
|
1508
|
+
currency: Y(((f = u.currentCountry) == null ? void 0 : f.value) ?? Ke)
|
|
1509
1509
|
}
|
|
1510
1510
|
);
|
|
1511
1511
|
return Ie(e, !1, e.precision);
|
|
@@ -1529,7 +1529,7 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1529
1529
|
amount: 0,
|
|
1530
1530
|
precision: 0
|
|
1531
1531
|
}),
|
|
1532
|
-
currency: Y(((f = u.currentCountry) == null ? void 0 : f.value) ??
|
|
1532
|
+
currency: Y(((f = u.currentCountry) == null ? void 0 : f.value) ?? Ke)
|
|
1533
1533
|
} : "No data";
|
|
1534
1534
|
});
|
|
1535
1535
|
function ce() {
|
|
@@ -1539,7 +1539,7 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1539
1539
|
endDate: e
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
|
-
const oe =
|
|
1542
|
+
const oe = He(b, "show");
|
|
1543
1543
|
return (t, e) => {
|
|
1544
1544
|
const f = M("FmButton"), m = M("FmField"), _ = M("FmDateRangePicker"), y = M("FmSpacer"), A = M("FmCircularProgress"), z = M("FmIcon"), X = M("FmTooltip"), me = M("FmMenuDivider"), I = M("FmCardSection"), G = M("FmCard"), J = M("FmSideSheet");
|
|
1545
1545
|
return B(), O(J, {
|
|
@@ -1671,7 +1671,7 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1671
1671
|
S(me, { class: "w-full" }),
|
|
1672
1672
|
n("div", bo, [
|
|
1673
1673
|
n("div", xo, [
|
|
1674
|
-
S(
|
|
1674
|
+
S(qe, { "z-index": 50 }, {
|
|
1675
1675
|
default: D(() => [
|
|
1676
1676
|
n("div", So, [
|
|
1677
1677
|
ve(x(v(i)("inventory.stock.history.estimatedValue")) + " ", 1),
|
|
@@ -1696,7 +1696,7 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1696
1696
|
n("div", $o, x(typeof K.value != "string" ? v(Ie)(K.value, !1, K.value.precision) : K.value), 1)
|
|
1697
1697
|
]),
|
|
1698
1698
|
n("div", wo, [
|
|
1699
|
-
S(
|
|
1699
|
+
S(qe, { "z-index": 50 }, {
|
|
1700
1700
|
default: D(() => [
|
|
1701
1701
|
n("div", Bo, [
|
|
1702
1702
|
ve(x(v(i)("inventory.stock.history.costSold")) + " ", 1),
|
|
@@ -1764,8 +1764,8 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1764
1764
|
}), Io = { class: "flex flex-col gap-8" }, Uo = { class: "flex flex-col" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Xo = /* @__PURE__ */ re({
|
|
1765
1765
|
__name: "StockView",
|
|
1766
1766
|
setup(d) {
|
|
1767
|
-
const { t: u } = le(), r = $e(), s = ue(), k =
|
|
1768
|
-
s.watchLocation(c);
|
|
1767
|
+
const { t: u } = le(), r = $e(), s = ue(), k = Ee(), l = lt(), a = at(), { columnDefs: i } = Wt();
|
|
1768
|
+
Re(), s.watchLocation(c);
|
|
1769
1769
|
const b = H(!1), h = de();
|
|
1770
1770
|
async function c() {
|
|
1771
1771
|
if (s._currentLocation) {
|
|
@@ -1838,7 +1838,7 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1838
1838
|
actions: V.value
|
|
1839
1839
|
}, null, 8, ["search", "actions"]),
|
|
1840
1840
|
(B(), O(P, {
|
|
1841
|
-
style:
|
|
1841
|
+
style: Xe(v(j).tableHeight),
|
|
1842
1842
|
"column-defs": v(i),
|
|
1843
1843
|
"row-data": o.value,
|
|
1844
1844
|
"search-value": w.value,
|
|
@@ -1858,13 +1858,13 @@ const Un = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Pn = {
|
|
|
1858
1858
|
n("div", Io, [
|
|
1859
1859
|
n("div", Uo, [
|
|
1860
1860
|
n("div", Po, [
|
|
1861
|
-
S(v(
|
|
1861
|
+
S(v(Ge), {
|
|
1862
1862
|
render: (t = (oe = (ce = K.code) == null ? void 0 : ce.column) == null ? void 0 : oe.columnDef) == null ? void 0 : t.cell,
|
|
1863
1863
|
props: (f = (e = K.code) == null ? void 0 : e.getContext) == null ? void 0 : f.call(e)
|
|
1864
1864
|
}, null, 8, ["render", "props"])
|
|
1865
1865
|
]),
|
|
1866
1866
|
n("div", To, [
|
|
1867
|
-
S(v(
|
|
1867
|
+
S(v(Ge), {
|
|
1868
1868
|
render: (y = (_ = (m = K.name) == null ? void 0 : m.column) == null ? void 0 : _.columnDef) == null ? void 0 : y.cell,
|
|
1869
1869
|
props: (z = (A = K.name) == null ? void 0 : A.getContext) == null ? void 0 : z.call(A)
|
|
1870
1870
|
}, null, 8, ["render", "props"])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as W, mergeModels as xe, computed as b, useModel as ke, resolveComponent as P, openBlock as D, createElementBlock as B, createElementVNode as r, createVNode as m, withCtx as N, toDisplayString as T, unref as l, Fragment as Ce, renderList as Ie, ref as L, createBlock as z, createCommentVNode as Z, isRef as ve, watch as Me, onMounted as $e, normalizeClass as Ae, normalizeStyle as De, Teleport as Fe } from "vue";
|
|
2
|
-
import { u as ge } from "./supplier-
|
|
2
|
+
import { u as ge } from "./supplier-rHVJDY4i.js";
|
|
3
3
|
import { D as fe, R as J, F as A } from "./row-action.enum-PMKMRrZR.js";
|
|
4
4
|
import { c as Ue, _ as Re, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
5
|
-
import { c as ee, u as Ve, a5 as Pe, d as ye, g as Ne, z as Ee, C as X, h as Te, R as U, b as _e, j as he } from "./app-
|
|
5
|
+
import { c as ee, u as Ve, a5 as Pe, d as ye, g as Ne, z as Ee, C as X, h as Te, R as U, b as _e, j as he } from "./app-Ai2ZyFFs.js";
|
|
6
6
|
import { useI18n as q, useCoreStore as Be } from "@feedmepos/mf-common";
|
|
7
7
|
import { useDialog as Se, useSnackbar as we, useProxiedModel as be, useBreakpoints as Le } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as ze, _ as qe, a as Ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as ze, _ as qe, a as Ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnqvCwZ1.js";
|
|
9
9
|
import { _ as He } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
10
10
|
function Ke(R, C) {
|
|
11
11
|
const { t: h } = q();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as ae } from "./format-time-from-id-
|
|
1
|
+
import { f as ae } from "./format-time-from-id-Cb2zp48Q.js";
|
|
2
2
|
import { computed as re, h as le, defineComponent as Te, ref as Z, resolveComponent as L, openBlock as d, createBlock as N, unref as s, isRef as Fe, withCtx as ee, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as W, toDisplayString as n, normalizeClass as te, createCommentVNode as p, renderList as ie } from "vue";
|
|
3
3
|
import { c as De } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
4
4
|
import { D as h, R as v } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
-
import { D as Ae,
|
|
6
|
-
import { F as Be } from "./decimal-
|
|
7
|
-
import { f as me, P as se, d as Ge, e as He } from "./purchase-order-transaction-type-
|
|
5
|
+
import { D as Ae, m as ce, a as ue, al as de, am as g, c as je, j as Ie, ag as q, J as Ue, H as Me, G as $e, aj as Ke, b as Le, x as Ve } from "./app-Ai2ZyFFs.js";
|
|
6
|
+
import { F as Be } from "./decimal-CHqei97s.js";
|
|
7
|
+
import { f as me, P as se, d as Ge, e as He } from "./purchase-order-transaction-type-CHRCkOeZ.js";
|
|
8
8
|
import { components as ze, useDialog as Qe, useSnackbar as Ye, useProxiedModel as Je } from "@feedmepos/ui-library";
|
|
9
9
|
import { useI18n as Ce } from "@feedmepos/mf-common";
|
|
10
10
|
import { E as We } from "./empty-placeholder-wf6-BWE8.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { reactive as Ge, onMounted as Ee, computed as P, h as M, defineComponent as re, openBlock as F, createElementBlock as I, Fragment as ae, renderList as Pe, createElementVNode as r, toDisplayString as V, unref as e, resolveComponent as T, createVNode as k, withCtx as O, createCommentVNode as H, ref as N, createBlock as z, watch as Le, normalizeClass as Y, normalizeStyle as et, isRef as ce } from "vue";
|
|
2
2
|
import { useBreakpoints as qe, components as de, FmButtonVariant as tt, useSnackbar as $e, useDialog as st, useProxiedModel as ot } from "@feedmepos/ui-library";
|
|
3
3
|
import { F as be } from "./row-action.enum-PMKMRrZR.js";
|
|
4
|
-
import { P as A, d as Ne, c as nt } from "./purchase-order-transaction-type-
|
|
5
|
-
import { a as Z, t as lt, ab as Te, E as at, b as He, R as Ie, a5 as rt, a7 as it, s as ut, a8 as Be, a6 as dt, H as ze,
|
|
6
|
-
import { _ as We, u as ht } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { P as A, d as Ne, c as nt } from "./purchase-order-transaction-type-CHRCkOeZ.js";
|
|
5
|
+
import { a as Z, t as lt, ab as Te, E as at, b as He, R as Ie, a5 as rt, a7 as it, s as ut, a8 as Be, a6 as dt, H as ze, m as ct, A as Se, M as pt, ac as je, P as Ae, Q as Qe, ad as mt, j as Ve, ae as ft, u as De, af as yt, ag as vt, ah as bt, G as _t, ai as gt, aj as kt, z as Ct } from "./app-Ai2ZyFFs.js";
|
|
6
|
+
import { _ as We, u as ht } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-5oJQidum.js";
|
|
7
7
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
8
8
|
import "vue-router";
|
|
9
|
-
import { u as xe } from "./supplier-
|
|
10
|
-
import { d as wt } from "./defineDeepModel-
|
|
9
|
+
import { u as xe } from "./supplier-rHVJDY4i.js";
|
|
10
|
+
import { d as wt } from "./defineDeepModel-CkReIsWC.js";
|
|
11
11
|
import { F as pe, _ as St } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
12
12
|
import { _ as xt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
13
|
function le(o, v, u, i) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as J, onMounted as de, computed as A, ref as E, watch as me, inject as He, resolveComponent as C, openBlock as D, createElementBlock as Q, createElementVNode as t, createVNode as f, withCtx as U, renderSlot as Se, withDirectives as Ce, normalizeClass as re, vModelText as $e, reactive as je, h as Z, toDisplayString as S, unref as e, createBlock as K, isRef as Ie, createCommentVNode as ne, Fragment as Pe, renderList as Qe, normalizeStyle as Ge, Teleport as Ke, mergeProps as Re, normalizeProps as We, guardReactiveProps as Ze } from "vue";
|
|
2
|
-
import { u as Je, _ as Xe, a as Ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Je, _ as Xe, a as Ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnqvCwZ1.js";
|
|
3
3
|
import { useI18n as X } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as q, a as et, f as tt, b as Oe, c as ot } from "./purchase-order-transaction-type-
|
|
4
|
+
import { P as q, a as et, f as tt, b as Oe, c as ot } from "./purchase-order-transaction-type-CHRCkOeZ.js";
|
|
5
5
|
import { F as Y, R as Ve } from "./row-action.enum-PMKMRrZR.js";
|
|
6
|
-
import { a1 as ie, t as De, I as nt, a2 as lt, a3 as st, a as j, a4 as at, E as Ae, R as ue, a5 as rt, a6 as it, a7 as ut, s as ae, a8 as dt,
|
|
6
|
+
import { a1 as ie, t as De, I as nt, a2 as lt, a3 as st, a as j, a4 as at, E as Ae, R as ue, a5 as rt, a6 as it, a7 as ut, s as ae, a8 as dt, m as mt, A as Le, M as ct, b as Ee, u as pt, j as Ue, z as ft, l as yt, a9 as le, H as vt, aa as bt } from "./app-Ai2ZyFFs.js";
|
|
7
7
|
import { components as se, useDialog as xt, useSnackbar as _t, useProxiedModel as Be, useBreakpoints as ht } from "@feedmepos/ui-library";
|
|
8
8
|
import { storeToRefs as gt } from "pinia";
|
|
9
|
-
import { d as qe } from "./defineDeepModel-
|
|
10
|
-
import { c as Ft, u as wt, _ as Tt } from "./TransferDialog.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { d as qe } from "./defineDeepModel-CkReIsWC.js";
|
|
10
|
+
import { c as Ft, u as wt, _ as Tt } from "./TransferDialog.vue_vue_type_script_setup_true_lang-B7DXQ57v.js";
|
|
11
11
|
import { useRouter as kt } from "vue-router";
|
|
12
|
-
import { u as Mt } from "./supplier-
|
|
12
|
+
import { u as Mt } from "./supplier-rHVJDY4i.js";
|
|
13
13
|
import { F as z, _ as Ne } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
14
|
-
import { u as St } from "./use-template-enabled-locations-2-
|
|
15
|
-
import { f as Ct } from "./format-time-from-id-
|
|
14
|
+
import { u as St } from "./use-template-enabled-locations-2-EztCYYTj.js";
|
|
15
|
+
import { f as Ct } from "./format-time-from-id-Cb2zp48Q.js";
|
|
16
16
|
const $t = { class: "flex flex-col" }, Rt = { class: "flex flex-col" }, Ot = { class: "flex-1" }, Vt = { class: "flex items-center" }, Dt = { class: "flex-1" }, At = { class: "flex-1" }, It = /* @__PURE__ */ J({
|
|
17
17
|
__name: "FmMinMaxInput",
|
|
18
18
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
|
|
2
|
-
import { u as G, S as me, c as oe, R as j, A as ce, a as J,
|
|
2
|
+
import { u as G, S as me, c as oe, R as j, A as ce, a as J, m as pe, n as fe, e as ee, j as ve } from "./app-Ai2ZyFFs.js";
|
|
3
3
|
import { useDialog as ye, useSnackbar as le, useProxiedModel as te, useBreakpoints as be } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as ge, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as U, D as ne, R as N } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { defineStore as _e, storeToRefs as he } from "pinia";
|
|
7
7
|
import { c as Ve, _ as Ue, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
8
8
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { F as Se } from "./decimal-
|
|
11
|
-
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnqvCwZ1.js";
|
|
10
|
+
import { F as Se } from "./decimal-CHqei97s.js";
|
|
11
|
+
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BLcWv-4F.js";
|
|
12
12
|
const Ee = { class: "flex flex-col gap-8" }, Ie = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "flex flex-col"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as z, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as I, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { o as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-Ai2ZyFFs.js";
|
|
3
3
|
import { useCoreStore as Be, useI18n as q } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as Ve, R as Y, F as T } from "./row-action.enum-PMKMRrZR.js";
|
|
5
5
|
import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnqvCwZ1.js";
|
|
7
7
|
import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
8
8
|
const Q = Pe((m, h) => {
|
|
9
9
|
const y = Be();
|