@feedmepos/mf-inventory-portal 1.6.0-dev.3 → 1.6.0-dev.4
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-B3v9TpYf.js → App-xiS9XCUg.js} +4 -4
- package/dist/{ApprovalView-CgSWBqGL.js → ApprovalView-Co4xloBe.js} +19 -19
- package/dist/{BindingsDialog-cuVJk-j1.js → BindingsDialog-Ch1xgZ7D.js} +2 -2
- package/dist/{BindingsPicker-BWExdi2i.js → BindingsPicker-BSNOsgIa.js} +2 -2
- package/dist/{BindingsTable-D_ownrD8.js → BindingsTable-CvoKDM69.js} +3 -3
- package/dist/{ClosingDraftView-CH4rRSa8.js → ClosingDraftView-Chy_R-c9.js} +15 -15
- package/dist/{ClosingHistoryView-DyJTTeuN.js → ClosingHistoryView-DQUYXIe5.js} +86 -85
- package/dist/{ClosingTemplateView-CCaWrZM0.js → ClosingTemplateView-yi3O0zya.js} +14 -14
- package/dist/{DefaultView-CkzStvXF.js → DefaultView-w0Bc0QUo.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DqAr5x53.js → DeliveryOrderPrintPreview-BzO9UcbC.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DqWyCa9E.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DYzIZpMo.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CmwbIlrp.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js} +2 -2
- package/dist/{FmMultiselectDialog-CBueAqXa.js → FmMultiselectDialog-8k_CySos.js} +1 -1
- package/dist/{FmMultiselectDialog-BjfL7tS_.js → FmMultiselectDialog-C6MHEYsa.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DsnnH-Eg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-cf1asT1H.js} +5 -5
- package/dist/{ImportView-CdCmecqs.js → ImportView-Z8N8eFi0.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFFEOf1r.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BabrzvVA.js} +1 -1
- package/dist/{IngredientGroupView-DredICtA.js → IngredientGroupView-CNl676Lh.js} +5 -5
- package/dist/{IngredientsView-NVqf1Uz2.js → IngredientsView-6zB8OUXt.js} +15 -15
- package/dist/{IntegrationExplorerView-acIvemxd.js → IntegrationExplorerView-C27IyImO.js} +5 -5
- package/dist/{IntegrationView-D1WQQ77d.js → IntegrationView-pDisxkqH.js} +13 -13
- package/dist/{InventoryBindingForm-Co-HFgPC.js → InventoryBindingForm-cJUY8472.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-31S9IWT-.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-_mIak9Y4.js} +5 -5
- package/dist/{InventoryBindingSummary-ClGakACk.js → InventoryBindingSummary-DiOokH9o.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DxLGZccU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXBvvJc9.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-By84L9BE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D1JFU868.js} +1 -1
- package/dist/{PublishView-B4KiryRp.js → PublishView-CthOIZV3.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-B3ckpYGo.js → PurchaseOrderPrintPreview-CR8pm2bB.js} +11 -11
- package/dist/{ReceiveRequestView-DB3KxepY.js → ReceiveRequestView-DgqABsfx.js} +26 -26
- package/dist/{RecipeView-ORGkuz7s.js → RecipeView-062Vcx0q.js} +1117 -1104
- package/dist/{SettingsView-CUQSQm5t.js → SettingsView-B36YQEUM.js} +4 -4
- package/dist/{StockView-C5DLGTFB.js → StockView-8orJpsPH.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D4tr-_r3.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bw-GxZr8.js} +1 -1
- package/dist/{SupplierView-CzV2uwQ_.js → SupplierView-CQi9bh5A.js} +12 -12
- package/dist/{SurchargeView-BKpiD5X3.js → SurchargeView-BgxF6xyH.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-h348d7Qr.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbY1p0bB.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CByUj6Dr.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMvxm3x.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DwxqJzCI.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtCPS8FC.js} +122 -122
- package/dist/{TransferTemplateView-BwYxJPuG.js → TransferTemplateView-92Xn4mWr.js} +20 -20
- package/dist/{UnitCostHistoryView-x-D5SPvy.js → UnitCostHistoryView-cTI5jhBt.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-_ikjQCiI.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-bjr08iok.js} +5 -5
- package/dist/{UnitView-BxzrlOf8.js → UnitView-BqXvkdiR.js} +7 -7
- package/dist/{WarehouseView-CF8LFmX6.js → WarehouseView-_2zJPaTf.js} +5 -5
- package/dist/WastageTemplateView-DYW58rtZ.js +2381 -0
- package/dist/{app-RZOZE_aq.js → app-B790gOK1.js} +3456 -3346
- package/dist/app.js +1 -1
- package/dist/{closing-template-DFky3nsj.js → closing-template-0jLV_s0d.js} +1 -1
- package/dist/{date2-Zd8s0WJZ.js → date2-BEmmexd8.js} +1 -1
- package/dist/{dayjs.min-DOheFX-N.js → dayjs.min-e4Xq09pW.js} +20 -20
- package/dist/{decimal-DZV54_-d.js → decimal-Lptt-Wz-.js} +2 -2
- package/dist/{defineDeepModel-BafL7HGh.js → defineDeepModel-emCSlL_h.js} +1 -1
- package/dist/{duplicate-template-CIRGg8u0.js → duplicate-template-CShJdJ8d.js} +1 -1
- package/dist/{feature-DmUfahWi.js → feature-BFFJbkBm.js} +2 -2
- package/dist/{format-time-from-id-Cvs-pvTQ.js → format-time-from-id-Dj-j01eE.js} +1 -1
- package/dist/{format-unit-display-Ct52pQhg.js → format-unit-display-CJw32VBR.js} +12 -12
- package/dist/{import-export.helper-GpHiQgfL.js → import-export.helper-C07viLOs.js} +6 -6
- package/dist/{index-DvS3EsKX.js → index-B0mYVcHF.js} +1 -1
- package/dist/{index-BPWYA9rA.js → index-DJZQrFf7.js} +1 -1
- package/dist/{index-COtZ_830.js → index-TBsXDgch.js} +3 -3
- package/dist/{inventory-core-dart.default-C5GRQNbz.js → inventory-core-dart.default-BieljiaS.js} +1 -1
- package/dist/{lz-string-CgJEBSwK.js → lz-string-Co3f7xQi.js} +1 -1
- package/dist/{netsuite-CFJ5LqxE.js → netsuite-BMQZw2dt.js} +2 -2
- package/dist/{number-CrRJAm--.js → number-Czc4vu4K.js} +3 -3
- package/dist/{predefined-templates-DbVYBwXg.js → predefined-templates-BVHsFJHC.js} +1 -1
- package/dist/{purchase-order-template-D5_LechD.js → purchase-order-template-CMDl8eio.js} +1 -1
- package/dist/{recalculationUtils-CzTUnNuq.js → recalculationUtils-BZoPTIoG.js} +1 -1
- package/dist/{rules-Dt7qmGku.js → rules-DuDYwy_d.js} +2 -2
- package/dist/{stock-DTT_yVJQ.js → stock-DkLzKOLk.js} +1 -1
- package/dist/{supplier-BhoskXN1.js → supplier-Dk3xHNeA.js} +2 -2
- package/dist/{surcharge-B-cEnplc.js → surcharge-CUNMAeS3.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BF3BTv8-.js → uom-rules-DtG5eCqQ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-UTaeFSL4.js → use-ingredient-select-dialog-CkNu7fD6.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BMZNPgya.js → use-inventory-binding-dialog-Cnc65VQI.js} +2 -2
- package/dist/use-template-enabled-locations-CRF0AM-M.js +146 -0
- package/dist/{use-transfer-locations-BDcd3S0e.js → use-transfer-locations-cX4FfzNZ.js} +7 -7
- package/dist/{useHrmPermission-BSvhHnzz.js → useHrmPermission-CmJd4Bup.js} +1 -1
- package/dist/{useNavigationMenu-Cu1Ml6QH.js → useNavigationMenu-BQZghwYI.js} +2 -2
- package/dist/{useSseClient-B9ljCmxo.js → useSseClient-C3PTrM-h.js} +12 -12
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +12 -0
- package/dist/views/adjustment-template/wastage-template/helpers.d.ts +33 -0
- package/dist/views/adjustment-template/wastage-template/helpers.spec.d.ts +1 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +12 -0
- package/dist/{vue-i18n-cA5Vobl3.js → vue-i18n-1noprZJM.js} +293 -293
- package/dist/{xlsx-B6U9iwtM.js → xlsx-i55Kt0AR.js} +1 -1
- package/dist/{xlsx.util-C0rDXf6J.js → xlsx.util-jC5etKar.js} +3 -3
- package/package.json +2 -2
- package/dist/WastageTemplateView-t-Mdjn7D.js +0 -2327
- package/dist/use-template-enabled-locations-BTyUgLYB.js +0 -132
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-BjfL7tS_.js";
|
|
2
|
-
import { u as S } from "./app-RZOZE_aq.js";
|
|
3
|
-
import { useI18n as v, useCoreStore as d, useCustomAttributes as w } from "@feedmepos/mf-common";
|
|
4
|
-
import { useDialog as _, components as m } from "@feedmepos/ui-library";
|
|
5
|
-
import { computed as r, h as c } from "vue";
|
|
6
|
-
function F(a) {
|
|
7
|
-
const p = _(), n = S(), { t: i } = v(), b = r(() => d().restaurants.value.reduce((e, o) => (e[o._id] = o.customAttributes || {}, e), {})), { attributes: f } = w({
|
|
8
|
-
valueSource: d().restaurants,
|
|
9
|
-
entity: "restaurant"
|
|
10
|
-
});
|
|
11
|
-
function y() {
|
|
12
|
-
var u;
|
|
13
|
-
const s = a.getLocations() ?? [], e = n.locationById, o = s.filter((t) => !e[t.doc._id]);
|
|
14
|
-
p.open({
|
|
15
|
-
title: "Select at least one location",
|
|
16
|
-
contentComponent: c(
|
|
17
|
-
A,
|
|
18
|
-
{
|
|
19
|
-
modelValue: ((u = L.value) == null ? void 0 : u.map((t) => t.doc._id)) ?? [],
|
|
20
|
-
items: n.locations.map((t) => ({
|
|
21
|
-
label: `${t.name}(${t.doc.profile.code ?? "--"})`,
|
|
22
|
-
sublabel: t.type,
|
|
23
|
-
value: t.doc._id,
|
|
24
|
-
customAttributes: {
|
|
25
|
-
...b.value[t.doc._id],
|
|
26
|
-
state: t.doc.profile.address.state
|
|
27
|
-
}
|
|
28
|
-
})),
|
|
29
|
-
filterAttributes: [
|
|
30
|
-
...f.value,
|
|
31
|
-
{
|
|
32
|
-
type: "string",
|
|
33
|
-
key: "state",
|
|
34
|
-
entity: "location",
|
|
35
|
-
values: [
|
|
36
|
-
...new Set(
|
|
37
|
-
n.locations.map((t) => t.doc.profile.address.state).filter(Boolean)
|
|
38
|
-
)
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
attributeKey: "customAttributes"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
appendList() {
|
|
46
|
-
return o.map(
|
|
47
|
-
(t) => c(
|
|
48
|
-
m.FmListItem,
|
|
49
|
-
{
|
|
50
|
-
label: `${t.name}(${t.doc.profile.code ?? "--"})`,
|
|
51
|
-
sublabel: "This location is not manageable by your account.",
|
|
52
|
-
disabled: !0
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
prepend: c(m.FmCheckbox, {
|
|
56
|
-
modelValue: !0,
|
|
57
|
-
value: "",
|
|
58
|
-
disabled: !0
|
|
59
|
-
})
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
contentComponentProps: {},
|
|
67
|
-
primaryActions: {
|
|
68
|
-
text: i("common.confirm"),
|
|
69
|
-
close: !0
|
|
70
|
-
},
|
|
71
|
-
secondaryActions: {
|
|
72
|
-
text: i("common.close"),
|
|
73
|
-
close: !0
|
|
74
|
-
}
|
|
75
|
-
}).onPrimary((t) => {
|
|
76
|
-
const l = [...n.locations.filter((g) => t.includes(g.doc._id)), ...o];
|
|
77
|
-
l.length ? a.setLocations(l) : a.setLocations(null);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
const L = r(() => {
|
|
81
|
-
var e;
|
|
82
|
-
const s = /* @__PURE__ */ new Set([...n.locations.map((o) => o.doc._id)]);
|
|
83
|
-
return (e = a.getLocations()) == null ? void 0 : e.filter((o) => s.has(o.doc._id));
|
|
84
|
-
}), h = r(() => {
|
|
85
|
-
const s = a.getLocations();
|
|
86
|
-
return s ? s.reduce(
|
|
87
|
-
(e, o) => {
|
|
88
|
-
switch (o.type) {
|
|
89
|
-
case "restaurant": {
|
|
90
|
-
e[0].restaurants += 1;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
case "warehouse": {
|
|
94
|
-
e[0].warehouses += 1;
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return e[0][o.type] += 1, e;
|
|
99
|
-
},
|
|
100
|
-
[
|
|
101
|
-
{
|
|
102
|
-
restaurants: 0,
|
|
103
|
-
warehouses: 0
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
) : [
|
|
107
|
-
{
|
|
108
|
-
restaurants: "All",
|
|
109
|
-
warehouses: "All"
|
|
110
|
-
}
|
|
111
|
-
];
|
|
112
|
-
});
|
|
113
|
-
return {
|
|
114
|
-
promptSelectLocations: y,
|
|
115
|
-
columnDefs: [
|
|
116
|
-
{
|
|
117
|
-
accessorKey: "restaurants",
|
|
118
|
-
header: () => "Restaurants",
|
|
119
|
-
enableSorting: !1
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
accessorKey: "warehouses",
|
|
123
|
-
header: () => "Warehouses",
|
|
124
|
-
enableSorting: !1
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
rowData: h
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
export {
|
|
131
|
-
F as u
|
|
132
|
-
};
|