@feedmepos/mf-inventory-portal 1.2.24 → 1.2.25-dev.2
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-pG3igEbR.js +297 -0
- package/dist/{ApprovalView-D8SozxgZ.js → ApprovalView-JoTq2Bdf.js} +13 -13
- package/dist/{BindingsDialog-DpD-srnA.js → BindingsDialog-D44lDz_m.js} +2 -2
- package/dist/{BindingsPicker-TraPSRn0.js → BindingsPicker-BwaLwmiz.js} +1 -1
- package/dist/{BindingsTable-geCwbXg4.js → BindingsTable-C5y3yr5d.js} +1 -1
- package/dist/{ClosingDraftView-DsYJZvGk.js → ClosingDraftView-BxBEDZ8r.js} +5 -4
- package/dist/ClosingHistoryView-DU0Dv4IW.js +363 -0
- package/dist/{ClosingTemplateView-CHkzO1Nu.js → ClosingTemplateView-tigOzz56.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-skDykYOJ.js → DeliveryOrderPrintPreview-BSxjnk3a.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BgSCX-LL.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-eUMrmGD4.js} +21 -21
- package/dist/{FmMultiselectDialog-CDbPF9Jh.js → FmMultiselectDialog-s0EntbOX.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CqDOpQBo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DQuvByaf.js} +1 -1
- package/dist/{ImportView-CskoJZ8f.js → ImportView-D6c6oNby.js} +4 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-IrrYBFeM.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Ko8B7MYK.js} +1 -1
- package/dist/{IngredientGroupView-RledP9Ba.js → IngredientGroupView-oCZpkxZO.js} +2 -2
- package/dist/{IngredientsView-C3AXdYSs.js → IngredientsView-C8WzhNAH.js} +7 -7
- package/dist/{IntegrationView-B_mGrVu5.js → IntegrationView-DD1QWlE3.js} +141 -141
- package/dist/{InventoryBindingForm-CAqsJlFM.js → InventoryBindingForm-ChoO3SrA.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C3hmrMQB.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXe0VwF9.js} +3 -3
- package/dist/{InventoryBindingSummary-CX05dIVw.js → InventoryBindingSummary-BGmUNPfu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wWuCVuRM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDXfvqWA.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BU0Npweo.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BwW92Whg.js} +1 -1
- package/dist/{PublishView-CfVJ65by.js → PublishView-CzS06kO-.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-DTsz2K_J.js → PurchaseOrderPrintPreview-YCg4lu_a.js} +10 -10
- package/dist/{ReceiveRequestView-CgJZis38.js → ReceiveRequestView-WjbYB-a0.js} +8 -8
- package/dist/{RecipeView-CLipp4YX.js → RecipeView-Cl4_vFBE.js} +3 -3
- package/dist/{StockView-BwZ2pl_P.js → StockView-dyF-JQbP.js} +18 -17
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-jmEYs9QV.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-fQRg6q.js} +1 -1
- package/dist/{SupplierView-BpwchJuw.js → SupplierView-BN_pPxS7.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CkkFDzSi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DR9qQoBL.js} +174 -174
- package/dist/{TransferTemplateView-BoVhRHqn.js → TransferTemplateView-CSA2wNJR.js} +7 -7
- package/dist/{UnitView-DvOXmefs.js → UnitView-C69iwndm.js} +3 -3
- package/dist/{WarehouseView-CuSv-A_N.js → WarehouseView-BkSvBJg_.js} +1 -1
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/stock.d.ts +2 -44
- package/dist/{app-Cl-v2EjQ.js → app-NmiyG_NE.js} +6561 -6389
- package/dist/app.d.ts +108 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-Cd_xkdIL.js → decimal-B-SPLtwh.js} +1 -1
- package/dist/{format-unit-display-UAp-LCyp.js → format-unit-display-jXD4D_J4.js} +20 -20
- package/dist/{import-export.helper-0uVecFKH.js → import-export.helper-BOFJJxVC.js} +1 -1
- package/dist/{index-BO1KynNa.js → index-BvtleP-f.js} +1 -1
- package/dist/{index-CL9QvjgU.js → index-DY1lwU0l.js} +1 -1
- package/dist/{purchase-order-template-D7DZ6S2H.js → purchase-order-template-BNtdgrTt.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/stock-Basa-Xi7.js +74 -0
- package/dist/stock-F2A8gqHx.js +83 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/{supplier-D49_CDEa.js → supplier-CBUmza-i.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CCLEsRrk.js → use-ingredient-select-dialog-ogRof947.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CvRGlhsk.js → use-inventory-binding-dialog-D9P4uH3I.js} +1 -1
- package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
- package/package.json +4 -4
- package/dist/App-hvbk1R9p.js +0 -286
- package/dist/stock-DJ9usOfe.js +0 -146
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { aa as wt, u as Re,
|
|
2
|
-
import { ref as Q, computed as W, h as V, defineComponent as Oe, reactive as Ft, onMounted as _t, resolveComponent as j, openBlock as l, createBlock as re, withCtx as
|
|
3
|
-
import { F as Et } from "./decimal-
|
|
1
|
+
import { aa as wt, u as Re, a_ as q, a$ as Xe, aL as ee, aJ as Me, c as Ue, b as Ze, ag as $t, ai as Ct, aj as Rt, aD as kt, e as dt, f as ft, a6 as it, b0 as Dt, a9 as yt, a0 as vt, n as ve, ad as Nt, b1 as bt, an as Ge, h as Pe, i as mt, j as me, D as ge, b2 as ht, b3 as ct, b4 as xe, aM as At, Q as gt, aI as we, t as We, ab as He, ac as Qe, af as Ke, $ as Fe, b5 as st, b6 as Te, av as Tt } from "./app-NmiyG_NE.js";
|
|
2
|
+
import { ref as Q, computed as W, h as V, defineComponent as Oe, reactive as Ft, onMounted as _t, resolveComponent as j, openBlock as l, createBlock as re, withCtx as X, createElementVNode as e, createVNode as N, unref as v, createElementBlock as x, toDisplayString as b, createCommentVNode as M, Fragment as ue, renderList as _e, createTextVNode as Ce, normalizeClass as Le, watch as Pt, isRef as It, resolveDynamicComponent as qt } from "vue";
|
|
3
|
+
import { F as Et } from "./decimal-B-SPLtwh.js";
|
|
4
4
|
import { useCoreStore as et, useI18n as ut } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as tt, useSnackbar as Be, components as Ye, FmButtonVariant as he, useProxiedModel as Vt } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as Lt, u as
|
|
6
|
+
import { a as Lt, u as Mt, P as Ie, f as Ut } from "./format-unit-display-jXD4D_J4.js";
|
|
7
7
|
import { E as Bt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
|
-
import { _ as jt, F as zt, a as Kt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as jt, F as zt, a as Kt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DQuvByaf.js";
|
|
9
9
|
import { u as Ht, R as pt } from "./usePromise-CbVUCxhj.js";
|
|
10
|
-
import { u as Gt } from "./index-
|
|
10
|
+
import { u as Gt } from "./index-DY1lwU0l.js";
|
|
11
11
|
const Wt = wt((R, o) => {
|
|
12
12
|
const a = Re();
|
|
13
13
|
return {
|
|
@@ -94,17 +94,17 @@ const Wt = wt((R, o) => {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
function Je(R) {
|
|
97
|
-
return
|
|
97
|
+
return Xe.generatedPOReceivedMap({
|
|
98
98
|
purchaseOrder: R
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
function Qt(R) {
|
|
102
|
-
return
|
|
102
|
+
return Xe.validatePOItemReceivedStatus({
|
|
103
103
|
dto: R
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
function nt(R) {
|
|
107
|
-
return
|
|
107
|
+
return Xe.validatePOReceivedStatus({
|
|
108
108
|
receivedMap: R
|
|
109
109
|
});
|
|
110
110
|
}
|
|
@@ -112,14 +112,14 @@ function at(R, o, a) {
|
|
|
112
112
|
if (!ee.safeParse(R).success)
|
|
113
113
|
throw new Error(`Invalid purchase order status: ${R}`);
|
|
114
114
|
const h = ee.parse(R);
|
|
115
|
-
return
|
|
115
|
+
return Xe.orderStatusCombination({
|
|
116
116
|
status: h,
|
|
117
117
|
isPOPartialReceive: o,
|
|
118
118
|
isPOOverReceive: a
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function xt() {
|
|
122
|
-
const R = Re(), o =
|
|
122
|
+
const R = Re(), o = Me(), a = Ue();
|
|
123
123
|
async function h(n, _) {
|
|
124
124
|
const s = R.currentLocationDBName;
|
|
125
125
|
return n.doc.supplier.internal && n.operation === q.enum.confirmDraft && (n.operation = q.enum.submitRequest), await o.processPurchaseOrder(n, _ || s);
|
|
@@ -133,19 +133,19 @@ function xt() {
|
|
|
133
133
|
var lt = /* @__PURE__ */ ((R) => (R.RECEIVE_REQUEST = "receive/request", R.APPROVAL = "approval", R))(lt || {});
|
|
134
134
|
const ze = Q(), rt = Q();
|
|
135
135
|
function In(R, o) {
|
|
136
|
-
const a = tt(), h = Re(), y =
|
|
137
|
-
|
|
138
|
-
const n = Lt(), _ =
|
|
136
|
+
const a = tt(), h = Re(), y = Ue();
|
|
137
|
+
Ze();
|
|
138
|
+
const n = Lt(), _ = Mt(), s = Q(!1), i = Be(), O = Me(), $ = Wt(), u = Q(new Array()), T = Q(new Array()), g = Q(
|
|
139
139
|
o != null && o.startDate && (o != null && o.endDate) ? o : $t()
|
|
140
140
|
), D = W(() => {
|
|
141
|
-
const I = new Date(g.value.startDate),
|
|
141
|
+
const I = new Date(g.value.startDate), U = new Date(g.value.endDate);
|
|
142
142
|
return {
|
|
143
143
|
start: Ct(I).toISOString(),
|
|
144
|
-
end: Rt(
|
|
144
|
+
end: Rt(U).toISOString()
|
|
145
145
|
};
|
|
146
146
|
}), c = Q(new Array()), r = kt(), f = Q(null);
|
|
147
147
|
async function m(I) {
|
|
148
|
-
function
|
|
148
|
+
function U(k) {
|
|
149
149
|
const w = {
|
|
150
150
|
mode: dt.CREATE,
|
|
151
151
|
modelValue: I || void 0,
|
|
@@ -172,13 +172,13 @@ function In(R, o) {
|
|
|
172
172
|
close: !0
|
|
173
173
|
}
|
|
174
174
|
}).onPrimary(async () => {
|
|
175
|
-
ae = await n.getTemplateId(), ae &&
|
|
175
|
+
ae = await n.getTemplateId(), ae && U(ae);
|
|
176
176
|
}).onSecondary(() => {
|
|
177
|
-
|
|
178
|
-
}) :
|
|
177
|
+
U(void 0);
|
|
178
|
+
}) : U(ae);
|
|
179
179
|
}
|
|
180
180
|
function S(I) {
|
|
181
|
-
const
|
|
181
|
+
const U = {
|
|
182
182
|
mode: dt.UPDATE,
|
|
183
183
|
modelValue: ft(I),
|
|
184
184
|
show: !0,
|
|
@@ -187,14 +187,14 @@ function In(R, o) {
|
|
|
187
187
|
},
|
|
188
188
|
lastClosingDate: f.value
|
|
189
189
|
};
|
|
190
|
-
ze.value =
|
|
190
|
+
ze.value = U;
|
|
191
191
|
}
|
|
192
192
|
async function E() {
|
|
193
193
|
u.value = [], T.value = [], s.value = !0;
|
|
194
194
|
try {
|
|
195
195
|
const I = await O.getPurchaseOrders(D.value);
|
|
196
196
|
u.value = I.sort((B, t) => t._id.localeCompare(B._id));
|
|
197
|
-
const
|
|
197
|
+
const U = I.flatMap((B) => B.shipmentIds || []).filter(Boolean), ae = U.length > 0 ? await $.getShipmentsByIds(U) : [];
|
|
198
198
|
T.value = ae;
|
|
199
199
|
const k = await r.readCurrentLocationLastClosing(!0), w = k == null ? void 0 : k._id;
|
|
200
200
|
w && (f.value = Dt(w)), await y.awaitFeatureLoaded(() => y.mustUsePoTemplate) && await _.fetchTemplates();
|
|
@@ -239,10 +239,10 @@ function In(R, o) {
|
|
|
239
239
|
return G();
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function Y(I,
|
|
242
|
+
function Y(I, U) {
|
|
243
243
|
g.value = {
|
|
244
244
|
startDate: I,
|
|
245
|
-
endDate:
|
|
245
|
+
endDate: U
|
|
246
246
|
}, F();
|
|
247
247
|
}
|
|
248
248
|
h.watchLocation(async (I) => {
|
|
@@ -253,16 +253,16 @@ function In(R, o) {
|
|
|
253
253
|
await F();
|
|
254
254
|
});
|
|
255
255
|
const J = Q(), se = Q(Math.random().toString());
|
|
256
|
-
async function pe(I,
|
|
256
|
+
async function pe(I, U) {
|
|
257
257
|
const ae = Math.random().toString();
|
|
258
|
-
se.value = ae,
|
|
258
|
+
se.value = ae, U ?? (U = c.value.computeFirst(
|
|
259
259
|
(B) => B.purchaseOrderId === I._id ? B : null
|
|
260
260
|
) ?? void 0);
|
|
261
|
-
const k = R === "receive/request" ? h.currentLocation :
|
|
262
|
-
poRequest:
|
|
261
|
+
const k = R === "receive/request" ? h.currentLocation : U == null ? void 0 : U.to, w = R === "approval", P = {
|
|
262
|
+
poRequest: U,
|
|
263
263
|
purchaseOrder: {
|
|
264
264
|
...I,
|
|
265
|
-
status: w && (
|
|
265
|
+
status: w && (U != null && U.rejectedAt) ? ee.Enum.REJECT : I.status
|
|
266
266
|
},
|
|
267
267
|
transferTo: k == null ? void 0 : k.name,
|
|
268
268
|
transferToDbName: k == null ? void 0 : k.dbName,
|
|
@@ -278,18 +278,18 @@ function In(R, o) {
|
|
|
278
278
|
};
|
|
279
279
|
J.value = P;
|
|
280
280
|
}
|
|
281
|
-
async function fe(I,
|
|
281
|
+
async function fe(I, U, ae, k) {
|
|
282
282
|
const w = xt();
|
|
283
283
|
s.value = !0;
|
|
284
284
|
try {
|
|
285
285
|
await w({
|
|
286
286
|
operate: {
|
|
287
|
-
operation:
|
|
287
|
+
operation: U,
|
|
288
288
|
doc: I,
|
|
289
289
|
options: (
|
|
290
290
|
// auto receive for supplier to warehouse
|
|
291
|
-
(
|
|
292
|
-
|
|
291
|
+
(U === q.enum.confirmDraft || // auto receive for warehouse to warehouse
|
|
292
|
+
U === q.enum.completeReceive) && y.autoReceiveWarehouse ? {
|
|
293
293
|
autoReceive: !0
|
|
294
294
|
} : void 0
|
|
295
295
|
)
|
|
@@ -297,13 +297,13 @@ function In(R, o) {
|
|
|
297
297
|
operateV2: {
|
|
298
298
|
_id: I._id,
|
|
299
299
|
_rev: I._rev ?? "",
|
|
300
|
-
action:
|
|
300
|
+
action: U,
|
|
301
301
|
payloads: []
|
|
302
302
|
},
|
|
303
303
|
transferTo: k
|
|
304
304
|
}), await new Promise((t) => setTimeout(t, 1e3));
|
|
305
305
|
const B = Re().currentLocationDBName.startsWith("restaurant_");
|
|
306
|
-
|
|
306
|
+
U === q.enum.confirmDraft && I.effectiveAt && B ? i.open({
|
|
307
307
|
title: "Success",
|
|
308
308
|
message: `${ae}. The backdate will be reflected once your POS has received this change.`,
|
|
309
309
|
type: "success"
|
|
@@ -317,17 +317,17 @@ function In(R, o) {
|
|
|
317
317
|
title: "Something went wrong",
|
|
318
318
|
message: "Please try again.",
|
|
319
319
|
type: "error"
|
|
320
|
-
}), console.error("Error when submitting PO operation",
|
|
320
|
+
}), console.error("Error when submitting PO operation", U, I, P);
|
|
321
321
|
} finally {
|
|
322
322
|
s.value = !1, F();
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
async function ke(I,
|
|
326
|
-
const k = St[
|
|
325
|
+
async function ke(I, U, ae) {
|
|
326
|
+
const k = St[U];
|
|
327
327
|
if (!k) {
|
|
328
328
|
i.open({
|
|
329
329
|
title: "Something went wrong",
|
|
330
|
-
message: `Cannot process order: ${it(
|
|
330
|
+
message: `Cannot process order: ${it(U)}`,
|
|
331
331
|
type: "error"
|
|
332
332
|
});
|
|
333
333
|
return;
|
|
@@ -338,7 +338,7 @@ function In(R, o) {
|
|
|
338
338
|
message: P.message,
|
|
339
339
|
primaryActions: P.primaryActions
|
|
340
340
|
}).onPrimary(() => {
|
|
341
|
-
fe(I,
|
|
341
|
+
fe(I, U, w, ae);
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
async function qe() {
|
|
@@ -355,8 +355,8 @@ function In(R, o) {
|
|
|
355
355
|
}).onPrimary(() => {
|
|
356
356
|
const I = {
|
|
357
357
|
show: !0,
|
|
358
|
-
"onUpdate:show"(
|
|
359
|
-
rt.value.show =
|
|
358
|
+
"onUpdate:show"(U) {
|
|
359
|
+
rt.value.show = U;
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
rt.value = I;
|
|
@@ -526,7 +526,7 @@ const Ve = {
|
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
528
|
function qn(R, o, a) {
|
|
529
|
-
const h = Re(), y =
|
|
529
|
+
const h = Re(), y = Ze(), n = et(), { t: _ } = ut();
|
|
530
530
|
function s(g) {
|
|
531
531
|
switch (g.status) {
|
|
532
532
|
case "DRAFT":
|
|
@@ -923,7 +923,7 @@ function qn(R, o, a) {
|
|
|
923
923
|
columnDefs: W(() => R === "receive/request" ? $() : u())
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const Xt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Zt = { class: "flex flex-col gap-8" }, es = { class: "flex w-full justify-end gap-16" }, ts = /* @__PURE__ */ Oe({
|
|
927
927
|
__name: "FulfillmentForm",
|
|
928
928
|
props: {
|
|
929
929
|
purchaseOrder: {},
|
|
@@ -954,10 +954,10 @@ const Zt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
954
954
|
onValidationFailed: console.log,
|
|
955
955
|
onValidationSuccess: i[1] || (i[1] = () => a.confirm(h))
|
|
956
956
|
}, {
|
|
957
|
-
default:
|
|
957
|
+
default: X(() => [
|
|
958
958
|
i[2] || (i[2] = e("div", { class: "fm-typo-en-title-sm-600" }, "Confirm the transfer amount", -1)),
|
|
959
|
-
e("div",
|
|
960
|
-
e("div",
|
|
959
|
+
e("div", Xt, [
|
|
960
|
+
e("div", Zt, [
|
|
961
961
|
N(O, {
|
|
962
962
|
"column-defs": [
|
|
963
963
|
{
|
|
@@ -1130,7 +1130,7 @@ const Zt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
function ss() {
|
|
1133
|
-
const R =
|
|
1133
|
+
const R = Ue();
|
|
1134
1134
|
return {
|
|
1135
1135
|
ableToMarkReceived(o) {
|
|
1136
1136
|
if (!o || o.status !== ee.enum.RECEIVING)
|
|
@@ -1159,7 +1159,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1159
1159
|
scope: {}
|
|
1160
1160
|
},
|
|
1161
1161
|
setup(R) {
|
|
1162
|
-
const o = R, a =
|
|
1162
|
+
const o = R, a = Ze(), h = Be(), y = tt(), n = Q(!1);
|
|
1163
1163
|
W(() => {
|
|
1164
1164
|
var $, u, T, g;
|
|
1165
1165
|
let s = !0;
|
|
@@ -1249,7 +1249,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1249
1249
|
scope: {}
|
|
1250
1250
|
},
|
|
1251
1251
|
setup(R) {
|
|
1252
|
-
const o = R, a =
|
|
1252
|
+
const o = R, a = Ze(), h = Me(), y = Q(o.poRequest);
|
|
1253
1253
|
_t(async () => {
|
|
1254
1254
|
var i;
|
|
1255
1255
|
if (!o.poRequest && ((i = o.purchaseOrder) != null && i._id)) {
|
|
@@ -1286,22 +1286,22 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1286
1286
|
e("div", us, [
|
|
1287
1287
|
(c = (D = i.purchaseOrder) == null ? void 0 : D.netSuite) != null && c.id ? (l(), x("span", ds, b((f = (r = i.purchaseOrder) == null ? void 0 : r.netSuite) == null ? void 0 : f.refNo) + " (" + b((S = (m = i.purchaseOrder) == null ? void 0 : m.netSuite) == null ? void 0 : S.id) + ") ", 1)) : (l(), x("span", ms, "N/A"))
|
|
1288
1288
|
])
|
|
1289
|
-
])) :
|
|
1289
|
+
])) : M("", !0),
|
|
1290
1290
|
!i.isTransferBetweenOutlets && y.value || i.scope === v(lt).APPROVAL ? (l(), x("div", ps, [
|
|
1291
1291
|
e("div", fs, " (Request) NetSuite " + b(i.transferType === v(Ie).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
1292
1292
|
e("div", ys, [
|
|
1293
1293
|
(G = (E = y.value) == null ? void 0 : E.netSuite) != null && G.id ? (l(), x("span", vs, b((Y = (F = y.value) == null ? void 0 : F.netSuite) == null ? void 0 : Y.refNo) + " (" + b((se = (J = y.value) == null ? void 0 : J.netSuite) == null ? void 0 : se.id) + ") ", 1)) : (l(), x("span", bs, "N/A"))
|
|
1294
1294
|
])
|
|
1295
|
-
])) :
|
|
1295
|
+
])) : M("", !0),
|
|
1296
1296
|
_.value ? (l(), x("div", hs, [
|
|
1297
1297
|
O[1] || (O[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
|
|
1298
1298
|
e("div", gs, b(_.value), 1)
|
|
1299
|
-
])) :
|
|
1299
|
+
])) : M("", !0),
|
|
1300
1300
|
v(a).isEnabled && i.transferType === v(Ie).TRANSFER && !i.isTransferBetweenOutlets ? (l(), x("div", _s, [
|
|
1301
1301
|
O[2] || (O[2] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
|
|
1302
1302
|
e("div", Ss, b(s.value), 1)
|
|
1303
|
-
])) :
|
|
1304
|
-
])) :
|
|
1303
|
+
])) : M("", !0)
|
|
1304
|
+
])) : M("", !0);
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
1307
|
}), Os = { class: "flex flex-row-reverse" }, ws = /* @__PURE__ */ Oe({
|
|
@@ -1358,7 +1358,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1358
1358
|
}, Ps = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Is = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, qs = { class: "w-full" }, Es = {
|
|
1359
1359
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
1360
1360
|
style: { "min-width": "130px" }
|
|
1361
|
-
}, Vs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ls = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
1361
|
+
}, Vs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ls = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ms = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Us = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Bs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, js = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zs = { class: "p-3 fm-typo-en-body-sm-600" }, Ks = { key: 2 }, Hs = { key: 1 }, Gs = /* @__PURE__ */ Oe({
|
|
1362
1362
|
__name: "NetSuiteLatestInfo",
|
|
1363
1363
|
props: {
|
|
1364
1364
|
netsuiteId: {},
|
|
@@ -1428,7 +1428,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1428
1428
|
overlay: !0,
|
|
1429
1429
|
"max-width": 800
|
|
1430
1430
|
}, {
|
|
1431
|
-
"dialog-button":
|
|
1431
|
+
"dialog-button": X(() => [
|
|
1432
1432
|
N(f, {
|
|
1433
1433
|
"prepend-icon": "info",
|
|
1434
1434
|
variant: "secondary",
|
|
@@ -1439,10 +1439,10 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1439
1439
|
"border-color": "primary"
|
|
1440
1440
|
})
|
|
1441
1441
|
]),
|
|
1442
|
-
"dialog-header":
|
|
1442
|
+
"dialog-header": X(() => r[3] || (r[3] = [
|
|
1443
1443
|
e("div", null, "NetSuite latest info", -1)
|
|
1444
1444
|
])),
|
|
1445
|
-
default:
|
|
1445
|
+
default: X(() => [
|
|
1446
1446
|
n.value ? (l(), x("div", Cs, "Loading...")) : (l(), x("div", Rs, [
|
|
1447
1447
|
_.value ? (l(), x("p", Hs, "Something went wrong.")) : (l(), x(ue, { key: 0 }, [
|
|
1448
1448
|
e("div", ks, [
|
|
@@ -1464,7 +1464,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1464
1464
|
s.value ? (l(), x("div", Ts, [
|
|
1465
1465
|
r[5] || (r[5] = e("span", null, "Change Log Loading...", -1)),
|
|
1466
1466
|
N(S, { size: "md" })
|
|
1467
|
-
])) :
|
|
1467
|
+
])) : M("", !0),
|
|
1468
1468
|
!s.value && $.value.length > 0 ? (l(), x("div", Fs, [
|
|
1469
1469
|
e("h3", Ps, [
|
|
1470
1470
|
N(E, {
|
|
@@ -1500,11 +1500,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1500
1500
|
e("td", Es, b(D(F._dateiso8601)), 1),
|
|
1501
1501
|
e("td", Vs, b(F._rolename), 1),
|
|
1502
1502
|
e("td", Ls, b(F._employeename), 1),
|
|
1503
|
-
e("td",
|
|
1503
|
+
e("td", Ms, b(F._contextname), 1),
|
|
1504
1504
|
e("td", {
|
|
1505
1505
|
class: Le(`p-3 fm-typo-en-body-sm-600 ${g(Number(F.type) - 1)}`)
|
|
1506
1506
|
}, b(v(xe)[Number(F.type) - 1]), 3),
|
|
1507
|
-
e("td",
|
|
1507
|
+
e("td", Us, b(F.lineid || ""), 1),
|
|
1508
1508
|
e("td", Bs, b(F._fieldname), 1),
|
|
1509
1509
|
e("td", js, b(F.oldvalue || ""), 1),
|
|
1510
1510
|
e("td", zs, b(F.newvalue || ""), 1)
|
|
@@ -1518,7 +1518,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1518
1518
|
], 64))
|
|
1519
1519
|
]))
|
|
1520
1520
|
]),
|
|
1521
|
-
"dialog-footer":
|
|
1521
|
+
"dialog-footer": X(() => [
|
|
1522
1522
|
N(f, {
|
|
1523
1523
|
class: "ml-auto sm:w-full xs:w-full",
|
|
1524
1524
|
label: "Close",
|
|
@@ -1535,7 +1535,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1535
1535
|
}), Ws = {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16 flex flex-col gap-8"
|
|
1538
|
-
}, Qs = { class: "flex gap-8 items-center" }, Ys = { class: "ml-auto" }, Js = { class: "flex gap-3" },
|
|
1538
|
+
}, Qs = { class: "flex gap-8 items-center" }, Ys = { class: "ml-auto" }, Js = { class: "flex gap-3" }, Xs = /* @__PURE__ */ Oe({
|
|
1539
1539
|
__name: "NetSuitePanel",
|
|
1540
1540
|
props: {
|
|
1541
1541
|
poRequest: {},
|
|
@@ -1561,7 +1561,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1561
1561
|
e("div", Ys, [
|
|
1562
1562
|
e("div", Js, [
|
|
1563
1563
|
(i = (s = o.purchaseOrder) == null ? void 0 : s.netSuite) != null && i.id ? (l(), re(Pe, { key: 0 }, {
|
|
1564
|
-
default:
|
|
1564
|
+
default: X(() => {
|
|
1565
1565
|
var O, $, u;
|
|
1566
1566
|
return [
|
|
1567
1567
|
N(Gs, {
|
|
@@ -1571,9 +1571,9 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1571
1571
|
];
|
|
1572
1572
|
}),
|
|
1573
1573
|
_: 1
|
|
1574
|
-
})) :
|
|
1574
|
+
})) : M("", !0),
|
|
1575
1575
|
N(Pe, null, {
|
|
1576
|
-
default:
|
|
1576
|
+
default: X(() => {
|
|
1577
1577
|
var O, $, u;
|
|
1578
1578
|
return [
|
|
1579
1579
|
N(ws, {
|
|
@@ -1602,10 +1602,10 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1602
1602
|
"is-transfer-between-outlets": !h.value,
|
|
1603
1603
|
scope: y.scope
|
|
1604
1604
|
}, null, 8, ["po-request", "purchase-order", "transfer-type", "transfer-to-db-name", "is-transfer-between-outlets", "scope"])
|
|
1605
|
-
])) :
|
|
1605
|
+
])) : M("", !0);
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
|
-
}),
|
|
1608
|
+
}), Zs = { class: "flex flex-col gap-3" }, er = { class: "flex flex-col gap-4" }, tr = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, sr = { class: "flex flex-col gap-4" }, rr = { class: "flex justify-between items-center py-1 gap-4" }, or = { class: "flex flex-col" }, nr = { class: "fm-typo-en-body-lg-600" }, ar = { class: "fm-typo-en-body-md-400" }, lr = { class: "flex flex-col gap-2 items-end" }, ir = { class: "flex self-end fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, cr = {
|
|
1609
1609
|
key: 0,
|
|
1610
1610
|
class: "flex items-center gap-2"
|
|
1611
1611
|
}, ur = {
|
|
@@ -1623,7 +1623,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1623
1623
|
emits: ["submitted"],
|
|
1624
1624
|
setup(R, { emit: o }) {
|
|
1625
1625
|
At();
|
|
1626
|
-
const a =
|
|
1626
|
+
const a = Ue(), h = Be(), y = Q(!1), n = R, _ = o, s = gt("deliveryOrder"), i = Me(), O = W(
|
|
1627
1627
|
() => {
|
|
1628
1628
|
var f;
|
|
1629
1629
|
return ((f = n.purchaseOrder.deliveryFullfillment) == null ? void 0 : f.findIndex(
|
|
@@ -1694,19 +1694,19 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1694
1694
|
"onUpdate:modelValue": m[1] || (m[1] = (J) => y.value = J),
|
|
1695
1695
|
overlay: !0
|
|
1696
1696
|
}, {
|
|
1697
|
-
"dialog-button":
|
|
1697
|
+
"dialog-button": X(() => [
|
|
1698
1698
|
v(u) ? (l(), re(S, {
|
|
1699
1699
|
key: 0,
|
|
1700
1700
|
variant: "plain",
|
|
1701
1701
|
label: "Edit",
|
|
1702
1702
|
size: "md",
|
|
1703
1703
|
"prepend-icon": "edit"
|
|
1704
|
-
})) :
|
|
1704
|
+
})) : M("", !0)
|
|
1705
1705
|
]),
|
|
1706
|
-
"dialog-header":
|
|
1706
|
+
"dialog-header": X(() => [
|
|
1707
1707
|
e("div", null, "Received on " + b(v(He)(n.deliveryOrder.createdAt)), 1)
|
|
1708
1708
|
]),
|
|
1709
|
-
"dialog-footer":
|
|
1709
|
+
"dialog-footer": X(() => [
|
|
1710
1710
|
N(S, {
|
|
1711
1711
|
class: "ml-auto",
|
|
1712
1712
|
label: "Apply changes",
|
|
@@ -1715,9 +1715,9 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1715
1715
|
onClick: r
|
|
1716
1716
|
})
|
|
1717
1717
|
]),
|
|
1718
|
-
default:
|
|
1718
|
+
default: X(() => [
|
|
1719
1719
|
e("div", null, [
|
|
1720
|
-
e("div",
|
|
1720
|
+
e("div", Zs, [
|
|
1721
1721
|
e("div", er, [
|
|
1722
1722
|
m[2] || (m[2] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Adjustment date", -1)),
|
|
1723
1723
|
e("div", tr, b(n.deliveryOrder.adjustment ? v(He)(new Date(v(Qe)(n.deliveryOrder.adjustment))) : "-"), 1)
|
|
@@ -1748,7 +1748,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1748
1748
|
size: "sm"
|
|
1749
1749
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
1750
1750
|
m[3] || (m[3] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
1751
|
-
])) :
|
|
1751
|
+
])) : M("", !0),
|
|
1752
1752
|
v($) && T.value[se] ? (l(), re(E, {
|
|
1753
1753
|
key: 1,
|
|
1754
1754
|
modelValue: g.value[se].value,
|
|
@@ -1759,10 +1759,10 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1759
1759
|
placeholder: "0.0000",
|
|
1760
1760
|
size: "sm",
|
|
1761
1761
|
"append-text": v(we)()
|
|
1762
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) :
|
|
1762
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : M("", !0)
|
|
1763
1763
|
])
|
|
1764
1764
|
]),
|
|
1765
|
-
se < n.purchaseOrder.items.length - 1 ? (l(), x("div", ur)) :
|
|
1765
|
+
se < n.purchaseOrder.items.length - 1 ? (l(), x("div", ur)) : M("", !0)
|
|
1766
1766
|
]);
|
|
1767
1767
|
}), 128))
|
|
1768
1768
|
]),
|
|
@@ -1784,7 +1784,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1784
1784
|
O.value >= 0 ? (l(), x("div", yr, [
|
|
1785
1785
|
m[7] || (m[7] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Fulfilment's sequence ", -1)),
|
|
1786
1786
|
e("div", vr, b(O.value + 1), 1)
|
|
1787
|
-
])) :
|
|
1787
|
+
])) : M("", !0)
|
|
1788
1788
|
])
|
|
1789
1789
|
])
|
|
1790
1790
|
]),
|
|
@@ -1807,7 +1807,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1807
1807
|
}, Er = {
|
|
1808
1808
|
key: 0,
|
|
1809
1809
|
class: "border-b border-fm-color-stroke-secondary"
|
|
1810
|
-
}, Vr = { class: "flex flex-col gap-4" }, Lr = { class: "flex flex-col gap-4" },
|
|
1810
|
+
}, Vr = { class: "flex flex-col gap-4" }, Lr = { class: "flex flex-col gap-4" }, Mr = { class: "flex flex-col gap-4" }, Ur = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, Br = /* @__PURE__ */ Oe({
|
|
1811
1811
|
__name: "CreateForm",
|
|
1812
1812
|
props: {
|
|
1813
1813
|
purchaseOrder: {},
|
|
@@ -1815,7 +1815,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1815
1815
|
},
|
|
1816
1816
|
emits: ["submitted"],
|
|
1817
1817
|
setup(R, { emit: o }) {
|
|
1818
|
-
var I,
|
|
1818
|
+
var I, U, ae;
|
|
1819
1819
|
const { t: a } = ut(), h = Q(!1), y = et(), n = R, _ = o, s = gt("", {
|
|
1820
1820
|
default: {
|
|
1821
1821
|
deliveryOrderNumber: "",
|
|
@@ -1827,11 +1827,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1827
1827
|
})),
|
|
1828
1828
|
createdBy: {
|
|
1829
1829
|
id: ((I = y.sessionUser.value) == null ? void 0 : I.id) || "",
|
|
1830
|
-
name: ((
|
|
1830
|
+
name: ((U = y.sessionUser.value) == null ? void 0 : U.displayName) || ""
|
|
1831
1831
|
},
|
|
1832
1832
|
createdAt: ""
|
|
1833
1833
|
}
|
|
1834
|
-
}), i =
|
|
1834
|
+
}), i = Me(), O = tt(), $ = Ue(), u = ((ae = n.purchaseOrder) == null ? void 0 : ae.supplier.internal) != null, T = u && $.enablePOSTransferRequireFulfillment, g = $.enablePortalDeliveryOrderWrite && (n.purchaseOrder.status === ee.Enum.RECEIVING || n.purchaseOrder.status === ee.Enum.COMPLETE) && (u ? !T : !0), D = $.enablePurchaseOrderReceiveWithCustomCost, c = $.enableBackdateReceive, r = Q({}), f = Be(), m = W({
|
|
1835
1835
|
get() {
|
|
1836
1836
|
if (!s.createdAt) return "";
|
|
1837
1837
|
const k = new Date(s.createdAt), w = k.getFullYear(), P = String(k.getMonth() + 1).padStart(2, "0"), B = String(k.getDate()).padStart(2, "0");
|
|
@@ -1957,7 +1957,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1957
1957
|
overlay: !0,
|
|
1958
1958
|
"min-width": 800
|
|
1959
1959
|
}, {
|
|
1960
|
-
"dialog-button":
|
|
1960
|
+
"dialog-button": X(() => [
|
|
1961
1961
|
v(g) ? (l(), re(P, {
|
|
1962
1962
|
key: 0,
|
|
1963
1963
|
variant: "primary",
|
|
@@ -1965,12 +1965,12 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1965
1965
|
size: "md",
|
|
1966
1966
|
"prepend-icon": "add",
|
|
1967
1967
|
class: "w-full"
|
|
1968
|
-
})) :
|
|
1968
|
+
})) : M("", !0)
|
|
1969
1969
|
]),
|
|
1970
|
-
"dialog-header":
|
|
1970
|
+
"dialog-header": X(() => [
|
|
1971
1971
|
e("div", null, "Order #" + b(n.purchaseOrder.seqNumber) + " (New Delivery Order)", 1)
|
|
1972
1972
|
]),
|
|
1973
|
-
"dialog-footer":
|
|
1973
|
+
"dialog-footer": X(() => [
|
|
1974
1974
|
N(P, {
|
|
1975
1975
|
class: "ml-auto",
|
|
1976
1976
|
label: "Create",
|
|
@@ -1980,7 +1980,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1980
1980
|
onClick: ke
|
|
1981
1981
|
}, null, 8, ["disabled"])
|
|
1982
1982
|
]),
|
|
1983
|
-
default:
|
|
1983
|
+
default: X(() => {
|
|
1984
1984
|
var te;
|
|
1985
1985
|
return [
|
|
1986
1986
|
e("div", hr, [
|
|
@@ -1992,7 +1992,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
1992
1992
|
e("div", xr, [
|
|
1993
1993
|
e("div", Or, [
|
|
1994
1994
|
w[6] || (w[6] = Ce(" Delivery Date & Time ")),
|
|
1995
|
-
!m.value && !S.value ? (l(), x("div", wr, " Leave blank to use current date & time ")) :
|
|
1995
|
+
!m.value && !S.value ? (l(), x("div", wr, " Leave blank to use current date & time ")) : M("", !0)
|
|
1996
1996
|
]),
|
|
1997
1997
|
m.value || S.value ? (l(), re(P, {
|
|
1998
1998
|
key: 0,
|
|
@@ -2000,7 +2000,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2000
2000
|
label: "Clear",
|
|
2001
2001
|
"prepend-icon": "close",
|
|
2002
2002
|
onClick: J
|
|
2003
|
-
})) :
|
|
2003
|
+
})) : M("", !0)
|
|
2004
2004
|
]),
|
|
2005
2005
|
e("div", $r, [
|
|
2006
2006
|
e("div", Cr, [
|
|
@@ -2023,8 +2023,8 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2023
2023
|
size: "sm"
|
|
2024
2024
|
}),
|
|
2025
2025
|
e("div", Dr, b(F.value), 1)
|
|
2026
|
-
])) :
|
|
2027
|
-
])) :
|
|
2026
|
+
])) : M("", !0)
|
|
2027
|
+
])) : M("", !0),
|
|
2028
2028
|
e("div", Nr, [
|
|
2029
2029
|
w[8] || (w[8] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Items going to receive ", -1)),
|
|
2030
2030
|
(l(!0), x(ue, null, _e(n.purchaseOrder.items, (d, z) => {
|
|
@@ -2055,7 +2055,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2055
2055
|
size: "sm"
|
|
2056
2056
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2057
2057
|
w[7] || (w[7] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
2058
|
-
])) :
|
|
2058
|
+
])) : M("", !0),
|
|
2059
2059
|
v(D) && r.value[z] ? (l(), re(A, {
|
|
2060
2060
|
key: 1,
|
|
2061
2061
|
modelValue: fe.value[z].value,
|
|
@@ -2066,10 +2066,10 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2066
2066
|
placeholder: "0.0000",
|
|
2067
2067
|
size: "sm",
|
|
2068
2068
|
"append-text": v(we)()
|
|
2069
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) :
|
|
2069
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : M("", !0)
|
|
2070
2070
|
])
|
|
2071
2071
|
]),
|
|
2072
|
-
z < n.purchaseOrder.items.length - 1 ? (l(), x("div", Er)) :
|
|
2072
|
+
z < n.purchaseOrder.items.length - 1 ? (l(), x("div", Er)) : M("", !0)
|
|
2073
2073
|
]);
|
|
2074
2074
|
}), 128))
|
|
2075
2075
|
]),
|
|
@@ -2083,9 +2083,9 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2083
2083
|
}, null, 8, ["modelValue"])
|
|
2084
2084
|
])
|
|
2085
2085
|
]),
|
|
2086
|
-
e("div",
|
|
2086
|
+
e("div", Mr, [
|
|
2087
2087
|
w[10] || (w[10] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Remark", -1)),
|
|
2088
|
-
e("div",
|
|
2088
|
+
e("div", Ur, [
|
|
2089
2089
|
N(K, {
|
|
2090
2090
|
modelValue: v(s).remark,
|
|
2091
2091
|
"onUpdate:modelValue": w[3] || (w[3] = (d) => v(s).remark = d),
|
|
@@ -2109,7 +2109,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2109
2109
|
}, Hr = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Gr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, Wr = { class: "w-full" }, Qr = {
|
|
2110
2110
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
2111
2111
|
style: { "min-width": "130px" }
|
|
2112
|
-
}, Yr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
2112
|
+
}, Yr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Zr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, eo = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, to = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, so = { class: "p-3 fm-typo-en-body-sm-600" }, ro = { key: 2 }, oo = /* @__PURE__ */ Oe({
|
|
2113
2113
|
__name: "NetSuiteTransactionChangeLog",
|
|
2114
2114
|
props: {
|
|
2115
2115
|
netsuiteId: {}
|
|
@@ -2160,7 +2160,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2160
2160
|
overlay: !0,
|
|
2161
2161
|
"max-width": 800
|
|
2162
2162
|
}, {
|
|
2163
|
-
"dialog-button":
|
|
2163
|
+
"dialog-button": X(() => [
|
|
2164
2164
|
N(T, {
|
|
2165
2165
|
"prepend-icon": "info",
|
|
2166
2166
|
variant: "secondary",
|
|
@@ -2171,14 +2171,14 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2171
2171
|
"border-color": "primary"
|
|
2172
2172
|
})
|
|
2173
2173
|
]),
|
|
2174
|
-
"dialog-header":
|
|
2174
|
+
"dialog-header": X(() => u[3] || (u[3] = [
|
|
2175
2175
|
e("div", null, "NetSuite info", -1)
|
|
2176
2176
|
])),
|
|
2177
|
-
default:
|
|
2177
|
+
default: X(() => [
|
|
2178
2178
|
y.value ? (l(), x("div", zr, [
|
|
2179
2179
|
u[4] || (u[4] = e("span", null, "Change Log Loading...", -1)),
|
|
2180
2180
|
N(g, { size: "md" })
|
|
2181
|
-
])) :
|
|
2181
|
+
])) : M("", !0),
|
|
2182
2182
|
!y.value && _.value.length > 0 ? (l(), x("div", Kr, [
|
|
2183
2183
|
e("h3", Hr, [
|
|
2184
2184
|
N(D, {
|
|
@@ -2214,11 +2214,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2214
2214
|
e("td", Qr, b(O(r._dateiso8601)), 1),
|
|
2215
2215
|
e("td", Yr, b(r._rolename), 1),
|
|
2216
2216
|
e("td", Jr, b(r._employeename), 1),
|
|
2217
|
-
e("td",
|
|
2217
|
+
e("td", Xr, b(r._contextname), 1),
|
|
2218
2218
|
e("td", {
|
|
2219
2219
|
class: Le(`p-3 fm-typo-en-body-sm-600 ${i(Number(r.type) - 1)}`)
|
|
2220
2220
|
}, b(v(xe)[Number(r.type) - 1]), 3),
|
|
2221
|
-
e("td",
|
|
2221
|
+
e("td", Zr, b(r.lineid || ""), 1),
|
|
2222
2222
|
e("td", eo, b(r._fieldname), 1),
|
|
2223
2223
|
e("td", to, b(r.oldvalue || ""), 1),
|
|
2224
2224
|
e("td", so, b(r.newvalue || ""), 1)
|
|
@@ -2230,7 +2230,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2230
2230
|
e("p", null, "No change logs available.", -1)
|
|
2231
2231
|
])))
|
|
2232
2232
|
]),
|
|
2233
|
-
"dialog-footer":
|
|
2233
|
+
"dialog-footer": X(() => [
|
|
2234
2234
|
N(T, {
|
|
2235
2235
|
class: "ml-auto sm:w-full xs:w-full",
|
|
2236
2236
|
label: "Close",
|
|
@@ -2262,10 +2262,10 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2262
2262
|
}, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Po = { class: "fm-typo-en-body-lg-600" }, Io = {
|
|
2263
2263
|
key: 4,
|
|
2264
2264
|
class: "flex flex-col gap-4"
|
|
2265
|
-
}, qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "fm-typo-en-body-lg-600" }, Vo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Lo = { class: "flex flex-col gap-8" },
|
|
2265
|
+
}, qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "fm-typo-en-body-lg-600" }, Vo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Lo = { class: "flex flex-col gap-8" }, Mo = { class: "flex gap-8 items-center" }, Uo = { class: "flex-1 fm-typo-en-body-lg-600" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, jo = { class: "flex w-full gap-4" }, zo = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2 flex items-center gap-2" }, Ko = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-2" }, Ho = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Go = ["innerHTML"], Wo = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Qo = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Yo = {
|
|
2266
2266
|
key: 0,
|
|
2267
2267
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
2268
|
-
}, Jo = { class: "py-8" },
|
|
2268
|
+
}, Jo = { class: "py-8" }, Xo = { class: "flex justify-end gap-4 items-center" }, Zo = { class: "fm-typo-en-body-lg-600" }, en = {
|
|
2269
2269
|
key: 1,
|
|
2270
2270
|
class: "flex-1 xs:w-screen xs:max-w-full"
|
|
2271
2271
|
}, tn = {
|
|
@@ -2302,7 +2302,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2302
2302
|
},
|
|
2303
2303
|
emits: ["update:show", "submitted"],
|
|
2304
2304
|
setup(R, { emit: o }) {
|
|
2305
|
-
const a = R, h = o, y = tt(), n = Be(), _ =
|
|
2305
|
+
const a = R, h = o, y = tt(), n = Be(), _ = Ue(), s = Re(), i = et(), O = W(
|
|
2306
2306
|
() => {
|
|
2307
2307
|
var t, p;
|
|
2308
2308
|
return {
|
|
@@ -2330,7 +2330,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
2332
|
return p;
|
|
2333
|
-
}), D = Q(!1), c = Q(""), r = Q(!0), f =
|
|
2333
|
+
}), D = Q(!1), c = Q(""), r = Q(!0), f = Me(), m = Ht(f.getWorkflowConfig), S = xt(), E = W(() => {
|
|
2334
2334
|
if (!a.purchaseOrder)
|
|
2335
2335
|
return [];
|
|
2336
2336
|
const t = m.result.value;
|
|
@@ -2551,7 +2551,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2551
2551
|
];
|
|
2552
2552
|
A.reverse().sort((d, z) => d.createdAt.localeCompare(z.createdAt));
|
|
2553
2553
|
function C(d) {
|
|
2554
|
-
var oe, L, ne, Se, De, Ne,
|
|
2554
|
+
var oe, L, ne, Se, De, Ne, Z, ce, de, ye;
|
|
2555
2555
|
const z = p.findIndex((ie) => ie.id === d.fullfillmentId), le = [
|
|
2556
2556
|
(L = (oe = p[z]) == null ? void 0 : oe.netSuite) != null && L.refNo ? {
|
|
2557
2557
|
label: "Fulfillment's ref no. (Netsuite)",
|
|
@@ -2559,7 +2559,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2559
2559
|
} : null,
|
|
2560
2560
|
(De = d == null ? void 0 : d.netSuite) != null && De.refNo ? {
|
|
2561
2561
|
label: "Netsuite ref no.",
|
|
2562
|
-
values: [`${(Ne = d == null ? void 0 : d.netSuite) == null ? void 0 : Ne.refNo} (${((
|
|
2562
|
+
values: [`${(Ne = d == null ? void 0 : d.netSuite) == null ? void 0 : Ne.refNo} (${((Z = d == null ? void 0 : d.netSuite) == null ? void 0 : Z.id) ?? "-"})`]
|
|
2563
2563
|
} : null,
|
|
2564
2564
|
(ce = d == null ? void 0 : d.netSuite) != null && ce.recordType ? {
|
|
2565
2565
|
label: "Netsuite Type",
|
|
@@ -2773,7 +2773,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2773
2773
|
return K(d.doc);
|
|
2774
2774
|
}
|
|
2775
2775
|
});
|
|
2776
|
-
}),
|
|
2776
|
+
}), U = W(() => {
|
|
2777
2777
|
var p;
|
|
2778
2778
|
const t = {
|
|
2779
2779
|
...vt(0),
|
|
@@ -2787,7 +2787,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2787
2787
|
function ae(t) {
|
|
2788
2788
|
var H;
|
|
2789
2789
|
const A = (((H = a.purchaseOrder) == null ? void 0 : H.version) ?? Te.enum[1]) === Te.enum[2] ? t.id : t.sku._id, C = a.receivedMap[A];
|
|
2790
|
-
return `<span class="${k(t)} fm-typo-en-body-lg-600">${Fe.toFormatString({ value: C.received })}</span>/${
|
|
2790
|
+
return `<span class="${k(t)} fm-typo-en-body-lg-600">${Fe.toFormatString({ value: C.received })}</span>/${Ut(t.quantity, t.sku.unit, t.measurement)}`;
|
|
2791
2791
|
}
|
|
2792
2792
|
function k(t) {
|
|
2793
2793
|
var z;
|
|
@@ -2833,7 +2833,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2833
2833
|
"max-width": 600,
|
|
2834
2834
|
"close-button": !1
|
|
2835
2835
|
}, {
|
|
2836
|
-
"side-sheet-header":
|
|
2836
|
+
"side-sheet-header": X(() => {
|
|
2837
2837
|
var L, ne;
|
|
2838
2838
|
return [
|
|
2839
2839
|
e("div", no, [
|
|
@@ -2858,11 +2858,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2858
2858
|
onSubmitted: p[2] || (p[2] = () => {
|
|
2859
2859
|
h("update:show", !1), h("submitted");
|
|
2860
2860
|
})
|
|
2861
|
-
}, null, 8, ["purchase-order", "received-info-map"])) :
|
|
2861
|
+
}, null, 8, ["purchase-order", "received-info-map"])) : M("", !0)
|
|
2862
2862
|
])
|
|
2863
2863
|
];
|
|
2864
2864
|
}),
|
|
2865
|
-
default:
|
|
2865
|
+
default: X(() => {
|
|
2866
2866
|
var L, ne, Se, De, Ne;
|
|
2867
2867
|
return [
|
|
2868
2868
|
e("div", io, [
|
|
@@ -2872,14 +2872,14 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2872
2872
|
variant: "outlined",
|
|
2873
2873
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
2874
2874
|
}, {
|
|
2875
|
-
default:
|
|
2876
|
-
var
|
|
2875
|
+
default: X(() => {
|
|
2876
|
+
var Z, ce, de, ye, ie, $e, je, be, Ae;
|
|
2877
2877
|
return [
|
|
2878
2878
|
e("div", co, [
|
|
2879
2879
|
e("div", uo, b(v(u)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
2880
2880
|
e("div", mo, [
|
|
2881
2881
|
N(Pe, null, {
|
|
2882
|
-
default:
|
|
2882
|
+
default: X(() => {
|
|
2883
2883
|
var Ee;
|
|
2884
2884
|
return [
|
|
2885
2885
|
Ce(b((Ee = a.purchaseOrder) == null ? void 0 : Ee.status), 1)
|
|
@@ -2898,7 +2898,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2898
2898
|
color: "#666666"
|
|
2899
2899
|
}),
|
|
2900
2900
|
e("span", fo, b(g.value), 1)
|
|
2901
|
-
])) :
|
|
2901
|
+
])) : M("", !0)
|
|
2902
2902
|
])
|
|
2903
2903
|
]),
|
|
2904
2904
|
N(te),
|
|
@@ -2907,12 +2907,12 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2907
2907
|
e("div", bo, [
|
|
2908
2908
|
e("div", ho, b(v(u)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
2909
2909
|
]),
|
|
2910
|
-
e("div", go, b(v(Ge)(((
|
|
2910
|
+
e("div", go, b(v(Ge)(((Z = t.purchaseOrder) == null ? void 0 : Z._id) ?? "")), 1)
|
|
2911
2911
|
]),
|
|
2912
2912
|
(ce = t.purchaseOrder) != null && ce.effectiveAt ? (l(), x("div", _o, [
|
|
2913
2913
|
e("div", So, b(v(u)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
2914
2914
|
e("div", xo, b(v(bt)(new Date((de = t.purchaseOrder) == null ? void 0 : de.effectiveAt))), 1)
|
|
2915
|
-
])) :
|
|
2915
|
+
])) : M("", !0),
|
|
2916
2916
|
e("div", Oo, [
|
|
2917
2917
|
e("div", wo, b(v(u)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
2918
2918
|
e("div", $o, b(v(u)(
|
|
@@ -2922,26 +2922,26 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2922
2922
|
(ie = (ye = t.purchaseOrder) == null ? void 0 : ye.supplier) != null && ie.name ? (l(), x("div", Co, [
|
|
2923
2923
|
e("div", Ro, b(v(u)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
2924
2924
|
e("div", ko, b((je = ($e = t.purchaseOrder) == null ? void 0 : $e.supplier) == null ? void 0 : je.name), 1)
|
|
2925
|
-
])) :
|
|
2925
|
+
])) : M("", !0),
|
|
2926
2926
|
t.transferTo ? (l(), x("div", Do, [
|
|
2927
2927
|
e("div", No, b(v(u)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
2928
2928
|
e("div", Ao, b(t.transferTo), 1)
|
|
2929
|
-
])) :
|
|
2929
|
+
])) : M("", !0),
|
|
2930
2930
|
(be = t.purchaseOrder) != null && be.ref ? (l(), x("div", To, [
|
|
2931
2931
|
e("div", Fo, b(v(u)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
2932
2932
|
e("div", Po, b(t.purchaseOrder.ref), 1)
|
|
2933
|
-
])) :
|
|
2933
|
+
])) : M("", !0),
|
|
2934
2934
|
(Ae = t.purchaseOrder) != null && Ae.remark ? (l(), x("div", Io, [
|
|
2935
2935
|
e("div", qo, b(v(u)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
2936
2936
|
e("div", Eo, b(t.purchaseOrder.remark), 1)
|
|
2937
|
-
])) :
|
|
2937
|
+
])) : M("", !0)
|
|
2938
2938
|
])
|
|
2939
2939
|
];
|
|
2940
2940
|
}),
|
|
2941
2941
|
_: 1
|
|
2942
2942
|
})
|
|
2943
2943
|
]),
|
|
2944
|
-
N(
|
|
2944
|
+
N(Xs, {
|
|
2945
2945
|
"po-request": t.poRequest,
|
|
2946
2946
|
purchaseOrder: t.purchaseOrder,
|
|
2947
2947
|
transferType: T.value,
|
|
@@ -2950,8 +2950,8 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2950
2950
|
}, null, 8, ["po-request", "purchaseOrder", "transferType", "transferToDbName", "scope"]),
|
|
2951
2951
|
e("div", Vo, [
|
|
2952
2952
|
e("div", Lo, [
|
|
2953
|
-
e("div",
|
|
2954
|
-
e("span",
|
|
2953
|
+
e("div", Mo, [
|
|
2954
|
+
e("span", Uo, [
|
|
2955
2955
|
Ce(b(fe.value ? v(u)("inventory.transfer.receiveRequest.details.receivedItems") : v(u)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
|
|
2956
2956
|
(ne = (L = t.purchaseOrder) == null ? void 0 : L.netSuite) != null && ne.missingItems && ((De = (Se = t.purchaseOrder) == null ? void 0 : Se.netSuite) == null ? void 0 : De.missingItems.length) > 0 ? (l(), re(z, {
|
|
2957
2957
|
key: 0,
|
|
@@ -2959,11 +2959,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2959
2959
|
placement: "top",
|
|
2960
2960
|
"z-index": 51
|
|
2961
2961
|
}, {
|
|
2962
|
-
content:
|
|
2963
|
-
var
|
|
2962
|
+
content: X(() => {
|
|
2963
|
+
var Z, ce;
|
|
2964
2964
|
return [
|
|
2965
2965
|
e("div", Bo, [
|
|
2966
|
-
(l(!0), x(ue, null, _e((ce = (
|
|
2966
|
+
(l(!0), x(ue, null, _e((ce = (Z = t.purchaseOrder) == null ? void 0 : Z.netSuite) == null ? void 0 : ce.missingItems, (de, ye) => (l(), x("div", {
|
|
2967
2967
|
class: "flex justify-center align-middle",
|
|
2968
2968
|
key: ye
|
|
2969
2969
|
}, [
|
|
@@ -2976,7 +2976,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2976
2976
|
])
|
|
2977
2977
|
];
|
|
2978
2978
|
}),
|
|
2979
|
-
default:
|
|
2979
|
+
default: X(() => [
|
|
2980
2980
|
N(H, {
|
|
2981
2981
|
name: "error",
|
|
2982
2982
|
color: "#ff2c2c",
|
|
@@ -2984,11 +2984,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2984
2984
|
})
|
|
2985
2985
|
]),
|
|
2986
2986
|
_: 1
|
|
2987
|
-
})) :
|
|
2987
|
+
})) : M("", !0)
|
|
2988
2988
|
])
|
|
2989
2989
|
]),
|
|
2990
2990
|
N(te),
|
|
2991
|
-
(l(!0), x(ue, null, _e(((Ne = t.purchaseOrder) == null ? void 0 : Ne.items) ?? [], (
|
|
2991
|
+
(l(!0), x(ue, null, _e(((Ne = t.purchaseOrder) == null ? void 0 : Ne.items) ?? [], (Z, ce) => {
|
|
2992
2992
|
var de;
|
|
2993
2993
|
return l(), x("div", {
|
|
2994
2994
|
key: ce,
|
|
@@ -2996,24 +2996,24 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
2996
2996
|
}, [
|
|
2997
2997
|
e("div", jo, [
|
|
2998
2998
|
e("div", zo, [
|
|
2999
|
-
Ce(b(
|
|
3000
|
-
P(
|
|
2999
|
+
Ce(b(Z.name) + " ", 1),
|
|
3000
|
+
P(Z) ? (l(), re(z, {
|
|
3001
3001
|
key: 0,
|
|
3002
3002
|
variant: "rich",
|
|
3003
3003
|
placement: "top",
|
|
3004
3004
|
"z-index": 51
|
|
3005
3005
|
}, {
|
|
3006
|
-
content:
|
|
3006
|
+
content: X(() => {
|
|
3007
3007
|
var ye, ie;
|
|
3008
3008
|
return [
|
|
3009
3009
|
e("div", Ko, [
|
|
3010
3010
|
p[9] || (p[9] = e("div", { class: "font-semibold" }, "Submission changes", -1)),
|
|
3011
|
-
e("div", null, "Original Amount: " + b((ye = B(
|
|
3012
|
-
e("div", null, " New Amount: " + b((ie = B(
|
|
3011
|
+
e("div", null, "Original Amount: " + b((ye = B(Z)) == null ? void 0 : ye.originalAmount), 1),
|
|
3012
|
+
e("div", null, " New Amount: " + b((ie = B(Z)) == null ? void 0 : ie.newAmount), 1)
|
|
3013
3013
|
])
|
|
3014
3014
|
];
|
|
3015
3015
|
}),
|
|
3016
|
-
default:
|
|
3016
|
+
default: X(() => [
|
|
3017
3017
|
N(H, {
|
|
3018
3018
|
name: "error",
|
|
3019
3019
|
color: "#ff9500",
|
|
@@ -3021,34 +3021,34 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3021
3021
|
})
|
|
3022
3022
|
]),
|
|
3023
3023
|
_: 2
|
|
3024
|
-
}, 1024)) :
|
|
3024
|
+
}, 1024)) : M("", !0)
|
|
3025
3025
|
]),
|
|
3026
3026
|
e("div", Ho, [
|
|
3027
3027
|
e("span", {
|
|
3028
|
-
innerHTML: ae(
|
|
3028
|
+
innerHTML: ae(Z)
|
|
3029
3029
|
}, null, 8, Go)
|
|
3030
3030
|
])
|
|
3031
3031
|
]),
|
|
3032
3032
|
e("div", Wo, [
|
|
3033
|
-
e("div", Qo, b(
|
|
3034
|
-
(de =
|
|
3033
|
+
e("div", Qo, b(Z.code), 1),
|
|
3034
|
+
(de = Z.totalCost) != null && de.amount && v(_).enableTotalCost ? (l(), x("div", Yo, " (" + b(v(Ke)(Z.totalCost)) + ") ", 1)) : M("", !0)
|
|
3035
3035
|
])
|
|
3036
3036
|
]);
|
|
3037
3037
|
}), 128)),
|
|
3038
|
-
+v(ve)(
|
|
3038
|
+
+v(ve)(U.value) ? (l(), x(ue, { key: 0 }, [
|
|
3039
3039
|
e("div", Jo, [
|
|
3040
3040
|
N(te)
|
|
3041
3041
|
]),
|
|
3042
|
-
e("div",
|
|
3042
|
+
e("div", Xo, [
|
|
3043
3043
|
p[10] || (p[10] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
|
|
3044
|
-
e("div",
|
|
3044
|
+
e("div", Zo, b(v(Ke)(U.value)), 1)
|
|
3045
3045
|
])
|
|
3046
|
-
], 64)) :
|
|
3046
|
+
], 64)) : M("", !0)
|
|
3047
3047
|
])
|
|
3048
3048
|
])
|
|
3049
3049
|
], 64)) : Y.value.value === "deliveryHistory" ? (l(), x("div", en, [
|
|
3050
3050
|
I.value.length ? (l(), x("div", nn, [
|
|
3051
|
-
(l(!0), x(ue, null, _e(I.value, (
|
|
3051
|
+
(l(!0), x(ue, null, _e(I.value, (Z, ce) => {
|
|
3052
3052
|
var de, ye, ie, $e, je;
|
|
3053
3053
|
return l(), x(ue, { key: ce }, [
|
|
3054
3054
|
e("div", an, [
|
|
@@ -3065,12 +3065,12 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3065
3065
|
}, null, 2)
|
|
3066
3066
|
]),
|
|
3067
3067
|
e("div", un, [
|
|
3068
|
-
|
|
3068
|
+
Z.header === "Received" ? (l(), re(H, {
|
|
3069
3069
|
key: 0,
|
|
3070
3070
|
name: "local_shipping",
|
|
3071
3071
|
outline: "",
|
|
3072
3072
|
color: "#ffffff"
|
|
3073
|
-
})) :
|
|
3073
|
+
})) : M("", !0)
|
|
3074
3074
|
]),
|
|
3075
3075
|
e("div", dn, [
|
|
3076
3076
|
e("div", {
|
|
@@ -3086,34 +3086,34 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3086
3086
|
]),
|
|
3087
3087
|
e("div", mn, [
|
|
3088
3088
|
e("div", pn, [
|
|
3089
|
-
e("div", fn, b(
|
|
3090
|
-
e("div", yn, b(
|
|
3089
|
+
e("div", fn, b(Z.header), 1),
|
|
3090
|
+
e("div", yn, b(Z.date), 1)
|
|
3091
3091
|
]),
|
|
3092
3092
|
e("div", vn, [
|
|
3093
|
-
|
|
3093
|
+
Z.header === "Received" && Z.deliveryOrder && t.purchaseOrder ? (l(), re(br, {
|
|
3094
3094
|
key: 0,
|
|
3095
|
-
deliveryOrder:
|
|
3095
|
+
deliveryOrder: Z.deliveryOrder,
|
|
3096
3096
|
purchaseOrder: t.purchaseOrder,
|
|
3097
3097
|
onSubmitted: p[3] || (p[3] = () => {
|
|
3098
3098
|
h("update:show", !1), h("submitted");
|
|
3099
3099
|
})
|
|
3100
|
-
}, null, 8, ["deliveryOrder", "purchaseOrder"])) :
|
|
3101
|
-
(ye = (de =
|
|
3102
|
-
default:
|
|
3100
|
+
}, null, 8, ["deliveryOrder", "purchaseOrder"])) : M("", !0),
|
|
3101
|
+
(ye = (de = Z.deliveryOrder) == null ? void 0 : de.netSuite) != null && ye.id ? (l(), re(Pe, { key: 1 }, {
|
|
3102
|
+
default: X(() => {
|
|
3103
3103
|
var be, Ae;
|
|
3104
3104
|
return [
|
|
3105
3105
|
N(oo, {
|
|
3106
|
-
"netsuite-id": (Ae = (be =
|
|
3106
|
+
"netsuite-id": (Ae = (be = Z.deliveryOrder) == null ? void 0 : be.netSuite) == null ? void 0 : Ae.id
|
|
3107
3107
|
}, null, 8, ["netsuite-id"])
|
|
3108
3108
|
];
|
|
3109
3109
|
}),
|
|
3110
3110
|
_: 2
|
|
3111
|
-
}, 1024)) :
|
|
3112
|
-
t.purchaseOrder && ((ie =
|
|
3111
|
+
}, 1024)) : M("", !0),
|
|
3112
|
+
t.purchaseOrder && ((ie = Z.deliveryOrder) != null && ie.id) ? (l(), re(Tt, {
|
|
3113
3113
|
key: 2,
|
|
3114
3114
|
"purchase-order-id": ($e = t.purchaseOrder) == null ? void 0 : $e._id,
|
|
3115
|
-
"delivery-order-id": (je =
|
|
3116
|
-
}, null, 8, ["purchase-order-id", "delivery-order-id"])) :
|
|
3115
|
+
"delivery-order-id": (je = Z.deliveryOrder) == null ? void 0 : je.id
|
|
3116
|
+
}, null, 8, ["purchase-order-id", "delivery-order-id"])) : M("", !0)
|
|
3117
3117
|
])
|
|
3118
3118
|
])
|
|
3119
3119
|
]),
|
|
@@ -3136,9 +3136,9 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3136
3136
|
variant: "outlined",
|
|
3137
3137
|
class: "py-12 px-16"
|
|
3138
3138
|
}, {
|
|
3139
|
-
default:
|
|
3139
|
+
default: X(() => [
|
|
3140
3140
|
e("div", Sn, [
|
|
3141
|
-
(l(!0), x(ue, null, _e(
|
|
3141
|
+
(l(!0), x(ue, null, _e(Z.info, (be, Ae) => (l(), x("div", {
|
|
3142
3142
|
key: Ae,
|
|
3143
3143
|
class: "flex flex-col gap-4"
|
|
3144
3144
|
}, [
|
|
@@ -3175,11 +3175,11 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3175
3175
|
N(le),
|
|
3176
3176
|
N(le)
|
|
3177
3177
|
]))
|
|
3178
|
-
])) :
|
|
3178
|
+
])) : M("", !0)
|
|
3179
3179
|
])
|
|
3180
3180
|
];
|
|
3181
3181
|
}),
|
|
3182
|
-
"side-sheet-footer":
|
|
3182
|
+
"side-sheet-footer": X(() => [
|
|
3183
3183
|
e("div", wn, [
|
|
3184
3184
|
(l(!0), x(ue, null, _e(E.value, (L) => (l(), x(ue, null, [
|
|
3185
3185
|
v(ot)[L].available != !1 ? (l(), re(A, {
|
|
@@ -3189,7 +3189,7 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3189
3189
|
loading: c.value === L,
|
|
3190
3190
|
disabled: c.value !== L && D.value,
|
|
3191
3191
|
variant: v(ot)[L].buttonVariant
|
|
3192
|
-
}, null, 8, ["label", "onClick", "loading", "disabled", "variant"])) :
|
|
3192
|
+
}, null, 8, ["label", "onClick", "loading", "disabled", "variant"])) : M("", !0)
|
|
3193
3193
|
], 64))), 256)),
|
|
3194
3194
|
v($).ableToMarkReceived(t.purchaseOrder) && !E.value.includes("completeReceive") ? (l(), re(A, {
|
|
3195
3195
|
key: 0,
|
|
@@ -3197,21 +3197,21 @@ const rs = { class: "flex flex-row-reverse" }, os = /* @__PURE__ */ Oe({
|
|
|
3197
3197
|
onClick: p[4] || (p[4] = (L) => pe("completeReceive")),
|
|
3198
3198
|
loading: c.value === "completeReceive",
|
|
3199
3199
|
disabled: c.value !== "completeReceive" && D.value
|
|
3200
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
3200
|
+
}, null, 8, ["label", "loading", "disabled"])) : M("", !0),
|
|
3201
3201
|
v($).ableToMarkApproved(t.purchaseOrder) && t.canApprove && !E.value.includes("approveRequest") ? (l(), re(A, {
|
|
3202
3202
|
key: 1,
|
|
3203
3203
|
label: v(u)("inventory.transfer.approval.actions.approveRequest"),
|
|
3204
3204
|
onClick: p[5] || (p[5] = (L) => pe("approveRequest")),
|
|
3205
3205
|
loading: c.value === "approveRequest",
|
|
3206
3206
|
disabled: c.value !== "approveRequest" && D.value
|
|
3207
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
3207
|
+
}, null, 8, ["label", "loading", "disabled"])) : M("", !0),
|
|
3208
3208
|
v($).ableToCreateFulfillment(t.purchaseOrder, t.poRequest) && a.scope === "approval" ? (l(), re(A, {
|
|
3209
3209
|
key: 2,
|
|
3210
3210
|
label: v(u)("inventory.transfer.receiveRequest.actions.processRequest"),
|
|
3211
3211
|
onClick: p[6] || (p[6] = (L) => pe("processRequest")),
|
|
3212
3212
|
loading: c.value === "processRequest",
|
|
3213
3213
|
disabled: c.value !== "processRequest" && D.value
|
|
3214
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
3214
|
+
}, null, 8, ["label", "loading", "disabled"])) : M("", !0),
|
|
3215
3215
|
N(A, {
|
|
3216
3216
|
label: v(u)("common.close"),
|
|
3217
3217
|
variant: "tertiary",
|