@feedmepos/mf-inventory-portal 1.0.38 → 1.0.39
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-Bh_jIWxm.js → App-Bt0e2n-m.js} +1 -1
- package/dist/{ApprovalView-U-Jo7wyv.js → ApprovalView-BYd63yvj.js} +19 -19
- package/dist/{BindingsDialog-CC0wt6a_.js → BindingsDialog-9D6UOcDp.js} +4 -4
- package/dist/{BindingsPicker-WL_1lOdc.js → BindingsPicker--Vm4weI3.js} +1 -1
- package/dist/{BindingsTable-DJf1WJou.js → BindingsTable-DGHN8lRO.js} +4 -4
- package/dist/{ClosingDraftView-BI19VIT_.js → ClosingDraftView-CH8j-LTL.js} +26 -26
- package/dist/ClosingTemplateView-IKON-MRo.js +1849 -0
- package/dist/{DeliveryOrderPrintPreview-LANZdQE7.js → DeliveryOrderPrintPreview-Ck-nrZ3U.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bhz1nVO6.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Csnq6SpA.js} +11 -11
- package/dist/{FmMultiselectDialog-B16LNSaK.js → FmMultiselectDialog-x_pPeeUw.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-pAmapm7v.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B88hbpoh.js} +21 -21
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7wM9EQ2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMs8hdak.js} +1 -1
- package/dist/{IngredientGroupView-Bi8657CZ.js → IngredientGroupView-D1qKwLux.js} +2 -2
- package/dist/IngredientsView-BeBN6cke.js +1858 -0
- package/dist/{IntegrationView-mYS_UJlk.js → IntegrationView-By8g31e5.js} +77 -76
- package/dist/{InventoryBindingForm-D-Y-IDFl.js → InventoryBindingForm-CU0pvHRP.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByFJ6s6U.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NxZjLjCh.js} +24 -24
- package/dist/{InventoryBindingSummary-z6XljZ_R.js → InventoryBindingSummary-B_y6WR3o.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ihrVnPMe.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CPGZh3TN.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DhoXg0vX.js → PremiumBadge.vue_vue_type_script_setup_true_lang-g2XDRfkl.js} +10 -10
- package/dist/{PublishView-DB7j7FkK.js → PublishView-B_c-fWDu.js} +17 -17
- package/dist/{PurchaseOrderPrintPreview-CTQIzDKp.js → PurchaseOrderPrintPreview-BCRL75HR.js} +12 -12
- package/dist/{ReceiveRequestView-B2UDO9o9.js → ReceiveRequestView-BrwJpnEe.js} +797 -782
- package/dist/{RecipeView-BIDDh0V9.js → RecipeView-Cn6NY1IO.js} +3 -3
- package/dist/{StockView-BgzAJBdL.js → StockView-DEx5DPM9.js} +6 -6
- package/dist/{SupplierView-zS3HDy59.js → SupplierView-BFNNKC01.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DhnPjxXG.js → TransferDetails.vue_vue_type_script_setup_true_lang-UN-fDAMb.js} +634 -632
- package/dist/{TransferTemplateView-DLS9QAGY.js → TransferTemplateView-CS8mbtcf.js} +83 -83
- package/dist/{UnitView-B8mfgqXO.js → UnitView-UKnui3HV.js} +3 -3
- package/dist/{WarehouseView-D4yYBRSM.js → WarehouseView-K4AyxptS.js} +1 -1
- package/dist/api/duplicate-template.d.ts +5 -0
- package/dist/api/inventory.d.ts +4 -0
- package/dist/api/netsuite.d.ts +7 -0
- package/dist/{app-BLo-E2P1.js → app-DqUjChxa.js} +52853 -52344
- package/dist/app.d.ts +9 -0
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +2 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -0
- package/dist/{decimal-u4mLA_2Z.js → decimal-LA_Bg4TZ.js} +1 -1
- package/dist/format-unit-display-Btqn8Vdi.js +1275 -0
- package/dist/{index-BbBtmjWx.js → index-DlXAEnHf.js} +1 -1
- package/dist/{index-Bu2R1xRv.js → index-iifMSNu9.js} +1 -1
- package/dist/{stock-BxIuAFed.js → stock-CuKsIhl3.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +7 -1
- package/dist/stores/inventory.d.ts +9 -0
- package/dist/{supplier-CQftkZPG.js → supplier-C4vIJUP1.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-C9I7bja9.js → use-ingredient-select-dialog-Rax2O0HM.js} +1 -1
- package/dist/{use-inventory-binding-dialog-s8nyBhfo.js → use-inventory-binding-dialog-DdggFLK-.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +4 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +16 -1
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -0
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +17 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +4 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +16 -1
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -0
- package/dist/{vue-i18n-C3CYm8Dg.js → vue-i18n-CkkKCDtp.js} +475 -475
- package/package.json +1 -1
- package/dist/ClosingTemplateView-B6p83fs1.js +0 -1804
- package/dist/IngredientsView-CGEQ-GvW.js +0 -1838
- package/dist/format-unit-display-g_Tq_sk7.js +0 -1230
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as w, computed as R, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as d, toDisplayString as G, createBlock as x, createCommentVNode as k } from "vue";
|
|
2
|
-
import { u as M, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-
|
|
2
|
+
import { u as M, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-DqUjChxa.js";
|
|
3
3
|
import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { useRouter as L, useRoute as K } from "vue-router";
|
|
5
5
|
import { u as $ } from "./useTabStorage-BkIVScW_.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as le, ref as
|
|
2
|
-
import { u as _e, b as
|
|
3
|
-
import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as le, ref as y, watch as ue, computed as d, resolveComponent as ie, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as i, normalizeClass as ce, createVNode as u, normalizeStyle as pe, toDisplayString as de, createElementBlock as me, createCommentVNode as fe, Teleport as ve, mergeProps as he } from "vue";
|
|
2
|
+
import { u as _e, b as De, aD as b, aO as ge, ae as X, B as ye, N as be, H as Oe, _ as Re, C as Se, E as xe, G as O } from "./app-DqUjChxa.js";
|
|
3
|
+
import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-UN-fDAMb.js";
|
|
4
4
|
import { useBreakpoints as Pe } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Ne } from "@feedmepos/mf-common";
|
|
6
|
-
const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" },
|
|
6
|
+
const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Le = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
|
-
},
|
|
9
|
+
}, Me = { class: "pt-8" }, Ue = /* @__PURE__ */ le({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
11
|
setup(ze) {
|
|
12
|
-
const s = ke(q.APPROVAL), { columnDefs: Z } = qe(q.APPROVAL, s), B = _e(), I =
|
|
12
|
+
const s = ke(q.APPROVAL), { columnDefs: Z } = qe(q.APPROVAL, s), B = _e(), I = De();
|
|
13
13
|
b.object({
|
|
14
14
|
name: b.string().optional().nullable(),
|
|
15
15
|
start: b.date().optional().nullable(),
|
|
16
16
|
end: b.date().optional().nullable()
|
|
17
17
|
});
|
|
18
|
-
const w =
|
|
18
|
+
const w = y({
|
|
19
19
|
name: "",
|
|
20
|
-
...
|
|
21
|
-
}), o =
|
|
20
|
+
...ge()
|
|
21
|
+
}), o = y({
|
|
22
22
|
startDate: X(w.value.start ?? /* @__PURE__ */ new Date()),
|
|
23
23
|
endDate: X(w.value.end ?? /* @__PURE__ */ new Date())
|
|
24
24
|
});
|
|
@@ -36,7 +36,7 @@ const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
36
36
|
}
|
|
37
37
|
s.updateDateRange(o.value.startDate, o.value.endDate);
|
|
38
38
|
});
|
|
39
|
-
const R =
|
|
39
|
+
const R = y(""), { breakpoints: P } = Pe(), S = d(() => P.value.xs || P.value.sm), ee = d(() => S.value ? 10 : 20), te = ye(), { t: N } = Ne(), ae = d(() => [
|
|
40
40
|
{
|
|
41
41
|
label: N("inventory.common.refresh"),
|
|
42
42
|
value: "refresh"
|
|
@@ -93,7 +93,7 @@ const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
93
93
|
}
|
|
94
94
|
];
|
|
95
95
|
return [...l, ...I.isEnabled ? r : []];
|
|
96
|
-
}), m =
|
|
96
|
+
}), m = y(null), ne = d(() => {
|
|
97
97
|
if (!m.value)
|
|
98
98
|
return s.purchaseRequests.value;
|
|
99
99
|
const l = be.build(m.value);
|
|
@@ -158,7 +158,7 @@ const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
158
158
|
onRowClick: (a) => n(s).promptShowTransferDetails(a.purchaseOrder, a)
|
|
159
159
|
}, {
|
|
160
160
|
default: k((a) => {
|
|
161
|
-
var c, p, T, f, C, A,
|
|
161
|
+
var c, p, T, f, C, A, V, L, v, M, z, h, E, _, F, $, H, Y, U, D, j, G, J, K, g, Q;
|
|
162
162
|
return [
|
|
163
163
|
i("div", Te, [
|
|
164
164
|
i("div", Ce, [
|
|
@@ -169,21 +169,21 @@ const Te = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
169
169
|
]),
|
|
170
170
|
i("div", Ae, [
|
|
171
171
|
u(n(O), {
|
|
172
|
-
render: (
|
|
173
|
-
props: (
|
|
172
|
+
render: (L = (V = (A = a.to_name) == null ? void 0 : A.column) == null ? void 0 : V.columnDef) == null ? void 0 : L.cell,
|
|
173
|
+
props: (M = (v = a.to_name) == null ? void 0 : v.getContext) == null ? void 0 : M.call(v)
|
|
174
174
|
}, null, 8, ["render", "props"])
|
|
175
175
|
]),
|
|
176
|
-
i("div",
|
|
177
|
-
($ = e.original.purchaseOrder) != null && $.ref ? (x(), me("div",
|
|
176
|
+
i("div", Ve, de((F = (_ = (E = (h = (z = e.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : E.call(h, (oe) => `${oe.name}`)) == null ? void 0 : _.join) == null ? void 0 : F.call(_, ", ")), 1),
|
|
177
|
+
($ = e.original.purchaseOrder) != null && $.ref ? (x(), me("div", Le, [
|
|
178
178
|
u(n(O), {
|
|
179
179
|
render: (U = (Y = (H = a.purchaseOrder_ref) == null ? void 0 : H.column) == null ? void 0 : Y.columnDef) == null ? void 0 : U.cell,
|
|
180
|
-
props: (j = (
|
|
180
|
+
props: (j = (D = a.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : j.call(D)
|
|
181
181
|
}, null, 8, ["render", "props"])
|
|
182
182
|
])) : fe("", !0),
|
|
183
|
-
i("div",
|
|
183
|
+
i("div", Me, [
|
|
184
184
|
u(n(O), {
|
|
185
185
|
render: (K = (J = (G = a.purchaseOrder_status) == null ? void 0 : G.column) == null ? void 0 : J.columnDef) == null ? void 0 : K.cell,
|
|
186
|
-
props: (Q = (
|
|
186
|
+
props: (Q = (g = a.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : Q.call(g)
|
|
187
187
|
}, null, 8, ["render", "props"])
|
|
188
188
|
])
|
|
189
189
|
])
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L,
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-NxZjLjCh.js";
|
|
3
|
+
import { a as L, a$ as S } from "./app-DqUjChxa.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
7
7
|
}, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "p-24 flex items-center justify-center gap-16"
|
|
10
|
-
},
|
|
10
|
+
}, A = /* @__PURE__ */ C({
|
|
11
11
|
__name: "BindingsDialog",
|
|
12
12
|
setup(N) {
|
|
13
13
|
const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
|
|
@@ -90,5 +90,5 @@ const U = {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
A as default
|
|
94
94
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M,
|
|
2
|
+
import { a as M, a$ as x, a2 as z } from "./app-DqUjChxa.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P,
|
|
2
|
+
import { F as b, a as P, a$ as R } from "./app-DqUjChxa.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
|
-
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" },
|
|
5
|
+
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
6
6
|
__name: "binding-ui",
|
|
7
7
|
props: {
|
|
8
8
|
items: { default: () => [] },
|
|
@@ -46,8 +46,8 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
|
|
|
46
46
|
}, [
|
|
47
47
|
p("div", O, v(e.name), 1),
|
|
48
48
|
p("div", V, v(e._skuLinked ? `${e._skuLinked} linked` : "Not linked"), 1),
|
|
49
|
-
p("div",
|
|
50
|
-
p("div",
|
|
49
|
+
p("div", $, v(e._recipeLinked ? `${e._recipeLinked} linked` : "Not linked"), 1),
|
|
50
|
+
p("div", S, [
|
|
51
51
|
w(t, {
|
|
52
52
|
variant: "tertiary",
|
|
53
53
|
icon: "edit",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Te, ref as N, computed as P, onMounted as Ie, resolveComponent as I, openBlock as A, createElementBlock as R, Fragment as
|
|
2
|
-
import { a3 as et, u as Se,
|
|
1
|
+
import { defineComponent as Te, ref as N, computed as P, onMounted as Ie, resolveComponent as I, openBlock as A, createElementBlock as R, Fragment as q, createTextVNode as pe, createBlock as Q, withCtx as Y, createElementVNode as r, toDisplayString as O, unref as D, createVNode as x, createCommentVNode as J, h as F, reactive as Ze, watch as Je, isRef as Le, normalizeClass as ve, renderList as he, normalizeStyle as Ee, Teleport as Qe, mergeProps as Xe } from "vue";
|
|
2
|
+
import { a3 as et, u as Se, am as M, ae as tt, an as at, m as nt, P as Re, j as L, t as ot, T as Ae, r as st, s as rt, v as lt, ao as He, ap as ze, a9 as Ne, aq as ne, af as ct, al as re, a0 as Be, D as Ue, i as _e, h as it, f as ut, a as dt, B as mt, _ as ft, C as pt, E as vt, G as we } from "./app-DqUjChxa.js";
|
|
3
3
|
import { useCoreStore as yt, useI18n as Ve } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Me, useDialog as gt, useProxiedModel as bt, components as fe, useBreakpoints as ht } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Oe, storeToRefs as At } from "pinia";
|
|
6
|
-
import { a as Ye, u as Ke } from "./stock-
|
|
6
|
+
import { a as Ye, u as Ke } from "./stock-CuKsIhl3.js";
|
|
7
7
|
import { E as Dt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const $e = et((s, l) => {
|
|
9
9
|
function e() {
|
|
@@ -176,7 +176,7 @@ const $e = et((s, l) => {
|
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
|
-
}, 8, ["disabled"])) : (A(), R(
|
|
179
|
+
}, 8, ["disabled"])) : (A(), R(q, { key: 0 }, [
|
|
180
180
|
pe("Loading")
|
|
181
181
|
], 64));
|
|
182
182
|
};
|
|
@@ -217,7 +217,7 @@ function Ft(s) {
|
|
|
217
217
|
return !s.abbrev.toLocaleLowerCase().includes("inactive");
|
|
218
218
|
}
|
|
219
219
|
function Bt(s) {
|
|
220
|
-
const l =
|
|
220
|
+
const l = qe(s);
|
|
221
221
|
return s.reduce(
|
|
222
222
|
(e, d) => {
|
|
223
223
|
var m;
|
|
@@ -226,7 +226,7 @@ function Bt(s) {
|
|
|
226
226
|
0
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function qe(s) {
|
|
230
230
|
return s.groupBy(
|
|
231
231
|
(l) => l.sku._id,
|
|
232
232
|
(l) => l.measurementsAmounts.filter((e) => !e.measurement.abbrev.toLocaleLowerCase().includes("inactive")).map((e) => e.measurement.id)
|
|
@@ -283,7 +283,7 @@ function Rt(s, l) {
|
|
|
283
283
|
const e = l.groupBy(
|
|
284
284
|
(j) => j.id,
|
|
285
285
|
(j) => j.balance
|
|
286
|
-
), d = [...s.items, ...s.negativeStockItems ?? []], m =
|
|
286
|
+
), d = [...s.items, ...s.negativeStockItems ?? []], m = qe(d), k = d.map((j) => {
|
|
287
287
|
var X, oe;
|
|
288
288
|
const K = ((X = e.get(j.sku._id)) == null ? void 0 : X[0]) ?? jt, te = ((oe = m == null ? void 0 : m.get(j.sku._id)) == null ? void 0 : oe[0]) ?? [];
|
|
289
289
|
return $t(j, K, te);
|
|
@@ -639,7 +639,7 @@ const Mt = Oe(
|
|
|
639
639
|
}, Kt = { class: "flex items-center gap-8" }, Gt = {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: "flex gap-8"
|
|
642
|
-
},
|
|
642
|
+
}, qt = { class: "overflow-x-auto" }, Wt = {
|
|
643
643
|
key: 1,
|
|
644
644
|
class: "flex-1 xs:w-screen xs:max-w-full"
|
|
645
645
|
}, Zt = {
|
|
@@ -687,7 +687,7 @@ const Mt = Oe(
|
|
|
687
687
|
Ie(te), Je(
|
|
688
688
|
() => e.show,
|
|
689
689
|
(a) => {
|
|
690
|
-
a && (
|
|
690
|
+
a && (W.value = ue[0], te());
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
693
|
const j = Ae(0), K = Ae(100);
|
|
@@ -1063,7 +1063,7 @@ const Mt = Oe(
|
|
|
1063
1063
|
label: "Action history",
|
|
1064
1064
|
value: "history"
|
|
1065
1065
|
}
|
|
1066
|
-
],
|
|
1066
|
+
], W = N(ue[0]), ee = P(() => {
|
|
1067
1067
|
var f, u, v;
|
|
1068
1068
|
const a = ((f = e.draft) == null ? void 0 : f.activityLogs) ?? [], t = ((u = e.draft) == null ? void 0 : u.rejectionHistory) ?? [];
|
|
1069
1069
|
for (const b of t)
|
|
@@ -1124,7 +1124,7 @@ const Mt = Oe(
|
|
|
1124
1124
|
var S, V, G, me;
|
|
1125
1125
|
return [
|
|
1126
1126
|
r("div", fa, [
|
|
1127
|
-
((S = e.draft) == null ? void 0 : S.status) === D(ne).enum.DRAFT ? (A(), R(
|
|
1127
|
+
((S = e.draft) == null ? void 0 : S.status) === D(ne).enum.DRAFT ? (A(), R(q, { key: 0 }, [
|
|
1128
1128
|
be.value ? (A(), Q(se, {
|
|
1129
1129
|
key: 0,
|
|
1130
1130
|
"z-index": 51
|
|
@@ -1176,11 +1176,11 @@ const Mt = Oe(
|
|
|
1176
1176
|
r("div", null, [
|
|
1177
1177
|
x(i, {
|
|
1178
1178
|
items: ue,
|
|
1179
|
-
modelValue:
|
|
1180
|
-
"onUpdate:modelValue": t[0] || (t[0] = (S) =>
|
|
1179
|
+
modelValue: W.value,
|
|
1180
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => W.value = S)
|
|
1181
1181
|
}, null, 8, ["modelValue"])
|
|
1182
1182
|
]),
|
|
1183
|
-
|
|
1183
|
+
W.value.value === "overview" ? (A(), R(q, { key: 0 }, [
|
|
1184
1184
|
x(u, {
|
|
1185
1185
|
variant: "outlined",
|
|
1186
1186
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
@@ -1198,7 +1198,7 @@ const Mt = Oe(
|
|
|
1198
1198
|
]),
|
|
1199
1199
|
x(f),
|
|
1200
1200
|
r("div", Lt, [
|
|
1201
|
-
(A(!0), R(
|
|
1201
|
+
(A(!0), R(q, null, he(ke.value, (G, me) => (A(), R("div", {
|
|
1202
1202
|
class: "flex flex-col gap-4",
|
|
1203
1203
|
key: me
|
|
1204
1204
|
}, [
|
|
@@ -1247,7 +1247,7 @@ const Mt = Oe(
|
|
|
1247
1247
|
t[11] || (t[11] = r("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Fetching info... ", -1))
|
|
1248
1248
|
]),
|
|
1249
1249
|
t[13] || (t[13] = r("div", { class: "h-80" }, null, -1))
|
|
1250
|
-
])) : (A(), R(
|
|
1250
|
+
])) : (A(), R(q, { key: 1 }, [
|
|
1251
1251
|
r("div", null, [
|
|
1252
1252
|
x(h, {
|
|
1253
1253
|
modelValue: ie.value,
|
|
@@ -1256,7 +1256,7 @@ const Mt = Oe(
|
|
|
1256
1256
|
}, null, 8, ["modelValue"])
|
|
1257
1257
|
]),
|
|
1258
1258
|
D(o).skuTags.size ? (A(), R("div", Gt, [
|
|
1259
|
-
(A(!0), R(
|
|
1259
|
+
(A(!0), R(q, null, he(D(o).skuTags.keys(), (S) => (A(), Q(de, {
|
|
1260
1260
|
key: `${S}`,
|
|
1261
1261
|
label: `${S}`,
|
|
1262
1262
|
selectable: "",
|
|
@@ -1283,7 +1283,7 @@ const Mt = Oe(
|
|
|
1283
1283
|
_: 2
|
|
1284
1284
|
}, 1032, ["label", "selected", "onClick"]))), 128))
|
|
1285
1285
|
])) : J("", !0),
|
|
1286
|
-
r("div",
|
|
1286
|
+
r("div", qt, [
|
|
1287
1287
|
r("div", {
|
|
1288
1288
|
style: Ee({ minWidth: `${ce.value}px` })
|
|
1289
1289
|
}, [
|
|
@@ -1297,9 +1297,9 @@ const Mt = Oe(
|
|
|
1297
1297
|
], 64))
|
|
1298
1298
|
])
|
|
1299
1299
|
], 64)) : J("", !0),
|
|
1300
|
-
|
|
1300
|
+
W.value.value === "history" ? (A(), R("div", Wt, [
|
|
1301
1301
|
ee.value.length ? (A(), R("div", Qt, [
|
|
1302
|
-
(A(!0), R(
|
|
1302
|
+
(A(!0), R(q, null, he(ee.value, (S, V) => (A(), R(q, { key: V }, [
|
|
1303
1303
|
r("div", Xt, [
|
|
1304
1304
|
r("div", ea, [
|
|
1305
1305
|
r("div", ta, [
|
|
@@ -1352,14 +1352,14 @@ const Mt = Oe(
|
|
|
1352
1352
|
}, {
|
|
1353
1353
|
default: Y(() => [
|
|
1354
1354
|
r("div", ua, [
|
|
1355
|
-
(A(!0), R(
|
|
1355
|
+
(A(!0), R(q, null, he(S.info, (G, me) => (A(), R("div", {
|
|
1356
1356
|
key: me,
|
|
1357
1357
|
class: "flex flex-col gap-4"
|
|
1358
1358
|
}, [
|
|
1359
1359
|
r("div", da, O(G == null ? void 0 : G.label), 1),
|
|
1360
1360
|
r("div", ma, [
|
|
1361
|
-
(A(!0), R(
|
|
1362
|
-
key:
|
|
1361
|
+
(A(!0), R(q, null, he(G == null ? void 0 : G.values, (Pe, We) => (A(), R("div", {
|
|
1362
|
+
key: We,
|
|
1363
1363
|
class: "fm-typo-en-body-lg-600"
|
|
1364
1364
|
}, O(Pe), 1))), 128))
|
|
1365
1365
|
])
|
|
@@ -1421,7 +1421,7 @@ const Mt = Oe(
|
|
|
1421
1421
|
]);
|
|
1422
1422
|
return (g, c) => {
|
|
1423
1423
|
const H = I("FmTable");
|
|
1424
|
-
return A(), R(
|
|
1424
|
+
return A(), R(q, null, [
|
|
1425
1425
|
x(ft, {
|
|
1426
1426
|
title: D(l)("inventory.closing.draft.title"),
|
|
1427
1427
|
actions: C.value,
|
|
@@ -1458,7 +1458,7 @@ const Mt = Oe(
|
|
|
1458
1458
|
onRowClick: ($) => D(e)($)
|
|
1459
1459
|
}, {
|
|
1460
1460
|
default: Y(($) => {
|
|
1461
|
-
var j, K, te, X, oe, De, le, ye, ce, ie, ge, ke, ue,
|
|
1461
|
+
var j, K, te, X, oe, De, le, ye, ce, ie, ge, ke, ue, W, ee, be, a, t, i, f;
|
|
1462
1462
|
return [
|
|
1463
1463
|
r("div", va, [
|
|
1464
1464
|
r("div", ya, [
|
|
@@ -1481,7 +1481,7 @@ const Mt = Oe(
|
|
|
1481
1481
|
r("div", Aa, [
|
|
1482
1482
|
x(D(we), {
|
|
1483
1483
|
render: (ue = (ke = (ge = $.ref) == null ? void 0 : ge.column) == null ? void 0 : ke.columnDef) == null ? void 0 : ue.cell,
|
|
1484
|
-
props: (ee = (
|
|
1484
|
+
props: (ee = (W = $.ref) == null ? void 0 : W.getContext) == null ? void 0 : ee.call(W)
|
|
1485
1485
|
}, null, 8, ["render", "props"])
|
|
1486
1486
|
])
|
|
1487
1487
|
]),
|