@feedmepos/mf-report 5.28.5-beta.0 → 5.28.5
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-DGKt1n7o.js → App-Bc8Mp5vR.js} +37 -37
- package/dist/{DateRangeSelect-Y_Nn-osm.js → DateRangeSelect-cbSEHMzW.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BlXGP4t_.js → Default.vue_vue_type_script_setup_true_lang-BpJFA_ET.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CEjHfVNa.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Dx-cxJP6.js} +5 -5
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DAZLziOO.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cxrti7_L.js} +19 -16
- package/dist/{InsightView-BriTcgPJ.js → InsightView-Bo0Fb5QG.js} +5 -5
- package/dist/{Integration-D5ms6fn1.js → Integration-B4tC2MlL.js} +3 -3
- package/dist/{Integrations-DQvYF26T.js → Integrations-RB8iuvdJ.js} +2 -2
- package/dist/{Layout-BBLVmRJi.js → Layout-DBCPtUH7.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-S5P6mT78.js → LocationSelect.vue_vue_type_script_setup_true_lang-w2H9qOgJ.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DvwbNmby.js → MenuTab.vue_vue_type_script_setup_true_lang-BLVGUSWf.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BvYT2Izx.js → NavigationTab.vue_vue_type_script_setup_true_lang-N31ee-oZ.js} +5 -5
- package/dist/{OverviewView-CCboDE2n.js → OverviewView-WKe6Zxe1.js} +4 -4
- package/dist/{Report-DeLOcjgU.js → Report-Di6GyP1r.js} +246 -244
- package/dist/{ReportCanvasView-DGwF-pyG.js → ReportCanvasView-Dg2ItHBO.js} +3 -3
- package/dist/{ReportEditor-ZoXssGrp.js → ReportEditor-BfNmiEVn.js} +7 -7
- package/dist/{ReportView-CPmqBn6n.js → ReportView-JWJ-6FCu.js} +6 -6
- package/dist/{ReportViewRoute-Ddd_509O.js → ReportViewRoute-BMjjJqN2.js} +2 -2
- package/dist/{Setting-DSnAtGwo.js → Setting-D13NIemB.js} +3 -3
- package/dist/{Template-iqP8PeTT.js → Template-D16bqzrx.js} +3 -3
- package/dist/{TileEditor-Dyk5r6FN.js → TileEditor-1Sn9ZSb2.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CLBcYijT.js → TilePageStack.vue_vue_type_script_setup_true_lang-BOXsV7-r.js} +2 -2
- package/dist/{TransitionFade-DUNn6p37.js → TransitionFade-DwJkmMTb.js} +5 -5
- package/dist/{app-D_8mXWLj.js → app-CVBllEjW.js} +17 -13
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-DYtOUTAT.js → formatChartData.worker-DZp5dSDQ.js} +45 -41
- package/dist/assets/{processTableData.worker-XtLK-E3T.js → processTableData.worker-Kyuhw4lS.js} +45 -41
- package/dist/{report-C_upEzzb.js → report-Cn4Ik1zm.js} +1 -1
- package/dist/{useRestaurantPermission-Qu5NXD3o.js → useRestaurantPermission-C8bLPfk8.js} +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as me, resolveComponent as
|
|
2
|
-
import { detectLocale as j, useCoreStore as
|
|
3
|
-
import { d as q, u as Qe, a as ie, b as Ue, c as ce, e as je, f as
|
|
1
|
+
import { defineComponent as me, resolveComponent as X, createBlock as pe, openBlock as A, unref as u, isRef as Fe, withCtx as W, createElementVNode as oe, createVNode as Y, toDisplayString as ae, createTextVNode as Ne, onMounted as fe, watch as C, ref as U, computed as se, onBeforeMount as $e, onBeforeUnmount as xe, createElementBlock as H, Fragment as Je } from "vue";
|
|
2
|
+
import { detectLocale as j, useCoreStore as V } from "@feedmepos/mf-common";
|
|
3
|
+
import { d as q, u as Qe, a as ie, b as Ue, c as ce, e as je, f as Pe, g as de } from "./app-CVBllEjW.js";
|
|
4
4
|
import { storeToRefs as k } from "pinia";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as He, _ as
|
|
5
|
+
import { u as Ge } from "./global-loader-BuxFfehu.js";
|
|
6
|
+
import { u as Ke, a as We } from "./report-Cn4Ik1zm.js";
|
|
7
|
+
import { u as He, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-N31ee-oZ.js";
|
|
8
8
|
import { u as ue } from "./message-dialog-UoMWOnil.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as Xe } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
10
|
import { useRoute as Ye, useRouter as Ze } from "vue-router";
|
|
11
11
|
const Me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, et = /* @__PURE__ */ me({
|
|
12
12
|
__name: "Dialog",
|
|
13
13
|
setup(T) {
|
|
14
|
-
const { t: c } =
|
|
14
|
+
const { t: c } = Xe(), f = ue(), { isOpened: g, message: R, title: L } = k(ue());
|
|
15
15
|
return (O, _) => {
|
|
16
|
-
const z =
|
|
17
|
-
return A(), pe(
|
|
16
|
+
const z = X("FmButton"), P = X("FmDialog");
|
|
17
|
+
return A(), pe(P, {
|
|
18
18
|
modelValue: u(g),
|
|
19
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
19
|
+
"onUpdate:modelValue": _[0] || (_[0] = (G) => Fe(g) ? g.value = G : null),
|
|
20
20
|
overlay: "",
|
|
21
21
|
"close-button": !1,
|
|
22
22
|
"z-index": 3e3
|
|
23
23
|
}, {
|
|
24
|
-
"dialog-header":
|
|
25
|
-
|
|
24
|
+
"dialog-header": W(() => [
|
|
25
|
+
Ne(ae(u(L)), 1)
|
|
26
26
|
]),
|
|
27
|
-
default:
|
|
27
|
+
default: W(() => [
|
|
28
28
|
oe("p", Me, ae(u(R)), 1)
|
|
29
29
|
]),
|
|
30
|
-
"dialog-footer":
|
|
30
|
+
"dialog-footer": W(() => [
|
|
31
31
|
_[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
|
|
32
32
|
Y(z, {
|
|
33
33
|
label: u(c)("report.common.cancel"),
|
|
@@ -65,13 +65,13 @@ q.locale(j() === "zh-CN" ? "zh-cn" : "en");
|
|
|
65
65
|
const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
66
66
|
__name: "App",
|
|
67
67
|
setup(T) {
|
|
68
|
-
const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } =
|
|
68
|
+
const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } = V(), {
|
|
69
69
|
getRestaurantAndWarehouse: z,
|
|
70
|
-
getBusinessSetting:
|
|
71
|
-
beginBusinessLoad:
|
|
70
|
+
getBusinessSetting: P,
|
|
71
|
+
beginBusinessLoad: G,
|
|
72
72
|
completeBusinessLoad: ge,
|
|
73
73
|
resetTimezoneContext: ye
|
|
74
|
-
} = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } =
|
|
74
|
+
} = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } = Ge(), n = Ye(), B = Ze(), E = Ke(), Z = He(), a = ie(), F = ce(), { suppressReportRouteSync: N } = k(F), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = E, { currentReportId: Le, reports: Ee } = k(E), { getSchema: be } = We(), { fetchSchedules: we } = Z, { init: Ae } = Pe(), K = U("v5"), $ = U(!1), x = U(!0), Ce = se(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${g.value}&token=${f.value}&reportV3Button=true`);
|
|
75
75
|
C(
|
|
76
76
|
[() => L.value, () => R.value, () => O.value],
|
|
77
77
|
() => {
|
|
@@ -94,17 +94,17 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
94
94
|
if (typeof t.data == "string")
|
|
95
95
|
try {
|
|
96
96
|
const e = JSON.parse(t.data);
|
|
97
|
-
(e == null ? void 0 : e.v5) === !0 ? y.value =
|
|
97
|
+
(e == null ? void 0 : e.v5) === !0 ? y.value = K.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
|
|
98
98
|
} catch (e) {
|
|
99
99
|
console.error(e);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
C(y, () => {
|
|
103
|
-
["v3", "v4"].includes(y.value) ?
|
|
103
|
+
["v3", "v4"].includes(y.value) ? V().hideSidebarToggle(!0) : V().hideSidebarToggle(!1);
|
|
104
104
|
}), $e(() => {
|
|
105
|
-
_(
|
|
105
|
+
_(Ve);
|
|
106
106
|
}), fe(() => {
|
|
107
|
-
console.log("5.28.5
|
|
107
|
+
console.log("5.28.5", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
108
108
|
}), xe(() => {
|
|
109
109
|
window.removeEventListener("message", ee), window.removeEventListener("message", te), E.$dispose(), Z.$dispose();
|
|
110
110
|
});
|
|
@@ -168,7 +168,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
168
168
|
}
|
|
169
169
|
if (!Q) {
|
|
170
170
|
const s = a.selectedLocationIds;
|
|
171
|
-
s.length === p.length && s.every((ze,
|
|
171
|
+
s.length === p.length && s.every((ze, Be) => ze === p[Be]) || a.setSelectedLocationIds(p);
|
|
172
172
|
}
|
|
173
173
|
return {
|
|
174
174
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -187,7 +187,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
187
187
|
() => c.value,
|
|
188
188
|
async (t, e) => {
|
|
189
189
|
if (t !== "") {
|
|
190
|
-
$.value = !1,
|
|
190
|
+
$.value = !1, G(t);
|
|
191
191
|
const r = "mf-report-prev-business-id", o = (() => {
|
|
192
192
|
try {
|
|
193
193
|
return sessionStorage.getItem(r);
|
|
@@ -211,27 +211,27 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
211
211
|
i = {
|
|
212
212
|
...p,
|
|
213
213
|
isAllLocation: "true"
|
|
214
|
-
}, v = !0, await
|
|
214
|
+
}, v = !0, await B.replace({
|
|
215
215
|
name: n.name,
|
|
216
216
|
params: n.params,
|
|
217
217
|
query: i
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
N.value !== void 0 && (N.value = !0), await he(async () => {
|
|
221
221
|
await Ae({
|
|
222
|
-
apiKey: "
|
|
222
|
+
apiKey: "6GhcttsJ9Rj9cTevcdrpin",
|
|
223
223
|
url: "https://flag.feedme.farm/api/v1/",
|
|
224
224
|
enableAnalytics: !1,
|
|
225
225
|
cacheFlags: !1
|
|
226
226
|
});
|
|
227
227
|
const S = await Re();
|
|
228
|
-
|
|
228
|
+
K.value = S.version, y.value = K.value, await Se(), n.name === "template" && !F.canAccessTemplate() && await B.replace({
|
|
229
229
|
name: "reports",
|
|
230
230
|
query: n.query
|
|
231
231
|
});
|
|
232
|
-
const D =
|
|
232
|
+
const D = F.canAccess(
|
|
233
233
|
de.report_accessOverview
|
|
234
|
-
), b =
|
|
234
|
+
), b = F.canAccess(
|
|
235
235
|
de.report_accessIntegration
|
|
236
236
|
), h = [
|
|
237
237
|
be(),
|
|
@@ -244,7 +244,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
244
244
|
})()
|
|
245
245
|
)
|
|
246
246
|
];
|
|
247
|
-
if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await
|
|
247
|
+
if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await P(), Te(i), v) {
|
|
248
248
|
const {
|
|
249
249
|
locationIds: m,
|
|
250
250
|
startDate: w,
|
|
@@ -255,7 +255,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
255
255
|
compareEndDate: s,
|
|
256
256
|
...re
|
|
257
257
|
} = n.query;
|
|
258
|
-
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await
|
|
258
|
+
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await B.replace({
|
|
259
259
|
name: n.name,
|
|
260
260
|
params: n.params,
|
|
261
261
|
query: {
|
|
@@ -286,8 +286,8 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
286
286
|
}),
|
|
287
287
|
(t) => {
|
|
288
288
|
if (!$.value || !t.reportId || x.value) return;
|
|
289
|
-
if (
|
|
290
|
-
|
|
289
|
+
if (N.value) {
|
|
290
|
+
N.value = !1;
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
const e = t.selectedLocationIds, r = t.dateRange, o = t.timeRange, d = t.compareDateRange, i = {
|
|
@@ -306,7 +306,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
306
306
|
}, v = e.length === a.locations.length;
|
|
307
307
|
i.isAllLocation = String(v), v ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
308
308
|
const S = JSON.stringify(n.query), D = JSON.stringify(i);
|
|
309
|
-
S !== D &&
|
|
309
|
+
S !== D && B.replace({
|
|
310
310
|
name: n.name,
|
|
311
311
|
params: n.params,
|
|
312
312
|
query: i
|
|
@@ -314,7 +314,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
314
314
|
},
|
|
315
315
|
{ deep: !0 }
|
|
316
316
|
), tt(), (t, e) => {
|
|
317
|
-
const r =
|
|
317
|
+
const r = X("router-view");
|
|
318
318
|
return A(), H(Je, null, [
|
|
319
319
|
Y(et),
|
|
320
320
|
u(y) === "v3" ? (A(), H("iframe", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as te, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as ce, withCtx as U, createCommentVNode as E, createElementVNode as I, toDisplayString as me, renderSlot as fe, mergeModels as K, useModel as z, ref as O, computed as L, watch as M, nextTick as J, onMounted as De, onBeforeUnmount as ye, createElementBlock as pe, unref as Y, createVNode as Q } from "vue";
|
|
2
|
-
import { d as u, a as ge, C as P, j as ve } from "./app-
|
|
2
|
+
import { d as u, a as ge, C as P, j as ve } from "./app-CVBllEjW.js";
|
|
3
3
|
import { detectLocale as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as he, _ as Ce } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
5
5
|
import { storeToRefs as be } from "pinia";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-N31ee-oZ.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as q } from "./global-loader-BuxFfehu.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as c, defineComponent as $e, ref as S, watch as De, onMounted as Et, onBeforeUnmount as Oo, resolveComponent as ye, createBlock as ve, openBlock as Y, Transition as za, withCtx as Ae, createElementBlock as pe, createCommentVNode as Ce, createElementVNode as Q, unref as l, normalizeStyle as Fe, withModifiers as bn, toDisplayString as Pe, createVNode as be, Fragment as Ke, renderList as _t, normalizeClass as Re, nextTick as Uo, mergeModels as tt, useModel as nt, renderSlot as ft, h as mn, createSlots as Ha, resolveDynamicComponent as Ko, markRaw as bo, toRaw as Wa, createTextVNode as Oa, onUnmounted as Yo, provide as Ua, inject as Ka, withDirectives as Ya, vShow as Xa } from "vue";
|
|
2
|
-
import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { V as Cn, a as wn, u as Eo, W as qa } from "./app-
|
|
4
|
-
import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-
|
|
5
|
-
import { d as On } from "./DateRangeSelect-
|
|
2
|
+
import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cxrti7_L.js";
|
|
3
|
+
import { V as Cn, a as wn, u as Eo, W as qa } from "./app-CVBllEjW.js";
|
|
4
|
+
import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-Cn4Ik1zm.js";
|
|
5
|
+
import { d as On } from "./DateRangeSelect-cbSEHMzW.js";
|
|
6
6
|
import { storeToRefs as Yt } from "pinia";
|
|
7
7
|
import { detectLocale as Qn } from "@feedmepos/mf-common";
|
|
8
8
|
import { C as Un } from "./chart-DDDh8zNk.js";
|
|
@@ -3212,7 +3212,7 @@ function rs(e, t) {
|
|
|
3212
3212
|
const n = ye("FmMenuDivider");
|
|
3213
3213
|
return Y(), ve(n);
|
|
3214
3214
|
}
|
|
3215
|
-
const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-
|
|
3215
|
+
const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-Kyuhw4lS.js", is = { class: "flex h-full flex-col" }, us = { class: "my-4 shrink-0" }, cs = {
|
|
3216
3216
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3217
3217
|
style: { backgroundColor: "#f9f9f9" }
|
|
3218
3218
|
}, ds = { class: "font-bold" }, fs = { class: "text-fm-color-neutral-gray-300" }, ms = /* @__PURE__ */ $e({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as S1, computed as g1, defineComponent as Jt, mergeModels as nt, useModel as Rt, watch as Z1, resolveComponent as e1, createElementBlock as O1, openBlock as j0, createVNode as J0, withCtx as l1, createElementVNode as Y0, createCommentVNode as Ct, Fragment as pe, renderList as Wt, createBlock as F1, unref as g0, createTextVNode as at, withDirectives as la, toDisplayString as f1, vShow as pa, renderSlot as Pr, normalizeStyle as ca, normalizeClass as fr, withModifiers as mt } from "vue";
|
|
2
|
-
import { c as Jr, _ as Hr, D as Ma, e as ba } from "./DateRangeSelect-
|
|
3
|
-
import { $ as _a, Y as da, d as F0, u as G1, c as Be, a as de, F as V1, X as Ht, r as ne, g as za, h as Aa } from "./app-
|
|
4
|
-
import { b as H0, C as k0, Q as Ke, u as ze, o as oe, p as Ce, D as D1, a as Oa, x as yr, W as $r, A as Da, S as mr } from "./report-
|
|
2
|
+
import { c as Jr, _ as Hr, D as Ma, e as ba } from "./DateRangeSelect-cbSEHMzW.js";
|
|
3
|
+
import { $ as _a, Y as da, d as F0, u as G1, c as Be, a as de, F as V1, X as Ht, r as ne, g as za, h as Aa } from "./app-CVBllEjW.js";
|
|
4
|
+
import { b as H0, C as k0, Q as Ke, u as ze, o as oe, p as Ce, D as D1, a as Oa, x as yr, W as $r, A as Da, S as mr } from "./report-Cn4Ik1zm.js";
|
|
5
5
|
import { defineStore as Xr, storeToRefs as o1 } from "pinia";
|
|
6
6
|
import { detectLocale as te } from "@feedmepos/mf-common";
|
|
7
7
|
import { u as kr } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
@@ -9179,7 +9179,7 @@ Arguments: [` + c + "]";
|
|
|
9179
9179
|
}, t.discountSchema_closure.prototype = {
|
|
9180
9180
|
call$1(r) {
|
|
9181
9181
|
var e = null;
|
|
9182
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", "billCompletedAt", e, e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", "isRefund", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", e, e, r), t.Field_Field$string("Discount amount/percentage or payment method. eg, -10%, -5, PAYMENT VOUCHER.", e, !1, !1, !1, "Name", "name", e, e, r), t.Field_Field$string(R.discout, e, !1, !1, !1, "Cause", "cause", e, e, r), t.Field_Field$string(R.discoun, e, !1, !1, !1, "Reason", "reason", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Discount user", "createdByName", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Discount approver", "approvedByName", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Qty", "quantity", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Total", "total", e, e, r), t.Field_Field$string("Adjusted item name, 'BILL' for bill-level discounts, or 'PAYMENT' for payment vouchers.", e, !1, !1, !1, "Target", "target", e, e, r)], z.JSArray_Field);
|
|
9182
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", "billCompletedAt", e, e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", "isRefund", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", e, e, r), t.Field_Field$string("Discount amount/percentage or payment method. eg, -10%, -5, PAYMENT VOUCHER.", e, !1, !1, !1, "Name", "name", e, e, r), t.Field_Field$string(R.discout, e, !1, !1, !1, "Cause", "cause", e, e, r), t.Field_Field$string(R.discoun, e, !1, !1, !1, "Reason", "reason", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Discount user", "createdByName", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Discount approver", "approvedByName", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Qty", "quantity", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Total", "total", e, e, r), t.Field_Field$string("Adjusted item name, 'BILL' for bill-level discounts, or 'PAYMENT' for payment vouchers.", e, !1, !1, !1, "Target", "target", e, e, r), t.Field_Field$string("Collectible collection id: bill effect returnId, or the payment voucher reference.", e, !1, !1, !1, "Return ID", "returnId", e, e, r), t.Field_Field$string("Adjustment reference id; null for payment vouchers.", e, !1, !1, !1, "Ref ID", "referenceId", e, e, r)], z.JSArray_Field);
|
|
9183
9183
|
},
|
|
9184
9184
|
$signature: 0
|
|
9185
9185
|
}, t.discountSchema_closure0.prototype = {
|
|
@@ -9239,7 +9239,7 @@ Arguments: [` + c + "]";
|
|
|
9239
9239
|
}, t.internalMyEInvoiceSubmissionSchema_closure.prototype = {
|
|
9240
9240
|
call$1(r) {
|
|
9241
9241
|
var e = null, n = "submissionUid";
|
|
9242
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Submission Time", "submittedAt", "submissionDate", e, r), t.Field_Field$string(R.Submis, e, !1, !1, !1, "Submit For", "ref", "ref", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Submission UID", n, n, e, r), t.Field_Field$string("InProgress, Valid, PartiallyValid or Invalid", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Merchant ID", "merchantId", "merchant._id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "merchant.restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Business ID", "businessId", "merchant.businessId", e, r), t.Field_Field$string(
|
|
9242
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Submission Time", "submittedAt", "submissionDate", e, r), t.Field_Field$string(R.Submis, e, !1, !1, !1, "Submit For", "ref", "ref", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Submission UID", n, n, e, r), t.Field_Field$string("InProgress, Valid, PartiallyValid or Invalid", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Merchant ID", "merchantId", "merchant._id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "merchant.restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Business ID", "businessId", "merchant.businessId", e, r), t.Field_Field$string("individual or company; null for consolidated and test submissions", e, !1, !1, !1, "Customer Type", "customerType", "customer.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Name", "customerName", "customer.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Phone Number", "customerPhoneNumber", "customer.phoneNumber", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Address", "customerAddress", "customer.address.full", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Email", "customerEmail", "customer.email", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer TIN No", "customerTinNo", "customer.tinNo", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Identity Type", "customerIdentityType", "customer.identity.identityType", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Identity No", "customerIdentityNo", "customer.identity.identityNo", e, r)], z.JSArray_Field);
|
|
9243
9243
|
},
|
|
9244
9244
|
$signature: 0
|
|
9245
9245
|
}, t.internalMyEInvoiceSubmissionSchema_closure0.prototype = {
|
|
@@ -9404,8 +9404,8 @@ Arguments: [` + c + "]";
|
|
|
9404
9404
|
$signature: 1
|
|
9405
9405
|
}, t.itemMovementSchema_closure.prototype = {
|
|
9406
9406
|
call$1(r) {
|
|
9407
|
-
var e = null, n = "userName", a = "moveFromBillId";
|
|
9408
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Move Time", "movedAt", "movedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User ID", "userId", "userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User Name", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "itemId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Move From Table", "moveFromSlot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Move From Bill ID", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Move From Bill No.", "moveFromBillSeqNumber", e, "(select seq_number from bills where bills.id=@move_from_bill_id)", r)], z.JSArray_Field);
|
|
9407
|
+
var e = null, n = "userName", a = "moveFromBillId", o = "moveType";
|
|
9408
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Move Time", "movedAt", "movedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User ID", "userId", "userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User Name", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "itemId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Move From Table", "moveFromSlot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Move From Bill ID", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Move From Bill No.", "moveFromBillSeqNumber", e, "(select seq_number from bills where bills.id=@move_from_bill_id)", r), t.Field_Field$string("Recorded from 2026-02-24 on. Empty before that, and on rows not yet re-materialized, where it falls back to the bill current table unless the bill changed table again afterwards, which would put it on a table this move never landed on. Postgres only; BigQuery has no fallback", e, !1, !1, !1, "Move To Table", "toSlot", "toSlot", "COALESCE(@to_slot,(select slot from bills where bills.id=@bill_id and not exists (select 1 from item_movements m2 where m2.bill_id=@bill_id and m2.moved_at>@moved_at and m2.move_type='CHANGE_TABLE')))", r), t.Field_Field$string("CHANGE_TABLE = the whole bill was relocated, so the item stayed on it and moveFromBillId is this bill; MOVE_ITEM = the item came from another bill", e, !1, !1, !1, "Move Type", o, o, e, r)], z.JSArray_Field);
|
|
9409
9409
|
},
|
|
9410
9410
|
$signature: 0
|
|
9411
9411
|
}, t.itemMovementSchema_closure0.prototype = {
|
|
@@ -9613,7 +9613,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
|
|
|
9613
9613
|
}, t.myEInvoiceSubmissionSchema_closure.prototype = {
|
|
9614
9614
|
call$1(r) {
|
|
9615
9615
|
var e = null;
|
|
9616
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", e, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", e, e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Business ID", "businessId", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Submission Time", "submittedAt", e, e, r), t.Field_Field$string(R.Submis, e, !1, !1, !1, "Submit For", "ref", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Submission UID", "submissionUid", e, e, r), t.Field_Field$string(
|
|
9616
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", e, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", e, e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Business ID", "businessId", e, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Submission Time", "submittedAt", e, e, r), t.Field_Field$string(R.Submis, e, !1, !1, !1, "Submit For", "ref", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Submission UID", "submissionUid", e, e, r), t.Field_Field$string("INDIVIDUAL, COMPANY, CONSOLIDATED or TEST", e, !1, !1, !1, "Customer Type", "customerType", e, "(case when nullif(@customer_type,'') is not null then upper(@customer_type) when @type = 'Test' then 'TEST' else 'CONSOLIDATED' end)", r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Name", "customerName", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Phone Number", "customerPhoneNumber", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Address", "customerAddress", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Email", "customerEmail", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer TIN No", "customerTinNo", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Identity Type", "customerIdentityType", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer Identity No", "customerIdentityNo", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Document ID", "documentId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "MyInvois Document ID", "documentUid", e, e, r), t.Field_Field$string(R.Test__, e, !1, !1, !1, "Type", "type", e, e, r), t.Field_Field$string("Submitted, Valid, Invalid or Cancelled", e, !1, !1, !1, "Status", "status", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal ID", "internalId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Long ID", "longId", e, e, r), t.Field_Field$string(R.MyInvo, e, !1, !1, !1, "Original Document ID", "originalDocumentUid", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Errors", "errors", e, e, r), t.Field_Field$string("Bill covered by this document; a consolidated document has one row per bill", e, !1, !1, !1, "Bill ID", "billId", e, e, r), t.Field_Field$string(e, e, !1, !1, !1, "FeedMe Invoice No", "billSeqNumber", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Subtotal", "subtotal", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Charge", "charge", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Tax", "tax", e, e, r), t.Field_Field$numeric(e, e, !1, !1, "Rounding", "rounding", e, e, r), t.Field_Field$numeric("This bill's portion; sum rows for the document total", e, !1, !1, "Nett", "nett", e, e, r)], z.JSArray_Field);
|
|
9617
9617
|
},
|
|
9618
9618
|
$signature: 0
|
|
9619
9619
|
}, t.myEInvoiceSubmissionSchema_closure0.prototype = {
|
|
@@ -9660,13 +9660,13 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
|
|
|
9660
9660
|
}, t.posOverrideItemLogSchema_closure.prototype = {
|
|
9661
9661
|
call$1(r) {
|
|
9662
9662
|
var e = null;
|
|
9663
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Subject", "subject", "subject", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "ref.itemId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item", "itemName", "ref.itemName", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "groupId", "ref.groupId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Group", "groupName", "ref.groupName", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal Name (Before)", "fromInternalName", "name2.from", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal Name (After)", "toInternalName", "name2.to", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Order From (Before)", "fromOrderFrom", "orderFrom.from", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Order From (After)", "toOrderFrom", "orderFrom.to", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility (Before)", "fromAppVisiblity", "visibility.from.app.visible", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility Reason (Before)", "fromAppVisibilityReason", "visibility.from.app.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility (After)", "toAppVisiblity", "visibility.to.app.visible", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility Reason (After)", "toAppVisibilityReason", "visibility.to.app.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "changedById", "changeBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Changed By", "changedByName", "changeBy.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter ID", "counterId", "metadata.counterId", e, r), t.Field_Field$numeric("Seconds until the next change for the same item in the same restaurant, ordered by time. Null if there is no subsequent change.", e, !1, !1, "State Duration (s)", "stateDurationSeconds", e, "EXTRACT(EPOCH FROM (
|
|
9663
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Subject", "subject", "subject", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "ref.itemId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item", "itemName", "ref.itemName", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "groupId", "ref.groupId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Group", "groupName", "ref.groupName", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal Name (Before)", "fromInternalName", "name2.from", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal Name (After)", "toInternalName", "name2.to", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Order From (Before)", "fromOrderFrom", "orderFrom.from", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Order From (After)", "toOrderFrom", "orderFrom.to", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility (Before)", "fromAppVisiblity", "visibility.from.app.visible", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility Reason (Before)", "fromAppVisibilityReason", "visibility.from.app.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility (After)", "toAppVisiblity", "visibility.to.app.visible", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility Reason (After)", "toAppVisibilityReason", "visibility.to.app.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "changedById", "changeBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Changed By", "changedByName", "changeBy.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter ID", "counterId", "metadata.counterId", e, r), t.Field_Field$numeric("Seconds until the next change for the same item in the same restaurant, ordered by time. Null if there is no subsequent change.", e, !1, !1, "State Duration (s)", "stateDurationSeconds", e, "EXTRACT(EPOCH FROM ((select min(sub.created_at) from pos_override_item_logs sub where sub.restaurant_id=@restaurant_id and sub.item_id=@item_id and sub.created_at>@created_at) - @created_at))", r), t.Field_Field$string(e, e, !1, !1, !1, "Reason", "reason", "reason", e, r)], z.JSArray_Field);
|
|
9664
9664
|
},
|
|
9665
9665
|
$signature: 0
|
|
9666
9666
|
}, t.posOverrideItemLogSchema_closure0.prototype = {
|
|
9667
9667
|
call$1(r) {
|
|
9668
9668
|
var e = null, n = z.JSArray_String, a = z.JSArray_JoinCondition;
|
|
9669
|
-
return t._setArrayType([new t.Join(l.SCHEMA_NAME_59, t._setArrayType([new t.JoinCondition("
|
|
9669
|
+
return t._setArrayType([new t.Join(l.SCHEMA_NAME_59, t._setArrayType([new t.JoinCondition("productId", t._setArrayType(["itemId"], n), l.COMPARISON_OPERATOR_0, e), new t.JoinCondition("restaurantId", t._setArrayType(["restaurantId"], n), l.COMPARISON_OPERATOR_0, e)], a), !0, r, e), new t.Join(l.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition("id", t._setArrayType(["restaurantId"], n), l.COMPARISON_OPERATOR_0, e)], a), !1, r, e)], z.JSArray_Join);
|
|
9670
9670
|
},
|
|
9671
9671
|
$signature: 1
|
|
9672
9672
|
}, t.printActivitySchema_closure.prototype = {
|
|
@@ -11124,7 +11124,6 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
11124
11124
|
discout: "discount type. eg, VOUCHER, MEMBERSHIP, COUNTER, PROMOTION.",
|
|
11125
11125
|
idx_pof: "idx_podfss_purchase_order_delivery_fulfillment_id",
|
|
11126
11126
|
idx_poo: "idx_podoss_purchase_order_delivery_order_id",
|
|
11127
|
-
indivi: "individual or company; null for consolidated and test submissions",
|
|
11128
11127
|
netSui: "netSuite.additionalInfo.transactionnumber"
|
|
11129
11128
|
}, z = function() {
|
|
11130
11129
|
var e = t.findType;
|
|
@@ -11450,7 +11449,9 @@ from (
|
|
|
11450
11449
|
(select fi.name from flatten_items fi
|
|
11451
11450
|
where fi.id = item_id and fi.bill_id = bill_id and fi.restaurant_id = restaurant_id),
|
|
11452
11451
|
'BILL'
|
|
11453
|
-
) as target
|
|
11452
|
+
) as target,
|
|
11453
|
+
return_id,
|
|
11454
|
+
reference_id
|
|
11454
11455
|
from adjustments
|
|
11455
11456
|
union all
|
|
11456
11457
|
select
|
|
@@ -11470,7 +11471,9 @@ where collectible_collections.id = reference) as reason,
|
|
|
11470
11471
|
by_name as approved_by_name,
|
|
11471
11472
|
1 as quantity,
|
|
11472
11473
|
total * case when is_refund then 1 else -1 end as total,
|
|
11473
|
-
'PAYMENT' as target
|
|
11474
|
+
'PAYMENT' as target,
|
|
11475
|
+
reference as return_id,
|
|
11476
|
+
null as reference_id
|
|
11474
11477
|
from payments
|
|
11475
11478
|
where name = 'PAYMENT VOUCHER'
|
|
11476
11479
|
`, new t.discountSchema_closure(), l.List_empty, a, a, !0, !1, !1, !1, !1, new t.discountSchema_closure0(), "Discount (Adjustment, Payment)", "adjustments", "adjustment", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_20, o, "", "", !0, s, u);
|
|
@@ -11571,7 +11574,7 @@ WHERE g.adj_day_count = 0 OR g.created_at IS NOT NULL
|
|
|
11571
11574
|
return t.Schema_Schema$build(o, l.List_empty0, 3, t._setArrayType(["restaurantId"], z.JSArray_String), o, new t.itemSchema_closure(), t._setArrayType([t.QueryRequestFilter$(o, o, "layer", l.COMPARISON_OPERATOR_0, o, l.SCHEMA_NAME_8, ["0"])], z.JSArray_QueryRequestFilter), o, o, !0, !1, !1, !0, !1, new t.itemSchema_closure0(), "Product (Deprecated)", "flatten_items", "flatten_item", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_8, a, "", "", !0, s, u);
|
|
11572
11575
|
}), e(g, "itemMovementSchema", "$get$itemMovementSchema", () => {
|
|
11573
11576
|
var a = "couchdb_bill", o = "createdAt", s = null, u = t.Source_Source$couchdb("itemMovements", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], z.JSArray_Permission), o), c = z.JSArray_String, b = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], c), "idx_item_movement_select_index", s, s), t.Index$(t._setArrayType(["item_id"], c), s, s, s), t.Index$(t._setArrayType(["bill_id"], c), s, s, s), t.Index$(t._setArrayType(["move_from_bill_id"], c), s, s, s)], z.JSArray_Index), _ = t._setArrayType(["restaurantId"], c);
|
|
11574
|
-
return t.Schema_Schema$build("inventory", t._setArrayType(["item movement", "stock movement", "transfer", "stock transfer"], c), 2, _, s, new t.itemMovementSchema_closure(), l.List_empty, b, 120, !0, !0, !1, !1, !1, new t.itemMovementSchema_closure0(), "Item Movement", "item_movements", "item_movement", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_76, o, a, a, !0, u, p);
|
|
11577
|
+
return t.Schema_Schema$build("inventory", t._setArrayType(["item movement", "stock movement", "transfer", "stock transfer", "change table", "table move"], c), 2, _, s, new t.itemMovementSchema_closure(), l.List_empty, b, 120, !0, !0, !1, !1, !1, new t.itemMovementSchema_closure0(), "Item Movement", "item_movements", "item_movement", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_76, o, a, a, !0, u, p);
|
|
11575
11578
|
}), e(g, "kitchenStationSchema", "$get$kitchenStationSchema", () => {
|
|
11576
11579
|
var a = "couchdb_bill", o = "createdAt", s = null, u = t.Source_Source$couchdb("kitchenStations", "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], z.JSArray_Permission), o), c = z.JSArray_String, b = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], c), "idx_kitchen_stations_select_index", s, s), t.Index$(t._setArrayType(["bill_id"], c), s, s, s), t.Index$(t._setArrayType(["published_at"], c), s, s, s)], z.JSArray_Index), _ = t._setArrayType(["restaurantId"], c);
|
|
11577
11580
|
return t.Schema_Schema$build("specialized", t._setArrayType(["kitchen", "kitchen station", "prep time", "cook time"], c), 3, _, s, new t.kitchenStationSchema_closure(), l.List_empty, b, 120, !0, !0, !1, !1, !1, new t.kitchenStationSchema_closure0(), "Kitchen station", "kitchen_stations", "kitchen_station", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_71, o, a, a, !0, u, p);
|
|
@@ -11697,7 +11700,7 @@ join my_e_invoice_documents d on d.document_id = sd.document_id
|
|
|
11697
11700
|
var a = null, o = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], z.JSArray_Permission), "paymentCreatedAt");
|
|
11698
11701
|
return t.Schema_Schema$build(a, l.List_empty0, 3, t._setArrayType(["restaurantId"], z.JSArray_String), a, new t.paymentTimePaymentSchema_closure(), l.List_empty, a, a, !0, !1, !1, !1, !1, new t.paymentTimePaymentSchema_closure0(), "Payment (Payment time)", "payments", "payment", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_11, "createdAt", "", "", !0, o, s);
|
|
11699
11702
|
}), e(g, "posOverrideItemLogSchema", "$get$posOverrideItemLogSchema", () => {
|
|
11700
|
-
var a = "couchdb_pos_override_audit_logs", o = "createdAt", s = null, u = t.Source_Source$couchdb("itemLogs", "posOverrideAuditLogs"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], z.JSArray_Permission), o), c = z.JSArray_String, b = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], c), "idx_poil_select_index", s, s)], z.JSArray_Index);
|
|
11703
|
+
var a = "couchdb_pos_override_audit_logs", o = "createdAt", s = null, u = t.Source_Source$couchdb("itemLogs", "posOverrideAuditLogs"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], z.JSArray_Permission), o), c = z.JSArray_String, b = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["restaurant_id", "created_at"], c), "idx_poil_select_index", s, s), t.Index$(t._setArrayType(["restaurant_id", "item_id", "created_at"], c), "idx_poil_item_state_index", s, s)], z.JSArray_Index);
|
|
11701
11704
|
return t.Schema_Schema$build(s, l.List_empty0, 3, t._setArrayType(["restaurantId"], c), s, new t.posOverrideItemLogSchema_closure(), l.List_empty, b, s, !1, !0, !1, !1, !1, new t.posOverrideItemLogSchema_closure0(), "POS Override Item Log", "pos_override_item_logs", "pos_override_item_log", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_89, o, a, a, !0, u, p);
|
|
11702
11705
|
}), e(g, "printActivitySchema", "$get$printActivitySchema", () => {
|
|
11703
11706
|
var a = "couchdb_bill", o = null, s = t.Source_Source$couchdb("printActivities", "bill"), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], z.JSArray_Permission), "printedAt"), p = z.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), o, o, o), t.Index$(t._setArrayType(["doc_id"], p), o, o, o), t.Index$(t._setArrayType(["restaurant_id", "printed_at"], p), "idx_print_activity_select_index", o, o), t.Index$(t._setArrayType(["bill_id"], p), o, o, o), t.Index$(t._setArrayType(["item_id"], p), o, o, o)], z.JSArray_Index), b = t._setArrayType(["restaurantId"], p);
|
|
@@ -25147,7 +25150,7 @@ var Mr = {
|
|
|
25147
25150
|
...sl,
|
|
25148
25151
|
...pl
|
|
25149
25152
|
}, kn = /* @__PURE__ */ ((M) => (M.generating = "GENERATING", M.completed = "COMPLETED", M.failed = "FAILED", M.canceled = "CANCELLED", M))(kn || {});
|
|
25150
|
-
const cl = "/assets/formatChartData.worker-
|
|
25153
|
+
const cl = "/assets/formatChartData.worker-DZp5dSDQ.js", Et = /* @__PURE__ */ new Map();
|
|
25151
25154
|
function Nr(M) {
|
|
25152
25155
|
return new Worker(M, { type: "module" });
|
|
25153
25156
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, createElementBlock as r, openBlock as o, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, createCommentVNode as D, Fragment as z, renderList as N, createBlock as R, withDirectives as T, resolveDynamicComponent as U, unref as m, withCtx as B, createVNode as p, normalizeClass as W, resolveComponent as M, useModel as ce, createTextVNode as ue, isRef as j, nextTick as fe } from "vue";
|
|
2
|
-
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { D as ge } from "./DateRangeSelect-
|
|
4
|
-
import { d as E, u as Q, F as ee, q as te, a as pe, h as ve, g as H, i as he, j as ye, k as we } from "./app-
|
|
2
|
+
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-BpJFA_ET.js";
|
|
3
|
+
import { D as ge } from "./DateRangeSelect-cbSEHMzW.js";
|
|
4
|
+
import { d as E, u as Q, F as ee, q as te, a as pe, h as ve, g as H, i as he, j as ye, k as we } from "./app-CVBllEjW.js";
|
|
5
5
|
import { storeToRefs as ae } from "pinia";
|
|
6
6
|
import { C as le, r as xe } from "./chart-DDDh8zNk.js";
|
|
7
7
|
import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as se } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
9
|
import { c as X } from "./index-CtZE4sab.js";
|
|
10
10
|
import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
11
|
-
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-w2H9qOgJ.js";
|
|
12
12
|
import { useCoreStore as _e } from "@feedmepos/mf-common";
|
|
13
|
-
import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-N31ee-oZ.js";
|
|
14
14
|
function Ae({ start: e, end: t }) {
|
|
15
15
|
return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
|
|
16
16
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ce, mergeModels as we, useModel as fe, computed as W, resolveComponent as I, createElementBlock as R, openBlock as w, createElementVNode as t, createCommentVNode as z, normalizeClass as et, Fragment as $e, renderList as ze, createBlock as ee, normalizeStyle as at, createVNode as l, withCtx as Ce, renderSlot as Vt, toDisplayString as S, unref as n, h as b, createTextVNode as $t, ref as ae, onUnmounted as He, watch as _e, isRef as Ee, resolveDynamicComponent as Be, mergeProps as st, withKeys as ot, withModifiers as dt, nextTick as kt, onMounted as pt } from "vue";
|
|
2
2
|
import { useRouter as Se, useRoute as It } from "vue-router";
|
|
3
|
-
import { A as he, v as nt, d as Ne, w as Tt, e as Le, a as De, x as be, y as Nt, z as Kt, o as pe, t as Ge, B as Ye, E as Oe, G as Qe, H as rt, J as Ft, K as Mt, L as Ut, M as Rt, N as it, b as ut, O as Pt, P as Lt, n as jt, I as je, Q as Ot, R as Et, S as Bt } from "./app-
|
|
3
|
+
import { A as he, v as nt, d as Ne, w as Tt, e as Le, a as De, x as be, y as Nt, z as Kt, o as pe, t as Ge, B as Ye, E as Oe, G as Qe, H as rt, J as Ft, K as Mt, L as Ut, M as Rt, N as it, b as ut, O as Pt, P as Lt, n as jt, I as je, Q as Ot, R as Et, S as Bt } from "./app-CVBllEjW.js";
|
|
4
4
|
import { u as We } from "./global-loader-BuxFfehu.js";
|
|
5
5
|
import { u as Xe } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as Ae } from "@feedmepos/ui-library";
|
|
7
7
|
import { s as St } from "./index-CtZE4sab.js";
|
|
8
8
|
import { u as ve, _ as Yt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
|
-
import { u as qe, h as ke } from "./useRestaurantPermission-
|
|
9
|
+
import { u as qe, h as ke } from "./useRestaurantPermission-C8bLPfk8.js";
|
|
10
10
|
import { storeToRefs as Je } from "pinia";
|
|
11
|
-
import { D as Ze } from "./DateRangeSelect-
|
|
11
|
+
import { D as Ze } from "./DateRangeSelect-cbSEHMzW.js";
|
|
12
12
|
const qt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, zt = { class: "w-[100%] overflow-hidden" }, Ht = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Gt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Qt = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-[24px] flex items-center"
|