@feedmepos/mf-inventory-portal 1.2.35 → 1.2.36-dev.2
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-Cto5ziOR.js → App-q1zovT23.js} +3 -3
- package/dist/{ApprovalView-6FVOpBx7.js → ApprovalView-DzeSiTK5.js} +6 -6
- package/dist/{BindingsDialog-Dx5LgvC2.js → BindingsDialog-B5yVxOjz.js} +2 -2
- package/dist/{BindingsPicker-DOtIU3hz.js → BindingsPicker-1j_99KHr.js} +2 -2
- package/dist/{BindingsTable-w2aU1rcH.js → BindingsTable-O5dVjf8X.js} +4 -4
- package/dist/{ClosingDraftView-eD3XeuVt.js → ClosingDraftView-DxOmWVTS.js} +8 -8
- package/dist/{ClosingHistoryView-DAlpKcyV.js → ClosingHistoryView-CUGgd5zn.js} +3 -3
- package/dist/{ClosingTemplateView-Bb6AYhab.js → ClosingTemplateView-BIPhpaQq.js} +63 -64
- package/dist/{DeliveryOrderPrintPreview-dq5xjT15.js → DeliveryOrderPrintPreview-DV27jhx9.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BtREKPk3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ByOkF7L5.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLErwFwj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DpbYOmJX.js} +3 -3
- package/dist/{FmMultiselectDialog-CZlw5IBx.js → FmMultiselectDialog-Ca0w1egK.js} +1 -1
- package/dist/{FmMultiselectDialog-5Ud8e_9s.js → FmMultiselectDialog-DjUNG_QU.js} +63 -62
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D78DBtSg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DYbNeQjm.js} +3 -3
- package/dist/{ImportView-CUaoYqpk.js → ImportView-1cbm5Ihw.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BX3sHmHR.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BwioQjH1.js} +1 -1
- package/dist/{IngredientGroupView-C_1e9aee.js → IngredientGroupView-C_OacA1S.js} +6 -6
- package/dist/{IngredientsView-B1GiX576.js → IngredientsView-C7wn2KeJ.js} +15 -15
- package/dist/{IntegrationView-CLTjJw-T.js → IntegrationView-DMezTIiB.js} +13 -13
- package/dist/{InventoryBindingForm-e2HmOwyZ.js → InventoryBindingForm-Cjb-NCMC.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C6wfSIoW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DlCtFPTn.js} +4 -4
- package/dist/{InventoryBindingSummary-DlromC5f.js → InventoryBindingSummary-DvQl_NKt.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ePcZzNIV.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B7RswJEF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DXAIuyla.js → PremiumBadge.vue_vue_type_script_setup_true_lang-W7QwNo0m.js} +2 -2
- package/dist/{PublishView-D8b_SV-Q.js → PublishView-B-c5vqLC.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BKldIkfG.js → PurchaseOrderPrintPreview-Bm2HHOjy.js} +1 -1
- package/dist/{ReceiveRequestView-Bo0LNqNU.js → ReceiveRequestView-BoPHoq22.js} +20 -20
- package/dist/{RecipeView-RK7rg9SH.js → RecipeView-C_EZC4aS.js} +8 -8
- package/dist/{StockView-DtgTB7b0.js → StockView-CUHPfS2r.js} +16 -16
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dd5r9IHo.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dv4t7iml.js} +1 -1
- package/dist/{SupplierView-KUDAXLGT.js → SupplierView-DMLBGGTz.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-p2GWF2ym.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CefmL0M9.js} +2 -2
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BzSnQuUT.js +155 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BgutohGy.js → TransferDetails.vue_vue_type_script_setup_true_lang-DpXjATop.js} +14 -14
- package/dist/{TransferTemplateView-Ci73Py2h.js → TransferTemplateView-C_jHPkih.js} +15 -15
- package/dist/{UnitView-BQ44w8TU.js → UnitView-Dtt64UBK.js} +6 -6
- package/dist/{WarehouseView-DNXm5Dcu.js → WarehouseView-3rbyqSiO.js} +5 -5
- package/dist/{WastageTemplateView-D-vGhH3w.js → WastageTemplateView-DpTEZSPu.js} +54 -55
- package/dist/{app-DcCkKJzq.js → app-5_CNg2cC.js} +22 -10
- package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
- package/dist/app.d.ts +12 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-RSXXhLpp.js → closing-template-fZDhXn0g.js} +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
- package/dist/components/TemplatePublishDialog.d.ts +1 -1
- package/dist/{date2-sWm3pevj.js → date2-RFEAT3Hi.js} +1 -1
- package/dist/{dayjs.min-BCS-Ul81.js → dayjs.min-laIF0-Ey.js} +1 -1
- package/dist/{decimal-CJ-9_EYZ.js → decimal-B4l1R82v.js} +2 -2
- package/dist/{defineDeepModel-D7WRnOrj.js → defineDeepModel-dQurFqp0.js} +1 -1
- package/dist/{duplicate-template-CAzB921Y.js → duplicate-template-Baq8J49L.js} +1 -1
- package/dist/{feature-DhexxbJ9.js → feature-CYaTw4sS.js} +2 -2
- package/dist/{format-time-from-id-CP8g-tuv.js → format-time-from-id-BmDX3gdu.js} +1 -1
- package/dist/{format-unit-display-DoxRAMg5.js → format-unit-display-7aBUP2IP.js} +10 -10
- package/dist/{import-export.helper-Dhco19eC.js → import-export.helper-Cp32rfLh.js} +5 -5
- package/dist/{index-CMS676pd.js → index-Cs5Pj087.js} +1 -1
- package/dist/{index-e3XsK1wK.js → index-DV_xYBzF.js} +3 -3
- package/dist/{index-Dn0Ddq_h.js → index-DpqxYa0a.js} +1 -1
- package/dist/{lodash-DO-x68HU.js → lodash-DaMmZ3uK.js} +1 -1
- package/dist/{netsuite-BbLPeQsb.js → netsuite-DSZaQJtE.js} +3 -3
- package/dist/{purchase-order-template-3ixNK_-p.js → purchase-order-template-CUWZJHh2.js} +1 -1
- package/dist/{rules-mTyTQHOE.js → rules-CzW2gAjK.js} +3 -3
- package/dist/{stock-k9srPYU_.js → stock-C7kDqigB.js} +1 -1
- package/dist/{stock-BN00mwCN.js → stock-CH1IUWLW.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-XCblBjp-.js → supplier-BUF6lO6w.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CeX5dWi3.js → use-ingredient-select-dialog-bVTqJksj.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CoVPxVI8.js → use-inventory-binding-dialog-CRvM6umN.js} +2 -2
- package/dist/use-template-enabled-locations-2-Cr5M0EPK.js +120 -0
- package/dist/{vue-i18n-D9I3XrOl.js → vue-i18n-DjXSAUP5.js} +483 -483
- package/dist/{xlsx-Cj6TdNZx.js → xlsx-DHum7mwx.js} +1 -1
- package/dist/{xlsx.util-D1xsUoa3.js → xlsx.util-CYTjxIN0.js} +1 -1
- package/package.json +1 -1
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BnFVHCZA.js +0 -123
- package/dist/use-template-enabled-locations-2-DXbtfSAP.js +0 -111
package/dist/{use-ingredient-select-dialog-CeX5dWi3.js → use-ingredient-select-dialog-bVTqJksj.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-5_CNg2cC.js";
|
|
3
|
+
import { a as b } from "./FmMultiselectDialog-DjUNG_QU.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-CoVPxVI8.js → use-inventory-binding-dialog-CRvM6umN.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-DjUNG_QU.js";
|
|
2
|
+
import { a as P } from "./app-5_CNg2cC.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-DjUNG_QU.js";
|
|
2
|
+
import { u as S } from "./app-5_CNg2cC.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
|
+
};
|