@feedmepos/mf-inventory-portal 1.2.13 → 1.2.14
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-BKUu2y4m.js +286 -0
- package/dist/{ApprovalView-BWX6xBQs.js → ApprovalView-BXIr-aOO.js} +26 -26
- package/dist/{BindingsDialog-CuwkcDKX.js → BindingsDialog-BDxyU1ai.js} +2 -2
- package/dist/{BindingsPicker-BibFsY0g.js → BindingsPicker-CtlglFHZ.js} +10 -10
- package/dist/{BindingsTable-AdjKwSPH.js → BindingsTable-CAkqyxwU.js} +1 -1
- package/dist/{ClosingDraftView-DWFHP9nE.js → ClosingDraftView-uqekYW8F.js} +44 -44
- package/dist/{ClosingTemplateView-DOCF5f_u.js → ClosingTemplateView-T75Sz9_T.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-DNDtL_Vo.js → DeliveryOrderPrintPreview-DHhQSQ2B.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dcof4mm-.js} +15 -15
- package/dist/{FmMultiselectDialog-Dfo04ak5.js → FmMultiselectDialog-WIXHw0Uk.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-V7qRyodl.js} +54 -54
- package/dist/ImportView-D6K4u2to.js +1303 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DXSaHlBC.js} +1 -1
- package/dist/{IngredientGroupView-M9sXlnE0.js → IngredientGroupView-337gZxja.js} +19 -20
- package/dist/IngredientsView-BFB5W9wU.js +2240 -0
- package/dist/{IntegrationView-BlUNz1yc.js → IntegrationView-DBZir_ru.js} +3 -3
- package/dist/{InventoryBindingForm-CvQ5zh6v.js → InventoryBindingForm-D4T5aJjL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CxeoVbtU.js} +12 -12
- package/dist/{InventoryBindingSummary-CsJ-6G2P.js → InventoryBindingSummary-Cb0OLH16.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BBayB4R3.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C9en2Mi_.js} +1 -1
- package/dist/{PublishView-DZgCyLK2.js → PublishView-BM5b29AM.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-CB2xvQ33.js → PurchaseOrderPrintPreview-Dml3m5ao.js} +12 -12
- package/dist/{ReceiveRequestView-DgDHOS-Y.js → ReceiveRequestView-Ceya3bOZ.js} +131 -132
- package/dist/RecipeView-Bw3qnkmy.js +636 -0
- package/dist/{StockView-eJOngk08.js → StockView-Dum7wayi.js} +165 -166
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BCMz3BUb.js} +1 -1
- package/dist/{SupplierView-BS8rBAKC.js → SupplierView-BRePnXQP.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-4Kll7qk7.js +3385 -0
- package/dist/{TransferTemplateView-By5Ci4Yg.js → TransferTemplateView-DzcNysRM.js} +166 -166
- package/dist/UnitView-Dd9vLRU0.js +674 -0
- package/dist/{WarehouseView-4ZLSJXYc.js → WarehouseView-C1T2VVo_.js} +32 -32
- package/dist/api/inventory.d.ts +306 -0
- package/dist/api/purchase-order.d.ts +1 -0
- package/dist/{app-D2lun71R.js → app-DU_GXTW3.js} +11730 -11115
- package/dist/app.d.ts +421 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Cm1TtVzm.js → closing-template-DhM1Taa8.js} +1 -1
- package/dist/{decimal-eeicE4jp.js → decimal-CB27myvl.js} +1 -1
- package/dist/{format-unit-display-vHKazw0l.js → format-unit-display-Bou8fmKm.js} +24 -24
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-Bstm4Lwa.js +243 -0
- package/dist/{index-C5s-1g7c.js → index-B14XCvps.js} +1 -1
- package/dist/{index-DvX9cMJV.js → index-B9_waZl0.js} +1 -1
- package/dist/{purchase-order-template-uTs7bR89.js → purchase-order-template-DKQSKCx3.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-CL2LNdXp.js → stock-CWx63kov.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +26 -199
- package/dist/{supplier-CuzoW2k4.js → supplier-BMV0Wr8s.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cpg4lHHC.js → use-ingredient-select-dialog-B6k49FYb.js} +4 -4
- package/dist/{use-inventory-binding-dialog-h4M4ICQK.js → use-inventory-binding-dialog-D_ai3vrG.js} +1 -1
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +17 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/package.json +2 -2
- package/dist/App-ZoXow3DD.js +0 -276
- package/dist/IngredientsView-DUwhH3j1.js +0 -2475
- package/dist/RecipeView-DQDfwCJd.js +0 -621
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +0 -3060
- package/dist/UnitView-DmuWMFlA.js +0 -667
- package/dist/array-Ca8T3f_G.js +0 -44
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ae, onMounted as Te, computed as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as M, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as qe, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as Be, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
|
+
import { P as We, aP as he, t as Ne, O as it, aQ as ut, aR as dt, l as se, aS as mt, b as Ge, a as Ke, Z as Ee, c as ge, q as ke, y as be, $ as ye, A as we, M as pt, K as ee, u as Ze, at as ct, a5 as ft, J as Je, e as ue, z as ve, am as yt, X as vt, ae as bt, E as gt, j as Le, G as ht, I as xt } from "./app-DU_GXTW3.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as
|
|
5
|
-
import { components as de, useSnackbar as Tt, useProxiedModel as
|
|
4
|
+
import { P as X, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-Bou8fmKm.js";
|
|
5
|
+
import { components as de, useSnackbar as Tt, useProxiedModel as Xe, useBreakpoints as Ct } from "@feedmepos/ui-library";
|
|
6
6
|
import { defineStore as Ft, storeToRefs as He } from "pinia";
|
|
7
|
-
import { _ as St, b as It, F as
|
|
8
|
-
import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as At } from "./supplier-
|
|
10
|
-
import { u as Rt } from "./use-ingredient-select-dialog-
|
|
11
|
-
import { u as Pt } from "./purchase-order-template-
|
|
12
|
-
const Ut = { class: "flex flex-col" },
|
|
7
|
+
import { _ as St, b as It, F as $t, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-V7qRyodl.js";
|
|
8
|
+
import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dcof4mm-.js";
|
|
9
|
+
import { u as At } from "./supplier-BMV0Wr8s.js";
|
|
10
|
+
import { u as Rt } from "./use-ingredient-select-dialog-B6k49FYb.js";
|
|
11
|
+
import { u as Pt } from "./purchase-order-template-DKQSKCx3.js";
|
|
12
|
+
const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Bt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Et = { class: "flex-1" }, Lt = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
13
13
|
__name: "FmMinMaxInput",
|
|
14
14
|
props: {
|
|
15
15
|
rules: {},
|
|
@@ -55,7 +55,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
55
55
|
v.min = i, v.max = g;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
const r =
|
|
58
|
+
const r = E(() => {
|
|
59
59
|
const { min: d, max: y } = v ?? {};
|
|
60
60
|
return Math.max((d == null ? void 0 : d.precision) ?? 0, (y == null ? void 0 : y.precision) ?? 0, h.precision ?? 0);
|
|
61
61
|
}), s = (d) => {
|
|
@@ -69,18 +69,18 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
69
69
|
Ce([u, x], ([d, y]) => {
|
|
70
70
|
const w = v ?? {}, i = a(d), g = a(y), O = r.value;
|
|
71
71
|
if (d !== "" && i === !0) {
|
|
72
|
-
const
|
|
73
|
-
w.min =
|
|
72
|
+
const $ = Ne(+d, O);
|
|
73
|
+
w.min = $;
|
|
74
74
|
} else
|
|
75
75
|
w.min = null;
|
|
76
76
|
if (y !== "" && g === !0) {
|
|
77
|
-
const
|
|
78
|
-
w.max =
|
|
77
|
+
const $ = Ne(+y, O);
|
|
78
|
+
w.max = $;
|
|
79
79
|
} else
|
|
80
80
|
w.max = null;
|
|
81
81
|
v.min = w.min, v.max = w.max;
|
|
82
82
|
});
|
|
83
|
-
const F = Symbol.for("fm:form-state"), c = ot(F, null), o =
|
|
83
|
+
const F = Symbol.for("fm:form-state"), c = ot(F, null), o = E(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = E(() => k.value || T.value), U = E(() => [...[
|
|
84
84
|
function() {
|
|
85
85
|
return typeof a(u.value) == "string" || typeof a(x.value) == "string" ? "Must be a number" : !0;
|
|
86
86
|
},
|
|
@@ -90,9 +90,9 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
90
90
|
], ...h.rules ?? []]);
|
|
91
91
|
return (d, y) => {
|
|
92
92
|
const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
|
|
93
|
-
return
|
|
94
|
-
e("div",
|
|
95
|
-
e("div",
|
|
93
|
+
return M(), N("div", Ut, [
|
|
94
|
+
e("div", qt, [
|
|
95
|
+
e("div", Bt, [
|
|
96
96
|
m(w, {
|
|
97
97
|
label: d.label,
|
|
98
98
|
disabled: d.disabled,
|
|
@@ -105,7 +105,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
105
105
|
e("div", Nt, [
|
|
106
106
|
xe(d.$slots, "prepend"),
|
|
107
107
|
y[6] || (y[6] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
|
|
108
|
-
e("div",
|
|
108
|
+
e("div", Et, [
|
|
109
109
|
Ue(e("input", {
|
|
110
110
|
type: "text",
|
|
111
111
|
ref_key: "minInputRef",
|
|
@@ -119,12 +119,12 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
119
119
|
"text-fm-color-typo-disabled": o.value
|
|
120
120
|
})
|
|
121
121
|
}, null, 34), [
|
|
122
|
-
[
|
|
122
|
+
[qe, u.value]
|
|
123
123
|
])
|
|
124
124
|
]),
|
|
125
125
|
y[7] || (y[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
126
126
|
y[8] || (y[8] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
|
|
127
|
-
e("div",
|
|
127
|
+
e("div", Lt, [
|
|
128
128
|
Ue(e("input", {
|
|
129
129
|
type: "text",
|
|
130
130
|
ref_key: "maxInputRef",
|
|
@@ -138,7 +138,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
138
138
|
"text-fm-color-typo-disabled": o.value
|
|
139
139
|
})
|
|
140
140
|
}, null, 34), [
|
|
141
|
-
[
|
|
141
|
+
[qe, x.value]
|
|
142
142
|
])
|
|
143
143
|
]),
|
|
144
144
|
xe(d.$slots, "append")
|
|
@@ -214,7 +214,7 @@ function Yt(p, h = {}) {
|
|
|
214
214
|
{
|
|
215
215
|
supplier: p.supplier
|
|
216
216
|
}
|
|
217
|
-
), f = c.totalCost ??
|
|
217
|
+
), f = c.totalCost ?? Ee.reset();
|
|
218
218
|
o ? s[c.sku._id] = o.amount !== f.amount || o.precision !== f.precision : s[c.sku._id] = !0;
|
|
219
219
|
}
|
|
220
220
|
});
|
|
@@ -322,7 +322,7 @@ function Yt(p, h = {}) {
|
|
|
322
322
|
rules: [
|
|
323
323
|
It(o.quantityStep),
|
|
324
324
|
...+se(o.quantity) ? [
|
|
325
|
-
|
|
325
|
+
$t(
|
|
326
326
|
+se(
|
|
327
327
|
o.minimumQuantity ?? {
|
|
328
328
|
amount: 1,
|
|
@@ -332,7 +332,7 @@ function Yt(p, h = {}) {
|
|
|
332
332
|
)
|
|
333
333
|
)
|
|
334
334
|
] : [],
|
|
335
|
-
|
|
335
|
+
Mt(
|
|
336
336
|
o.maximumQuantity ? +se(o.maximumQuantity) : 1 / 0
|
|
337
337
|
),
|
|
338
338
|
function(d) {
|
|
@@ -389,7 +389,7 @@ function Yt(p, h = {}) {
|
|
|
389
389
|
cell(c) {
|
|
390
390
|
const o = c.row.original;
|
|
391
391
|
return j(de.FmTextField, {
|
|
392
|
-
modelValue: se(o.quantityStep ??
|
|
392
|
+
modelValue: se(o.quantityStep ?? Ee.reset(), !1),
|
|
393
393
|
key: o.sku._id,
|
|
394
394
|
"onUpdate:modelValue": (f) => {
|
|
395
395
|
p.updateItem({
|
|
@@ -481,7 +481,7 @@ function Yt(p, h = {}) {
|
|
|
481
481
|
}
|
|
482
482
|
];
|
|
483
483
|
return {
|
|
484
|
-
columnDefs:
|
|
484
|
+
columnDefs: E(() => {
|
|
485
485
|
const c = ge(), o = [...x];
|
|
486
486
|
if (Object.keys(h).length > 0)
|
|
487
487
|
for (const [f, b] of Object.entries(h))
|
|
@@ -489,11 +489,11 @@ function Yt(p, h = {}) {
|
|
|
489
489
|
...b,
|
|
490
490
|
id: f
|
|
491
491
|
});
|
|
492
|
-
return c.enableTotalCost && p.transferType ===
|
|
492
|
+
return c.enableTotalCost && p.transferType === X.PURCHASE ? o : o.filter((f) => f.id !== "Cost");
|
|
493
493
|
})
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" },
|
|
496
|
+
const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
|
|
497
497
|
key: 0,
|
|
498
498
|
class: "flex gap-8 w-full"
|
|
499
499
|
}, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
|
|
@@ -508,13 +508,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
508
508
|
return a;
|
|
509
509
|
}
|
|
510
510
|
return (a, r) => {
|
|
511
|
-
var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O,
|
|
511
|
+
var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, $, _, W, te, L, q, Z, l, n, C, B, z, G;
|
|
512
512
|
const s = V("FmLabel");
|
|
513
|
-
return
|
|
513
|
+
return M(), N("div", Wt, [
|
|
514
514
|
e("div", Gt, [
|
|
515
515
|
e("div", Kt, [
|
|
516
|
-
e("span",
|
|
517
|
-
e("span",
|
|
516
|
+
e("span", Zt, " (" + I(a.row.original.sku.code) + ") ", 1),
|
|
517
|
+
e("span", Jt, I(a.row.original.sku.name), 1)
|
|
518
518
|
]),
|
|
519
519
|
e("div", null, [
|
|
520
520
|
m(t(ee), {
|
|
@@ -523,7 +523,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
523
523
|
}, null, 8, ["render", "props"])
|
|
524
524
|
])
|
|
525
525
|
]),
|
|
526
|
-
e("div",
|
|
526
|
+
e("div", Xt, [
|
|
527
527
|
e("div", eo, [
|
|
528
528
|
m(s, {
|
|
529
529
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).Code}`)
|
|
@@ -545,13 +545,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
545
545
|
r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
546
546
|
])
|
|
547
547
|
]),
|
|
548
|
-
a.row.original ? (
|
|
548
|
+
a.row.original ? (M(), N("div", oo, [
|
|
549
549
|
e("div", so, [
|
|
550
550
|
m(s, {
|
|
551
551
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).DefaultAmount}`)
|
|
552
552
|
}, null, 8, ["label"]),
|
|
553
553
|
m(t(ee), {
|
|
554
|
-
render: (
|
|
554
|
+
render: ($ = (O = (g = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : $.cell,
|
|
555
555
|
props: (W = (_ = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : _.getContext) == null ? void 0 : W.call(_)
|
|
556
556
|
}, null, 8, ["render", "props"]),
|
|
557
557
|
r[2] || (r[2] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -561,8 +561,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
561
561
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).Step}`)
|
|
562
562
|
}, null, 8, ["label"]),
|
|
563
563
|
m(t(ee), {
|
|
564
|
-
render: (
|
|
565
|
-
props: (l = (
|
|
564
|
+
render: (q = (L = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : L.columnDef) == null ? void 0 : q.cell,
|
|
565
|
+
props: (l = (Z = a.cellByColId[t(Q).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
|
|
566
566
|
}, null, 8, ["render", "props"]),
|
|
567
567
|
r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
568
568
|
])
|
|
@@ -573,7 +573,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
573
573
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).Limit}`)
|
|
574
574
|
}, null, 8, ["label"]),
|
|
575
575
|
m(t(ee), {
|
|
576
|
-
render: (
|
|
576
|
+
render: (B = (C = (n = a.cellByColId[t(Q).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : B.cell,
|
|
577
577
|
props: (G = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : G.call(z)
|
|
578
578
|
}, null, 8, ["render", "props"]),
|
|
579
579
|
r[4] || (r[4] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -594,14 +594,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
594
594
|
function h(v) {
|
|
595
595
|
return v.column.columnDef.meta;
|
|
596
596
|
}
|
|
597
|
-
return (v, a) => (
|
|
597
|
+
return (v, a) => (M(), N(pe, null, [
|
|
598
598
|
e("tr", {
|
|
599
599
|
class: "hover:bg-fm-color-opacity-sm border-b border-fm-color-neutral-gray-100",
|
|
600
600
|
style: _e({ backgroundColor: v.errorMessage ? "#ffd6d6" : void 0 })
|
|
601
601
|
}, [
|
|
602
|
-
(
|
|
602
|
+
(M(!0), N(pe, null, je(v.row.getVisibleCells(), (r) => {
|
|
603
603
|
var s, u, x, F, c;
|
|
604
|
-
return
|
|
604
|
+
return M(), N("td", {
|
|
605
605
|
key: r.id,
|
|
606
606
|
class: re(["text-fm-color-typo-primary", ((s = h(r)) == null ? void 0 : s.cellClass) ?? "px-16", "py-2"]),
|
|
607
607
|
style: _e({
|
|
@@ -619,7 +619,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
619
619
|
], 6);
|
|
620
620
|
}), 128))
|
|
621
621
|
], 4),
|
|
622
|
-
v.errorMessage ? (
|
|
622
|
+
v.errorMessage ? (M(), N("tr", uo, [
|
|
623
623
|
e("td", {
|
|
624
624
|
colspan: v.row.getVisibleCells().length,
|
|
625
625
|
class: "text-red-600 px-16 py-2"
|
|
@@ -638,7 +638,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
638
638
|
},
|
|
639
639
|
emits: ["update:disabled"],
|
|
640
640
|
setup(p, { expose: h, emit: v }) {
|
|
641
|
-
const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F =
|
|
641
|
+
const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Ze(), c = Ke(), o = At(), f = ge(), b = Ge(), k = et();
|
|
642
642
|
Ce(
|
|
643
643
|
() => s.purchaseOrder.items.length,
|
|
644
644
|
() => {
|
|
@@ -655,17 +655,17 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
655
655
|
supplier: l.supplier ?? (s == null ? void 0 : s.purchaseOrder.supplier)
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
), R =
|
|
658
|
+
), R = E({
|
|
659
659
|
get() {
|
|
660
660
|
var l, n;
|
|
661
|
-
return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ?
|
|
661
|
+
return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? X.TRANSFER : X.PURCHASE;
|
|
662
662
|
},
|
|
663
663
|
set(l) {
|
|
664
|
-
var C,
|
|
665
|
-
const n = typeof ((
|
|
666
|
-
l !== n && (s.purchaseOrder.supplier = l ===
|
|
664
|
+
var C, B;
|
|
665
|
+
const n = typeof ((B = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : B.internal) == "string" ? X.TRANSFER : X.PURCHASE;
|
|
666
|
+
l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
|
|
667
667
|
}
|
|
668
|
-
}), U =
|
|
668
|
+
}), U = E(() => T.transferLocationOptions.value), d = E({
|
|
669
669
|
get() {
|
|
670
670
|
var l;
|
|
671
671
|
return (l = s.purchaseOrder.supplier) == null ? void 0 : l._id;
|
|
@@ -698,11 +698,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
698
698
|
function O() {
|
|
699
699
|
var l, n;
|
|
700
700
|
return (l = s.locations) != null && l.find((C) => {
|
|
701
|
-
var
|
|
702
|
-
return ((
|
|
701
|
+
var B, z;
|
|
702
|
+
return ((B = C.doc) == null ? void 0 : B._id) === ((z = s.purchaseOrder.supplier) == null ? void 0 : z._id);
|
|
703
703
|
}) ? `Location ${(n = s.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
|
|
704
704
|
}
|
|
705
|
-
const
|
|
705
|
+
const $ = E({
|
|
706
706
|
get() {
|
|
707
707
|
return s.purchaseOrder.remark ?? void 0;
|
|
708
708
|
},
|
|
@@ -724,7 +724,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
724
724
|
(n = (l = _.value) == null ? void 0 : l.resetInputs) == null || n.call(l);
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
|
-
const W =
|
|
727
|
+
const W = E(() => ({
|
|
728
728
|
duplicateItem: (l) => {
|
|
729
729
|
s.purchaseOrder.items = [
|
|
730
730
|
...s.purchaseOrder.items,
|
|
@@ -754,14 +754,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
754
754
|
return s.purchaseOrder.items;
|
|
755
755
|
},
|
|
756
756
|
get transferType() {
|
|
757
|
-
return
|
|
757
|
+
return X.PURCHASE;
|
|
758
758
|
},
|
|
759
759
|
get disabled() {
|
|
760
760
|
return a.disabled;
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
763
|
b.transferTemplateColumnDefs({
|
|
764
|
-
onUpdate: (l, n, C,
|
|
764
|
+
onUpdate: (l, n, C, B) => {
|
|
765
765
|
if (l < 0 || l >= s.purchaseOrder.items.length) return;
|
|
766
766
|
const z = s.purchaseOrder.items[l];
|
|
767
767
|
z && W.value.updateItem({
|
|
@@ -769,12 +769,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
769
769
|
sku: n,
|
|
770
770
|
// Sku might be outdated, so we need to update it
|
|
771
771
|
code: C,
|
|
772
|
-
measurement:
|
|
772
|
+
measurement: B
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
})
|
|
776
|
-
),
|
|
777
|
-
async function
|
|
776
|
+
), L = E(() => te.columnDefs.value), { promptSelectIngredients: q } = Rt();
|
|
777
|
+
async function Z() {
|
|
778
778
|
const n = c.skus.map((D) => ({
|
|
779
779
|
label: D.name,
|
|
780
780
|
sublabel: D.code,
|
|
@@ -782,31 +782,31 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
782
782
|
})).filter((D) => {
|
|
783
783
|
var A;
|
|
784
784
|
return (A = s.purchaseOrder.items) == null ? void 0 : A.find((K) => K.sku._id === D.value._id);
|
|
785
|
-
}).map((D) => D.value), C = s.purchaseOrder.items ?? [],
|
|
785
|
+
}).map((D) => D.value), C = s.purchaseOrder.items ?? [], B = await q(
|
|
786
786
|
n.map((D) => D._id),
|
|
787
787
|
(D) => {
|
|
788
788
|
const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
|
|
789
789
|
if (K)
|
|
790
790
|
return K;
|
|
791
|
-
const
|
|
791
|
+
const J = { amount: 1, precision: be(A.unit) };
|
|
792
792
|
let S = {
|
|
793
793
|
id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
|
|
794
794
|
sku: A,
|
|
795
795
|
code: A.code,
|
|
796
796
|
name: A.name,
|
|
797
|
-
quantity:
|
|
798
|
-
minimumQuantity:
|
|
797
|
+
quantity: J,
|
|
798
|
+
minimumQuantity: J,
|
|
799
799
|
// maximumQuantity: adjustmentAmountMultiplyDecimal(minimumQuantity, {
|
|
800
800
|
// amount: 100,
|
|
801
801
|
// precision: 0
|
|
802
802
|
// }),
|
|
803
|
-
quantityStep:
|
|
803
|
+
quantityStep: J
|
|
804
804
|
};
|
|
805
805
|
return k.validateUnitInput(
|
|
806
806
|
S,
|
|
807
807
|
A,
|
|
808
808
|
{
|
|
809
|
-
amount:
|
|
809
|
+
amount: J,
|
|
810
810
|
measurement: null
|
|
811
811
|
},
|
|
812
812
|
(H) => {
|
|
@@ -815,29 +815,29 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
815
815
|
), S;
|
|
816
816
|
}
|
|
817
817
|
);
|
|
818
|
-
if (!
|
|
819
|
-
const z =
|
|
818
|
+
if (!B) return;
|
|
819
|
+
const z = B.map((D) => D.sku._id), G = [];
|
|
820
820
|
for (const D of z) {
|
|
821
821
|
const A = C.filter((K) => K.sku._id === D);
|
|
822
822
|
if (A.length > 0)
|
|
823
823
|
G.push(...A);
|
|
824
824
|
else {
|
|
825
|
-
const K =
|
|
825
|
+
const K = B.find((J) => J.sku._id === D);
|
|
826
826
|
K && G.push(K);
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
G.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = G;
|
|
830
830
|
}
|
|
831
831
|
return (l, n) => {
|
|
832
|
-
const C = V("FmTextField"),
|
|
833
|
-
return
|
|
832
|
+
const C = V("FmTextField"), B = V("FmSelect"), z = V("FmTextarea"), G = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), K = V("FmForm");
|
|
833
|
+
return M(), le(K, {
|
|
834
834
|
ref_key: "formRef",
|
|
835
835
|
ref: _,
|
|
836
836
|
class: "flex flex-col gap-32",
|
|
837
837
|
disabled: l.disabled
|
|
838
838
|
}, {
|
|
839
839
|
default: P(() => {
|
|
840
|
-
var
|
|
840
|
+
var J;
|
|
841
841
|
return [
|
|
842
842
|
e("div", co, [
|
|
843
843
|
e("div", fo, [
|
|
@@ -848,20 +848,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
848
848
|
"onUpdate:modelValue": n[0] || (n[0] = (S) => t(s).name = S),
|
|
849
849
|
rules: [t(ke)()]
|
|
850
850
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
851
|
-
m(
|
|
851
|
+
m(B, {
|
|
852
852
|
label: t(u)("inventory.transfer.form.type.title"),
|
|
853
853
|
"model-value": R.value,
|
|
854
854
|
"onUpdate:modelValue": n[1] || (n[1] = (S) => R.value = S),
|
|
855
855
|
items: [
|
|
856
856
|
{
|
|
857
857
|
label: t(u)("inventory.transfer.form.type.purchase"),
|
|
858
|
-
value: t(
|
|
858
|
+
value: t(X).PURCHASE,
|
|
859
859
|
disabled: !t(T).locationOptionsTypePurchase.value.length,
|
|
860
860
|
sublabel: t(T).locationOptionsTypePurchase.value.length ? void 0 : t(u)("inventory.transfer.form.noSupplierAvailable")
|
|
861
861
|
},
|
|
862
862
|
{
|
|
863
863
|
label: t(u)("inventory.transfer.form.type.transfer"),
|
|
864
|
-
value: t(
|
|
864
|
+
value: t(X).TRANSFER,
|
|
865
865
|
disabled: !t(T).locationOptionsTypeTransfer.value.length,
|
|
866
866
|
sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
|
|
867
867
|
}
|
|
@@ -878,8 +878,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
878
878
|
]),
|
|
879
879
|
_: 1
|
|
880
880
|
}, 8, ["label", "model-value", "items", "rules"]),
|
|
881
|
-
m(
|
|
882
|
-
label: R.value === t(
|
|
881
|
+
m(B, {
|
|
882
|
+
label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
|
|
883
883
|
modelValue: d.value,
|
|
884
884
|
"onUpdate:modelValue": n[2] || (n[2] = (S) => d.value = S),
|
|
885
885
|
items: U.value
|
|
@@ -916,8 +916,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
916
916
|
label: t(u)("inventory.transfer.form.remark"),
|
|
917
917
|
"label-mark": "optional",
|
|
918
918
|
"max-length": 240,
|
|
919
|
-
modelValue:
|
|
920
|
-
"onUpdate:modelValue": n[4] || (n[4] = (S) =>
|
|
919
|
+
modelValue: $.value,
|
|
920
|
+
"onUpdate:modelValue": n[4] || (n[4] = (S) => $.value = S),
|
|
921
921
|
class: re({ "text-fm-color-typo-disabled": l.disabled })
|
|
922
922
|
}, null, 8, ["label", "modelValue", "class"])
|
|
923
923
|
])
|
|
@@ -944,7 +944,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
944
944
|
e("div", bo, [
|
|
945
945
|
m(A, {
|
|
946
946
|
"model-value": [
|
|
947
|
-
(
|
|
947
|
+
(J = a.modelValue.purchaseOrder.supplier) == null ? void 0 : J._id,
|
|
948
948
|
...a.modelValue.locations ?? []
|
|
949
949
|
].join(","),
|
|
950
950
|
rules: [O]
|
|
@@ -954,7 +954,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
954
954
|
e("div", go, [
|
|
955
955
|
e("div", ho, [
|
|
956
956
|
e("div", xo, I(t(u)("inventory.transfer.form.items.title")), 1),
|
|
957
|
-
t(b).isEnabled ? (
|
|
957
|
+
t(b).isEnabled ? (M(), le(G, {
|
|
958
958
|
key: 0,
|
|
959
959
|
label: "Check NetSuite",
|
|
960
960
|
"prepend-icon": "troubleshoot",
|
|
@@ -968,11 +968,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
968
968
|
"prepend-icon": "add",
|
|
969
969
|
variant: "plain",
|
|
970
970
|
class: "border-2 rounded-lg border-fm-color-primary",
|
|
971
|
-
onClick: n[5] || (n[5] = (S) =>
|
|
971
|
+
onClick: n[5] || (n[5] = (S) => Z()),
|
|
972
972
|
size: "md"
|
|
973
973
|
}, null, 8, ["disabled", "label"])
|
|
974
974
|
]),
|
|
975
|
-
t(b).isEnabled ? (
|
|
975
|
+
t(b).isEnabled ? (M(), N("div", _o, n[9] || (n[9] = [
|
|
976
976
|
ne(" NetSuite is enabled. "),
|
|
977
977
|
e("ul", { style: { "list-style": "initial", "margin-left": "20px" } }, [
|
|
978
978
|
e("li", null, ' When adding new item or changing UOM, the first match available custom code (if any) will be applied to "Code" for each item by default. '),
|
|
@@ -991,8 +991,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
991
991
|
]),
|
|
992
992
|
n[13] || (n[13] = e("p", null, ' You can leave "Max" empty to remove the limit on the maximum quantity of the item when creating an order request. ', -1))
|
|
993
993
|
]),
|
|
994
|
-
(
|
|
995
|
-
"column-defs":
|
|
994
|
+
(M(), le(D, {
|
|
995
|
+
"column-defs": L.value,
|
|
996
996
|
"row-data": t(s).purchaseOrder.items,
|
|
997
997
|
key: t(s).purchaseOrder.items.map((S) => S.sku._id).join("."),
|
|
998
998
|
"hide-footer": "",
|
|
@@ -1007,7 +1007,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1007
1007
|
}, null, 8, ["row", "errorMessage", "disabled"])
|
|
1008
1008
|
]),
|
|
1009
1009
|
"list-row": P((S) => [
|
|
1010
|
-
(
|
|
1010
|
+
(M(), le(Je, {
|
|
1011
1011
|
row: S,
|
|
1012
1012
|
key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
|
|
1013
1013
|
}, {
|
|
@@ -1051,7 +1051,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1051
1051
|
}
|
|
1052
1052
|
return (u, x) => {
|
|
1053
1053
|
const F = V("FmButton"), c = V("FmDialog");
|
|
1054
|
-
return
|
|
1054
|
+
return M(), N("div", null, [
|
|
1055
1055
|
m(F, {
|
|
1056
1056
|
label: v.label,
|
|
1057
1057
|
loading: v.loading,
|
|
@@ -1090,9 +1090,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1090
1090
|
]);
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
}), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" },
|
|
1093
|
+
}), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" }, $o = { class: "flex gap-4" }, Mo = /* @__PURE__ */ ae({
|
|
1094
1094
|
__name: "TransferTemplateDialog",
|
|
1095
|
-
props: /* @__PURE__ */
|
|
1095
|
+
props: /* @__PURE__ */ Be({
|
|
1096
1096
|
mode: {},
|
|
1097
1097
|
modelValue: {},
|
|
1098
1098
|
show: { type: Boolean }
|
|
@@ -1100,10 +1100,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1100
1100
|
disabled: { type: Boolean },
|
|
1101
1101
|
disabledModifiers: {}
|
|
1102
1102
|
}),
|
|
1103
|
-
emits: /* @__PURE__ */
|
|
1103
|
+
emits: /* @__PURE__ */ Be(["update:show", "submitted"], ["update:disabled"]),
|
|
1104
1104
|
setup(p, { expose: h, emit: v }) {
|
|
1105
1105
|
var w;
|
|
1106
|
-
const a = p, r = v, s = Pt(), u = Tt(), { t: x } = me(), F =
|
|
1106
|
+
const a = p, r = v, s = Pt(), u = Tt(), { t: x } = me(), F = Xe(a, "show");
|
|
1107
1107
|
function c() {
|
|
1108
1108
|
return {
|
|
1109
1109
|
_id: "",
|
|
@@ -1142,7 +1142,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1142
1142
|
i && (o.value = a.modelValue ?? c(), f.value = ((g = a.modelValue) == null ? void 0 : g._id) ?? `${Math.random()}`);
|
|
1143
1143
|
}
|
|
1144
1144
|
);
|
|
1145
|
-
const b = lt(p, "disabled"), k =
|
|
1145
|
+
const b = lt(p, "disabled"), k = E(() => {
|
|
1146
1146
|
switch (a.mode) {
|
|
1147
1147
|
case ue.READ:
|
|
1148
1148
|
return "";
|
|
@@ -1172,20 +1172,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1172
1172
|
const i = o.value;
|
|
1173
1173
|
if (i) {
|
|
1174
1174
|
b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
|
|
1175
|
-
({ totalCost:
|
|
1175
|
+
({ totalCost: $, ..._ }) => _
|
|
1176
1176
|
));
|
|
1177
1177
|
try {
|
|
1178
|
-
await s.createTemplate(i), await new Promise((
|
|
1178
|
+
await s.createTemplate(i), await new Promise(($) => setTimeout($, 1e3)), u.open({
|
|
1179
1179
|
title: x("inventory.transfer.template.create.success"),
|
|
1180
1180
|
message: x("inventory.transfer.template.create.successMessage"),
|
|
1181
1181
|
type: "success"
|
|
1182
1182
|
}), r("update:show", !1), r("submitted");
|
|
1183
|
-
} catch (
|
|
1183
|
+
} catch ($) {
|
|
1184
1184
|
u.open({
|
|
1185
1185
|
title: x("inventory.transfer.template.create.error"),
|
|
1186
1186
|
message: x("inventory.transfer.template.create.errorMessage"),
|
|
1187
1187
|
type: "error"
|
|
1188
|
-
}), console.error("Error in creating transfer template",
|
|
1188
|
+
}), console.error("Error in creating transfer template", $);
|
|
1189
1189
|
} finally {
|
|
1190
1190
|
b.value = !1;
|
|
1191
1191
|
}
|
|
@@ -1196,20 +1196,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1196
1196
|
const i = o.value;
|
|
1197
1197
|
if (i) {
|
|
1198
1198
|
b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
|
|
1199
|
-
({ totalCost:
|
|
1199
|
+
({ totalCost: $, ..._ }) => _
|
|
1200
1200
|
));
|
|
1201
1201
|
try {
|
|
1202
|
-
await s.updateTemplate(i), await new Promise((
|
|
1202
|
+
await s.updateTemplate(i), await new Promise(($) => setTimeout($, 1e3)), u.open({
|
|
1203
1203
|
title: x("inventory.transfer.template.update.success"),
|
|
1204
1204
|
message: x("inventory.transfer.template.update.successMessage"),
|
|
1205
1205
|
type: "success"
|
|
1206
1206
|
}), r("update:show", !1), r("submitted");
|
|
1207
|
-
} catch (
|
|
1207
|
+
} catch ($) {
|
|
1208
1208
|
u.open({
|
|
1209
1209
|
title: x("inventory.transfer.template.update.error"),
|
|
1210
1210
|
message: x("inventory.transfer.template.update.errorMessage"),
|
|
1211
1211
|
type: "error"
|
|
1212
|
-
}), console.error("Error in updating transfer template",
|
|
1212
|
+
}), console.error("Error in updating transfer template", $);
|
|
1213
1213
|
} finally {
|
|
1214
1214
|
b.value = !1;
|
|
1215
1215
|
}
|
|
@@ -1228,8 +1228,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1228
1228
|
(g = (i = T.value) == null ? void 0 : i.validateInputs) == null || g.call(i);
|
|
1229
1229
|
}
|
|
1230
1230
|
return (i, g) => {
|
|
1231
|
-
const O = V("FmButton"),
|
|
1232
|
-
return
|
|
1231
|
+
const O = V("FmButton"), $ = V("FmSideSheet");
|
|
1232
|
+
return M(), le($, {
|
|
1233
1233
|
modelValue: t(F),
|
|
1234
1234
|
"onUpdate:modelValue": g[3] || (g[3] = (_) => Ye(F) ? F.value = _ : null),
|
|
1235
1235
|
"dismiss-away": "",
|
|
@@ -1242,7 +1242,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1242
1242
|
])
|
|
1243
1243
|
]),
|
|
1244
1244
|
default: P(() => [
|
|
1245
|
-
(
|
|
1245
|
+
(M(), le(To, {
|
|
1246
1246
|
class: "w-full",
|
|
1247
1247
|
ref_key: "formRef",
|
|
1248
1248
|
ref: T,
|
|
@@ -1255,7 +1255,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1255
1255
|
}, null, 8, ["model-value", "disabled"]))
|
|
1256
1256
|
]),
|
|
1257
1257
|
"side-sheet-footer": P(() => [
|
|
1258
|
-
e("div",
|
|
1258
|
+
e("div", $o, [
|
|
1259
1259
|
m(Fo, {
|
|
1260
1260
|
loading: b.value,
|
|
1261
1261
|
label: t(x)("common.save"),
|
|
@@ -1283,10 +1283,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1283
1283
|
}, 8, ["modelValue"]);
|
|
1284
1284
|
};
|
|
1285
1285
|
}
|
|
1286
|
-
}), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1286
|
+
}), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qo = { class: "flex gap-1" }, Bo = { class: "fm-typo-en-body-lg-600" }, No = {
|
|
1287
1287
|
key: 0,
|
|
1288
1288
|
class: "flex flex-col gap-4"
|
|
1289
|
-
},
|
|
1289
|
+
}, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
|
|
1290
1290
|
key: 1,
|
|
1291
1291
|
class: "flex flex-col gap-4"
|
|
1292
1292
|
}, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = { class: "fm-typo-en-body-lg-600" }, Yo = {
|
|
@@ -1295,7 +1295,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1295
1295
|
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
|
|
1296
1296
|
key: 3,
|
|
1297
1297
|
class: "flex flex-col gap-4"
|
|
1298
|
-
},
|
|
1298
|
+
}, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
|
|
1299
1299
|
key: 0,
|
|
1300
1300
|
class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
1301
1301
|
}, is = {
|
|
@@ -1309,22 +1309,22 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1309
1309
|
},
|
|
1310
1310
|
emits: ["update:show", "action:edit"],
|
|
1311
1311
|
setup(p, { emit: h }) {
|
|
1312
|
-
const v = p, a = h, r = ge(), { t: s } = me(), u =
|
|
1312
|
+
const v = p, a = h, r = ge(), { t: s } = me(), u = E(() => {
|
|
1313
1313
|
var b;
|
|
1314
1314
|
return (b = v.template) == null ? void 0 : b.purchaseOrder;
|
|
1315
1315
|
}), x = [
|
|
1316
1316
|
{ accessorKey: "name", header: () => "Name" },
|
|
1317
1317
|
{ accessorKey: "type", header: () => "Type" }
|
|
1318
|
-
], F = Y(""), c =
|
|
1318
|
+
], F = Y(""), c = E(
|
|
1319
1319
|
() => {
|
|
1320
1320
|
var b, k, T, R;
|
|
1321
|
-
return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ?
|
|
1321
|
+
return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ? X.TRANSFER : X.PURCHASE;
|
|
1322
1322
|
}
|
|
1323
|
-
), o = Y(!0), f =
|
|
1323
|
+
), o = Y(!0), f = Xe(v, "show");
|
|
1324
1324
|
return (b, k) => {
|
|
1325
1325
|
var g;
|
|
1326
1326
|
const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
|
|
1327
|
-
return
|
|
1327
|
+
return M(), le(i, {
|
|
1328
1328
|
header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
|
|
1329
1329
|
modelValue: t(f),
|
|
1330
1330
|
"onUpdate:modelValue": k[2] || (k[2] = (O) => Ye(f) ? f.value = O : null),
|
|
@@ -1333,7 +1333,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1333
1333
|
"max-width": 1200
|
|
1334
1334
|
}, {
|
|
1335
1335
|
default: P(() => {
|
|
1336
|
-
var O,
|
|
1336
|
+
var O, $;
|
|
1337
1337
|
return [
|
|
1338
1338
|
e("div", Oo, [
|
|
1339
1339
|
e("div", null, [
|
|
@@ -1342,7 +1342,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1342
1342
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
1343
1343
|
}, {
|
|
1344
1344
|
default: P(() => {
|
|
1345
|
-
var _, W, te,
|
|
1345
|
+
var _, W, te, L, q, Z, l, n, C;
|
|
1346
1346
|
return [
|
|
1347
1347
|
e("div", Do, [
|
|
1348
1348
|
e("div", Vo, I(t(s)("inventory.transfer.template.details.templateSummary")), 1),
|
|
@@ -1354,32 +1354,32 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1354
1354
|
e("div", Ro, [
|
|
1355
1355
|
e("div", Po, [
|
|
1356
1356
|
e("div", Uo, [
|
|
1357
|
-
e("div",
|
|
1357
|
+
e("div", qo, I(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
1358
1358
|
]),
|
|
1359
|
-
e("div",
|
|
1359
|
+
e("div", Bo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
|
|
1360
1360
|
]),
|
|
1361
|
-
(W = b.template) != null && W.updatedAt ? (
|
|
1362
|
-
e("div",
|
|
1363
|
-
e("div",
|
|
1361
|
+
(W = b.template) != null && W.updatedAt ? (M(), N("div", No, [
|
|
1362
|
+
e("div", Eo, [
|
|
1363
|
+
e("div", Lo, I(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
|
|
1364
1364
|
]),
|
|
1365
1365
|
e("div", zo, [
|
|
1366
1366
|
ne(I(t(vt)(new Date(b.template.updatedAt))) + " ", 1),
|
|
1367
|
-
(te = b.template.updatedBy) != null && te.name ? (
|
|
1367
|
+
(te = b.template.updatedBy) != null && te.name ? (M(), N(pe, { key: 0 }, [
|
|
1368
1368
|
ne(" (" + I(b.template.updatedBy.name) + ") ", 1)
|
|
1369
1369
|
], 64)) : oe("", !0)
|
|
1370
1370
|
])
|
|
1371
1371
|
])) : oe("", !0),
|
|
1372
|
-
(
|
|
1372
|
+
(q = (L = u.value) == null ? void 0 : L.supplier) != null && q.name ? (M(), N("div", Ho, [
|
|
1373
1373
|
e("div", jo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1374
|
-
e("div", Qo, I((l = (
|
|
1374
|
+
e("div", Qo, I((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
|
|
1375
1375
|
])) : oe("", !0),
|
|
1376
|
-
(n = u.value) != null && n.ref ? (
|
|
1376
|
+
(n = u.value) != null && n.ref ? (M(), N("div", Yo, [
|
|
1377
1377
|
e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1378
1378
|
e("div", Go, I(u.value.ref), 1)
|
|
1379
1379
|
])) : oe("", !0),
|
|
1380
|
-
(C = u.value) != null && C.remark ? (
|
|
1381
|
-
e("div",
|
|
1382
|
-
e("div",
|
|
1380
|
+
(C = u.value) != null && C.remark ? (M(), N("div", Ko, [
|
|
1381
|
+
e("div", Zo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1382
|
+
e("div", Jo, I(u.value.remark), 1)
|
|
1383
1383
|
])) : oe("", !0)
|
|
1384
1384
|
])
|
|
1385
1385
|
];
|
|
@@ -1387,10 +1387,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1387
1387
|
_: 1
|
|
1388
1388
|
})
|
|
1389
1389
|
]),
|
|
1390
|
-
e("div",
|
|
1390
|
+
e("div", Xo, [
|
|
1391
1391
|
e("div", es, [
|
|
1392
1392
|
e("div", ts, I(t(s)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
1393
|
-
(
|
|
1393
|
+
(M(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => (M(), N("div", {
|
|
1394
1394
|
key: _.code,
|
|
1395
1395
|
class: "flex flex-col"
|
|
1396
1396
|
}, [
|
|
@@ -1401,9 +1401,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1401
1401
|
]),
|
|
1402
1402
|
e("div", ns, [
|
|
1403
1403
|
e("div", as, I(_.code), 1),
|
|
1404
|
-
_.totalCost && t(r).enableTotalCost ? (
|
|
1404
|
+
_.totalCost && t(r).enableTotalCost ? (M(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
|
|
1405
1405
|
]),
|
|
1406
|
-
t(kt)(_) ? (
|
|
1406
|
+
t(kt)(_) ? (M(), N("div", is, [
|
|
1407
1407
|
m(U, {
|
|
1408
1408
|
name: "error",
|
|
1409
1409
|
color: "system-error-300",
|
|
@@ -1433,7 +1433,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1433
1433
|
style: { height: "500px" },
|
|
1434
1434
|
"column-defs": x,
|
|
1435
1435
|
"search-value": F.value,
|
|
1436
|
-
"row-data": ((
|
|
1436
|
+
"row-data": (($ = v.template) == null ? void 0 : $.locations) ?? [{ name: "All locations" }]
|
|
1437
1437
|
}, null, 8, ["search-value", "row-data"])
|
|
1438
1438
|
])
|
|
1439
1439
|
])
|
|
@@ -1456,14 +1456,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1456
1456
|
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Os = /* @__PURE__ */ ae({
|
|
1457
1457
|
__name: "TransferTemplateView",
|
|
1458
1458
|
setup(p) {
|
|
1459
|
-
const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = wt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k =
|
|
1459
|
+
const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = wt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Ze(), { breakpoints: T } = Ct();
|
|
1460
1460
|
Te(F.fetchTemplates);
|
|
1461
|
-
const R =
|
|
1461
|
+
const R = E(
|
|
1462
1462
|
() => f.value || c.value || !k._currentLocation
|
|
1463
|
-
), U =
|
|
1464
|
-
function i(
|
|
1465
|
-
switch (
|
|
1466
|
-
case
|
|
1463
|
+
), U = E(() => o.value), d = Y(""), y = E(() => T.value.xs || T.value.sm), w = E(() => y.value ? 10 : 20);
|
|
1464
|
+
function i($) {
|
|
1465
|
+
switch ($) {
|
|
1466
|
+
case Le.Add:
|
|
1467
1467
|
return v();
|
|
1468
1468
|
case "refresh":
|
|
1469
1469
|
return F.fetchTemplates();
|
|
@@ -1473,13 +1473,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1473
1473
|
return s();
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function g(
|
|
1477
|
-
return
|
|
1476
|
+
function g($) {
|
|
1477
|
+
return $;
|
|
1478
1478
|
}
|
|
1479
|
-
const O =
|
|
1479
|
+
const O = E(() => [
|
|
1480
1480
|
{
|
|
1481
1481
|
label: h("inventory.closing.template.create.title"),
|
|
1482
|
-
value:
|
|
1482
|
+
value: Le.Add,
|
|
1483
1483
|
isPrimary: !0,
|
|
1484
1484
|
prependIcon: "add"
|
|
1485
1485
|
},
|
|
@@ -1499,9 +1499,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1499
1499
|
isPrimary: !1
|
|
1500
1500
|
}
|
|
1501
1501
|
]);
|
|
1502
|
-
return (
|
|
1502
|
+
return ($, _) => {
|
|
1503
1503
|
const W = V("FmTable");
|
|
1504
|
-
return
|
|
1504
|
+
return M(), N(pe, null, [
|
|
1505
1505
|
m(ht, {
|
|
1506
1506
|
title: t(h)("inventory.transfer.template.title2"),
|
|
1507
1507
|
actions: O.value,
|
|
@@ -1522,59 +1522,59 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1522
1522
|
m(xt, {
|
|
1523
1523
|
searchable: "",
|
|
1524
1524
|
search: d.value,
|
|
1525
|
-
"onUpdate:search": _[0] || (_[0] = (
|
|
1525
|
+
"onUpdate:search": _[0] || (_[0] = (L) => d.value = L)
|
|
1526
1526
|
}, null, 8, ["search"]),
|
|
1527
|
-
(
|
|
1527
|
+
(M(), le(W, {
|
|
1528
1528
|
style: _e(t(b).tableHeight),
|
|
1529
1529
|
"column-defs": t(F).columnDefs,
|
|
1530
1530
|
"row-data": U.value,
|
|
1531
1531
|
"search-value": d.value,
|
|
1532
1532
|
loading: R.value,
|
|
1533
1533
|
key: (te = t(k)._currentLocation) == null ? void 0 : te.dbName,
|
|
1534
|
-
onRowClick: _[1] || (_[1] = (
|
|
1534
|
+
onRowClick: _[1] || (_[1] = (L) => t(a)(L.original)),
|
|
1535
1535
|
"page-size": w.value
|
|
1536
1536
|
}, {
|
|
1537
|
-
"list-row": P((
|
|
1538
|
-
m(
|
|
1539
|
-
row:
|
|
1540
|
-
onRowClick: (
|
|
1537
|
+
"list-row": P((L) => [
|
|
1538
|
+
m(Je, {
|
|
1539
|
+
row: L,
|
|
1540
|
+
onRowClick: (q) => t(a)(q)
|
|
1541
1541
|
}, {
|
|
1542
|
-
default: P((
|
|
1543
|
-
var
|
|
1542
|
+
default: P((q) => {
|
|
1543
|
+
var Z, l, n, C, B, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, $e, Me, Oe, ce, De, Ve, Ae, Re, fe, Pe;
|
|
1544
1544
|
return [
|
|
1545
1545
|
e("div", cs, [
|
|
1546
1546
|
e("div", fs, [
|
|
1547
1547
|
e("div", ys, [
|
|
1548
1548
|
m(t(ee), {
|
|
1549
|
-
render: (n = (l = (
|
|
1550
|
-
props: (
|
|
1549
|
+
render: (n = (l = (Z = q._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
|
|
1550
|
+
props: (B = (C = q._id) == null ? void 0 : C.getContext) == null ? void 0 : B.call(C)
|
|
1551
1551
|
}, null, 8, ["render", "props"])
|
|
1552
1552
|
]),
|
|
1553
1553
|
e("div", vs, [
|
|
1554
1554
|
m(t(ee), {
|
|
1555
|
-
render: (D = (G = (z =
|
|
1556
|
-
props: (K = (A =
|
|
1555
|
+
render: (D = (G = (z = q.name) == null ? void 0 : z.column) == null ? void 0 : G.columnDef) == null ? void 0 : D.cell,
|
|
1556
|
+
props: (K = (A = q.name) == null ? void 0 : A.getContext) == null ? void 0 : K.call(A)
|
|
1557
1557
|
}, null, 8, ["render", "props"])
|
|
1558
1558
|
]),
|
|
1559
1559
|
e("div", bs, [
|
|
1560
1560
|
m(t(ee), {
|
|
1561
|
-
render: (H = (S = (
|
|
1562
|
-
props: (Fe = (ie =
|
|
1561
|
+
render: (H = (S = (J = q.supplier) == null ? void 0 : J.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
|
|
1562
|
+
props: (Fe = (ie = q.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
|
|
1563
1563
|
}, null, 8, ["render", "props"])
|
|
1564
1564
|
]),
|
|
1565
|
-
e("div", null, I((Se =
|
|
1566
|
-
e("div", gs, I(
|
|
1565
|
+
e("div", null, I((Se = L.original.locations) != null && Se.length ? `Enabled for ${(Ie = L.original.locations) == null ? void 0 : Ie.length} outlets` : "Enabled for all outlets"), 1),
|
|
1566
|
+
e("div", gs, I(L.original.purchaseOrder.items.length ? L.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
|
|
1567
1567
|
e("div", hs, [
|
|
1568
1568
|
m(t(ee), {
|
|
1569
|
-
render: (Oe = (
|
|
1570
|
-
props: (De = (ce =
|
|
1569
|
+
render: (Oe = (Me = ($e = q.ref) == null ? void 0 : $e.column) == null ? void 0 : Me.columnDef) == null ? void 0 : Oe.cell,
|
|
1570
|
+
props: (De = (ce = q.ref) == null ? void 0 : ce.getContext) == null ? void 0 : De.call(ce)
|
|
1571
1571
|
}, null, 8, ["render", "props"])
|
|
1572
1572
|
])
|
|
1573
1573
|
]),
|
|
1574
1574
|
e("div", null, [
|
|
1575
1575
|
m(t(ee), {
|
|
1576
|
-
render: (Re = (Ae = (Ve =
|
|
1577
|
-
props: (Pe = (fe =
|
|
1576
|
+
render: (Re = (Ae = (Ve = q.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
|
|
1577
|
+
props: (Pe = (fe = q.type) == null ? void 0 : fe.getContext) == null ? void 0 : Pe.call(fe)
|
|
1578
1578
|
}, null, 8, ["render", "props"])
|
|
1579
1579
|
])
|
|
1580
1580
|
])
|
|
@@ -1590,9 +1590,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1590
1590
|
}),
|
|
1591
1591
|
_: 1
|
|
1592
1592
|
}, 8, ["title", "actions"]),
|
|
1593
|
-
(
|
|
1593
|
+
(M(), le(nt, { to: "body" }, [
|
|
1594
1594
|
m(ps, at(rt(t(x))), null, 16),
|
|
1595
|
-
m(
|
|
1595
|
+
m(Mo, Qe(t(u), {
|
|
1596
1596
|
onSubmitted: _[2] || (_[2] = (te) => t(F).fetchTemplates())
|
|
1597
1597
|
}), null, 16)
|
|
1598
1598
|
]))
|