@feedmepos/mf-inventory-portal 1.2.9 → 1.2.10-dev.1
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-XpX30-FV.js → App-Bg2M5RwP.js} +1 -1
- package/dist/{ApprovalView-D2J7D_Nm.js → ApprovalView-C46UDXnc.js} +24 -24
- package/dist/{BindingsDialog-Uso69RV0.js → BindingsDialog-CtJjpbw-.js} +2 -2
- package/dist/{BindingsPicker-7w_Pih9R.js → BindingsPicker-B6Er5Lea.js} +1 -1
- package/dist/{BindingsTable-CbV4JqKs.js → BindingsTable-MPeTr_ip.js} +1 -1
- package/dist/{ClosingDraftView-Cs1hLPBv.js → ClosingDraftView-BaD3MLeG.js} +33 -33
- package/dist/{ClosingTemplateView-CzDxdTM8.js → ClosingTemplateView-C4z3GXwd.js} +3 -3
- package/dist/{DeliveryOrderPrintPreview-hVu8tti_.js → DeliveryOrderPrintPreview-BfafKFMa.js} +8 -8
- package/dist/{FmAdminBadge-UDCFElb7.js → FmAdminBadge-Dg5rl1fj.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CeEFXW2z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BATVvC9u.js} +11 -11
- package/dist/{FmMultiselectDialog-Bevvx1r8.js → FmMultiselectDialog-DJ-dIe8C.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C0mdy9Mc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js} +38 -38
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BKIf5UrZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-oaujHoaU.js} +1 -1
- package/dist/{IngredientGroupView-_eiXCYvr.js → IngredientGroupView-u4ubHtNF.js} +15 -15
- package/dist/{IngredientsView-okGkhfX0.js → IngredientsView-CXbJifY6.js} +831 -809
- package/dist/{IntegrationView-DYNRksif.js → IntegrationView-XEypfcAW.js} +137 -137
- package/dist/{InventoryBindingForm-DyFPXbNg.js → InventoryBindingForm-CETOb5Nj.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-1AvpT307.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DC52GJ2Y.js} +22 -22
- package/dist/{InventoryBindingSummary-BnzY__W8.js → InventoryBindingSummary-DbyJW8z0.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-iCRT5ZID.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQWWQxaq.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CxhPTM5O.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BruydtsG.js} +9 -9
- package/dist/{PublishView-BGI8t6ZI.js → PublishView-Cl3IluMR.js} +12 -12
- package/dist/{PurchaseOrderPrintPreview-BY0m_m2t.js → PurchaseOrderPrintPreview-BG_uBL4o.js} +7 -7
- package/dist/{ReceiveRequestView-BN63OwrJ.js → ReceiveRequestView-BvGlUVTp.js} +191 -191
- package/dist/{RecipeView-C6SFIYEV.js → RecipeView-C-7XU5F8.js} +12 -12
- package/dist/{StockView-DxAqF_Uz.js → StockView-rYhlg4fr.js} +680 -665
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0kASPO9.js +158 -0
- package/dist/{SupplierView-BGWP3TQ0.js → SupplierView-BoGoqUS-.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dr6Bst81.js → TransferDetails.vue_vue_type_script_setup_true_lang-D53vhWDq.js} +6 -6
- package/dist/{TransferTemplateView-CSMou2uQ.js → TransferTemplateView-DZIDXFp7.js} +143 -143
- package/dist/{UnitView-Dvn2OFBI.js → UnitView-CvHIFkue.js} +27 -27
- package/dist/{WarehouseView-DFIFxlqz.js → WarehouseView-Dh_WZz5L.js} +18 -18
- package/dist/{app-cExTkfVB.js → app-BT34Yv61.js} +9120 -9069
- package/dist/app.d.ts +6 -6
- package/dist/app.js +4 -4
- package/dist/{closing-template-CIbh7GpK.js → closing-template-JDCk0_lU.js} +1 -1
- package/dist/{decimal-DDB6xkYA.js → decimal-BTgTm2JD.js} +1 -1
- package/dist/{format-unit-display-C5nl2Pn9.js → format-unit-display-HHCA1rN3.js} +48 -48
- package/dist/{index-5McubZjo.js → index-Bz_lEYOD.js} +1 -1
- package/dist/{index-CYvmWIx7.js → index-CdamrmzX.js} +1 -1
- package/dist/{purchase-order-template-DqsMgrgI.js → purchase-order-template-DJiYiY6t.js} +1 -1
- package/dist/{stock-DzSlKGZm.js → stock-C8afHO4C.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-m9aBkFoK.js → supplier-C8RMKqQX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-et1B0WDI.js → use-ingredient-select-dialog-fLK9yq-0.js} +1 -1
- package/dist/{use-inventory-binding-dialog-B7_YL7HE.js → use-inventory-binding-dialog--7tzpXgV.js} +1 -1
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/package.json +1 -1
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
|
@@ -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-BT34Yv61.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,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as
|
|
2
|
-
import { u as De, b as ge,
|
|
3
|
-
import { a as
|
|
4
|
-
import { useBreakpoints as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1
|
+
import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as P, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
|
|
2
|
+
import { u as De, b as ge, aL as b, aU as ye, al as Z, K as be, N as Oe, J as Re, L as Se, O as xe, P as Pe, Q as O } from "./app-BT34Yv61.js";
|
|
3
|
+
import { a as ke, P as k, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D53vhWDq.js";
|
|
4
|
+
import { useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
5
|
+
import { useI18n as Te } from "@feedmepos/mf-common";
|
|
6
|
+
const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
9
9
|
}, ze = { class: "pt-8" }, je = /* @__PURE__ */ ue({
|
|
10
10
|
__name: "ApprovalView",
|
|
11
11
|
setup(Fe) {
|
|
12
|
-
const a =
|
|
12
|
+
const a = ke(k.APPROVAL), { columnDefs: I } = qe(k.APPROVAL, a, a.shipments), B = De(), ee = ge();
|
|
13
13
|
b.object({
|
|
14
14
|
name: b.string().optional().nullable(),
|
|
15
15
|
start: b.date().optional().nullable(),
|
|
@@ -36,9 +36,9 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
36
36
|
}
|
|
37
37
|
a.updateDateRange(l.value.startDate, l.value.endDate);
|
|
38
38
|
});
|
|
39
|
-
const R = y(""), { breakpoints: w } =
|
|
39
|
+
const R = y(""), { breakpoints: w } = Ne(), S = d(() => w.value.xs || w.value.sm), te = d(() => S.value ? 10 : 20), ae = be(), { t: N } = Te(), re = d(() => [
|
|
40
40
|
{
|
|
41
|
-
label:
|
|
41
|
+
label: N("inventory.common.refresh"),
|
|
42
42
|
value: "refresh"
|
|
43
43
|
}
|
|
44
44
|
]);
|
|
@@ -113,11 +113,11 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
113
113
|
return (u, s) => {
|
|
114
114
|
const e = ce("FmTable");
|
|
115
115
|
return x(), X(Se, {
|
|
116
|
-
title: n(
|
|
116
|
+
title: n(N)("inventory.transfer.approval.title"),
|
|
117
117
|
actions: re.value,
|
|
118
118
|
"onClick:action": se
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
120
|
+
default: P(() => {
|
|
121
121
|
var r;
|
|
122
122
|
return [
|
|
123
123
|
c("div", {
|
|
@@ -154,37 +154,37 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
154
154
|
)),
|
|
155
155
|
"page-size": te.value
|
|
156
156
|
}, {
|
|
157
|
-
"list-row":
|
|
158
|
-
i(
|
|
157
|
+
"list-row": P((t) => [
|
|
158
|
+
i(Pe, {
|
|
159
159
|
row: t,
|
|
160
160
|
onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
|
|
161
161
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
var p,
|
|
162
|
+
default: P((o) => {
|
|
163
|
+
var p, T, A, f, C, L, M, V, v, z, F, h, $, _, E, U, Y, H, j, D, J, K, Q, G, g, W;
|
|
164
164
|
return [
|
|
165
165
|
c("div", Ae, [
|
|
166
166
|
c("div", Ce, [
|
|
167
167
|
i(n(O), {
|
|
168
|
-
render: (A = (
|
|
168
|
+
render: (A = (T = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : T.columnDef) == null ? void 0 : A.cell,
|
|
169
169
|
props: (C = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : C.call(f)
|
|
170
170
|
}, null, 8, ["render", "props"])
|
|
171
171
|
]),
|
|
172
|
-
c("div",
|
|
172
|
+
c("div", Le, [
|
|
173
173
|
i(n(O), {
|
|
174
|
-
render: (V = (
|
|
174
|
+
render: (V = (M = (L = o.to_name) == null ? void 0 : L.column) == null ? void 0 : M.columnDef) == null ? void 0 : V.cell,
|
|
175
175
|
props: (z = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : z.call(v)
|
|
176
176
|
}, null, 8, ["render", "props"])
|
|
177
177
|
]),
|
|
178
|
-
c("div",
|
|
179
|
-
(
|
|
178
|
+
c("div", Me, me((E = (_ = ($ = (h = (F = t.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : h.map) == null ? void 0 : $.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
|
|
179
|
+
(U = t.original.purchaseOrder) != null && U.ref ? (x(), fe("div", Ve, [
|
|
180
180
|
i(n(O), {
|
|
181
|
-
render: (j = (
|
|
182
|
-
props: (
|
|
181
|
+
render: (j = (H = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : H.columnDef) == null ? void 0 : j.cell,
|
|
182
|
+
props: (J = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : J.call(D)
|
|
183
183
|
}, null, 8, ["render", "props"])
|
|
184
184
|
])) : ve("", !0),
|
|
185
185
|
c("div", ze, [
|
|
186
186
|
i(n(O), {
|
|
187
|
-
render: (
|
|
187
|
+
render: (G = (Q = (K = o.purchaseOrder_status) == null ? void 0 : K.column) == null ? void 0 : Q.columnDef) == null ? void 0 : G.cell,
|
|
188
188
|
props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
|
|
189
189
|
}, null, 8, ["render", "props"])
|
|
190
190
|
])
|
|
@@ -199,7 +199,7 @@ const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-40
|
|
|
199
199
|
], 2),
|
|
200
200
|
(x(), X(he, { to: "body" }, [
|
|
201
201
|
i(we, _e({
|
|
202
|
-
scope: n(
|
|
202
|
+
scope: n(k).APPROVAL
|
|
203
203
|
}, {
|
|
204
204
|
...n(a).transferDetailsProps.value,
|
|
205
205
|
receivedMap: ((r = n(a).transferDetailsProps.value) == null ? void 0 : r.receivedMap) ?? {},
|
|
@@ -1,6 +1,6 @@
|
|
|
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-DC52GJ2Y.js";
|
|
3
|
+
import { a as L, b8 as S } from "./app-BT34Yv61.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -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, b8 as x, s as z } from "./app-BT34Yv61.js";
|
|
3
3
|
const F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
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, b8 as R } from "./app-BT34Yv61.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
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" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Te, ref as V, computed as U, onMounted as Ue, resolveComponent as P, openBlock as w, createElementBlock as L, Fragment as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as Te, ref as V, computed as U, onMounted as Ue, resolveComponent as P, openBlock as w, createElementBlock as L, Fragment as Q, createTextVNode as Z, createBlock as X, withCtx as O, createElementVNode as o, toDisplayString as W, unref as F, createVNode as D, createCommentVNode as ee, h as T, reactive as nt, watch as ot, isRef as Ye, normalizeClass as be, renderList as _e, normalizeStyle as Ke, Teleport as st, mergeProps as rt } from "vue";
|
|
2
|
+
import { a7 as lt, u as Ie, at as E, al as Ge, au as qe, o as ct, Y as Ee, k as N, t as it, $ as he, y as ut, z as dt, B as mt, av as We, aw as Ze, ag as Qe, ax as re, am as ft, a9 as Me, a8 as le, a5 as Le, D as Oe, i as Se, h as pt, f as vt, a as yt, Z as Fe, K as gt, L as bt, O as At, P as kt, Q as Be } from "./app-BT34Yv61.js";
|
|
3
3
|
import { useCoreStore as Dt, useI18n as Je } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as He, useDialog as _t, useProxiedModel as ht, components as ge, useBreakpoints as xt } from "@feedmepos/ui-library";
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { a as Ve, u as et } from "./stock-
|
|
5
|
+
import { defineStore as Xe, storeToRefs as wt } from "pinia";
|
|
6
|
+
import { a as Ve, u as et } from "./stock-C8afHO4C.js";
|
|
7
7
|
import { E as Ct } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Re = lt((l, s) => {
|
|
9
9
|
function e() {
|
|
@@ -120,7 +120,7 @@ const Re = lt((l, s) => {
|
|
|
120
120
|
}
|
|
121
121
|
return (n, a) => {
|
|
122
122
|
const B = P("FmLabel"), M = P("FmDatePicker"), f = P("FmTimePicker"), g = P("FmTextField"), b = P("FmButton"), $ = P("FmForm");
|
|
123
|
-
return R.value ? (w(),
|
|
123
|
+
return R.value ? (w(), X($, {
|
|
124
124
|
key: 1,
|
|
125
125
|
onValidationSuccess: Y,
|
|
126
126
|
class: "flex flex-col gap-32",
|
|
@@ -176,7 +176,7 @@ const Re = lt((l, s) => {
|
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
|
-
}, 8, ["disabled"])) : (w(), L(
|
|
179
|
+
}, 8, ["disabled"])) : (w(), L(Q, { key: 0 }, [
|
|
180
180
|
Z("Loading")
|
|
181
181
|
], 64));
|
|
182
182
|
};
|
|
@@ -210,7 +210,7 @@ function Rt(l, s, e, u) {
|
|
|
210
210
|
systemBalance: +N(s),
|
|
211
211
|
physicalBalance: +N(_),
|
|
212
212
|
adjustedAmount: +N(m),
|
|
213
|
-
adjustedDiffPercentage: C ? +N(
|
|
213
|
+
adjustedDiffPercentage: C ? +N(Qe(C, 2)) : null
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
function Pt(l) {
|
|
@@ -370,7 +370,7 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
|
|
|
370
370
|
}
|
|
371
371
|
return (C, x) => {
|
|
372
372
|
const v = P("FmLabel"), I = P("FmDatePicker"), Y = P("FmTimePicker"), n = P("FmButton"), a = P("FmForm");
|
|
373
|
-
return p.value ? (w(),
|
|
373
|
+
return p.value ? (w(), X(a, {
|
|
374
374
|
key: 1,
|
|
375
375
|
onValidationSuccess: R,
|
|
376
376
|
class: "flex flex-col gap-32",
|
|
@@ -426,12 +426,12 @@ const Et = { class: "flex flex-col" }, Ht = { class: "flex gap-12 py-8 justify-e
|
|
|
426
426
|
])
|
|
427
427
|
]),
|
|
428
428
|
_: 1
|
|
429
|
-
}, 8, ["disabled"])) : (w(), L(
|
|
429
|
+
}, 8, ["disabled"])) : (w(), L(Q, { key: 0 }, [
|
|
430
430
|
Z("Loading")
|
|
431
431
|
], 64));
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
}), $e =
|
|
434
|
+
}), $e = Xe(
|
|
435
435
|
"closingDraftActions",
|
|
436
436
|
function() {
|
|
437
437
|
const s = _t(), e = He(), u = Ve(), p = Re(), _ = et(), m = V(!1), R = V();
|
|
@@ -568,7 +568,7 @@ function je(l) {
|
|
|
568
568
|
return "fm-status-badge-complete";
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
const Nt =
|
|
571
|
+
const Nt = Xe(
|
|
572
572
|
"closingDraftTable",
|
|
573
573
|
function() {
|
|
574
574
|
const { t: s } = Je(), e = $e(), u = V(new Array()), p = V(!1), _ = Ie(), m = Re();
|
|
@@ -774,10 +774,10 @@ const Nt = Qe(
|
|
|
774
774
|
updateDraftRef: x
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
), zt = { class: "w-full flex flex-col gap-32" }, Ot = { class: "flex justify-between" }, Yt = { class: "flex" }, Kt = { class: "grid grid-cols-[repeat(4,1fr)] xs:flex xs:flex-col sm:flex sm:flex-col gap-8" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qt = { class: "flex gap-1" }, Wt = { class: "fm-typo-en-body-lg-600" }, Zt = { class: "flex flex-col gap-16" },
|
|
777
|
+
), zt = { class: "w-full flex flex-col gap-32" }, Ot = { class: "flex justify-between" }, Yt = { class: "flex" }, Kt = { class: "grid grid-cols-[repeat(4,1fr)] xs:flex xs:flex-col sm:flex sm:flex-col gap-8" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qt = { class: "flex gap-1" }, Wt = { class: "fm-typo-en-body-lg-600" }, Zt = { class: "flex flex-col gap-16" }, Qt = { class: "flex items-center" }, Jt = {
|
|
778
778
|
key: 0,
|
|
779
779
|
class: "flex gap-8"
|
|
780
|
-
},
|
|
780
|
+
}, Xt = {
|
|
781
781
|
key: 0,
|
|
782
782
|
class: "w-full flex flex-col items-center"
|
|
783
783
|
}, ea = { class: "flex items-center gap-8" }, ta = { class: "flex flex-col gap-8" }, aa = { class: "flex gap-8" }, na = {
|
|
@@ -1197,7 +1197,7 @@ const Nt = Qe(
|
|
|
1197
1197
|
systemBalance: +N(A),
|
|
1198
1198
|
physicalBalance: +N(h),
|
|
1199
1199
|
adjustedAmount: +N(q),
|
|
1200
|
-
adjustedDiffPercentage: ye ? +N(
|
|
1200
|
+
adjustedDiffPercentage: ye ? +N(Qe(ye, 2)) : null,
|
|
1201
1201
|
isTemplateItem: !r[i._id]
|
|
1202
1202
|
};
|
|
1203
1203
|
}).filter((i) => !!(i.isTemplateItem && b.value.templateItem || !i.isTemplateItem && b.value.nonTemplateItem));
|
|
@@ -1316,7 +1316,7 @@ const Nt = Qe(
|
|
|
1316
1316
|
});
|
|
1317
1317
|
return (r, t) => {
|
|
1318
1318
|
const y = P("FmButtonGroup"), d = P("FmMenuDivider"), i = P("FmCard"), c = P("FmButton"), A = P("FmCircularProgress"), h = P("FmChip"), k = P("FmTextField"), q = P("FmIcon"), we = P("FmTable"), ye = P("FmSpacer"), Ne = P("FmTooltip"), Ce = P("FmSideSheet");
|
|
1319
|
-
return w(),
|
|
1319
|
+
return w(), X(Ce, {
|
|
1320
1320
|
"dismiss-away": "",
|
|
1321
1321
|
"max-width": 9999,
|
|
1322
1322
|
"model-value": F(_),
|
|
@@ -1327,8 +1327,8 @@ const Nt = Qe(
|
|
|
1327
1327
|
var S, z, K, G;
|
|
1328
1328
|
return [
|
|
1329
1329
|
o("div", ha, [
|
|
1330
|
-
((S = e.draft) == null ? void 0 : S.status) === F(re).enum.DRAFT ? (w(), L(
|
|
1331
|
-
De.value ? (w(),
|
|
1330
|
+
((S = e.draft) == null ? void 0 : S.status) === F(re).enum.DRAFT ? (w(), L(Q, { key: 0 }, [
|
|
1331
|
+
De.value ? (w(), X(Ne, {
|
|
1332
1332
|
key: 0,
|
|
1333
1333
|
"z-index": 51
|
|
1334
1334
|
}, {
|
|
@@ -1344,19 +1344,19 @@ const Nt = Qe(
|
|
|
1344
1344
|
})
|
|
1345
1345
|
]),
|
|
1346
1346
|
_: 1
|
|
1347
|
-
})) : (w(),
|
|
1347
|
+
})) : (w(), X(c, {
|
|
1348
1348
|
key: "approve key",
|
|
1349
1349
|
label: "Approve",
|
|
1350
1350
|
onClick: t[6] || (t[6] = () => e.draft && F(p).approveDraft(e.draft, () => g("submitted")))
|
|
1351
1351
|
}))
|
|
1352
1352
|
], 64)) : ee("", !0),
|
|
1353
|
-
((z = e.draft) == null ? void 0 : z.status) === F(re).enum.DRAFT ? (w(),
|
|
1353
|
+
((z = e.draft) == null ? void 0 : z.status) === F(re).enum.DRAFT ? (w(), X(c, {
|
|
1354
1354
|
key: 1,
|
|
1355
1355
|
label: "Reject",
|
|
1356
1356
|
variant: "destructive",
|
|
1357
1357
|
onClick: t[7] || (t[7] = () => e.draft && F(p).rejectDraft(e.draft, () => g("submitted")))
|
|
1358
1358
|
})) : ee("", !0),
|
|
1359
|
-
(K = e.draft) != null && K.approvedAt && ((G = e.draft) == null ? void 0 : G.status) !== F(re).enum.COMPLETED ? (w(),
|
|
1359
|
+
(K = e.draft) != null && K.approvedAt && ((G = e.draft) == null ? void 0 : G.status) !== F(re).enum.COMPLETED ? (w(), X(c, {
|
|
1360
1360
|
key: 2,
|
|
1361
1361
|
label: "Sync",
|
|
1362
1362
|
loading: C.value,
|
|
@@ -1383,7 +1383,7 @@ const Nt = Qe(
|
|
|
1383
1383
|
"onUpdate:modelValue": t[0] || (t[0] = (S) => se.value = S)
|
|
1384
1384
|
}, null, 8, ["modelValue"])
|
|
1385
1385
|
]),
|
|
1386
|
-
se.value.value === "overview" ? (w(), L(
|
|
1386
|
+
se.value.value === "overview" ? (w(), L(Q, { key: 0 }, [
|
|
1387
1387
|
D(i, {
|
|
1388
1388
|
variant: "outlined",
|
|
1389
1389
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
@@ -1401,7 +1401,7 @@ const Nt = Qe(
|
|
|
1401
1401
|
]),
|
|
1402
1402
|
D(d),
|
|
1403
1403
|
o("div", Kt, [
|
|
1404
|
-
(w(!0), L(
|
|
1404
|
+
(w(!0), L(Q, null, _e(pe.value, (K, G) => (w(), L("div", {
|
|
1405
1405
|
class: "flex flex-col gap-4",
|
|
1406
1406
|
key: G
|
|
1407
1407
|
}, [
|
|
@@ -1416,10 +1416,10 @@ const Nt = Qe(
|
|
|
1416
1416
|
_: 1
|
|
1417
1417
|
}),
|
|
1418
1418
|
o("div", Zt, [
|
|
1419
|
-
o("div",
|
|
1419
|
+
o("div", Qt, [
|
|
1420
1420
|
t[12] || (t[12] = o("div", { class: "flex-1 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, " Closing items ", -1)),
|
|
1421
1421
|
m.value ? ee("", !0) : (w(), L("div", Jt, [
|
|
1422
|
-
r.draft && r.draft.status !== F(re).enum.COMPLETED ? (w(),
|
|
1422
|
+
r.draft && r.draft.status !== F(re).enum.COMPLETED ? (w(), X(c, {
|
|
1423
1423
|
key: 0,
|
|
1424
1424
|
label: "Refresh balance",
|
|
1425
1425
|
"prepend-icon": "refresh",
|
|
@@ -1445,7 +1445,7 @@ const Nt = Qe(
|
|
|
1445
1445
|
})
|
|
1446
1446
|
]))
|
|
1447
1447
|
]),
|
|
1448
|
-
m.value ? (w(), L("div",
|
|
1448
|
+
m.value ? (w(), L("div", Xt, [
|
|
1449
1449
|
t[14] || (t[14] = o("div", { class: "h-80" }, null, -1)),
|
|
1450
1450
|
o("div", ea, [
|
|
1451
1451
|
o("div", null, [
|
|
@@ -1454,7 +1454,7 @@ const Nt = Qe(
|
|
|
1454
1454
|
t[13] || (t[13] = o("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Fetching info... ", -1))
|
|
1455
1455
|
]),
|
|
1456
1456
|
t[15] || (t[15] = o("div", { class: "h-80" }, null, -1))
|
|
1457
|
-
])) : (w(), L(
|
|
1457
|
+
])) : (w(), L(Q, { key: 1 }, [
|
|
1458
1458
|
o("div", ta, [
|
|
1459
1459
|
o("div", aa, [
|
|
1460
1460
|
D(h, {
|
|
@@ -1475,7 +1475,7 @@ const Nt = Qe(
|
|
|
1475
1475
|
}, null, 8, ["modelValue"])
|
|
1476
1476
|
]),
|
|
1477
1477
|
F(a).skuTags.size ? (w(), L("div", na, [
|
|
1478
|
-
(w(!0), L(
|
|
1478
|
+
(w(!0), L(Q, null, _e(F(a).skuTags.keys(), (S) => (w(), X(h, {
|
|
1479
1479
|
key: `${S}`,
|
|
1480
1480
|
label: `${S}`,
|
|
1481
1481
|
selectable: "",
|
|
@@ -1483,7 +1483,7 @@ const Nt = Qe(
|
|
|
1483
1483
|
onClick: (z) => M[`${S}`] = !M[`${S}`]
|
|
1484
1484
|
}, {
|
|
1485
1485
|
default: O(() => [
|
|
1486
|
-
M[`${S}`] ? (w(),
|
|
1486
|
+
M[`${S}`] ? (w(), X(q, {
|
|
1487
1487
|
key: 0,
|
|
1488
1488
|
name: "check",
|
|
1489
1489
|
class: "text-white",
|
|
@@ -1518,7 +1518,7 @@ const Nt = Qe(
|
|
|
1518
1518
|
], 64)) : ee("", !0),
|
|
1519
1519
|
se.value.value === "history" ? (w(), L("div", sa, [
|
|
1520
1520
|
ae.value.length ? (w(), L("div", ca, [
|
|
1521
|
-
(w(!0), L(
|
|
1521
|
+
(w(!0), L(Q, null, _e(ae.value, (S, z) => (w(), L(Q, { key: z }, [
|
|
1522
1522
|
o("div", ia, [
|
|
1523
1523
|
o("div", ua, [
|
|
1524
1524
|
o("div", da, [
|
|
@@ -1571,13 +1571,13 @@ const Nt = Qe(
|
|
|
1571
1571
|
}, {
|
|
1572
1572
|
default: O(() => [
|
|
1573
1573
|
o("div", ka, [
|
|
1574
|
-
(w(!0), L(
|
|
1574
|
+
(w(!0), L(Q, null, _e(S.info, (K, G) => (w(), L("div", {
|
|
1575
1575
|
key: G,
|
|
1576
1576
|
class: "flex flex-col gap-4"
|
|
1577
1577
|
}, [
|
|
1578
1578
|
o("div", Da, W(K == null ? void 0 : K.label), 1),
|
|
1579
1579
|
o("div", _a, [
|
|
1580
|
-
(w(!0), L(
|
|
1580
|
+
(w(!0), L(Q, null, _e(K == null ? void 0 : K.values, (ne, me) => (w(), L("div", {
|
|
1581
1581
|
key: me,
|
|
1582
1582
|
class: "fm-typo-en-body-lg-600"
|
|
1583
1583
|
}, W(ne), 1))), 128))
|
|
@@ -1640,7 +1640,7 @@ const Nt = Qe(
|
|
|
1640
1640
|
]);
|
|
1641
1641
|
return (M, f) => {
|
|
1642
1642
|
const g = P("FmTable");
|
|
1643
|
-
return w(), L(
|
|
1643
|
+
return w(), L(Q, null, [
|
|
1644
1644
|
D(bt, {
|
|
1645
1645
|
title: F(s)("inventory.closing.draft.title"),
|
|
1646
1646
|
actions: B.value,
|
|
@@ -1722,7 +1722,7 @@ const Nt = Qe(
|
|
|
1722
1722
|
]),
|
|
1723
1723
|
_: 1
|
|
1724
1724
|
}, 8, ["title", "actions"]),
|
|
1725
|
-
(w(),
|
|
1725
|
+
(w(), X(st, { to: "body" }, [
|
|
1726
1726
|
D(xa, rt(F(u), {
|
|
1727
1727
|
show: F(p),
|
|
1728
1728
|
"onUpdate:show": f[2] || (f[2] = (b) => Ye(p) ? p.value = b : null),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as P, h as F, defineComponent as B, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as G, createVNode as $, withCtx as A, Fragment as j, renderList as W, computed as E, watch as Pe, createSlots as Fe, createBlock as L, isRef as Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as We, mergeProps as qe } from "vue";
|
|
2
|
-
import { u as ie,
|
|
2
|
+
import { u as ie, am as Je, D as Z, i as V, h as Qe, f as Re, an as Xe, ao as ae, z as Ze, ap as Ae, B as Ee, a as ce, b as et, C as tt, E as Ve, G as nt, H as ot, aq as st, e as H, Q as O, V as lt, ar as at, o as rt, P as Ue, A as it, as as ct, a8 as le, K as mt, L as ut, O as dt } from "./app-BT34Yv61.js";
|
|
3
3
|
import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as te, useDialogChild as pt, useSnackbar as ne, FmButtonVariant as ee, components as N, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ne, storeToRefs as Be } from "pinia";
|
|
6
|
-
import { u as oe } from "./closing-template-
|
|
7
|
-
import { u as gt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as oe } from "./closing-template-JDCk0_lU.js";
|
|
7
|
+
import { u as gt } from "./use-ingredient-select-dialog-fLK9yq-0.js";
|
|
8
8
|
const se = Ne(
|
|
9
9
|
"closingTemplateTable",
|
|
10
10
|
function() {
|
package/dist/{DeliveryOrderPrintPreview-hVu8tti_.js → DeliveryOrderPrintPreview-BfafKFMa.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" },
|
|
3
|
+
import { aF as y, as as w } from "./app-BT34Yv61.js";
|
|
4
|
+
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
7
|
-
},
|
|
7
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, F = { class: "text-right" }, q = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
|
|
8
8
|
key: 1,
|
|
9
9
|
style: { "padding-top": "30px" }
|
|
10
10
|
}, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
@@ -63,7 +63,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
63
63
|
]),
|
|
64
64
|
t("td", D, [
|
|
65
65
|
l[8] || (l[8] = t("div", { class: "title" }, "Delivery Order", -1)),
|
|
66
|
-
s.value.fulfillmentId ? (u(), i("div",
|
|
66
|
+
s.value.fulfillmentId ? (u(), i("div", R, "#" + e(s.value.fulfillmentId), 1)) : d("", !0),
|
|
67
67
|
t("div", null, e(s.value.createdAt), 1)
|
|
68
68
|
])
|
|
69
69
|
])
|
|
@@ -73,8 +73,8 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
73
73
|
t("tr", null, [
|
|
74
74
|
t("td", null, [
|
|
75
75
|
l[13] || (l[13] = t("div", { class: "header" }, "Bill To", -1)),
|
|
76
|
-
t("div",
|
|
77
|
-
t("div",
|
|
76
|
+
t("div", S, e(s.value.supplier.name), 1),
|
|
77
|
+
t("div", E, e(s.value.supplier.registrationNumber), 1),
|
|
78
78
|
t("div", T, [
|
|
79
79
|
n(e(s.value.supplier.line1), 1),
|
|
80
80
|
l[10] || (l[10] = t("br", null, null, -1)),
|
|
@@ -88,9 +88,9 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
88
88
|
l[12] || (l[12] = t("br", null, null, -1))
|
|
89
89
|
])
|
|
90
90
|
]),
|
|
91
|
-
t("td",
|
|
91
|
+
t("td", F, [
|
|
92
92
|
l[18] || (l[18] = t("div", { class: "header" }, "Ship To", -1)),
|
|
93
|
-
t("div",
|
|
93
|
+
t("div", q, e(s.value.buyer.name), 1),
|
|
94
94
|
t("div", I, [
|
|
95
95
|
n(e(s.value.buyer.line1), 1),
|
|
96
96
|
l[15] || (l[15] = t("br", null, null, -1)),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, resolveComponent as i, unref as l, openBlock as p, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
|
|
2
2
|
import { useCoreStore as _ } from "@feedmepos/mf-common";
|
|
3
|
-
import {
|
|
3
|
+
import { as as v } from "./app-BT34Yv61.js";
|
|
4
4
|
const g = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "group gap-8 inline-flex items-center relative select-none"
|
|
@@ -9,8 +9,8 @@ const g = {
|
|
|
9
9
|
props: {
|
|
10
10
|
class: { default: void 0 }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(n) {
|
|
13
|
+
const r = n, a = _();
|
|
14
14
|
return (e, h) => {
|
|
15
15
|
var o;
|
|
16
16
|
const c = i("FmIcon");
|
|
@@ -20,7 +20,7 @@ const g = {
|
|
|
20
20
|
class: u([
|
|
21
21
|
"fm-admin-badge",
|
|
22
22
|
"group-hover:opacity-20",
|
|
23
|
-
|
|
23
|
+
r.class,
|
|
24
24
|
{
|
|
25
25
|
absolute: !0,
|
|
26
26
|
"bottom-[-5px] right-[-8px] px-4 h-[25px] w-[25px] border-2 border-red-800": !0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as
|
|
1
|
+
import { k as T, t as E, aD as M, u as R, aH as B, aS as D, m as H, aT as U } from "./app-BT34Yv61.js";
|
|
2
|
+
import { u as z } from "./supplier-C8RMKqQX.js";
|
|
3
|
+
import { P as C } from "./format-unit-display-HHCA1rN3.js";
|
|
4
4
|
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as k, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as V, createCommentVNode as N, Fragment as Q, renderList as X, unref as g } from "vue";
|
|
5
5
|
function Y(e, a, r) {
|
|
6
6
|
var o;
|
|
@@ -29,10 +29,10 @@ function oe(e, a, r, u) {
|
|
|
29
29
|
skuDefaultCost: e.defaultCost ?? void 0,
|
|
30
30
|
supplierOverrideCost: l ?? void 0
|
|
31
31
|
};
|
|
32
|
-
const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +
|
|
32
|
+
const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +T(p) / +T(o == null ? void 0 : o.measurement.conversion) : +T(p) : void 0, b = v ? r ? v * +T(r.conversion) : v : void 0, h = b ? +T(a) * b : void 0;
|
|
33
33
|
return {
|
|
34
34
|
cost: h ? {
|
|
35
|
-
...
|
|
35
|
+
...E(h ?? 0, 2),
|
|
36
36
|
currency: M()
|
|
37
37
|
} : {
|
|
38
38
|
amount: 0,
|
|
@@ -68,7 +68,7 @@ function F(e) {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
function ne(e, a, r = !1, u = !1) {
|
|
71
|
-
const l = z(), n =
|
|
71
|
+
const l = z(), n = R();
|
|
72
72
|
n.watchLocation(async () => {
|
|
73
73
|
var y;
|
|
74
74
|
await l.readSuppliers();
|
|
@@ -83,7 +83,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
83
83
|
const o = f(
|
|
84
84
|
() => {
|
|
85
85
|
var s, t;
|
|
86
|
-
return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ?
|
|
86
|
+
return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? C.TRANSFER : C.PURCHASE;
|
|
87
87
|
}
|
|
88
88
|
), p = f({
|
|
89
89
|
get() {
|
|
@@ -92,8 +92,8 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
92
92
|
},
|
|
93
93
|
set(s) {
|
|
94
94
|
const t = e() ?? {};
|
|
95
|
-
if (o.value ===
|
|
96
|
-
const S = (u ? l.suppliers : l.businessSuppliers).find((
|
|
95
|
+
if (o.value === C.PURCHASE) {
|
|
96
|
+
const S = (u ? l.suppliers : l.businessSuppliers).find((A) => A._id === s);
|
|
97
97
|
a({
|
|
98
98
|
...t,
|
|
99
99
|
supplier: S ? L(S) : t.supplier
|
|
@@ -118,7 +118,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
118
118
|
(i) => i.doc._id !== n.currentLocation.doc._id
|
|
119
119
|
) : n.allLocations).filter((i) => s || i.acceptRequest).map(F);
|
|
120
120
|
}), P = f(() => {
|
|
121
|
-
if (o.value ===
|
|
121
|
+
if (o.value === C.PURCHASE) {
|
|
122
122
|
const t = v.value.map((i) => ({
|
|
123
123
|
label: i.name,
|
|
124
124
|
value: i._id
|
|
@@ -137,7 +137,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
137
137
|
}), _ = f(() => {
|
|
138
138
|
var i, y;
|
|
139
139
|
const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
|
|
140
|
-
if (o.value ===
|
|
140
|
+
if (o.value === C.PURCHASE) {
|
|
141
141
|
const d = l.suppliers.find((S) => S._id === s);
|
|
142
142
|
return d ? L(d) : null;
|
|
143
143
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as a } from "./app-
|
|
4
|
+
import { s as a } from "./app-BT34Yv61.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|