@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.52
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-B7fIlPKw.js → App-DkPiRPu7.js} +34 -34
- package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-BEF-qPdZ.js} +20 -20
- package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-B6vjaPiA.js} +4 -4
- package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-BmWf3j6H.js} +7 -7
- package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-VVNmzkzf.js} +1 -1
- package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-C6sNEHK5.js} +120 -120
- package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-5k8R-fMI.js} +285 -285
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DclFOxv5.js} +37 -37
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BFqAE1ZI.js} +32 -32
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js} +1 -1
- package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-DAeurvqt.js} +1 -1
- package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-Ca8fShPE.js} +4 -4
- package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-Db4XlQvK.js} +62 -62
- package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BTtpF1P5.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js} +15 -15
- package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-Bb5gN9Bu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4vUOy_R.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-fFfOjNOU.js} +3 -3
- package/dist/{PublishView-DMzULnCX.js → PublishView-BqE9qfwb.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-Cp6a-P8I.js} +1 -1
- package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-DKPPCyAU.js} +52 -52
- package/dist/{RecipeView-DlKk9-tm.js → RecipeView-BEsrqzuU.js} +3 -3
- package/dist/{StockView-CNmvVK0V.js → StockView-DplJi2OM.js} +573 -569
- package/dist/{SupplierView-BcoOgM67.js → SupplierView-DL3D84U2.js} +7 -7
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js} +120 -120
- package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-DakAYozL.js} +153 -153
- package/dist/{UnitView-BF2eBWtF.js → UnitView-C_Wqv69Z.js} +3 -3
- package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CeoVZ9cs.js} +19 -19
- package/dist/{app-DavuMSpS.js → app-CulzKCFs.js} +6375 -5538
- package/dist/app.d.ts +842 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-C_LJTg2_.js → decimal-DdjfkmJS.js} +1 -1
- package/dist/{feature-D3M-bziy.js → feature-jwErVPVw.js} +1 -1
- package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-BMC3HZ0N.js} +30 -30
- package/dist/helper/number.d.ts +1 -1
- package/dist/{index-DzshvJTA.js → index-BDCZItPF.js} +1 -1
- package/dist/{index-BDEeA1dY.js → index-C7-QVxlo.js} +1 -1
- package/dist/{stock-CHVVTrSI.js → stock-Czw9__W8.js} +1 -1
- package/dist/{supplier-Ddl4sUpm.js → supplier-f0XPCLm-.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-DDeNnPW0.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-BTE0Ceov.js} +1 -1
- package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-B0gOxrrS.js} +153 -153
- package/package.json +3 -3
package/dist/app.js
CHANGED
|
@@ -2,7 +2,7 @@ var fe = Object.defineProperty;
|
|
|
2
2
|
var pe = (p, l, v) => l in p ? fe(p, l, { enumerable: !0, configurable: !0, writable: !0, value: v }) : p[l] = v;
|
|
3
3
|
var ht = (p, l, v) => pe(p, typeof l != "symbol" ? l + "" : l, v);
|
|
4
4
|
import { useCoreStore as vt } from "@feedmepos/mf-common";
|
|
5
|
-
import {
|
|
5
|
+
import { a5 as dt, u as Dt, aH as re, a as ye } from "./app-CulzKCFs.js";
|
|
6
6
|
import { ref as gt, readonly as Kt } from "vue";
|
|
7
7
|
var Gt = { exports: {} };
|
|
8
8
|
(function(p, l) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as Ee, a as q, K as Ie, ae as U, r as Ae, af as fe, s as ye, u as W, i as B, v as Ne, aH as ae, w as he, b as Z, t as V, P as j, aG as De, az as Oe, V as Fe, x as Pe, y as Ue, d as se, e as J, R as ie, H as Be, ad as Me, D as G, h as O, f as Le } from "./app-CulzKCFs.js";
|
|
2
2
|
import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as Qe, useSnackbar as ve, useDialog as He, FmButtonVariant as le, components as ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as ge } from "pinia";
|
|
5
|
-
import { defineComponent as be, resolveComponent as L, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as Q, createTextVNode as qe, toDisplayString as I, unref as E, createCommentVNode as H, createVNode as F, withCtx as
|
|
5
|
+
import { defineComponent as be, resolveComponent as L, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as Q, createTextVNode as qe, toDisplayString as I, unref as E, createCommentVNode as H, createVNode as F, withCtx as X, Fragment as M, renderList as K, ref as C, onMounted as Ve, computed as me, watch as je, createSlots as ze, createBlock as z, h as Y } from "vue";
|
|
6
6
|
import { useRouter as Ke } from "vue-router";
|
|
7
|
-
import { u as re } from "./supplier-
|
|
7
|
+
import { u as re } from "./supplier-f0XPCLm-.js";
|
|
8
8
|
const Se = Ee((e, t) => {
|
|
9
9
|
function a() {
|
|
10
10
|
var n;
|
|
@@ -293,7 +293,7 @@ function Ye(e, t) {
|
|
|
293
293
|
errors: a
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Xe(e) {
|
|
297
297
|
if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
|
|
298
298
|
return [];
|
|
299
299
|
const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, c = W().locationByDbName;
|
|
@@ -314,7 +314,7 @@ function Ze(e) {
|
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Ze(e) {
|
|
318
318
|
const [
|
|
319
319
|
t,
|
|
320
320
|
a,
|
|
@@ -338,7 +338,7 @@ function Je(e) {
|
|
|
338
338
|
remark: `${y[1] ?? ""}`.trim()
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Je(e) {
|
|
342
342
|
const [
|
|
343
343
|
t,
|
|
344
344
|
a,
|
|
@@ -383,7 +383,7 @@ function Xe(e) {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function et(e, t, a) {
|
|
386
|
-
const c = q(), s =
|
|
386
|
+
const c = q(), s = Z(), n = c.skuByCode[e.code], f = new Array();
|
|
387
387
|
if (!n)
|
|
388
388
|
return f.push(`Cannot find ingredient with code (${e.code}) ${e.name}.`), {
|
|
389
389
|
index: t,
|
|
@@ -423,7 +423,7 @@ function et(e, t, a) {
|
|
|
423
423
|
j(o, l)
|
|
424
424
|
);
|
|
425
425
|
(Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
|
|
426
|
-
const h =
|
|
426
|
+
const h = De(d), y = V(
|
|
427
427
|
e.minimumQuantity,
|
|
428
428
|
j(o, l)
|
|
429
429
|
);
|
|
@@ -433,7 +433,7 @@ function et(e, t, a) {
|
|
|
433
433
|
j(o, l)
|
|
434
434
|
);
|
|
435
435
|
h(m), +e.minimumQuantity > +e.maximumQuantity && f.push("Minimum amount must be less than or equal to maximum amount");
|
|
436
|
-
const v =
|
|
436
|
+
const v = Oe(+e.minimumQuantity, +e.maximumQuantity), b = V(
|
|
437
437
|
e.defaultQuantity,
|
|
438
438
|
j(o, l)
|
|
439
439
|
), r = h(b), x = v(`${e.defaultQuantity}`);
|
|
@@ -462,11 +462,11 @@ function tt(e) {
|
|
|
462
462
|
return t.reduce(
|
|
463
463
|
(n, f) => {
|
|
464
464
|
var i;
|
|
465
|
-
const o = new Array(), l = e.Sheets[f], d =
|
|
465
|
+
const o = new Array(), l = e.Sheets[f], d = Ze(l), h = Ye(d.transferFrom, d.type);
|
|
466
466
|
o.push(...h.errors);
|
|
467
|
-
const y = h.from, m =
|
|
467
|
+
const y = h.from, m = Xe(d.locations), v = m.filter((p) => p.location).map((p) => p.location);
|
|
468
468
|
o.push(...m.flatMap((p) => p.errors));
|
|
469
|
-
const b =
|
|
469
|
+
const b = Je(l).filter((p) => p.data.code), r = b.map(
|
|
470
470
|
(p, S) => et(p.data, S, b)
|
|
471
471
|
);
|
|
472
472
|
o.push(
|
|
@@ -598,12 +598,12 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
598
598
|
], 2),
|
|
599
599
|
t.errors.length ? (T(), w("div", lt, [
|
|
600
600
|
F(s, { "z-index": 50 }, {
|
|
601
|
-
content:
|
|
601
|
+
content: X(() => [
|
|
602
602
|
$("ol", null, [
|
|
603
603
|
(T(!0), w(M, null, K(t.errors, (l, d) => (T(), w("li", { key: d }, I(l), 1))), 128))
|
|
604
604
|
])
|
|
605
605
|
]),
|
|
606
|
-
default:
|
|
606
|
+
default: X(() => [
|
|
607
607
|
F(c, {
|
|
608
608
|
name: "error",
|
|
609
609
|
size: "sm",
|
|
@@ -729,7 +729,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
729
729
|
}, ze({ _: 2 }, [
|
|
730
730
|
t.value ? {
|
|
731
731
|
name: "default",
|
|
732
|
-
fn:
|
|
732
|
+
fn: X(({ openFileDialog: i }) => [
|
|
733
733
|
$("div", ut, [
|
|
734
734
|
$("div", {
|
|
735
735
|
class: Q([
|
|
@@ -817,7 +817,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
817
817
|
});
|
|
818
818
|
function bt(e) {
|
|
819
819
|
var n, f;
|
|
820
|
-
const t =
|
|
820
|
+
const t = Z();
|
|
821
821
|
if (!t.isEnabled) return !0;
|
|
822
822
|
if (!e.internal) {
|
|
823
823
|
const o = t.getNetSuiteVendor(e._id), l = o == null ? void 0 : o.subsidiaryId, d = (n = t.currentVendorSubsidiary(e._id)) == null ? void 0 : n.id;
|
|
@@ -827,7 +827,7 @@ function bt(e) {
|
|
|
827
827
|
return c && c == s;
|
|
828
828
|
}
|
|
829
829
|
const St = ge("transferTemplateActions", () => {
|
|
830
|
-
const e = He(), t = ve(), a = W(), c = we(), s = Se(), n =
|
|
830
|
+
const e = He(), t = ve(), a = W(), c = we(), s = Se(), n = Z(), f = Ke(), { t: o } = te(), l = C({});
|
|
831
831
|
function d() {
|
|
832
832
|
l.value = {
|
|
833
833
|
mode: se.CREATE,
|
|
@@ -897,7 +897,7 @@ const St = ge("transferTemplateActions", () => {
|
|
|
897
897
|
m.value.show = i;
|
|
898
898
|
},
|
|
899
899
|
"onAction:edit"() {
|
|
900
|
-
m.value.show = !1, h(
|
|
900
|
+
m.value.show = !1, h(J(u));
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
903
|
}
|
|
@@ -905,11 +905,11 @@ const St = ge("transferTemplateActions", () => {
|
|
|
905
905
|
const { promise: u, resolve: i } = Promise.withResolvers(), p = (g) => {
|
|
906
906
|
i(g);
|
|
907
907
|
}, S = c.templates.filter((g) => {
|
|
908
|
-
var A, N,
|
|
908
|
+
var A, N, D;
|
|
909
909
|
if (((A = g.purchaseOrder.supplier) == null ? void 0 : A._id) === a.currentLocation.doc._id) return !1;
|
|
910
910
|
if (!((N = g.locations) != null && N.length)) return !0;
|
|
911
911
|
if (g.locationTags) {
|
|
912
|
-
const P = (
|
|
912
|
+
const P = (D = a.currentLocation.doc.customAttributes) == null ? void 0 : D.tag;
|
|
913
913
|
if (g.locationTags.includes(P)) return !0;
|
|
914
914
|
}
|
|
915
915
|
return g.locations.find((P) => P.doc._id === a.currentLocation.doc._id);
|
|
@@ -931,10 +931,10 @@ const St = ge("transferTemplateActions", () => {
|
|
|
931
931
|
}).onSecondary(() => p(void 0)).onClose(() => p(void 0)), u;
|
|
932
932
|
const k = S.map((g) => {
|
|
933
933
|
var oe;
|
|
934
|
-
const A = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), N = !bt(g.purchaseOrder.supplier),
|
|
934
|
+
const A = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), N = !bt(g.purchaseOrder.supplier), D = g.purchaseOrder.supplier.internal ? n.getNetSuiteLocation(
|
|
935
935
|
`${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
|
|
936
936
|
) : n.getNetSuiteVendor(g.purchaseOrder.supplier._id), P = N ? `The subsidiary of the request
|
|
937
|
-
location is ${(oe = n.getLocationSubsidiary(
|
|
937
|
+
location is ${(oe = n.getLocationSubsidiary(D == null ? void 0 : D.netSuiteId)) == null ? void 0 : oe.fullName}.` : void 0, ke = A || N, Ce = A ? "This template is invalid. Update this template." : N ? P : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
|
|
938
938
|
return {
|
|
939
939
|
label: g.name,
|
|
940
940
|
value: g._id,
|
|
@@ -1067,7 +1067,7 @@ const St = ge("transferTemplateActions", () => {
|
|
|
1067
1067
|
};
|
|
1068
1068
|
});
|
|
1069
1069
|
function pe(e) {
|
|
1070
|
-
const { skuById: t } = q(), a =
|
|
1070
|
+
const { skuById: t } = q(), a = J(e);
|
|
1071
1071
|
return a.purchaseOrder.items = e.purchaseOrder.items.filter((c) => t[c.sku._id]), a;
|
|
1072
1072
|
}
|
|
1073
1073
|
const we = ge(
|
|
@@ -1103,12 +1103,12 @@ const we = ge(
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
function d(y, m) {
|
|
1106
|
-
switch (m =
|
|
1107
|
-
case
|
|
1106
|
+
switch (m = J(m), y) {
|
|
1107
|
+
case O.Details:
|
|
1108
1108
|
return a.viewTemplate(m);
|
|
1109
|
-
case
|
|
1109
|
+
case O.Edit:
|
|
1110
1110
|
return a.updateTemplate(m);
|
|
1111
|
-
case
|
|
1111
|
+
case O.Delete:
|
|
1112
1112
|
return a.deleteTemplate(m, c, o);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
@@ -1188,9 +1188,9 @@ const we = ge(
|
|
|
1188
1188
|
id: "action",
|
|
1189
1189
|
cell(y) {
|
|
1190
1190
|
const m = y.row.original, v = [
|
|
1191
|
-
G[
|
|
1192
|
-
G[
|
|
1193
|
-
G[
|
|
1191
|
+
G[O.Details],
|
|
1192
|
+
G[O.Edit],
|
|
1193
|
+
G[O.Delete]
|
|
1194
1194
|
];
|
|
1195
1195
|
return Le(v, (b) => d(b, m));
|
|
1196
1196
|
},
|
package/dist/helper/number.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare function toAdjustmentWithPrecision(amt: string | number, precisio
|
|
|
30
30
|
amount: number;
|
|
31
31
|
precision: number;
|
|
32
32
|
};
|
|
33
|
-
export declare function countDivisibleByTrailingZero(n: number): number;
|
|
33
|
+
export declare function countDivisibleByTrailingZero(n: number | BigInt): number;
|
|
34
34
|
/**
|
|
35
35
|
* Returns the valid precision for a base unit or a converted measurement.
|
|
36
36
|
* Documentation at: https://www.notion.so/feedmepos/Precision-Handling-Logic-8e2211106b4a4a0f9fae8ee9c1e897da?pvs=4
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aR as L, a2 as U, aW as q, a3 as Fe, aX as tl, a5 as ar, aY as Nt } from "./app-CulzKCFs.js";
|
|
2
2
|
function rl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as m, u as B, a as l, ao as k, K as v } from "./app-CulzKCFs.js";
|
|
2
2
|
import { useCoreStore as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as $, computed as S } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as m, u, v as y, ap as b, aq as v } from "./app-CulzKCFs.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as w } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|