@feedmepos/mf-inventory-portal 1.2.31-dev.2 → 1.2.31-dev.3
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-BMf3N76A.js → App-B-WNsmAG.js} +3 -3
- package/dist/{ApprovalView-ue3fJ7v_.js → ApprovalView-DQi0XFmN.js} +6 -6
- package/dist/{BindingsDialog-ByMj3RjY.js → BindingsDialog-Cx4fEpHS.js} +2 -2
- package/dist/{BindingsPicker-DgSjaVrq.js → BindingsPicker-DGfp2MzU.js} +2 -2
- package/dist/{BindingsTable-BUu0r9Zo.js → BindingsTable-DL7BI4SC.js} +4 -4
- package/dist/{ClosingDraftView-R2NPPsXD.js → ClosingDraftView-j3924s99.js} +8 -8
- package/dist/{ClosingHistoryView-1W_y3JEM.js → ClosingHistoryView-Dto_61bZ.js} +3 -3
- package/dist/{ClosingTemplateView-BC9w8vZ0.js → ClosingTemplateView-BXzUL5Jc.js} +63 -64
- package/dist/{DeliveryOrderPrintPreview-zJhQH8By.js → DeliveryOrderPrintPreview-FrW3oyrD.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CJ_bPMX_.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMRQb-me.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cphr1J6U.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-frjrO0sv.js} +3 -3
- package/dist/{FmMultiselectDialog-DEt2I4_c.js → FmMultiselectDialog-66369F8L.js} +63 -62
- package/dist/{FmMultiselectDialog-DSGQitHT.js → FmMultiselectDialog-Dx0o4EXh.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-spkm7SZK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-hGy_zxob.js} +3 -3
- package/dist/{ImportView-ank5c4AV.js → ImportView-8bdFM2le.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DhE2M3CD.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-6YWvuajr.js} +1 -1
- package/dist/{IngredientGroupView-DVT0Yyae.js → IngredientGroupView-DNJ9i8FJ.js} +6 -6
- package/dist/{IngredientsView-BcmPBoOb.js → IngredientsView-BQV62iRc.js} +15 -15
- package/dist/{IntegrationView-0JY21Fjn.js → IntegrationView-DdjyJMIa.js} +11 -11
- package/dist/{InventoryBindingForm-FhDgibuy.js → InventoryBindingForm-CJacciDp.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DL2pd-U1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DcHAS2mI.js} +4 -4
- package/dist/{InventoryBindingSummary-Rj4rLIp-.js → InventoryBindingSummary-DivPGJmB.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CtqVtwbE.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGnzF9Y-.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BJZmEJ_9.js → PremiumBadge.vue_vue_type_script_setup_true_lang-kBjgDNjc.js} +2 -2
- package/dist/{PublishView-NyqU4ogZ.js → PublishView-BsrYIDHu.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Cua1-cfS.js → PurchaseOrderPrintPreview-BWvJYn3H.js} +1 -1
- package/dist/{ReceiveRequestView-BQtpsAOR.js → ReceiveRequestView-DmG9dEJS.js} +20 -20
- package/dist/{RecipeView-Dcv3Pnvu.js → RecipeView-Dt_kJwvE.js} +8 -8
- package/dist/{StockView-D2jlQ_IE.js → StockView-BgFKkgZT.js} +16 -16
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang--F8e7pUI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DzCb7l2o.js} +1 -1
- package/dist/{SupplierView-CGAtUowc.js → SupplierView-DhBm-m5W.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Cd9R8l0c.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BqUcJtoV.js} +2 -2
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CW5xPij2.js +153 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BqxG1uZu.js → TransferDetails.vue_vue_type_script_setup_true_lang-CxybW4_c.js} +14 -14
- package/dist/{TransferTemplateView-DMuw4LtY.js → TransferTemplateView-C_ZrimOH.js} +15 -15
- package/dist/{UnitView-CwlT0HpP.js → UnitView-wKMnAjUO.js} +6 -6
- package/dist/{WarehouseView-mT3A-9uq.js → WarehouseView-BG7tXYmF.js} +5 -5
- package/dist/{WastageTemplateView-C3_KtgFQ.js → WastageTemplateView-g4fCdiB1.js} +54 -55
- package/dist/{app-C2nudFnk.js → app-D4IM0wHL.js} +1347 -1325
- package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
- package/dist/app.js +1 -1
- package/dist/{closing-template-fRmBNy4y.js → closing-template-Bv6Myxdn.js} +1 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
- package/dist/components/TemplatePublishDialog.d.ts +1 -1
- package/dist/{date2-ngfXp6E2.js → date2-Dd9ptrqd.js} +1 -1
- package/dist/{dayjs.min-BvcCfiWk.js → dayjs.min-CWI11hCD.js} +1 -1
- package/dist/{decimal-h7clfS02.js → decimal-C3Z-ftMJ.js} +2 -2
- package/dist/{defineDeepModel-C_n3Ytw6.js → defineDeepModel-BfiLqnop.js} +1 -1
- package/dist/{duplicate-template-CHiQ3uHE.js → duplicate-template-B2EuoFxA.js} +1 -1
- package/dist/{feature-CrcV14lV.js → feature-ZHDFuTZ_.js} +2 -2
- package/dist/{format-time-from-id-ljQJ36VV.js → format-time-from-id-CSpCF7Ee.js} +1 -1
- package/dist/{format-unit-display-r1oynPKD.js → format-unit-display-BcWGiCVI.js} +10 -10
- package/dist/{import-export.helper-C5TdWJLB.js → import-export.helper-C7ae5erR.js} +5 -5
- package/dist/{index-DluVXb7-.js → index-BeB8ecvv.js} +1 -1
- package/dist/{index-gutj1NVB.js → index-Dre7jvrB.js} +1 -1
- package/dist/{index-C0Q6KaoS.js → index-s4uXiu5o.js} +3 -3
- package/dist/{lodash-CJ0fXmvq.js → lodash-DrzA6QGq.js} +1 -1
- package/dist/{netsuite-Dp3KQlN9.js → netsuite-DFbsrLfl.js} +371 -359
- package/dist/{purchase-order-template-CTICqz-0.js → purchase-order-template-J0Uqb3IF.js} +1 -1
- package/dist/{rules-CWhZXxdv.js → rules-RP2F9r_X.js} +3 -3
- package/dist/{stock-DHpvp37w.js → stock-Ctj1mNkn.js} +1 -1
- package/dist/{stock-BpY8FTMC.js → stock-DOmkE0Nf.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-CfiMZbRg.js → supplier-DQToh3we.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DrYxhoTU.js → use-ingredient-select-dialog-kOstDeTC.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BAYX4xEg.js → use-inventory-binding-dialog-DrrHdZ4N.js} +2 -2
- package/dist/use-template-enabled-locations-2-B2Hu1KET.js +120 -0
- package/dist/{vue-i18n-BNE50uOV.js → vue-i18n-C-GaaY2p.js} +316 -316
- package/dist/{xlsx-BSJt4rqr.js → xlsx-Bg6KF2T6.js} +1 -1
- package/dist/{xlsx.util-DEF923iN.js → xlsx.util-CegYq3Hg.js} +1 -1
- package/package.json +3 -3
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dy5JfpNp.js +0 -123
- package/dist/use-template-enabled-locations-2-DbNAe5rC.js +0 -111
package/dist/{use-ingredient-select-dialog-DrYxhoTU.js → use-ingredient-select-dialog-kOstDeTC.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-D4IM0wHL.js";
|
|
3
|
+
import { a as b } from "./FmMultiselectDialog-66369F8L.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-BAYX4xEg.js → use-inventory-binding-dialog-DrrHdZ4N.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-66369F8L.js";
|
|
2
|
+
import { a as P } from "./app-D4IM0wHL.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-66369F8L.js";
|
|
2
|
+
import { u as S } from "./app-D4IM0wHL.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
|
+
};
|