@feedmepos/mf-inventory-portal 1.2.34 → 1.2.36-dev.1
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-DjkMPuvn.js → App-CTY_Q9-Q.js} +3 -3
- package/dist/{ApprovalView-B04hsvFv.js → ApprovalView-DiXk36JT.js} +6 -6
- package/dist/{BindingsDialog-BpGYiQwO.js → BindingsDialog-FdFnPvQn.js} +2 -2
- package/dist/{BindingsPicker-O4JYyk1f.js → BindingsPicker-DertVxse.js} +2 -2
- package/dist/{BindingsTable-Bq8ZC318.js → BindingsTable-DYPcKNUo.js} +4 -4
- package/dist/{ClosingDraftView-DGLRJ9jL.js → ClosingDraftView-DG9pDR5n.js} +8 -8
- package/dist/{ClosingHistoryView-AjeG0lJb.js → ClosingHistoryView-BPwRoI-C.js} +3 -3
- package/dist/{ClosingTemplateView-POCRS7uM.js → ClosingTemplateView-78Pq2yef.js} +63 -64
- package/dist/{DeliveryOrderPrintPreview-VUC8ldds.js → DeliveryOrderPrintPreview-BZasxeDW.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvEZV5aG.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CvirNvCa.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UfmbcMlO.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js} +3 -3
- package/dist/{FmMultiselectDialog-BlzbKa_D.js → FmMultiselectDialog-B19DpJoy.js} +63 -62
- package/dist/{FmMultiselectDialog-7y9gFTkv.js → FmMultiselectDialog-qvmob-Xl.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CBC-R_uw.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DE8VqBVB.js} +3 -3
- package/dist/{ImportView-wAZ0lChO.js → ImportView-Cqpy6p_A.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B4ZBQd5-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BRC3I-5-.js} +1 -1
- package/dist/{IngredientGroupView-9_ZCFzmg.js → IngredientGroupView-E-7c3kkE.js} +6 -6
- package/dist/{IngredientsView-Ba_zPyql.js → IngredientsView-B1qi9Ovw.js} +15 -15
- package/dist/{IntegrationView-CVqqNaIf.js → IntegrationView-DHZtSQIh.js} +13 -13
- package/dist/{InventoryBindingForm-DbtEIQgT.js → InventoryBindingForm-BymjlJdn.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-P47qIJHw.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-RC19AcZL.js} +4 -4
- package/dist/{InventoryBindingSummary-DvnMNk5J.js → InventoryBindingSummary-WOMmDIec.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D7oKOuRv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDlZe5O3.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-oWNTQ63I.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DgqjGOzp.js} +2 -2
- package/dist/{PublishView-qnXPXw3b.js → PublishView-CVisOUSv.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DZEpNeB5.js → PurchaseOrderPrintPreview-rWWfOSaq.js} +1 -1
- package/dist/{ReceiveRequestView-BXsGUJDw.js → ReceiveRequestView-Jk5v5CqU.js} +21 -21
- package/dist/{RecipeView-CWhop3qJ.js → RecipeView-JHHBMkwk.js} +8 -8
- package/dist/{StockView-Dvjuxpu_.js → StockView-2XnQxCXO.js} +16 -16
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B5qZCioi.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BcsYzEkh.js} +1 -1
- package/dist/{SupplierView-BK7QGNJs.js → SupplierView-G6HQlhZi.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-yDxCSlwR.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DEfBZp25.js} +2 -2
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DCIG4vb3.js +153 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BOt_2kbC.js → TransferDetails.vue_vue_type_script_setup_true_lang-CFzf6vxK.js} +14 -14
- package/dist/{TransferTemplateView-C0w590oE.js → TransferTemplateView-BTXoU-DU.js} +15 -15
- package/dist/{UnitView-ihfO1TDi.js → UnitView-B01l7Pfc.js} +6 -6
- package/dist/{WarehouseView-Dc-QqDcr.js → WarehouseView-94IcWCcL.js} +5 -5
- package/dist/{WastageTemplateView-BuWq4Yxx.js → WastageTemplateView-DxwN9TD_.js} +54 -55
- package/dist/{app-ByGi8N4Z.js → app-BLzzXeIE.js} +7 -7
- package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
- package/dist/app.js +1 -1
- package/dist/{closing-template-BUQOnJJw.js → closing-template-DpkVBXl0.js} +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
- package/dist/components/TemplatePublishDialog.d.ts +1 -1
- package/dist/{date2-CeAU4gv0.js → date2-Cff29_qv.js} +1 -1
- package/dist/{dayjs.min-B_7ZtUjC.js → dayjs.min-BZcZttKK.js} +1 -1
- package/dist/{decimal-ycbrHf88.js → decimal-D1uTRWeM.js} +2 -2
- package/dist/{defineDeepModel-DYbYHjog.js → defineDeepModel-Dda0vf9s.js} +1 -1
- package/dist/{duplicate-template-i_R403Ug.js → duplicate-template-CnDxTqeA.js} +1 -1
- package/dist/{feature-ca-jE4ya.js → feature-Dmp8LTbY.js} +2 -2
- package/dist/{format-time-from-id-BXXju617.js → format-time-from-id-DeA1WyqH.js} +1 -1
- package/dist/{format-unit-display-BwJnQOjc.js → format-unit-display-Dtx2nwLE.js} +10 -10
- package/dist/{import-export.helper-D9C9ay2_.js → import-export.helper-B5dobyTc.js} +5 -5
- package/dist/{index-BkMejZuQ.js → index-B_mNrHmO.js} +1 -1
- package/dist/{index-BX3vui0g.js → index-CSfFxy15.js} +1 -1
- package/dist/{index-q4auSzBM.js → index-DcAMshU8.js} +3 -3
- package/dist/{lodash-DtO7f0X5.js → lodash-aQznORAq.js} +1 -1
- package/dist/{netsuite-BpMev2mm.js → netsuite-Df9dhVB8.js} +3 -3
- package/dist/{purchase-order-template-Cr74eF6D.js → purchase-order-template-VX-N0O8c.js} +1 -1
- package/dist/{rules-D1GP6ubj.js → rules-CD5fiTtG.js} +3 -3
- package/dist/{stock-uqdMv2ju.js → stock-C7c2xYoH.js} +1 -1
- package/dist/{stock-DzWag_LT.js → stock-rJukALO2.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-Bz8null9.js → supplier-B2b_cNEF.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BKLGTpou.js → use-ingredient-select-dialog-SPDZuFRM.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CCggiF-y.js → use-inventory-binding-dialog-D_JgW2yO.js} +2 -2
- package/dist/use-template-enabled-locations-2-Dy29_I7e.js +120 -0
- package/dist/{vue-i18n-TeGgzE2X.js → vue-i18n-DiQOfdza.js} +533 -533
- package/dist/{xlsx-BxOzuEHb.js → xlsx-BbrzRons.js} +1 -1
- package/dist/{xlsx.util-Bn3mVqt_.js → xlsx.util-BOmP544G.js} +1 -1
- package/package.json +3 -3
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNjsvo20.js +0 -123
- package/dist/use-template-enabled-locations-2-D8Ctefvw.js +0 -111
package/dist/{use-ingredient-select-dialog-BKLGTpou.js → use-ingredient-select-dialog-SPDZuFRM.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as y } from "pinia";
|
|
2
|
-
import { a as S } from "./app-
|
|
3
|
-
import { a as b } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as S } from "./app-BLzzXeIE.js";
|
|
3
|
+
import { a as b } from "./FmMultiselectDialog-B19DpJoy.js";
|
|
4
4
|
import { useDialog as A } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
6
6
|
const B = y(
|
package/dist/{use-inventory-binding-dialog-CCggiF-y.js → use-inventory-binding-dialog-D_JgW2yO.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as P } from "./app-
|
|
1
|
+
import { a as g } from "./FmMultiselectDialog-B19DpJoy.js";
|
|
2
|
+
import { a as P } from "./app-BLzzXeIE.js";
|
|
3
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
function A() {
|
|
5
5
|
const u = P(), _ = E();
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-B19DpJoy.js";
|
|
2
|
+
import { u as S } from "./app-BLzzXeIE.js";
|
|
3
|
+
import { useI18n as v, useCoreStore as m, useCustomAttributes as w } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as _, components as d } from "@feedmepos/ui-library";
|
|
5
|
+
import { computed as r, h as c } from "vue";
|
|
6
|
+
function K(a) {
|
|
7
|
+
const p = _(), n = S(), { t: i } = v(), b = r(() => m().restaurants.value.reduce(
|
|
8
|
+
(e, o) => (e[o._id] = o.customAttributes || {}, e),
|
|
9
|
+
{}
|
|
10
|
+
)), { attributes: f } = w({
|
|
11
|
+
valueSource: m().restaurants,
|
|
12
|
+
entity: "restaurant"
|
|
13
|
+
});
|
|
14
|
+
function L() {
|
|
15
|
+
var u;
|
|
16
|
+
const s = a.getLocations() ?? [], e = n.locationById, o = s.filter((t) => !e[t.doc._id]);
|
|
17
|
+
p.open({
|
|
18
|
+
title: "Select at least one location",
|
|
19
|
+
contentComponent: c(
|
|
20
|
+
A,
|
|
21
|
+
{
|
|
22
|
+
modelValue: ((u = h.value) == null ? void 0 : u.map((t) => t.doc._id)) ?? [],
|
|
23
|
+
items: n.locations.map((t) => ({
|
|
24
|
+
label: `${t.name}(${t.doc.profile.code ?? "--"})`,
|
|
25
|
+
sublabel: t.type,
|
|
26
|
+
value: t.doc._id,
|
|
27
|
+
customAttributes: b.value[t.doc._id]
|
|
28
|
+
})),
|
|
29
|
+
filterAttributes: f.value,
|
|
30
|
+
attributeKey: "customAttributes"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
appendList() {
|
|
34
|
+
return o.map(
|
|
35
|
+
(t) => c(
|
|
36
|
+
d.FmListItem,
|
|
37
|
+
{
|
|
38
|
+
label: `${t.name}(${t.doc.profile.code ?? "--"})`,
|
|
39
|
+
sublabel: "This location is not manageable by your account.",
|
|
40
|
+
disabled: !0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
prepend: c(d.FmCheckbox, {
|
|
44
|
+
modelValue: !0,
|
|
45
|
+
value: "",
|
|
46
|
+
disabled: !0
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
contentComponentProps: {},
|
|
55
|
+
primaryActions: {
|
|
56
|
+
text: i("common.confirm"),
|
|
57
|
+
close: !0
|
|
58
|
+
},
|
|
59
|
+
secondaryActions: {
|
|
60
|
+
text: i("common.close"),
|
|
61
|
+
close: !0
|
|
62
|
+
}
|
|
63
|
+
}).onPrimary((t) => {
|
|
64
|
+
const l = [...n.locations.filter((g) => t.includes(g.doc._id)), ...o];
|
|
65
|
+
l.length ? a.setLocations(l) : a.setLocations(null);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const h = r(() => {
|
|
69
|
+
var e;
|
|
70
|
+
const s = /* @__PURE__ */ new Set([...n.locations.map((o) => o.doc._id)]);
|
|
71
|
+
return (e = a.getLocations()) == null ? void 0 : e.filter((o) => s.has(o.doc._id));
|
|
72
|
+
}), y = r(() => {
|
|
73
|
+
const s = a.getLocations();
|
|
74
|
+
return s ? s.reduce(
|
|
75
|
+
(e, o) => {
|
|
76
|
+
switch (o.type) {
|
|
77
|
+
case "restaurant": {
|
|
78
|
+
e[0].restaurants += 1;
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
case "warehouse": {
|
|
82
|
+
e[0].warehouses += 1;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return e[0][o.type] += 1, e;
|
|
87
|
+
},
|
|
88
|
+
[
|
|
89
|
+
{
|
|
90
|
+
restaurants: 0,
|
|
91
|
+
warehouses: 0
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
) : [
|
|
95
|
+
{
|
|
96
|
+
restaurants: "All",
|
|
97
|
+
warehouses: "All"
|
|
98
|
+
}
|
|
99
|
+
];
|
|
100
|
+
});
|
|
101
|
+
return {
|
|
102
|
+
promptSelectLocations: L,
|
|
103
|
+
columnDefs: [
|
|
104
|
+
{
|
|
105
|
+
accessorKey: "restaurants",
|
|
106
|
+
header: () => "Restaurants",
|
|
107
|
+
enableSorting: !1
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
accessorKey: "warehouses",
|
|
111
|
+
header: () => "Warehouses",
|
|
112
|
+
enableSorting: !1
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
rowData: y
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export {
|
|
119
|
+
K as u
|
|
120
|
+
};
|