@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.40
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-xF73Z1jN.js → ApprovalView-JOsQBu1z.js} +25 -26
- package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-DG2ZolH1.js} +9 -9
- package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-B7h_iST8.js} +22 -22
- package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-BToh6gcG.js} +1 -1
- package/dist/ClosingTemplateView-BwMJAxuz.js +1688 -0
- package/dist/FmDroppableField-CJNAT3h2.js +152 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-4NHQdjz7.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cc_P0kss.js +364 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMOalXUS.js +51 -0
- package/dist/IngredientsView-ChnCqdWi.js +1611 -0
- package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-NWkc9PLW.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQW6HYyD.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BQqcpZIJ.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-BvED8ZbQ.js} +7 -7
- package/dist/ReceiveRequestView-DdxBaqmU.js +4069 -0
- package/dist/RecipeView-YdSRy_yP.js +591 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-WF5z4dTF.js +7762 -0
- package/dist/{SupplierView-TYCkPXan.js → SupplierView-H2Vi5lSs.js} +111 -111
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D48gSqHW.js +1137 -0
- package/dist/TransferTemplateView-DeT32cat.js +2054 -0
- package/dist/{UnitView-B9yE4-rc.js → UnitView-qD9JSdHT.js} +18 -18
- package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-C19Dd53y.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +72 -85
- package/dist/api/netsuite.d.ts +47 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/{app-w8TOQVZc.js → app-DKE_n9Mo.js} +24520 -23671
- package/dist/app.d.ts +7 -0
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/{decimal-C4q7UMfr.js → decimal-veoPLYim.js} +1 -1
- package/dist/defineDeepModel-u6t3hXU9.js +13 -0
- package/dist/format-time-from-id-8gjg5B98.js +15 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-CIDEpjJB.js +348 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +85 -0
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/netsuite.d.ts +69 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/style.css +1 -1
- package/dist/supplier-DLcmVScz.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-CdJVJikY.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BggStaH1.js → xlsx-CrKrCGZz.js} +1525 -1525
- package/dist/xlsx.util-Bcpkvw1Z.js +78 -0
- package/package.json +5 -5
- package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
- package/dist/IngredientsView-DnwwQJTN.js +0 -1758
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
- package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
- package/dist/RecipeView-BHkTgm5H.js +0 -581
- package/dist/StockView-iczCFYxn.js +0 -1892
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
- package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
- package/dist/defineDeepModel-BOApqV24.js +0 -13
- package/dist/format-time-from-id-Cafjo8fn.js +0 -15
- package/dist/id-to-date-CtSHSVJF.js +0 -30
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
- package/dist/supplier-CM-vZ4bQ.js +0 -69
- package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
- package/dist/xlsx.util-CqlYZLKW.js +0 -109
- /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { n as S, j as u, T as m, V as y } from "./app-w8TOQVZc.js";
|
|
2
|
-
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
|
-
import { defineStore as b } from "pinia";
|
|
4
|
-
import { ref as l, computed as v } from "vue";
|
|
5
|
-
const p = S((s, n) => {
|
|
6
|
-
function a() {
|
|
7
|
-
var o;
|
|
8
|
-
const e = c(), r = u(), t = r.businessLevel, i = `business_${((o = e.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, d = r.currentLocation.dbName;
|
|
9
|
-
return t ? i : d;
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
async readSuppliers() {
|
|
13
|
-
const e = a(), r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
14
|
-
return await n.get(r);
|
|
15
|
-
},
|
|
16
|
-
async readLocationSuppliers() {
|
|
17
|
-
const r = u().currentLocation.dbName, t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
18
|
-
return await n.get(t);
|
|
19
|
-
},
|
|
20
|
-
async readBusinessSuppliers() {
|
|
21
|
-
var i;
|
|
22
|
-
const r = `business_${((i = c().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
23
|
-
return await n.get(t);
|
|
24
|
-
},
|
|
25
|
-
async createSupplier(e) {
|
|
26
|
-
const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
27
|
-
return await n.post(t, e);
|
|
28
|
-
},
|
|
29
|
-
async updateSupplier(e) {
|
|
30
|
-
const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
31
|
-
return await n.put(t, e);
|
|
32
|
-
},
|
|
33
|
-
async deleteSupplier(e) {
|
|
34
|
-
const r = a(), t = `${s.inventoryBackendUrl}/${r}/supplier`;
|
|
35
|
-
return await n.delete(t, e);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}), f = b("supplier", () => {
|
|
39
|
-
const s = l(new Array()), n = l(new Array()), a = v(() => [...s.value, ...n.value]);
|
|
40
|
-
return {
|
|
41
|
-
async readSuppliers() {
|
|
42
|
-
const e = p();
|
|
43
|
-
s.value = await e.readLocationSuppliers(), n.value = await e.readBusinessSuppliers();
|
|
44
|
-
},
|
|
45
|
-
async createSupplier(e) {
|
|
46
|
-
await p().createSupplier(e);
|
|
47
|
-
},
|
|
48
|
-
async updateSupplier(e) {
|
|
49
|
-
await p().updateSupplier(e);
|
|
50
|
-
},
|
|
51
|
-
async deleteSupplier(e) {
|
|
52
|
-
await p().deleteSupplier(e);
|
|
53
|
-
},
|
|
54
|
-
async init() {
|
|
55
|
-
const e = m();
|
|
56
|
-
try {
|
|
57
|
-
await this.readSuppliers();
|
|
58
|
-
} catch (r) {
|
|
59
|
-
throw r instanceof y || e.error("Error at reading suppliers"), r;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
suppliers: a,
|
|
63
|
-
locationSuppliers: s,
|
|
64
|
-
businessSuppliers: n
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
f as u
|
|
69
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { j as u, y as p } from "./app-w8TOQVZc.js";
|
|
2
|
-
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as f } from "@feedmepos/ui-library";
|
|
4
|
-
import { computed as c } from "vue";
|
|
5
|
-
function S(e) {
|
|
6
|
-
const m = f(), i = u(), { t: a } = L(), l = c({
|
|
7
|
-
get() {
|
|
8
|
-
return Array.isArray(e.getLocations());
|
|
9
|
-
},
|
|
10
|
-
set(t) {
|
|
11
|
-
t ? e.setLocations([]) : e.setLocations(null);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
function r() {
|
|
15
|
-
var t;
|
|
16
|
-
m.open({
|
|
17
|
-
title: "Select at least one location",
|
|
18
|
-
contentComponent: p,
|
|
19
|
-
contentComponentProps: {
|
|
20
|
-
modelValue: ((t = s.value) == null ? void 0 : t.map((o) => o.doc._id)) ?? [],
|
|
21
|
-
items: i.locations.map((o) => ({
|
|
22
|
-
label: o.name,
|
|
23
|
-
sublabel: o.type,
|
|
24
|
-
value: o.doc._id
|
|
25
|
-
}))
|
|
26
|
-
},
|
|
27
|
-
primaryActions: {
|
|
28
|
-
text: a("common.confirm"),
|
|
29
|
-
close: !0
|
|
30
|
-
},
|
|
31
|
-
secondaryActions: {
|
|
32
|
-
text: a("common.close"),
|
|
33
|
-
close: !0
|
|
34
|
-
}
|
|
35
|
-
}).onPrimary((o) => {
|
|
36
|
-
e.setLocations(i.locations.filter((n) => o.includes(n.doc._id)));
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const s = c(() => {
|
|
40
|
-
var o;
|
|
41
|
-
const t = /* @__PURE__ */ new Set([...i.locations.map((n) => n.doc._id)]);
|
|
42
|
-
return (o = e.getLocations()) == null ? void 0 : o.filter((n) => t.has(n.doc._id));
|
|
43
|
-
});
|
|
44
|
-
function d(t) {
|
|
45
|
-
var o;
|
|
46
|
-
e.setLocations((o = e.getLocations()) == null ? void 0 : o.filter((n) => n.doc._id !== t));
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
enabledLocations: s,
|
|
50
|
-
enabledLocationsSwitch: l,
|
|
51
|
-
promptSelectLocations: r,
|
|
52
|
-
removeLocation: d
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
S as u
|
|
57
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, unref as w, Fragment as M, renderList as v } from "vue";
|
|
2
|
-
import { a as h, k as b } from "./app-w8TOQVZc.js";
|
|
3
|
-
import { useI18n as k } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as y, w as S, r as $ } from "./xlsx-BggStaH1.js";
|
|
5
|
-
const A = { class: "flex flex-col" }, B = { 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" }, E = { class: "flex-1 py-8 px-16" }, I = {
|
|
6
|
-
class: "flex-0 py-8 px-16",
|
|
7
|
-
style: { "flex-basis": "120px" }
|
|
8
|
-
}, N = { class: "flex-1 py-8 px-16" }, j = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "flex-0 py-8 px-16",
|
|
11
|
-
style: { "flex-basis": "120px" }
|
|
12
|
-
}, C = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "flex-0 py-8 px-16",
|
|
15
|
-
style: { "flex-basis": "120px" }
|
|
16
|
-
}, X = /* @__PURE__ */ g({
|
|
17
|
-
__name: "IngredientBindedItem",
|
|
18
|
-
props: {
|
|
19
|
-
name: {},
|
|
20
|
-
bindings: {}
|
|
21
|
-
},
|
|
22
|
-
setup(o) {
|
|
23
|
-
const { t: n } = k();
|
|
24
|
-
function a(e, s) {
|
|
25
|
-
var t;
|
|
26
|
-
if (e.measurement) {
|
|
27
|
-
const c = b(e.amount, e.measurement.conversion);
|
|
28
|
-
return `${h(c, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
|
|
29
|
-
}
|
|
30
|
-
return `${h(e.amount, !1)} ${s.abbrev}`;
|
|
31
|
-
}
|
|
32
|
-
function r(e) {
|
|
33
|
-
return e.unit !== void 0;
|
|
34
|
-
}
|
|
35
|
-
return (e, s) => (f(), u("div", A, [
|
|
36
|
-
x("div", B, [
|
|
37
|
-
x("div", E, d(e.name), 1),
|
|
38
|
-
x("div", I, d(w(n)("inventory.ingredient.bindedItems.amount")), 1)
|
|
39
|
-
]),
|
|
40
|
-
(f(!0), u(M, null, v(e.bindings, (t) => (f(), u("div", {
|
|
41
|
-
key: t.id,
|
|
42
|
-
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
43
|
-
}, [
|
|
44
|
-
x("div", N, d(t.name), 1),
|
|
45
|
-
r(t) ? (f(), u("div", j, d(a(t, t.unit)), 1)) : (f(), u("div", C, d(w(h)(t.amount, !1)), 1))
|
|
46
|
-
]))), 128))
|
|
47
|
-
]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function* F(o) {
|
|
51
|
-
const [n, a] = o.split(":"), r = /\d+/, e = r.exec(n), s = r.exec(a);
|
|
52
|
-
if (!e || !s)
|
|
53
|
-
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
54
|
-
const t = Number(e[0]), c = Number(s[0]);
|
|
55
|
-
for (let l = t; l <= c; l++)
|
|
56
|
-
yield l;
|
|
57
|
-
}
|
|
58
|
-
function* L(o) {
|
|
59
|
-
const [n, a] = o.split(":"), r = /[^\d]+/, e = r.exec(n), s = r.exec(a);
|
|
60
|
-
if (!e || !s)
|
|
61
|
-
throw new Error(`Cannot parse row range for range: ${o}`);
|
|
62
|
-
let t = 0, c = "A";
|
|
63
|
-
for (yield c; c !== s[0]; ) {
|
|
64
|
-
t++;
|
|
65
|
-
const l = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
66
|
-
let i = t, m = !1, p = "";
|
|
67
|
-
do {
|
|
68
|
-
const _ = i % l.length;
|
|
69
|
-
i = Math.floor(i / l.length), p += l.charAt(_), m = i > 0, i -= 1;
|
|
70
|
-
} while (m);
|
|
71
|
-
c = p.split("").reverse().join(""), yield c;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function U(o) {
|
|
75
|
-
var r;
|
|
76
|
-
const n = [], a = o["!ref"];
|
|
77
|
-
if (!a) return n;
|
|
78
|
-
for (const e of F(a)) {
|
|
79
|
-
const s = [];
|
|
80
|
-
for (const t of L(a))
|
|
81
|
-
s.push(((r = o[`${t}${e}`]) == null ? void 0 : r.w) ?? "");
|
|
82
|
-
n.push(s);
|
|
83
|
-
}
|
|
84
|
-
return n;
|
|
85
|
-
}
|
|
86
|
-
function V(o, n, a = "Sheet1") {
|
|
87
|
-
const r = y.aoa_to_sheet([n, ...o]), e = o.reduce((c, l) => Math.max(c, l.length), 0), s = Array.from({ length: e }).map((c, l) => {
|
|
88
|
-
const i = o.map((m) => `${m[l]}`).reduce((m, p) => Math.max(m, p.length + 3), 0);
|
|
89
|
-
return {
|
|
90
|
-
wch: Math.max(i, 5)
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
r["!cols"] = s;
|
|
94
|
-
const t = y.book_new();
|
|
95
|
-
return y.book_append_sheet(t, r, a), t;
|
|
96
|
-
}
|
|
97
|
-
function H(o, n) {
|
|
98
|
-
S(o, n, { compression: !0 });
|
|
99
|
-
}
|
|
100
|
-
async function J(o) {
|
|
101
|
-
return $(await o.arrayBuffer());
|
|
102
|
-
}
|
|
103
|
-
export {
|
|
104
|
-
X as _,
|
|
105
|
-
H as d,
|
|
106
|
-
J as r,
|
|
107
|
-
U as s,
|
|
108
|
-
V as t
|
|
109
|
-
};
|