@feedmepos/mf-inventory-portal 1.2.29 → 1.2.30
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-BcetoQcK.js → App-CZJre5y8.js} +56 -54
- package/dist/{ApprovalView-CyRCctkZ.js → ApprovalView-CnxHxojY.js} +34 -28
- package/dist/{BindingsDialog-DLN2RPYo.js → BindingsDialog-C6lCOPNs.js} +2 -2
- package/dist/{BindingsPicker-CDtYeSVh.js → BindingsPicker-DZtFKLQ5.js} +6 -5
- package/dist/{BindingsTable-C19Bm8d6.js → BindingsTable-BmQGLuJ4.js} +28 -24
- package/dist/{ClosingDraftView-DBFIR6Xv.js → ClosingDraftView-KLtlh31f.js} +184 -176
- package/dist/{ClosingHistoryView-BEZOwsPz.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
- package/dist/{ClosingTemplateView-COifu0I6.js → ClosingTemplateView-C_IiKnGx.js} +116 -98
- package/dist/{DeliveryOrderPrintPreview-lBFtH_Rm.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
- package/dist/FmDroppableField-J0xUsOTV.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BhhmWaOl.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
- package/dist/{FmMultiselectDialog-CBYvYJnE.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
- package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CLuceimk.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
- package/dist/{ImportView-DYNjmjys.js → ImportView-DRSoz0uM.js} +81 -74
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BXefPowE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
- package/dist/{IngredientGroupView-CNzK_dDv.js → IngredientGroupView-D5Laak2-.js} +73 -65
- package/dist/{IngredientsView-BnrA0ijB.js → IngredientsView-TG3fPQhR.js} +358 -345
- package/dist/{IntegrationView-DwcP5MgB.js → IntegrationView-CElpjyo7.js} +219 -209
- package/dist/{InventoryBindingForm-DeqdcXzm.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-FuPTxo7z.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
- package/dist/{InventoryBindingSummary-Dp0bshzL.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLvWaFvA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-tLW9bojI.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
- package/dist/{PublishView-CxIU1aI4.js → PublishView-CLMfiLjP.js} +26 -23
- package/dist/{PurchaseOrderPrintPreview-DWxp3cFM.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
- package/dist/{ReceiveRequestView-CF9ingct.js → ReceiveRequestView-BhD-NaHE.js} +324 -308
- package/dist/{RecipeView-B87vakmu.js → RecipeView-RWaO94w_.js} +73 -64
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
- package/dist/{StockView-XJY3690u.js → StockView-D5t8OxaG.js} +292 -282
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DY1iRl1F.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
- package/dist/{SupplierView-Y2NqnJ6-.js → SupplierView-DiospFKq.js} +92 -80
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-l0qRNa0W.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
- package/dist/{TransferTemplateView-DBlasHGY.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
- package/dist/{UnitView-C8z90hHr.js → UnitView-Banlxw7y.js} +70 -63
- package/dist/{WarehouseView-egtnCnzo.js → WarehouseView-BL-p5hbi.js} +123 -114
- package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-EpEEb8EO.js +64040 -0
- package/dist/app-rgirz_52.js +8024 -0
- package/dist/app.js +6 -6
- package/dist/closing-template-zIjwO1_E.js +117 -0
- package/dist/date2-Dnc8Y81g.js +116 -0
- package/dist/dayjs.min-TdUgzmww.js +282 -0
- package/dist/{decimal-CLM3HUsc.js → decimal-C6s3GvGb.js} +4 -3
- package/dist/defineDeepModel-BSaaXVBF.js +19 -0
- package/dist/duplicate-template-Bw0H416G.js +34 -0
- package/dist/feature-C95Hao53.js +20162 -0
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/format-time-from-id-DlbHo6kY.js +15 -0
- package/dist/{format-unit-display-BWoznxQp.js → format-unit-display-QBS54q0R.js} +308 -297
- package/dist/{import-export.helper-DgKnsYRB.js → import-export.helper-CUKCKtP7.js} +56 -52
- package/dist/index-CFn_9RMm.js +45 -0
- package/dist/{index-CK61uHgW.js → index-S9Ak__QC.js} +1 -1
- package/dist/{index-tMZSFG5r.js → index-goD-WGVb.js} +16 -14
- package/dist/lodash-gq8IrP4j.js +3678 -0
- package/dist/netsuite-CnhAKyAO.js +4316 -0
- package/dist/{purchase-order-template-D7dkJMqf.js → purchase-order-template-CBIpWdEW.js} +1 -1
- package/dist/router/shared.spec.d.ts +1 -0
- package/dist/row-action.enum-BcW_L_nE.js +67 -0
- package/dist/rules-DKklsaS1.js +201 -0
- package/dist/{stock-B3EEUmkF.js → stock-3K93Mif9.js} +1 -1
- package/dist/{stock-DYBHa0KN.js → stock-BW8fen3H.js} +11 -10
- package/dist/style.css +1 -1
- package/dist/{supplier-CY7Hj_a2.js → supplier-CObCSfot.js} +27 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dlv7Eowu.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
- package/dist/{use-inventory-binding-dialog-DOSfDQte.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
- package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -1
- package/dist/vue-i18n-CUznvVzc.js +2365 -0
- package/dist/xlsx-bT1p3YVR.js +24004 -0
- package/dist/xlsx.util-Cr9DpDFb.js +78 -0
- package/package.json +6 -6
- package/dist/app-B5p73NM9.js +0 -130949
package/dist/{use-ingredient-select-dialog-Dlv7Eowu.js → use-ingredient-select-dialog-DwvQiaVW.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineStore as y } from "pinia";
|
|
2
|
-
import { a as S
|
|
2
|
+
import { a as S } from "./app-EpEEb8EO.js";
|
|
3
|
+
import { a as b } from "./FmMultiselectDialog-BasrjBFA.js";
|
|
3
4
|
import { useDialog as A } from "@feedmepos/ui-library";
|
|
4
5
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
5
|
-
const
|
|
6
|
+
const B = y(
|
|
6
7
|
"ingredientSelectDialog",
|
|
7
8
|
function() {
|
|
8
9
|
const { t: s } = I(), n = S(), m = A();
|
|
@@ -47,5 +48,5 @@ const h = y(
|
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
B as u
|
|
51
52
|
};
|
package/dist/{use-inventory-binding-dialog-DOSfDQte.js → use-inventory-binding-dialog-CuLEHLDM.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as g } from "./FmMultiselectDialog-BasrjBFA.js";
|
|
2
|
+
import { a as P } from "./app-EpEEb8EO.js";
|
|
2
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
3
|
-
function
|
|
4
|
+
function A() {
|
|
4
5
|
const u = P(), _ = E();
|
|
5
6
|
async function b(e, m, s, f = []) {
|
|
6
7
|
var i, o;
|
|
@@ -147,5 +148,5 @@ function B() {
|
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
150
|
export {
|
|
150
|
-
|
|
151
|
+
A as u
|
|
151
152
|
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { a as h } from "./FmMultiselectDialog-BasrjBFA.js";
|
|
2
|
+
import { u as y } from "./app-EpEEb8EO.js";
|
|
3
|
+
import { useI18n as g } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as w, components as u } from "@feedmepos/ui-library";
|
|
5
|
+
import { computed as m, h as c } from "vue";
|
|
6
|
+
function k(s) {
|
|
7
|
+
const d = w(), n = y(), { t: i } = g();
|
|
8
|
+
function p() {
|
|
9
|
+
var r;
|
|
10
|
+
const a = s.getLocations() ?? [], o = n.locationById, t = a.filter((e) => !o[e.doc._id]);
|
|
11
|
+
d.open({
|
|
12
|
+
title: "Select at least one location",
|
|
13
|
+
contentComponent: c(
|
|
14
|
+
h,
|
|
15
|
+
{
|
|
16
|
+
modelValue: ((r = b.value) == null ? void 0 : r.map((e) => e.doc._id)) ?? [],
|
|
17
|
+
items: n.locations.map((e) => ({
|
|
18
|
+
label: e.name,
|
|
19
|
+
sublabel: e.type,
|
|
20
|
+
value: e.doc._id
|
|
21
|
+
}))
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
appendList() {
|
|
25
|
+
return t.map(
|
|
26
|
+
(e) => c(
|
|
27
|
+
u.FmListItem,
|
|
28
|
+
{
|
|
29
|
+
label: e.name,
|
|
30
|
+
sublabel: "This location is not manageable by your account.",
|
|
31
|
+
disabled: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
prepend: c(u.FmCheckbox, {
|
|
35
|
+
modelValue: !0,
|
|
36
|
+
value: "",
|
|
37
|
+
disabled: !0
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
contentComponentProps: {},
|
|
46
|
+
primaryActions: {
|
|
47
|
+
text: i("common.confirm"),
|
|
48
|
+
close: !0
|
|
49
|
+
},
|
|
50
|
+
secondaryActions: {
|
|
51
|
+
text: i("common.close"),
|
|
52
|
+
close: !0
|
|
53
|
+
}
|
|
54
|
+
}).onPrimary((e) => {
|
|
55
|
+
const l = [...n.locations.filter((L) => e.includes(L.doc._id)), ...t];
|
|
56
|
+
l.length ? s.setLocations(l) : s.setLocations(null);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const b = m(() => {
|
|
60
|
+
var o;
|
|
61
|
+
const a = /* @__PURE__ */ new Set([...n.locations.map((t) => t.doc._id)]);
|
|
62
|
+
return (o = s.getLocations()) == null ? void 0 : o.filter((t) => a.has(t.doc._id));
|
|
63
|
+
}), f = m(() => {
|
|
64
|
+
const a = s.getLocations();
|
|
65
|
+
return a ? a.reduce(
|
|
66
|
+
(o, t) => {
|
|
67
|
+
switch (t.type) {
|
|
68
|
+
case "restaurant": {
|
|
69
|
+
o[0].restaurants += 1;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
case "warehouse": {
|
|
73
|
+
o[0].warehouses += 1;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return o[0][t.type] += 1, o;
|
|
78
|
+
},
|
|
79
|
+
[
|
|
80
|
+
{
|
|
81
|
+
restaurants: 0,
|
|
82
|
+
warehouses: 0
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
) : [
|
|
86
|
+
{
|
|
87
|
+
restaurants: "All",
|
|
88
|
+
warehouses: "All"
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
});
|
|
92
|
+
return {
|
|
93
|
+
promptSelectLocations: p,
|
|
94
|
+
columnDefs: [
|
|
95
|
+
{
|
|
96
|
+
accessorKey: "restaurants",
|
|
97
|
+
header: () => "Restaurants",
|
|
98
|
+
enableSorting: !1
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
accessorKey: "warehouses",
|
|
102
|
+
header: () => "Warehouses",
|
|
103
|
+
enableSorting: !1
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
rowData: f
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
k as u
|
|
111
|
+
};
|
|
@@ -1408,4 +1408,4 @@ export declare const useWastageTemplateTable: import("pinia").StoreDefinition<"w
|
|
|
1408
1408
|
loading: import("vue").Ref<boolean, boolean>;
|
|
1409
1409
|
fetchTemplates: () => Promise<void>;
|
|
1410
1410
|
loadTemplate: (templateId: string) => Promise<void>;
|
|
1411
|
-
}, "
|
|
1411
|
+
}, "fetchTemplates" | "loadTemplate" | "isReasonPublished">>;
|
|
@@ -2138,5 +2138,5 @@ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<
|
|
|
2138
2138
|
'onUpdate:show'?: ((show: boolean) => void) | undefined;
|
|
2139
2139
|
'onAction:edit'?: (() => void) | undefined;
|
|
2140
2140
|
}>;
|
|
2141
|
-
}, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "duplicateTemplate" | "exportTemplates" | "
|
|
2141
|
+
}, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate" | "duplicateTemplate" | "exportTemplates" | "exportSingleTemplate" | "importTemplates">>;
|
|
2142
2142
|
export {};
|