@feedmepos/mf-inventory-portal 0.0.22-dev.12 → 0.0.22-dev.16
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/{ApprovalView-Cjeqabxg.js → ApprovalView-CAYVSFN0.js} +4 -4
- package/dist/{BindingsDialog-DYf9izzO.js → BindingsDialog-vA6l3jG3.js} +1 -1
- package/dist/{BindingsPicker--GhOF5Zy.js → BindingsPicker-CtkS9du1.js} +8 -8
- package/dist/{BindingsTable-DFGX1bO_.js → BindingsTable-BsTvZ3Uc.js} +1 -1
- package/dist/{ClosingTemplateView-D0ZehXOT.js → ClosingTemplateView-Bjd9mypa.js} +5 -5
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C-ixTs_z.js} +1 -1
- package/dist/{IngredientsView-D-M4VjtX.js → IngredientsView-mZKGdmy8.js} +3 -3
- package/dist/{IntegrationView-D29NyKuw.js → IntegrationView-DQXcW-ln.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMzUk8cN.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CkIFefTS.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CrYQR5oS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DbP09mHM.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-BmzWBQYf.js → PurchaseOrderPrintPreview-B8fEITH6.js} +1 -1
- package/dist/{ReceiveRequestView-D5uhgByr.js → ReceiveRequestView-0gHjqve_.js} +6 -6
- package/dist/RecipeView-D9Xl9ezv.js +590 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/{StockView-jAGaTT7q.js → StockView-D1Q8Y387.js} +6 -6
- package/dist/{SupplierView-BjkhByNr.js → SupplierView-kheETesd.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CInXmMf_.js → TransferDetails.vue_vue_type_script_setup_true_lang-Cigg5L-V.js} +178 -177
- package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CLiLhIMS.js → TransferDialog.vue_vue_type_script_setup_true_lang-Ck5_VSjb.js} +440 -437
- package/dist/TransferTemplateView-Cp6Qqig-.js +1209 -0
- package/dist/{UnitView-BrlpQn3T.js → UnitView-BAcYAfVj.js} +4 -4
- package/dist/{WarehouseView-CbTTIdv9.js → WarehouseView-CkhMv-Om.js} +2 -2
- package/dist/{app-BDzV3RNp.js → app-BdUHoQTw.js} +3418 -3400
- package/dist/app.js +1 -1
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/{decimal-CRTw2PGO.js → decimal-DEVEov-F.js} +1 -1
- package/dist/{defineDeepModel-BoSSw2c6.js → defineDeepModel-BZrIgGc7.js} +1 -1
- package/dist/{format-time-from-id-CxoHtJa5.js → format-time-from-id-DkDDZc4Y.js} +1 -1
- package/dist/helper/rules.d.ts +7 -1
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/{id-to-date-CJbxtIFh.js → id-to-date-CN0cWcz6.js} +1 -1
- package/dist/{purchase-order-transaction-type-0nZnCUE7.js → purchase-order-transaction-type-B80tMuy6.js} +28 -27
- package/dist/{supplier-BA6jJGNv.js → supplier-BKYn47F9.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-Di0NHn-g.js → use-template-enabled-locations-2-Cg7uYAyw.js} +1 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +522 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +21 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +21 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +1 -1
- package/dist/{xlsx-BEDKASqP.js → xlsx-BshS3GM8.js} +1 -1
- package/dist/{xlsx.util-MTUBPx67.js → xlsx.util-B_wXW9m4.js} +2 -2
- package/package.json +1 -1
- package/dist/RecipeView-CREeE1nK.js +0 -581
- package/dist/TransferTemplateView-CUqEsRJ6.js +0 -1262
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { f as ae } from "./format-time-from-id-
|
|
2
|
-
import { computed as re, h as le, defineComponent as
|
|
3
|
-
import { c as
|
|
4
|
-
import { D as h, R as
|
|
5
|
-
import { D as
|
|
6
|
-
import { F as
|
|
7
|
-
import { f as me, P as se, d as
|
|
8
|
-
import { components as
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import { E as
|
|
11
|
-
function
|
|
1
|
+
import { f as ae } from "./format-time-from-id-DkDDZc4Y.js";
|
|
2
|
+
import { computed as re, h as le, defineComponent as Te, ref as Z, resolveComponent as L, openBlock as d, createBlock as N, unref as s, isRef as Fe, withCtx as ee, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as W, toDisplayString as n, normalizeClass as te, createCommentVNode as p, renderList as ie } from "vue";
|
|
3
|
+
import { c as De } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
4
|
+
import { D as h, R as v } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
+
import { D as Ae, m as ce, a as ue, al as de, am as g, c as je, j as Ie, ag as q, J as Ue, H as Me, G as $e, aj as Ke, b as Le, x as Ve } from "./app-BdUHoQTw.js";
|
|
6
|
+
import { F as Be } from "./decimal-DEVEov-F.js";
|
|
7
|
+
import { f as me, P as se, d as Ge, e as He } from "./purchase-order-transaction-type-B80tMuy6.js";
|
|
8
|
+
import { components as ze, useDialog as Qe, useSnackbar as Ye, useProxiedModel as Je } from "@feedmepos/ui-library";
|
|
9
|
+
import { useI18n as Ce } from "@feedmepos/mf-common";
|
|
10
|
+
import { E as We } from "./empty-placeholder-wf6-BWE8.js";
|
|
11
|
+
function Xe(f, k) {
|
|
12
12
|
return k.reduce(
|
|
13
13
|
(a, P) => {
|
|
14
|
-
const
|
|
15
|
-
return
|
|
14
|
+
const w = P.received.find((C) => C.sku._id === f._id);
|
|
15
|
+
return w && (a = Ae(a, w.amount)), a;
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
Be.toPrecision(ce(0), f.unit.precision)
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const { name: _, address: a, regNo: P } = k.doc.profile,
|
|
20
|
+
function Ze(f, k) {
|
|
21
|
+
const { name: _, address: a, regNo: P } = k.doc.profile, w = {
|
|
22
22
|
name: _,
|
|
23
23
|
registrationNumber: P,
|
|
24
24
|
line1: a == null ? void 0 : a.line1,
|
|
@@ -38,7 +38,7 @@ function Ye(f, k) {
|
|
|
38
38
|
country: f.supplier.address.country
|
|
39
39
|
}, V = f.items.map((c) => {
|
|
40
40
|
const { sku: i, measurement: u } = c, T = ue(
|
|
41
|
-
|
|
41
|
+
Xe(c.sku, f.deliveryOrder || []),
|
|
42
42
|
!1
|
|
43
43
|
);
|
|
44
44
|
return {
|
|
@@ -66,7 +66,7 @@ function Ye(f, k) {
|
|
|
66
66
|
createdAt: ae(f._id),
|
|
67
67
|
ref: f.ref || "",
|
|
68
68
|
remark: f.remark || "",
|
|
69
|
-
buyer:
|
|
69
|
+
buyer: w,
|
|
70
70
|
supplier: C,
|
|
71
71
|
items: V,
|
|
72
72
|
status: f.status,
|
|
@@ -116,68 +116,68 @@ const H = {
|
|
|
116
116
|
value: g.enum.completeReceive
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
function
|
|
120
|
-
const _ =
|
|
119
|
+
function xs(f, k) {
|
|
120
|
+
const _ = Ie(), { t: a } = Ce();
|
|
121
121
|
function P(l) {
|
|
122
122
|
switch (l.status) {
|
|
123
123
|
case "DRAFT":
|
|
124
124
|
return [
|
|
125
125
|
l.supplier.internal === "restaurant" || l.supplier.internal === "warehouse" ? H[g.enum.submitRequest] : H[g.enum.confirmDraft],
|
|
126
126
|
H[g.enum.cancelDraft],
|
|
127
|
-
h[
|
|
128
|
-
h[
|
|
129
|
-
h[
|
|
127
|
+
h[v.Update],
|
|
128
|
+
h[v.Details],
|
|
129
|
+
h[v.Print]
|
|
130
130
|
];
|
|
131
131
|
case "RECEIVING":
|
|
132
132
|
return [
|
|
133
133
|
H[g.enum.completeReceive],
|
|
134
|
-
h[
|
|
135
|
-
h[
|
|
136
|
-
h[
|
|
134
|
+
h[v.Update],
|
|
135
|
+
h[v.Details],
|
|
136
|
+
h[v.Print]
|
|
137
137
|
];
|
|
138
138
|
case "REQUESTING":
|
|
139
139
|
return f === "receive/request" ? [
|
|
140
|
-
h[
|
|
141
|
-
h[
|
|
142
|
-
h[
|
|
140
|
+
h[v.Update],
|
|
141
|
+
h[v.Details],
|
|
142
|
+
h[v.Print]
|
|
143
143
|
] : [
|
|
144
144
|
H[g.enum.approveRequest],
|
|
145
145
|
H[g.enum.rejectRequest],
|
|
146
|
-
h[
|
|
147
|
-
h[
|
|
146
|
+
h[v.Details],
|
|
147
|
+
h[v.Print]
|
|
148
148
|
];
|
|
149
149
|
case "PROCESSING":
|
|
150
|
-
return [h[
|
|
150
|
+
return [h[v.Details], h[v.Print]];
|
|
151
151
|
case "COMPLETE":
|
|
152
152
|
return [
|
|
153
|
-
h[
|
|
154
|
-
h[
|
|
155
|
-
h[
|
|
153
|
+
h[v.Update],
|
|
154
|
+
h[v.Details],
|
|
155
|
+
h[v.Print]
|
|
156
156
|
];
|
|
157
157
|
case "CANCEL":
|
|
158
158
|
default:
|
|
159
|
-
return [h[
|
|
159
|
+
return [h[v.Details], h[v.Print]];
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function w(l) {
|
|
163
163
|
return Object.values(g.enum).includes(l);
|
|
164
164
|
}
|
|
165
165
|
async function C(l, c, i) {
|
|
166
166
|
var T, X;
|
|
167
|
-
const u =
|
|
168
|
-
if (l ===
|
|
169
|
-
|
|
167
|
+
const u = je(c);
|
|
168
|
+
if (l === v.Print) {
|
|
169
|
+
Ze(u, _.currentLocation);
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
if (l ===
|
|
172
|
+
if (l === v.Details) {
|
|
173
173
|
k.promptShowTransferDetails(u, i);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
|
-
if (l ===
|
|
176
|
+
if (l === v.Update) {
|
|
177
177
|
(T = k.promptUpdateTransferDialog) == null || T.call(k, u);
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
|
-
if (
|
|
180
|
+
if (w(l)) {
|
|
181
181
|
k.submitAction(c, l, (X = i == null ? void 0 : i.to) == null ? void 0 : X.dbName);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
@@ -245,7 +245,7 @@ function Rs(f, k) {
|
|
|
245
245
|
id: "action",
|
|
246
246
|
cell(l) {
|
|
247
247
|
const c = l.row.original, i = P(c);
|
|
248
|
-
return
|
|
248
|
+
return De(i, (u) => C(u, c));
|
|
249
249
|
},
|
|
250
250
|
enableSorting: !1,
|
|
251
251
|
size: 40,
|
|
@@ -295,7 +295,7 @@ function Rs(f, k) {
|
|
|
295
295
|
header: () => a("inventory.transfer.table.status"),
|
|
296
296
|
cell(l) {
|
|
297
297
|
const c = a(`inventory.transfer.status.${l.getValue() ?? ""}`), i = `${l.getValue() ?? ""}`.toLocaleLowerCase("en-us");
|
|
298
|
-
return le(
|
|
298
|
+
return le(ze.FmChip, {
|
|
299
299
|
label: c,
|
|
300
300
|
class: `fm-status-badge fm-status-badge-${i}`,
|
|
301
301
|
compact: !0
|
|
@@ -307,7 +307,7 @@ function Rs(f, k) {
|
|
|
307
307
|
id: "action",
|
|
308
308
|
cell(l) {
|
|
309
309
|
const c = l.row.original, i = c.purchaseOrder ? P(c.purchaseOrder) : [];
|
|
310
|
-
return
|
|
310
|
+
return De(
|
|
311
311
|
i,
|
|
312
312
|
(u) => c.purchaseOrder ? C(u, c.purchaseOrder, c) : void 0
|
|
313
313
|
);
|
|
@@ -328,57 +328,58 @@ function Rs(f, k) {
|
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const et = { class: "flex flex-col gap-16 w-full h-full" }, tt = { class: "flex justify-between" }, st = { class: "fm-typo-en-body-lg-600" }, rt = { class: "flex flex-col gap-8" }, at = { class: "flex flex-col gap-4" }, nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = { class: "flex gap-1" }, lt = { class: "fm-typo-en-body-lg-600" }, it = {
|
|
332
332
|
key: 0,
|
|
333
333
|
class: "flex flex-col gap-4"
|
|
334
|
-
},
|
|
334
|
+
}, ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-en-body-lg-600" }, dt = { class: "flex flex-col gap-4" }, mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ft = { class: "fm-typo-en-body-lg-600" }, pt = {
|
|
335
335
|
key: 1,
|
|
336
336
|
class: "flex flex-col gap-4"
|
|
337
|
-
},
|
|
337
|
+
}, vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = { class: "fm-typo-en-body-lg-600" }, ht = {
|
|
338
338
|
key: 2,
|
|
339
339
|
class: "flex flex-col gap-4"
|
|
340
|
-
},
|
|
340
|
+
}, bt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gt = { class: "fm-typo-en-body-lg-600" }, _t = {
|
|
341
341
|
key: 3,
|
|
342
342
|
class: "flex flex-col gap-4"
|
|
343
|
-
},
|
|
343
|
+
}, Rt = { class: "fm-typo-en-body-lg-600" }, Ot = {
|
|
344
344
|
key: 4,
|
|
345
345
|
class: "flex flex-col gap-4"
|
|
346
|
-
},
|
|
346
|
+
}, qt = { class: "fm-typo-en-body-lg-600" }, kt = {
|
|
347
347
|
key: 5,
|
|
348
348
|
class: "flex flex-col gap-4"
|
|
349
|
-
},
|
|
349
|
+
}, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, St = { class: "fm-typo-en-body-lg-600" }, wt = {
|
|
350
350
|
key: 6,
|
|
351
351
|
class: "flex flex-col gap-4"
|
|
352
|
-
},
|
|
352
|
+
}, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, At = { class: "fm-typo-en-body-lg-600" }, Ct = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Et = { class: "flex flex-col gap-8" }, Nt = { class: "fm-typo-en-body-lg-600" }, Pt = { class: "flex w-full gap-4" }, Tt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Ft = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, jt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, It = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Ut = {
|
|
353
353
|
key: 0,
|
|
354
354
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
355
|
-
},
|
|
355
|
+
}, Mt = {
|
|
356
356
|
key: 1,
|
|
357
357
|
class: "flex-1 xs:w-screen xs:max-w-full"
|
|
358
|
-
},
|
|
358
|
+
}, $t = {
|
|
359
359
|
key: 0,
|
|
360
360
|
class: "flex flex-col items-center gap-8 h-full"
|
|
361
|
-
},
|
|
361
|
+
}, Kt = ["src"], Lt = { class: "fm-typo-en-body-lg-600" }, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Bt = {
|
|
362
362
|
key: 1,
|
|
363
363
|
class: "px-4 flex flex-col"
|
|
364
|
-
},
|
|
364
|
+
}, Gt = { class: "flex gap-12 content-stretch" }, Ht = {
|
|
365
365
|
class: "flex flex-col w-24",
|
|
366
366
|
name: "circles"
|
|
367
|
-
},
|
|
367
|
+
}, zt = { class: "flex-1 flex flex-col items-center" }, Qt = { class: "flex-1 flex flex-col items-center" }, Yt = {
|
|
368
368
|
class: "py-12 flex flex-col gap-4",
|
|
369
369
|
name: "received-at header"
|
|
370
|
-
},
|
|
370
|
+
}, Jt = { class: "fm-typo-en-body-lg-400" }, Wt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Xt = { class: "flex gap-12 content-stretch" }, Zt = {
|
|
371
371
|
class: "flex flex-col w-24",
|
|
372
372
|
name: "circles"
|
|
373
|
-
},
|
|
373
|
+
}, es = { class: "flex-1 flex flex-col items-center" }, ts = {
|
|
374
374
|
class: "py-12 flex flex-col gap-4 flex-1",
|
|
375
375
|
name: "delivery details"
|
|
376
|
-
},
|
|
376
|
+
}, ss = { class: "flex flex-col gap-8" }, rs = { class: "flex flex-col gap-4" }, as = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ns = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex flex-col gap-4" }, ls = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, is = { class: "flex flex-col gap-4" }, cs = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, us = { class: "fm-typo-en-body-lg-600" }, ds = { class: "flex flex-col gap-4" }, ms = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
379
|
-
},
|
|
379
|
+
}, fs = { class: "fm-typo-en-body-lg-600" }, ps = { class: "flex gap-8 xs:flex-col" }, Ss = /* @__PURE__ */ Te({
|
|
380
380
|
__name: "TransferDetails",
|
|
381
381
|
props: {
|
|
382
|
+
poRequest: {},
|
|
382
383
|
purchaseOrder: {},
|
|
383
384
|
transferTo: {},
|
|
384
385
|
transferToDbName: {},
|
|
@@ -388,7 +389,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
388
389
|
},
|
|
389
390
|
emits: ["update:show", "submitted"],
|
|
390
391
|
setup(f, { emit: k }) {
|
|
391
|
-
const _ = f, a = k, P =
|
|
392
|
+
const _ = f, a = k, P = Qe(), w = Ye(), C = Ke(), V = Le(), { t: o } = Ce(), M = re(
|
|
392
393
|
() => {
|
|
393
394
|
var t, r, D, b;
|
|
394
395
|
return ((r = (t = _.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : r.internal) === "restaurant" || ((b = (D = _.purchaseOrder) == null ? void 0 : D.supplier) == null ? void 0 : b.internal) === "warehouse" ? se.TRANSFER : se.PURCHASE;
|
|
@@ -402,8 +403,8 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
402
403
|
label: o("inventory.transfer.receiveRequest.details.deliveryHistory"),
|
|
403
404
|
value: "deliveryHistory"
|
|
404
405
|
}
|
|
405
|
-
], c = Z(l[0]), i = Z(!1), u = Z(""), T = Z(!0), X =
|
|
406
|
-
async function
|
|
406
|
+
], c = Z(l[0]), i = Z(!1), u = Z(""), T = Z(!0), X = Ge(), ne = Je(_, "show");
|
|
407
|
+
async function Ee(t, r, D) {
|
|
407
408
|
u.value = r, i.value = !0, T.value = !1;
|
|
408
409
|
try {
|
|
409
410
|
await X.processPurchaseOrder(
|
|
@@ -419,13 +420,13 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
419
420
|
)
|
|
420
421
|
},
|
|
421
422
|
_.transferToDbName
|
|
422
|
-
), await new Promise((b) => setTimeout(b, 1e3)),
|
|
423
|
+
), await new Promise((b) => setTimeout(b, 1e3)), w.open({
|
|
423
424
|
title: "Success",
|
|
424
425
|
message: D,
|
|
425
426
|
type: "success"
|
|
426
427
|
}), a("update:show", !1), a("submitted");
|
|
427
428
|
} catch (b) {
|
|
428
|
-
|
|
429
|
+
w.open({
|
|
429
430
|
title: "Something went wrong",
|
|
430
431
|
message: "Please try again.",
|
|
431
432
|
type: "error"
|
|
@@ -435,11 +436,11 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
435
436
|
}
|
|
436
437
|
}
|
|
437
438
|
async function $(t) {
|
|
438
|
-
const r =
|
|
439
|
+
const r = He[t];
|
|
439
440
|
if (!r) {
|
|
440
|
-
|
|
441
|
+
w.open({
|
|
441
442
|
title: "Something went wrong",
|
|
442
|
-
message: `Cannot process order: ${
|
|
443
|
+
message: `Cannot process order: ${Ve(t)}`,
|
|
443
444
|
type: "error"
|
|
444
445
|
});
|
|
445
446
|
return;
|
|
@@ -450,13 +451,13 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
450
451
|
message: b.message,
|
|
451
452
|
primaryActions: b.primaryActions
|
|
452
453
|
}).onPrimary(() => {
|
|
453
|
-
_.purchaseOrder &&
|
|
454
|
+
_.purchaseOrder && Ee(_.purchaseOrder, t, D);
|
|
454
455
|
});
|
|
455
456
|
}
|
|
456
|
-
const
|
|
457
|
+
const Ne = re(() => {
|
|
457
458
|
var t, r;
|
|
458
459
|
return ((t = _.purchaseOrder) == null ? void 0 : t.status) === q.enum.RECEIVING || ((r = _.purchaseOrder) == null ? void 0 : r.status) === q.enum.COMPLETE;
|
|
459
|
-
}),
|
|
460
|
+
}), Pe = re(() => {
|
|
460
461
|
var z, B, x;
|
|
461
462
|
const D = (((z = _.purchaseOrder) == null ? void 0 : z.deliveryOrder) ?? []).flatMap((O) => O.received ?? []).reduce(
|
|
462
463
|
(O, F) => {
|
|
@@ -467,11 +468,11 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
467
468
|
), b = Object.entries(D).reduce(
|
|
468
469
|
(O, [F, G]) => {
|
|
469
470
|
const E = G.reduce((j, I) => {
|
|
470
|
-
const K =
|
|
471
|
+
const K = Ue(
|
|
471
472
|
j,
|
|
472
473
|
Math.max(j.precision, I.amount.precision)
|
|
473
474
|
);
|
|
474
|
-
return
|
|
475
|
+
return Ae(K, I.amount);
|
|
475
476
|
}, ce(0));
|
|
476
477
|
return O[F] = E, O;
|
|
477
478
|
},
|
|
@@ -487,7 +488,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
487
488
|
return d(), N(O, {
|
|
488
489
|
header: s(o)("inventory.transfer.receiveRequest.details.title") + ((F = t.purchaseOrder) != null && F.seqNumber ? ` #${(G = t.purchaseOrder) == null ? void 0 : G.seqNumber}` : ""),
|
|
489
490
|
modelValue: s(ne),
|
|
490
|
-
"onUpdate:modelValue": r[9] || (r[9] = (E) =>
|
|
491
|
+
"onUpdate:modelValue": r[9] || (r[9] = (E) => Fe(ne) ? ne.value = E : null),
|
|
491
492
|
"dismiss-away": T.value,
|
|
492
493
|
"close-button": "",
|
|
493
494
|
"max-width": 500
|
|
@@ -495,7 +496,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
495
496
|
default: ee(() => {
|
|
496
497
|
var E, j, I, K, Q, Y;
|
|
497
498
|
return [
|
|
498
|
-
e("div",
|
|
499
|
+
e("div", et, [
|
|
499
500
|
e("div", null, [
|
|
500
501
|
U(D, {
|
|
501
502
|
items: l,
|
|
@@ -509,103 +510,103 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
509
510
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
510
511
|
}, {
|
|
511
512
|
default: ee(() => {
|
|
512
|
-
var m, R,
|
|
513
|
+
var m, R, S, J, A, fe, pe, ve, ye, he, be, ge, _e, Re, Oe, qe, ke, xe, Se, we;
|
|
513
514
|
return [
|
|
514
|
-
e("div",
|
|
515
|
-
e("div",
|
|
515
|
+
e("div", tt, [
|
|
516
|
+
e("div", st, n(s(o)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
516
517
|
e("div", null, [
|
|
517
518
|
U(b, {
|
|
518
519
|
label: s(o)(`inventory.transfer.status.${(m = t.purchaseOrder) == null ? void 0 : m.status}`),
|
|
519
|
-
class: te(`fm-status-badge fm-status-badge-${(
|
|
520
|
+
class: te(`fm-status-badge fm-status-badge-${(S = (R = t.purchaseOrder) == null ? void 0 : R.status) == null ? void 0 : S.toLocaleLowerCase("en-us")}`),
|
|
520
521
|
compact: ""
|
|
521
522
|
}, null, 8, ["label", "class"])
|
|
522
523
|
])
|
|
523
524
|
]),
|
|
524
525
|
U(oe),
|
|
525
|
-
e("div",
|
|
526
|
-
e("div",
|
|
527
|
-
e("div",
|
|
528
|
-
e("div",
|
|
526
|
+
e("div", rt, [
|
|
527
|
+
e("div", at, [
|
|
528
|
+
e("div", nt, [
|
|
529
|
+
e("div", ot, n(s(o)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
529
530
|
]),
|
|
530
|
-
e("div",
|
|
531
|
+
e("div", lt, n(s(ae)(((J = t.purchaseOrder) == null ? void 0 : J._id) ?? "")), 1)
|
|
531
532
|
]),
|
|
532
|
-
(A = t.purchaseOrder) != null && A.effectiveAt ? (d(), y("div",
|
|
533
|
-
e("div",
|
|
534
|
-
e("div",
|
|
535
|
-
])) :
|
|
536
|
-
e("div",
|
|
537
|
-
e("div",
|
|
538
|
-
e("div",
|
|
533
|
+
(A = t.purchaseOrder) != null && A.effectiveAt ? (d(), y("div", it, [
|
|
534
|
+
e("div", ct, n(s(o)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
535
|
+
e("div", ut, n(s(de)(new Date((fe = t.purchaseOrder) == null ? void 0 : fe.effectiveAt))), 1)
|
|
536
|
+
])) : p("", !0),
|
|
537
|
+
e("div", dt, [
|
|
538
|
+
e("div", mt, n(s(o)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
539
|
+
e("div", ft, n(s(o)(
|
|
539
540
|
`inventory.transfer.receiveRequest.details.type.${M.value.toLocaleLowerCase("en-US")}`
|
|
540
541
|
)), 1)
|
|
541
542
|
]),
|
|
542
|
-
(
|
|
543
|
-
e("div",
|
|
544
|
-
e("div",
|
|
545
|
-
])) :
|
|
546
|
-
t.transferTo ? (d(), y("div",
|
|
547
|
-
e("div",
|
|
548
|
-
e("div",
|
|
549
|
-
])) :
|
|
550
|
-
s(C).isEnabled ? (d(), y("div",
|
|
543
|
+
(ve = (pe = t.purchaseOrder) == null ? void 0 : pe.supplier) != null && ve.name ? (d(), y("div", pt, [
|
|
544
|
+
e("div", vt, n(s(o)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
545
|
+
e("div", yt, n((he = (ye = t.purchaseOrder) == null ? void 0 : ye.supplier) == null ? void 0 : he.name), 1)
|
|
546
|
+
])) : p("", !0),
|
|
547
|
+
t.transferTo ? (d(), y("div", ht, [
|
|
548
|
+
e("div", bt, n(s(o)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
549
|
+
e("div", gt, n(t.transferTo), 1)
|
|
550
|
+
])) : p("", !0),
|
|
551
|
+
s(C).isEnabled ? (d(), y("div", _t, [
|
|
551
552
|
r[10] || (r[10] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Subsidiary ", -1)),
|
|
552
|
-
e("div",
|
|
553
|
-
])) :
|
|
554
|
-
s(C).isEnabled ? (d(), y("div",
|
|
555
|
-
r[11] || (r[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order
|
|
556
|
-
e("div",
|
|
557
|
-
])) :
|
|
558
|
-
(
|
|
559
|
-
e("div",
|
|
560
|
-
e("div",
|
|
561
|
-
])) :
|
|
562
|
-
(
|
|
563
|
-
e("div",
|
|
564
|
-
e("div",
|
|
565
|
-
])) :
|
|
553
|
+
e("div", Rt, n(((ge = (be = t.purchaseOrder) == null ? void 0 : be.netSuite) == null ? void 0 : ge.subsidiary.name) || ((Re = (_e = t.poRequest) == null ? void 0 : _e.netSuite) == null ? void 0 : Re.subsidiary.name) || "-"), 1)
|
|
554
|
+
])) : p("", !0),
|
|
555
|
+
s(C).isEnabled ? (d(), y("div", Ot, [
|
|
556
|
+
r[11] || (r[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order ", -1)),
|
|
557
|
+
e("div", qt, n(((qe = (Oe = t.purchaseOrder) == null ? void 0 : Oe.netSuite) == null ? void 0 : qe.id) || ((xe = (ke = t.poRequest) == null ? void 0 : ke.netSuite) == null ? void 0 : xe.id) || "-"), 1)
|
|
558
|
+
])) : p("", !0),
|
|
559
|
+
(Se = t.purchaseOrder) != null && Se.ref ? (d(), y("div", kt, [
|
|
560
|
+
e("div", xt, n(s(o)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
561
|
+
e("div", St, n(t.purchaseOrder.ref), 1)
|
|
562
|
+
])) : p("", !0),
|
|
563
|
+
(we = t.purchaseOrder) != null && we.remark ? (d(), y("div", wt, [
|
|
564
|
+
e("div", Dt, n(s(o)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
565
|
+
e("div", At, n(t.purchaseOrder.remark), 1)
|
|
566
|
+
])) : p("", !0)
|
|
566
567
|
])
|
|
567
568
|
];
|
|
568
569
|
}),
|
|
569
570
|
_: 1
|
|
570
571
|
}),
|
|
571
|
-
e("div",
|
|
572
|
-
e("div",
|
|
573
|
-
e("div",
|
|
572
|
+
e("div", Ct, [
|
|
573
|
+
e("div", Et, [
|
|
574
|
+
e("div", Nt, n(Ne.value ? s(o)("inventory.transfer.receiveRequest.details.receivedItems") : s(o)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
574
575
|
(d(!0), y(W, null, ie(((E = t.purchaseOrder) == null ? void 0 : E.items) ?? [], (m) => (d(), y("div", {
|
|
575
576
|
key: m.code,
|
|
576
577
|
class: "flex flex-col"
|
|
577
578
|
}, [
|
|
578
|
-
e("div",
|
|
579
|
-
e("div",
|
|
580
|
-
e("div",
|
|
579
|
+
e("div", Pt, [
|
|
580
|
+
e("div", Tt, n(m.name), 1),
|
|
581
|
+
e("div", Ft, n(s(ue)(Pe.value[m.sku._id], !1)) + "/" + n(s(me)(m.quantity, m.sku.unit, m.measurement)), 1)
|
|
581
582
|
]),
|
|
582
|
-
e("div",
|
|
583
|
-
e("div",
|
|
584
|
-
m.totalCost && s(V).enableTotalCost ? (d(), y("div",
|
|
583
|
+
e("div", jt, [
|
|
584
|
+
e("div", It, n(m.code), 1),
|
|
585
|
+
m.totalCost && s(V).enableTotalCost ? (d(), y("div", Ut, " (" + n(s(Me)(m.totalCost)) + ") ", 1)) : p("", !0)
|
|
585
586
|
])
|
|
586
587
|
]))), 128))
|
|
587
588
|
])
|
|
588
589
|
])
|
|
589
|
-
], 64)) :
|
|
590
|
-
c.value.value === "deliveryHistory" ? (d(), y("div",
|
|
591
|
-
((I = (j = t.purchaseOrder) == null ? void 0 : j.deliveryOrder) == null ? void 0 : I.length) === 0 ? (d(), y("div",
|
|
590
|
+
], 64)) : p("", !0),
|
|
591
|
+
c.value.value === "deliveryHistory" ? (d(), y("div", Mt, [
|
|
592
|
+
((I = (j = t.purchaseOrder) == null ? void 0 : j.deliveryOrder) == null ? void 0 : I.length) === 0 ? (d(), y("div", $t, [
|
|
592
593
|
U(B),
|
|
593
594
|
e("div", null, [
|
|
594
595
|
e("img", {
|
|
595
|
-
src: s(
|
|
596
|
+
src: s(We),
|
|
596
597
|
alt: "List is empty"
|
|
597
|
-
}, null, 8,
|
|
598
|
+
}, null, 8, Kt)
|
|
598
599
|
]),
|
|
599
|
-
e("div",
|
|
600
|
-
e("div",
|
|
600
|
+
e("div", Lt, n(s(o)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
|
|
601
|
+
e("div", Vt, n(s(o)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
|
|
601
602
|
U(B),
|
|
602
603
|
U(B)
|
|
603
|
-
])) :
|
|
604
|
-
(K = t.purchaseOrder) != null && K.deliveryOrder && ((Q = t.purchaseOrder) == null ? void 0 : Q.deliveryOrder.length) > 0 ? (d(), y("div",
|
|
604
|
+
])) : p("", !0),
|
|
605
|
+
(K = t.purchaseOrder) != null && K.deliveryOrder && ((Q = t.purchaseOrder) == null ? void 0 : Q.deliveryOrder.length) > 0 ? (d(), y("div", Bt, [
|
|
605
606
|
(d(!0), y(W, null, ie((Y = t.purchaseOrder) == null ? void 0 : Y.deliveryOrder, (m, R) => (d(), y(W, { key: R }, [
|
|
606
|
-
e("div",
|
|
607
|
-
e("div",
|
|
608
|
-
e("div",
|
|
607
|
+
e("div", Gt, [
|
|
608
|
+
e("div", Ht, [
|
|
609
|
+
e("div", zt, [
|
|
609
610
|
e("div", {
|
|
610
611
|
class: te([
|
|
611
612
|
{
|
|
@@ -617,7 +618,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
617
618
|
}, null, 2)
|
|
618
619
|
]),
|
|
619
620
|
r[12] || (r[12] = e("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
|
|
620
|
-
e("div",
|
|
621
|
+
e("div", Qt, [
|
|
621
622
|
e("div", {
|
|
622
623
|
class: te([
|
|
623
624
|
{
|
|
@@ -629,14 +630,14 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
629
630
|
}, null, 2)
|
|
630
631
|
])
|
|
631
632
|
]),
|
|
632
|
-
e("div",
|
|
633
|
-
e("div",
|
|
634
|
-
e("div",
|
|
633
|
+
e("div", Yt, [
|
|
634
|
+
e("div", Jt, n(s(o)("inventory.transfer.receiveRequest.details.received")), 1),
|
|
635
|
+
e("div", Wt, n(s(de)(new Date(m.createdAt))) + ", " + n(s($e)(new Date(m.createdAt))), 1)
|
|
635
636
|
])
|
|
636
637
|
]),
|
|
637
|
-
e("div",
|
|
638
|
-
e("div",
|
|
639
|
-
e("div",
|
|
638
|
+
e("div", Xt, [
|
|
639
|
+
e("div", Zt, [
|
|
640
|
+
e("div", es, [
|
|
640
641
|
e("div", {
|
|
641
642
|
class: te([
|
|
642
643
|
{
|
|
@@ -648,31 +649,31 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
648
649
|
}, null, 2)
|
|
649
650
|
])
|
|
650
651
|
]),
|
|
651
|
-
e("div",
|
|
652
|
+
e("div", ts, [
|
|
652
653
|
U(z, {
|
|
653
654
|
variant: "outlined",
|
|
654
655
|
class: "py-12 px-16"
|
|
655
656
|
}, {
|
|
656
657
|
default: ee(() => [
|
|
657
|
-
e("div",
|
|
658
|
-
e("div",
|
|
659
|
-
e("div",
|
|
660
|
-
e("div",
|
|
658
|
+
e("div", ss, [
|
|
659
|
+
e("div", rs, [
|
|
660
|
+
e("div", as, n(s(o)("inventory.transfer.receiveRequest.details.receivedBy")), 1),
|
|
661
|
+
e("div", ns, n(m.createdBy.name), 1)
|
|
661
662
|
]),
|
|
662
|
-
e("div",
|
|
663
|
-
e("div",
|
|
664
|
-
(d(!0), y(W, null, ie(m.received, (
|
|
663
|
+
e("div", os, [
|
|
664
|
+
e("div", ls, n(s(o)("inventory.transfer.receiveRequest.details.receivedItems")), 1),
|
|
665
|
+
(d(!0), y(W, null, ie(m.received, (S) => (d(), y("div", {
|
|
665
666
|
class: "fm-typo-en-body-lg-600",
|
|
666
|
-
key:
|
|
667
|
-
}, n(
|
|
667
|
+
key: S.sku._id
|
|
668
|
+
}, n(S.sku.name) + " " + n(s(me)(S.amount, S.sku.unit, S.measurement)), 1))), 128))
|
|
668
669
|
]),
|
|
669
|
-
e("div",
|
|
670
|
-
e("div",
|
|
671
|
-
e("div",
|
|
670
|
+
e("div", is, [
|
|
671
|
+
e("div", cs, n(s(o)("inventory.transfer.receiveRequest.details.deliveryOrderNo")), 1),
|
|
672
|
+
e("div", us, n(m.deliveryOrderNumber.trim().length ? m.deliveryOrderNumber : "-"), 1)
|
|
672
673
|
]),
|
|
673
|
-
e("div",
|
|
674
|
-
m.remark ? (d(), y("div",
|
|
675
|
-
e("div",
|
|
674
|
+
e("div", ds, [
|
|
675
|
+
m.remark ? (d(), y("div", ms, n(s(o)("inventory.transfer.receiveRequest.details.deliveryRemark")), 1)) : p("", !0),
|
|
676
|
+
e("div", fs, n(m.remark), 1)
|
|
676
677
|
])
|
|
677
678
|
])
|
|
678
679
|
]),
|
|
@@ -681,29 +682,29 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
681
682
|
])
|
|
682
683
|
])
|
|
683
684
|
], 64))), 128))
|
|
684
|
-
])) :
|
|
685
|
-
])) :
|
|
685
|
+
])) : p("", !0)
|
|
686
|
+
])) : p("", !0)
|
|
686
687
|
])
|
|
687
688
|
];
|
|
688
689
|
}),
|
|
689
690
|
"side-sheet-footer": ee(() => {
|
|
690
|
-
var E, j, I, K, Q, Y, m, R,
|
|
691
|
+
var E, j, I, K, Q, Y, m, R, S, J;
|
|
691
692
|
return [
|
|
692
|
-
e("div",
|
|
693
|
+
e("div", ps, [
|
|
693
694
|
((E = t.purchaseOrder) == null ? void 0 : E.status) === s(q).enum.DRAFT && M.value === s(se).PURCHASE ? (d(), N(x, {
|
|
694
695
|
key: 0,
|
|
695
696
|
label: s(o)("inventory.transfer.receiveRequest.actions.confirmDraft"),
|
|
696
697
|
onClick: r[1] || (r[1] = (A) => $("confirmDraft")),
|
|
697
698
|
loading: u.value === "confirmDraft",
|
|
698
699
|
disabled: u.value !== "confirmDraft" && i.value
|
|
699
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
700
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
700
701
|
((j = t.purchaseOrder) == null ? void 0 : j.status) === s(q).enum.DRAFT && M.value === s(se).TRANSFER ? (d(), N(x, {
|
|
701
702
|
key: 1,
|
|
702
703
|
label: s(o)("inventory.transfer.receiveRequest.actions.submitRequest"),
|
|
703
704
|
onClick: r[2] || (r[2] = (A) => $("submitRequest")),
|
|
704
705
|
loading: u.value === "submitRequest",
|
|
705
706
|
disabled: u.value !== "submitRequest" && i.value
|
|
706
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
707
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
707
708
|
((I = t.purchaseOrder) == null ? void 0 : I.status) === s(q).enum.DRAFT ? (d(), N(x, {
|
|
708
709
|
key: 2,
|
|
709
710
|
label: s(o)("inventory.transfer.receiveRequest.actions.cancelDraft"),
|
|
@@ -711,28 +712,28 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
711
712
|
loading: u.value === "cancelDraft",
|
|
712
713
|
disabled: u.value !== "cancelDraft" && i.value,
|
|
713
714
|
variant: "destructive"
|
|
714
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
715
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
715
716
|
((K = t.purchaseOrder) == null ? void 0 : K.status) === s(q).enum.RECEIVING ? (d(), N(x, {
|
|
716
717
|
key: 3,
|
|
717
718
|
label: s(o)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
718
719
|
onClick: r[4] || (r[4] = (A) => $("completeReceive")),
|
|
719
720
|
loading: u.value === "completeReceive",
|
|
720
721
|
disabled: u.value !== "completeReceive" && i.value
|
|
721
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
722
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
722
723
|
t.canResubmit ? (d(), N(x, {
|
|
723
724
|
key: 4,
|
|
724
725
|
label: s(o)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
|
|
725
726
|
onClick: r[5] || (r[5] = (A) => $("submitRequest")),
|
|
726
727
|
loading: u.value === "submitRequest",
|
|
727
728
|
disabled: u.value !== "submitRequest" && i.value
|
|
728
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
729
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
729
730
|
(((Q = t.purchaseOrder) == null ? void 0 : Q.status) === s(q).enum.REQUESTING || ((Y = t.purchaseOrder) == null ? void 0 : Y.status) === s(q).enum.PROCESSING) && t.canApprove ? (d(), N(x, {
|
|
730
731
|
key: 5,
|
|
731
732
|
label: s(o)("inventory.transfer.approval.actions.approveRequest"),
|
|
732
733
|
onClick: r[6] || (r[6] = (A) => $("approveRequest")),
|
|
733
734
|
loading: u.value === "approveRequest",
|
|
734
735
|
disabled: u.value !== "approveRequest" && i.value
|
|
735
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
736
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
736
737
|
((m = t.purchaseOrder) == null ? void 0 : m.status) === s(q).enum.REQUESTING && t.canApprove ? (d(), N(x, {
|
|
737
738
|
key: 6,
|
|
738
739
|
label: s(o)("inventory.transfer.approval.actions.rejectRequest"),
|
|
@@ -740,13 +741,13 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
740
741
|
loading: u.value === "rejectRequest",
|
|
741
742
|
disabled: u.value !== "rejectRequest" && i.value,
|
|
742
743
|
variant: "destructive"
|
|
743
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
744
|
-
((R = t.purchaseOrder) == null ? void 0 : R.status) !== s(q).enum.COMPLETE && ((
|
|
744
|
+
}, null, 8, ["label", "loading", "disabled"])) : p("", !0),
|
|
745
|
+
((R = t.purchaseOrder) == null ? void 0 : R.status) !== s(q).enum.COMPLETE && ((S = t.purchaseOrder) == null ? void 0 : S.status) !== s(q).enum.CANCEL && (((J = t.purchaseOrder) == null ? void 0 : J.status) !== s(q).enum.REQUESTING || t.canApprove) ? (d(), N(x, {
|
|
745
746
|
key: 7,
|
|
746
747
|
label: s(o)("common.close"),
|
|
747
748
|
variant: "tertiary",
|
|
748
749
|
onClick: r[8] || (r[8] = (A) => a("update:show", !1))
|
|
749
|
-
}, null, 8, ["label"])) :
|
|
750
|
+
}, null, 8, ["label"])) : p("", !0)
|
|
750
751
|
])
|
|
751
752
|
];
|
|
752
753
|
}),
|
|
@@ -756,7 +757,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
|
|
|
756
757
|
}
|
|
757
758
|
});
|
|
758
759
|
export {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
760
|
+
Ss as _,
|
|
761
|
+
Xe as g,
|
|
762
|
+
xs as u
|
|
762
763
|
};
|