@feedmepos/mf-inventory-portal 0.0.25-dev.17 → 0.0.25-dev.19
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-7ReqlqA4.js → App-Hgn8IBaK.js} +2 -2
- package/dist/{ApprovalView-qAV_1bug.js → ApprovalView-BSk9kEGm.js} +15 -9
- package/dist/{BindingsDialog-D8KPqrv8.js → BindingsDialog-SxUwbW5x.js} +2 -2
- package/dist/{BindingsPicker-BnnpoQfF.js → BindingsPicker-_zOGJ17i.js} +5 -5
- package/dist/{BindingsTable-Dnc5yg5v.js → BindingsTable-I8MLwuIR.js} +5 -5
- package/dist/{ClosingDraftView-DV-dP-0G.js → ClosingDraftView-D80vDRO7.js} +53 -53
- package/dist/{ClosingTemplateView-Bo5uzKK2.js → ClosingTemplateView-BCE-SHm9.js} +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BmLxDo6V.js +215 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bycca0S5.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D21lpws0.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-sVM6cQes.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-WTlNX0f8.js} +1 -1
- package/dist/{IngredientGroupView-CmkSvOxJ.js → IngredientGroupView-DDD_-og5.js} +1 -1
- package/dist/{IngredientsView-DIn-3Jee.js → IngredientsView-CJ4F7BwZ.js} +4 -4
- package/dist/{IntegrationView-CtawckJy.js → IntegrationView-B0TjX4yz.js} +1 -1
- package/dist/{InventoryBindingForm-Dmd68jKK.js → InventoryBindingForm-DGXN2PXz.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DBAwheaI.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-gQNCKIfa.js} +3 -3
- package/dist/{InventoryBindingSummary-Dho1qrPY.js → InventoryBindingSummary-CDAivJA8.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dja0BjOa.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CfaZ1GtI.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CjvQTt0Y.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DmhP_O3l.js} +1 -1
- package/dist/{PublishView-DG9ppOMN.js → PublishView-DvriUy_9.js} +13 -13
- package/dist/{PurchaseOrderPrintPreview-BfogmnuA.js → PurchaseOrderPrintPreview-Dr-I6VKI.js} +1 -1
- package/dist/ReceiveRequestView-FcC0nStC.js +2318 -0
- package/dist/{RecipeView-B3t6mU2N.js → RecipeView-BMYzOsb2.js} +3 -3
- package/dist/{StockView-DfylYVkd.js → StockView-gTmg4gih.js} +7 -7
- package/dist/{SupplierView-BQHWrUpw.js → SupplierView-CrixDjq3.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-15cqyqCC.js +1567 -0
- package/dist/{TransferTemplateView-BxO2UFyf.js → TransferTemplateView-DhgyCwnD.js} +7 -7
- package/dist/{UnitView-Cl299OpQ.js → UnitView-Bll1VTnD.js} +3 -3
- package/dist/{WarehouseView-C9oa2Jis.js → WarehouseView-KstzwWxq.js} +1 -1
- package/dist/{app-DZ9U0oko.js → app-qyqp2u_f.js} +7576 -7525
- package/dist/app.js +1 -1
- package/dist/components/FmMultiselectDialog.d.ts +24 -1
- package/dist/components/MountListener.vue.d.ts +15 -0
- package/dist/{decimal-Q0qpn1nX.js → decimal-BQ6Hkwom.js} +1 -1
- package/dist/{feature-CwrW1toS.js → feature-C6Z6N_iv.js} +52 -63
- package/dist/{format-unit-display-Cijlq5k5.js → format-unit-display-T-fT7FAg.js} +13 -13
- package/dist/{index-CG9f2hcH.js → index-B6HIaHJq.js} +2 -2
- package/dist/{stock-B8OABZwR.js → stock-Cd6rXnhv.js} +1 -1
- package/dist/stores/feature.d.ts +0 -4
- package/dist/{supplier-OhriR4IQ.js → supplier-b6qWYeQu.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-P6o_ZU_Z.js → use-ingredient-select-dialog-C8sylcwR.js} +1 -1
- package/dist/{use-inventory-binding-dialog-8a_D3hzG.js → use-inventory-binding-dialog-D7wI4_lU.js} +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +1387 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +3 -1
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +3 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +27 -9
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +22 -9
- package/dist/views/receive-request/helper/po-to-po-template.util.d.ts +1 -0
- package/dist/views/transfer-template/helpers/location-to-po-supplier.util.d.ts +75 -0
- package/dist/{vue-i18n-BmOal3Ap.js → vue-i18n-BmWUvN1e.js} +261 -261
- package/package.json +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BPNKuOjZ.js +0 -211
- package/dist/ReceiveRequestView-DcshoUs1.js +0 -2239
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-aQkAoXb3.js +0 -1501
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -3006
package/package.json
CHANGED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { i as T, t as R, as as w, u as B, ax as E, aH as H, aI as z, aJ as U } from "./app-DZ9U0oko.js";
|
|
2
|
-
import { u as D } from "./supplier-OhriR4IQ.js";
|
|
3
|
-
import { P as F } from "./format-unit-display-Cijlq5k5.js";
|
|
4
|
-
import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as M } from "vue";
|
|
5
|
-
function Y(t, i, a) {
|
|
6
|
-
var s;
|
|
7
|
-
if (!!i.measurement === !!a && ((s = i.measurement) == null ? void 0 : s.id) === a)
|
|
8
|
-
return i;
|
|
9
|
-
if (!a)
|
|
10
|
-
return {
|
|
11
|
-
costPerUnit: i.costPerUnit
|
|
12
|
-
};
|
|
13
|
-
const o = t.measurements.find((p) => p.id === a);
|
|
14
|
-
return o ? {
|
|
15
|
-
costPerUnit: i.costPerUnit,
|
|
16
|
-
measurement: o
|
|
17
|
-
} : {
|
|
18
|
-
costPerUnit: i.costPerUnit
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function se(t, i, a, l) {
|
|
22
|
-
var P, _, n;
|
|
23
|
-
if (l != null && l.manualTotalCost)
|
|
24
|
-
return l == null ? void 0 : l.manualTotalCost;
|
|
25
|
-
const u = (n = (_ = (P = l == null ? void 0 : l.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
|
|
26
|
-
(e) => e.skuId === t._id
|
|
27
|
-
)) == null ? void 0 : n.defaultCost, o = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, s = u ?? o, p = s == null ? void 0 : s.costPerUnit, y = p ? s != null && s.measurement ? +T(p) / +T(s == null ? void 0 : s.measurement.conversion) : +T(p) : void 0, v = y ? a ? y * +T(a.conversion) : y : void 0, h = v ? +T(i) * v : void 0;
|
|
28
|
-
return h ? {
|
|
29
|
-
...R(h ?? 0, 2),
|
|
30
|
-
currency: w()
|
|
31
|
-
} : {
|
|
32
|
-
amount: 0,
|
|
33
|
-
precision: 0,
|
|
34
|
-
currency: w()
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function k(t) {
|
|
38
|
-
return H.parse(t);
|
|
39
|
-
}
|
|
40
|
-
function L(t) {
|
|
41
|
-
return {
|
|
42
|
-
_id: t.doc._id,
|
|
43
|
-
internal: t.type,
|
|
44
|
-
contactName: t.doc.profile.name,
|
|
45
|
-
name: t.doc.profile.name ?? "",
|
|
46
|
-
email: t.doc.profile.email,
|
|
47
|
-
phoneNumber: t.doc.profile.phoneNo,
|
|
48
|
-
registrationNumber: t.doc.profile.regNo,
|
|
49
|
-
address: t.doc.profile.address ?? {
|
|
50
|
-
line1: "",
|
|
51
|
-
state: "",
|
|
52
|
-
city: "",
|
|
53
|
-
postcode: "",
|
|
54
|
-
country: ""
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function oe(t, i, a = !1, l = !1) {
|
|
59
|
-
const u = D(), o = B();
|
|
60
|
-
o.watchLocation(async () => {
|
|
61
|
-
var b;
|
|
62
|
-
await u.readSuppliers();
|
|
63
|
-
const n = t();
|
|
64
|
-
if ((b = n.supplier) != null && b._id) return;
|
|
65
|
-
const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations)[0];
|
|
66
|
-
i({
|
|
67
|
-
...n,
|
|
68
|
-
supplier: e ? k(e) : r ? L(r) : n.supplier
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
const s = f(
|
|
72
|
-
() => {
|
|
73
|
-
var n, e;
|
|
74
|
-
return typeof ((e = (n = t()) == null ? void 0 : n.supplier) == null ? void 0 : e.internal) == "string" ? F.TRANSFER : F.PURCHASE;
|
|
75
|
-
}
|
|
76
|
-
), p = f({
|
|
77
|
-
get() {
|
|
78
|
-
var n, e;
|
|
79
|
-
return (e = (n = t()) == null ? void 0 : n.supplier) == null ? void 0 : e._id;
|
|
80
|
-
},
|
|
81
|
-
set(n) {
|
|
82
|
-
const e = t() ?? {};
|
|
83
|
-
if (s.value === F.PURCHASE) {
|
|
84
|
-
const C = (l ? u.suppliers : u.businessSuppliers).find((A) => A._id === n);
|
|
85
|
-
i({
|
|
86
|
-
...e,
|
|
87
|
-
supplier: C ? k(C) : e.supplier
|
|
88
|
-
});
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const b = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations).find((m) => m.doc._id === n);
|
|
92
|
-
i({
|
|
93
|
-
...e,
|
|
94
|
-
supplier: b ? L(b) : e.supplier
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}), y = f(() => u.locationSuppliers.map(k)), v = f(() => u.businessSuppliers.map(k)), h = f(() => {
|
|
98
|
-
const n = [...y.value], e = [...v.value];
|
|
99
|
-
return l ? [...e, ...n] : e;
|
|
100
|
-
}), c = f(() => {
|
|
101
|
-
var d;
|
|
102
|
-
const n = ((d = o._currentLocation) == null ? void 0 : d.type) === E.warehouse;
|
|
103
|
-
return (a ? o.locations.filter((r) => r.doc._id !== o.currentLocation.doc._id) : o.locations).filter((r) => n || r.acceptRequest).map(L);
|
|
104
|
-
}), P = f(() => {
|
|
105
|
-
if (s.value === F.PURCHASE) {
|
|
106
|
-
const e = y.value.map((r) => ({
|
|
107
|
-
label: r.name,
|
|
108
|
-
value: r._id
|
|
109
|
-
})), d = v.value.map((r) => ({
|
|
110
|
-
label: r.name,
|
|
111
|
-
sublabel: "Business supplier",
|
|
112
|
-
value: r._id
|
|
113
|
-
}));
|
|
114
|
-
return l ? [...e, ...d] : d;
|
|
115
|
-
}
|
|
116
|
-
return c.value.map((e) => ({
|
|
117
|
-
label: e.name,
|
|
118
|
-
sublabel: e.internal ? `${e.internal}` : void 0,
|
|
119
|
-
value: e._id
|
|
120
|
-
}));
|
|
121
|
-
}), _ = f(() => {
|
|
122
|
-
var r, b;
|
|
123
|
-
const n = (b = (r = t()) == null ? void 0 : r.supplier) == null ? void 0 : b._id;
|
|
124
|
-
if (s.value === F.PURCHASE) {
|
|
125
|
-
const m = u.suppliers.find((C) => C._id === n);
|
|
126
|
-
return m ? k(m) : null;
|
|
127
|
-
}
|
|
128
|
-
const d = o.locations.find((m) => m.doc._id);
|
|
129
|
-
return d ? L(d) : null;
|
|
130
|
-
});
|
|
131
|
-
return {
|
|
132
|
-
transferLocationModel: p,
|
|
133
|
-
transferLocationOptions: P,
|
|
134
|
-
locationOptionsTypePurchase: h,
|
|
135
|
-
locationOptionsTypePurchaseLocationLevel: y,
|
|
136
|
-
locationOptionsTypeTransfer: c,
|
|
137
|
-
selectedLocation: _
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ x({
|
|
141
|
-
__name: "FmFilterableMenuOptions",
|
|
142
|
-
props: /* @__PURE__ */ j({
|
|
143
|
-
modelValue: {},
|
|
144
|
-
maxHeight: {},
|
|
145
|
-
width: {},
|
|
146
|
-
handleItemChange: { type: Function },
|
|
147
|
-
items: {},
|
|
148
|
-
options: {}
|
|
149
|
-
}, {
|
|
150
|
-
search: {},
|
|
151
|
-
searchModifiers: {}
|
|
152
|
-
}),
|
|
153
|
-
emits: ["update:search"],
|
|
154
|
-
setup(t) {
|
|
155
|
-
const i = t, a = q(t, "search"), l = f(
|
|
156
|
-
() => new z(i.items, ["label", "sublabel"], i.options)
|
|
157
|
-
), u = f(() => l.value.search(a.value)), o = W();
|
|
158
|
-
return console.log({ stickyRef: o }), (s, p) => {
|
|
159
|
-
const y = V("FmButton"), v = V("FmTextField"), h = V("FmMenuItem");
|
|
160
|
-
return S(), I("div", {
|
|
161
|
-
class: "relative",
|
|
162
|
-
style: $({ width: s.width })
|
|
163
|
-
}, [
|
|
164
|
-
N("div", {
|
|
165
|
-
class: "sticky top-0 bg-white mb-8",
|
|
166
|
-
ref_key: "stickyRef",
|
|
167
|
-
ref: o
|
|
168
|
-
}, [
|
|
169
|
-
J(v, {
|
|
170
|
-
modelValue: a.value,
|
|
171
|
-
"onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
|
|
172
|
-
placeholder: "Filter options"
|
|
173
|
-
}, {
|
|
174
|
-
append: K(() => [
|
|
175
|
-
a.value ? (S(), g(y, {
|
|
176
|
-
key: 0,
|
|
177
|
-
variant: "tertiary",
|
|
178
|
-
"prepend-icon": "close",
|
|
179
|
-
onClick: p[0] || (p[0] = (c) => a.value = "")
|
|
180
|
-
})) : O("", !0)
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
}, 8, ["modelValue"])
|
|
184
|
-
], 512),
|
|
185
|
-
N("div", Z, [
|
|
186
|
-
(S(!0), I(Q, null, X(u.value, (c, P) => (S(), g(h, {
|
|
187
|
-
key: P,
|
|
188
|
-
label: c.label,
|
|
189
|
-
sublabel: c.sublabel,
|
|
190
|
-
"model-value": M(U)(s.modelValue, c.value),
|
|
191
|
-
onClick: () => s.handleItemChange(M(U)(s.modelValue, c.value), c),
|
|
192
|
-
onVnodeMounted: (_) => {
|
|
193
|
-
var n, e;
|
|
194
|
-
return M(U)(s.modelValue, c.value) && ((n = _.el) == null || n.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
195
|
-
}
|
|
196
|
-
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
197
|
-
u.value.length ? O("", !0) : (S(), g(h, {
|
|
198
|
-
key: 0,
|
|
199
|
-
disabled: "",
|
|
200
|
-
label: "No options available"
|
|
201
|
-
}))
|
|
202
|
-
])
|
|
203
|
-
], 4);
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
export {
|
|
208
|
-
ae as _,
|
|
209
|
-
se as c,
|
|
210
|
-
oe as u
|
|
211
|
-
};
|