@feedmepos/mf-inventory-portal 0.0.22-dev.33 → 0.0.22-dev.36
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-CKBg-CUO.js → ApprovalView-av_qng0N.js} +9 -10
- package/dist/{BindingsDialog-BHQkDST3.js → BindingsDialog-VZ6YelwP.js} +1 -1
- package/dist/{BindingsPicker-DtGzKn9l.js → BindingsPicker-BFYv2ftI.js} +1 -1
- package/dist/{BindingsTable-CSKzOCxK.js → BindingsTable-DFowW8vT.js} +1 -1
- package/dist/{ClosingTemplateView-CcO_vSoD.js → ClosingTemplateView-DNcgyBVw.js} +5 -5
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAZ4P0Ax.js +266 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CC55eT4X.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DqOb7e4M.js} +1 -1
- package/dist/{IngredientsView-DKf2RyTT.js → IngredientsView-afICUj_U.js} +3 -3
- package/dist/{IntegrationView-IT9fT1o3.js → IntegrationView-DT5F9V0h.js} +120 -120
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfQYvMQo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXw4tAI_.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-C6a6F_jD.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-CmUwBVJj.js → PurchaseOrderPrintPreview-BMCy5C1z.js} +1 -1
- package/dist/ReceiveRequestView-DBU59iYm.js +4050 -0
- package/dist/{RecipeView-DoVjHcdn.js → RecipeView-Brnk8Ar7.js} +3 -3
- package/dist/{StockView-0e2NTA6y.js → StockView-BtTZNhlp.js} +14 -15
- package/dist/{SupplierView-Kp_qdI0x.js → SupplierView-C0GT_JzY.js} +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BzJ8TnL_.js +1139 -0
- package/dist/TransferTemplateView-SrBMTzU-.js +1237 -0
- package/dist/{UnitView-Bn4Di9oJ.js → UnitView-Dw2xLWy4.js} +4 -4
- package/dist/{WarehouseView-D_UpeFJI.js → WarehouseView-Cgf1mP8s.js} +2 -2
- package/dist/{app-Cp8AtZVK.js → app-Iz-opVBA.js} +270 -261
- package/dist/app.js +1 -1
- package/dist/{decimal-BdGSddMR.js → decimal-ffsKJesh.js} +1 -1
- package/dist/{defineDeepModel-BmWycBqN.js → defineDeepModel-CDrYKSnU.js} +3 -3
- package/dist/format-time-from-id-e9QU46u4.js +15 -0
- package/dist/purchase-order-transaction-type-DN3Czz6K.js +338 -0
- package/dist/stores/netsuite.d.ts +1 -0
- package/dist/{supplier-nSbJROl8.js → supplier-DdJIh1nj.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-DHQhRyhX.js → use-template-enabled-locations-2-BSLLHtkm.js} +1 -1
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +44 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +42 -34
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +75 -51
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +75 -51
- 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/composables/use-transfer-template-actions.d.ts +5 -8
- package/dist/{xlsx-CyyozDQ4.js → xlsx-C8qXPxB4.js} +1 -1
- package/dist/{xlsx.util-io3Y9wY0.js → xlsx.util-DGLr1W_5.js} +2 -2
- package/package.json +3 -3
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-B1Hplfop.js +0 -88
- package/dist/ReceiveRequestView-CowLFbXJ.js +0 -215
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-pOCLtZSW.js +0 -858
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-YgNt1e4d.js +0 -1678
- package/dist/TransferTemplateView-DnZqm1NS.js +0 -1244
- package/dist/format-time-from-id-bNKNgPR2.js +0 -15
- package/dist/id-to-date-uL3PyIfz.js +0 -30
- package/dist/purchase-order-transaction-type-DQvXZvHo.js +0 -685
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { u as d, a as f } from "./xlsx-C8qXPxB4.js";
|
|
2
|
+
import { o as _, j as h } from "./app-Iz-opVBA.js";
|
|
3
|
+
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
4
|
+
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
|
|
5
|
+
function I(e, t) {
|
|
6
|
+
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
7
|
+
}
|
|
8
|
+
function O(e, t) {
|
|
9
|
+
const r = t.map((o) => o.name), n = e.map((o) => I(o, t));
|
|
10
|
+
return d.aoa_to_sheet([r, ...n]);
|
|
11
|
+
}
|
|
12
|
+
async function C(e, t) {
|
|
13
|
+
const r = d.book_new();
|
|
14
|
+
for (const n of e) {
|
|
15
|
+
const o = O(
|
|
16
|
+
n.data,
|
|
17
|
+
n.columns.map((a) => typeof a == "string" ? {
|
|
18
|
+
name: a,
|
|
19
|
+
selector: a
|
|
20
|
+
} : a)
|
|
21
|
+
);
|
|
22
|
+
d.book_append_sheet(r, o, n.name);
|
|
23
|
+
}
|
|
24
|
+
await f(r, t);
|
|
25
|
+
}
|
|
26
|
+
const m = _((e, t) => {
|
|
27
|
+
const r = h(), n = F();
|
|
28
|
+
return {
|
|
29
|
+
async getInventoryForecast() {
|
|
30
|
+
var s;
|
|
31
|
+
const o = ((s = n.currentBusiness.value) == null ? void 0 : s._id) ?? "", a = r.currentLocationId ?? "", i = `${e.dataBackendUrl}/${o}/${a}/inventory-forecast`;
|
|
32
|
+
try {
|
|
33
|
+
return await t.get(i);
|
|
34
|
+
} catch {
|
|
35
|
+
return { skus: [] };
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
async getPurchaseOrderForecast(o) {
|
|
39
|
+
var u;
|
|
40
|
+
const a = ((u = n.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = r.currentLocationId ?? "", s = `${e.dataBackendUrl}/${a}/${i}/purchase-order-forecast?days=${o}`;
|
|
41
|
+
try {
|
|
42
|
+
return await t.get(s);
|
|
43
|
+
} catch {
|
|
44
|
+
return { skus: [] };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
function w() {
|
|
50
|
+
return {
|
|
51
|
+
inventoryForecast: { skus: [] },
|
|
52
|
+
purchaseOrderForecast: { skus: [] }
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const c = y(w());
|
|
56
|
+
function D() {
|
|
57
|
+
return {
|
|
58
|
+
// state
|
|
59
|
+
get inventoryForecast() {
|
|
60
|
+
return c.value.inventoryForecast;
|
|
61
|
+
},
|
|
62
|
+
set inventoryForecast(e) {
|
|
63
|
+
c.value.inventoryForecast = e;
|
|
64
|
+
},
|
|
65
|
+
get purchaseOrderForecast() {
|
|
66
|
+
return c.value.purchaseOrderForecast;
|
|
67
|
+
},
|
|
68
|
+
set purchaseOrderForecast(e) {
|
|
69
|
+
c.value.purchaseOrderForecast = e;
|
|
70
|
+
},
|
|
71
|
+
// actions
|
|
72
|
+
async readStockEstimateBalance() {
|
|
73
|
+
const e = m();
|
|
74
|
+
this.inventoryForecast = await e.getInventoryForecast();
|
|
75
|
+
},
|
|
76
|
+
async readPurchaseOrder(e) {
|
|
77
|
+
const t = m();
|
|
78
|
+
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function N(e) {
|
|
83
|
+
let t = e.substring(e.indexOf("_") + 1);
|
|
84
|
+
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
85
|
+
}
|
|
86
|
+
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", L = /* @__PURE__ */ v({
|
|
87
|
+
__name: "PremiumBadge",
|
|
88
|
+
props: {
|
|
89
|
+
zIndex: {}
|
|
90
|
+
},
|
|
91
|
+
setup(e) {
|
|
92
|
+
return (t, r) => {
|
|
93
|
+
const n = p("FmPill"), o = p("FmTooltip");
|
|
94
|
+
return k(), g("div", b, [
|
|
95
|
+
S(t.$slots, "default"),
|
|
96
|
+
l(o, {
|
|
97
|
+
variant: "plain",
|
|
98
|
+
placement: "top",
|
|
99
|
+
content: B,
|
|
100
|
+
"z-index": t.zIndex
|
|
101
|
+
}, {
|
|
102
|
+
default: x(() => [
|
|
103
|
+
l(n, { variant: "premium" })
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["z-index"])
|
|
107
|
+
]);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
L as _,
|
|
113
|
+
C as e,
|
|
114
|
+
N as i,
|
|
115
|
+
D as u
|
|
116
|
+
};
|
package/dist/{PurchaseOrderPrintPreview-CmUwBVJj.js → PurchaseOrderPrintPreview-BMCy5C1z.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { a7 as y, i as C } from "./app-Iz-opVBA.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|