@feedmepos/mf-inventory-portal 1.2.46 → 1.2.47
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-DBd4DVaZ.js → App-JsgP9iMu.js} +3 -3
- package/dist/{ApprovalView-C-XcEiMZ.js → ApprovalView-Co6sACH5.js} +5 -5
- package/dist/{BindingsDialog-CXKDYmmR.js → BindingsDialog-B73QXq1j.js} +2 -2
- package/dist/{BindingsPicker-Cq1yHJhJ.js → BindingsPicker-DuMTRelf.js} +3 -3
- package/dist/{BindingsTable-BL8DhipQ.js → BindingsTable-CcYQN1_L.js} +3 -3
- package/dist/ClosingDraftView-D3INnwT_.js +2410 -0
- package/dist/{ClosingHistoryView-BC8ZP51z.js → ClosingHistoryView-CSjxazA8.js} +3 -3
- package/dist/{ClosingTemplateView-B4jnOrpc.js → ClosingTemplateView-Ct0GFJ7D.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-Bxy5xIrP.js → DeliveryOrderPrintPreview-BS50CpKI.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D5DApGXT.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bi9iqGTu.js} +12 -12
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHS5LMuy.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CRUsPKK3.js} +2 -2
- package/dist/{FmMultiselectDialog-C6OzbsWu.js → FmMultiselectDialog-B_aNaPp3.js} +2 -2
- package/dist/{FmMultiselectDialog-C7DVf8cL.js → FmMultiselectDialog-CaUUBqDA.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BtN3UL40.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CQqGUFIx.js} +3 -3
- package/dist/{ImportView-BhmfI7Am.js → ImportView-KjHa3RPH.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BXSO5UKK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BBaVY_DM.js} +1 -1
- package/dist/{IngredientGroupView-DfAt-7Fz.js → IngredientGroupView-DPM9zcrM.js} +5 -5
- package/dist/{IngredientsView-4MNLuMhd.js → IngredientsView-DJGeVNXg.js} +916 -910
- package/dist/{IntegrationView-CvgAJIaG.js → IntegrationView-C1-xqYQI.js} +12 -12
- package/dist/{InventoryBindingForm-CQB1X3d5.js → InventoryBindingForm-B57y7_jC.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Sebvr-gm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CHTnMNKl.js} +4 -4
- package/dist/{InventoryBindingSummary-_-dkvb4N.js → InventoryBindingSummary-Df70IKSg.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BGsjKOls.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DWe54YRe.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D9goSrss.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BgCCrM-_.js} +2 -2
- package/dist/{PublishView-BFdsGmRf.js → PublishView-C5YHhPwg.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DpaV5GjO.js → PurchaseOrderPrintPreview-BjopVTxs.js} +10 -10
- package/dist/{ReceiveRequestView-DNimgIgR.js → ReceiveRequestView-huk0yTuo.js} +896 -889
- package/dist/{RecipeView-D8CH2rJC.js → RecipeView-B2jYchFP.js} +8 -8
- package/dist/StockView-BhttACCV.js +2497 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bb-yJBxo.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvviBt_n.js} +1 -1
- package/dist/{SupplierView-Bl0JNI44.js → SupplierView-6Vxxq9GN.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-C-VmXiM3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-C_nItuSz.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DqmlOtC4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Den4pUf9.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D-4LyU74.js → TransferDetails.vue_vue_type_script_setup_true_lang-CmI0k0v2.js} +99 -99
- package/dist/{TransferTemplateView-COJEXmF0.js → TransferTemplateView-_WTnebCR.js} +412 -412
- package/dist/{UnitView-ecUANF8x.js → UnitView-BeP9MpmK.js} +6 -6
- package/dist/{WarehouseView-DZ9OCali.js → WarehouseView-pdM7HFYr.js} +5 -5
- package/dist/{WastageTemplateView-DXu5bayJ.js → WastageTemplateView-a4twoJLB.js} +14 -14
- package/dist/api/inventory.d.ts +10 -10
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-aLZoWUfQ.js → app-D-WXtKYn.js} +4623 -5097
- package/dist/app.d.ts +176 -834
- package/dist/app.js +1 -1
- package/dist/{closing-template-D-cf9Vnu.js → closing-template-O7lUhol7.js} +1 -1
- package/dist/{date2-DluMG3-3.js → date2-DkEAKP8N.js} +1 -1
- package/dist/{dayjs.min-UuQWuDkU.js → dayjs.min-DF1VUh0Q.js} +13 -13
- package/dist/{decimal-B2f58cUQ.js → decimal-CL_qgPqL.js} +2 -2
- package/dist/{defineDeepModel-DUvW0g9M.js → defineDeepModel-xcAkDmDA.js} +1 -1
- package/dist/{duplicate-template-BiGYHuPK.js → duplicate-template-TY54cIdK.js} +1 -1
- package/dist/{feature-B-rekKRC.js → feature-Dw3PJCX9.js} +2 -2
- package/dist/{format-time-from-id-CMm14GBq.js → format-time-from-id-Ceptcl3U.js} +1 -1
- package/dist/{format-unit-display-DeHfXVX_.js → format-unit-display-GRZQIgFD.js} +10 -10
- package/dist/{import-export.helper-rXmKqRlR.js → import-export.helper-Bl-r_RxV.js} +5 -5
- package/dist/{index-DGs4MBmv.js → index-CEbidibW.js} +3 -3
- package/dist/{index-CYdIQDVa.js → index-D-_4dS91.js} +1 -1
- package/dist/{index-CEK6OlSE.js → index-Dgk8_4hY.js} +1 -1
- package/dist/{lodash-DO8ShgBV.js → lodash-efdnV3n2.js} +1 -1
- package/dist/{netsuite-NShFW2SJ.js → netsuite-D4yOOSrW.js} +3 -3
- package/dist/{purchase-order-template-COeJz9vK.js → purchase-order-template-Dvs3YVVH.js} +1 -1
- package/dist/{rules-C_U2Ahtv.js → rules-BsrasJ6a.js} +3 -3
- package/dist/{stock-B9KGLNAt.js → stock-BITU59fq.js} +3 -3
- package/dist/{stock-DdZuie8e.js → stock-D0WV9zWp.js} +7 -1
- package/dist/stores/inventory.d.ts +13 -13
- package/dist/stores/stock.d.ts +5 -5
- package/dist/stores/supplier.d.ts +24 -24
- package/dist/{supplier-BCfa74hz.js → supplier-DSUvpEyd.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CoAP08vZ.js → use-ingredient-select-dialog-CNpU0tfI.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BPXhlhVD.js → use-inventory-binding-dialog-D7s2C-xQ.js} +2 -2
- package/dist/{use-template-enabled-locations-2-CYfkmGP5.js → use-template-enabled-locations-2-bflR8fp7.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +29 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +20 -20
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +60 -60
- package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +2 -2
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +1 -1
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -6
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +12 -12
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +2 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +2 -2
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +12 -12
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +14 -14
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +29 -6
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +2 -2
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +2 -2
- package/dist/views/supplier/composables/use-supplier-table.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -12
- package/dist/{vue-i18n-Cn8L1Fah.js → vue-i18n-j0rHGXSn.js} +301 -301
- package/dist/{xlsx-jqtV3ziP.js → xlsx-CgB84NXq.js} +398 -398
- package/dist/{xlsx.util-BBey-FqO.js → xlsx.util-DeZhqfVV.js} +1 -1
- package/package.json +1 -1
- package/dist/ClosingDraftView-nwQQl4U1.js +0 -2164
- package/dist/StockView-cXMeYZEU.js +0 -2407
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { p as $t, f as We } from "./format-time-from-id-
|
|
2
|
-
import { ref as J, computed as
|
|
1
|
+
import { p as $t, f as We } from "./format-time-from-id-Ceptcl3U.js";
|
|
2
|
+
import { ref as J, computed as Y, h as L, defineComponent as $e, reactive as Ct, onMounted as yt, resolveComponent as H, openBlock as i, createBlock as re, withCtx as Z, createElementVNode as e, createVNode as D, unref as v, createElementBlock as _, toDisplayString as y, createCommentVNode as U, Fragment as ue, renderList as xe, createTextVNode as ke, normalizeClass as Me, watch as Rt, isRef as kt, resolveDynamicComponent as Dt } from "vue";
|
|
3
3
|
import { c as mt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
|
|
4
4
|
import { R as ye, D as Se } from "./row-action.enum-BcW_L_nE.js";
|
|
5
|
-
import { o as At, u as De,
|
|
6
|
-
import { l as bt, d as gt, a as he, t as
|
|
7
|
-
import { F as Ft } from "./decimal-
|
|
8
|
-
import { t as Tt, c as It, h as _t, a as He } from "./date2-
|
|
9
|
-
import { u as Ue, F as Pt, a as st } from "./feature-
|
|
5
|
+
import { o as At, u as De, W as M, X as Ze, M as te, D as Nt, c as vt, v as it, Y as ht, t as Ge, J as Ce, A as Ye, s as Ie, B as Te } from "./app-D-WXtKYn.js";
|
|
6
|
+
import { l as bt, d as gt, a as he, t as Qe, e as Ke } from "./rules-BsrasJ6a.js";
|
|
7
|
+
import { F as Ft } from "./decimal-CL_qgPqL.js";
|
|
8
|
+
import { t as Tt, c as It, h as _t, a as He } from "./date2-DkEAKP8N.js";
|
|
9
|
+
import { u as Ue, F as Pt, a as st } from "./feature-Dw3PJCX9.js";
|
|
10
10
|
import { useCoreStore as ct, useI18n as ut } from "@feedmepos/mf-common";
|
|
11
|
-
import { u as et, a as dt, S as we } from "./netsuite-
|
|
11
|
+
import { u as et, a as dt, S as we } from "./netsuite-D4yOOSrW.js";
|
|
12
12
|
import { useDialog as tt, useSnackbar as Be, components as Je, FmButtonVariant as be, useProxiedModel as qt } from "@feedmepos/ui-library";
|
|
13
13
|
import { F as Pe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
14
14
|
import { E as Vt } from "./empty-placeholder-wf6-BWE8.js";
|
|
15
|
-
import { u as Et, a as Lt, f as Mt } from "./format-unit-display-
|
|
16
|
-
import { u as je, _ as Ut } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as Bt, a as jt, b as zt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { u as Et, a as Lt, f as Mt } from "./format-unit-display-GRZQIgFD.js";
|
|
16
|
+
import { u as je, _ as Ut } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-C_nItuSz.js";
|
|
17
|
+
import { _ as Bt, a as jt, b as zt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CQqGUFIx.js";
|
|
18
18
|
import { u as Kt, R as pt } from "./usePromise-CbVUCxhj.js";
|
|
19
|
-
import { c as Gt } from "./index-
|
|
20
|
-
import { i as Ht } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { c as Gt } from "./index-CEbidibW.js";
|
|
20
|
+
import { i as Ht } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CRUsPKK3.js";
|
|
21
21
|
import { F as ft } from "./form-mode.enum-BKiNVH6A.js";
|
|
22
|
-
import { d as St } from "./defineDeepModel-
|
|
23
|
-
import { u as Wt } from "./vue-i18n-
|
|
24
|
-
const
|
|
22
|
+
import { d as St } from "./defineDeepModel-xcAkDmDA.js";
|
|
23
|
+
import { u as Wt } from "./vue-i18n-j0rHGXSn.js";
|
|
24
|
+
const Yt = At((C, a) => {
|
|
25
25
|
const o = De();
|
|
26
26
|
return {
|
|
27
27
|
async getShipments({
|
|
@@ -111,7 +111,7 @@ function Xe(C) {
|
|
|
111
111
|
purchaseOrder: C
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Qt(C) {
|
|
115
115
|
return Ze.validatePOItemReceivedStatus({
|
|
116
116
|
dto: C
|
|
117
117
|
});
|
|
@@ -145,12 +145,12 @@ function Ot() {
|
|
|
145
145
|
}
|
|
146
146
|
var lt = /* @__PURE__ */ ((C) => (C.RECEIVE_REQUEST = "receive/request", C.APPROVAL = "approval", C))(lt || {});
|
|
147
147
|
const ze = J(), rt = J();
|
|
148
|
-
function
|
|
148
|
+
function Yn(C, a) {
|
|
149
149
|
const o = tt(), f = De(), h = Ue();
|
|
150
150
|
et();
|
|
151
|
-
const n = Et(), g = Lt(), s = J(!1), c = Be(), O = je(), w =
|
|
151
|
+
const n = Et(), g = Lt(), s = J(!1), c = Be(), O = je(), w = Yt(), d = J(new Array()), T = J(new Array()), S = J(
|
|
152
152
|
a != null && a.startDate && (a != null && a.endDate) ? a : Ht()
|
|
153
|
-
), A =
|
|
153
|
+
), A = Y(() => {
|
|
154
154
|
const B = new Date(S.value.startDate), q = new Date(S.value.endDate);
|
|
155
155
|
return {
|
|
156
156
|
start: Tt(B).toISOString(),
|
|
@@ -252,7 +252,7 @@ function Qn(C, a) {
|
|
|
252
252
|
return z();
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Q(B, q) {
|
|
256
256
|
S.value = {
|
|
257
257
|
startDate: B,
|
|
258
258
|
endDate: q
|
|
@@ -379,7 +379,7 @@ function Qn(C, a) {
|
|
|
379
379
|
purchaseOrders: d,
|
|
380
380
|
shipments: T,
|
|
381
381
|
purchaseRequests: l,
|
|
382
|
-
updateDateRange:
|
|
382
|
+
updateDateRange: Q,
|
|
383
383
|
fetchData: R,
|
|
384
384
|
loading: s,
|
|
385
385
|
transferDialogProps: ze,
|
|
@@ -423,7 +423,7 @@ function Xt(C) {
|
|
|
423
423
|
state: a.supplier.address.state,
|
|
424
424
|
country: a.supplier.address.country
|
|
425
425
|
}, T = a.items.map((I) => {
|
|
426
|
-
const { sku: z, measurement: R } = I,
|
|
426
|
+
const { sku: z, measurement: R } = I, Q = he(
|
|
427
427
|
Jt(I.sku, a.deliveryOrder || []),
|
|
428
428
|
!1
|
|
429
429
|
);
|
|
@@ -432,7 +432,7 @@ function Xt(C) {
|
|
|
432
432
|
description: z.name,
|
|
433
433
|
quantity: he(I.quantity, !1),
|
|
434
434
|
unit: (R == null ? void 0 : R.abbrev) || z.unit.abbrev,
|
|
435
|
-
received:
|
|
435
|
+
received: Q,
|
|
436
436
|
cost: I.totalCost ? `${I.totalCost.currency} ${Pt.toFormatString({
|
|
437
437
|
value: I.totalCost
|
|
438
438
|
})}` : void 0
|
|
@@ -539,7 +539,7 @@ const Le = {
|
|
|
539
539
|
value: M.enum.returnStock
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Qn(C, a, o) {
|
|
543
543
|
const f = De(), h = et(), n = ct(), { t: g } = ut();
|
|
544
544
|
function s(S) {
|
|
545
545
|
switch (S.status) {
|
|
@@ -578,14 +578,14 @@ function Yn(C, a, o) {
|
|
|
578
578
|
var b, u, $, I, z, R;
|
|
579
579
|
const t = vt(A);
|
|
580
580
|
if (S === ye.Print) {
|
|
581
|
-
const
|
|
582
|
-
if (
|
|
583
|
-
const K = f.locationRestaurantFromCore(
|
|
584
|
-
K !== null && (
|
|
581
|
+
const Q = (l == null ? void 0 : l.toInventoryLocation) ?? f.currentLocation;
|
|
582
|
+
if (Q.type === "restaurant") {
|
|
583
|
+
const K = f.locationRestaurantFromCore(Q.doc._id);
|
|
584
|
+
K !== null && (Q.doc = K);
|
|
585
585
|
}
|
|
586
586
|
((b = l == null ? void 0 : l.netSuite) != null && b.refNo || (u = t.netSuite) != null && u.refNo) && (t.ref = [(($ = l == null ? void 0 : l.netSuite) == null ? void 0 : $.refNo) || ((I = t.netSuite) == null ? void 0 : I.refNo)].filter((K) => K).join(" ")), Xt({
|
|
587
587
|
po: t,
|
|
588
|
-
currentLocation:
|
|
588
|
+
currentLocation: Q,
|
|
589
589
|
business: n.currentBusiness.value,
|
|
590
590
|
fulfilling: C === "approval",
|
|
591
591
|
por: l
|
|
@@ -681,13 +681,13 @@ function Yn(C, a, o) {
|
|
|
681
681
|
const t = l.getValue(), b = Xe(l.row.original), { partial: u, over: $ } = nt(b), I = at(t ?? "", u, $);
|
|
682
682
|
let z = g(`inventory.transfer.status.${I}`), R = `${t ?? ""}`.toLocaleLowerCase("en-us");
|
|
683
683
|
I === te.enum.CLOSE && (z = `${g(`inventory.transfer.status.${te.enum.COMPLETE}`)}`), I === "PARTIAL_RECEIVED" && R === te.enum.PROCESSING.toLocaleLowerCase("en-us") && (R = te.enum.RECEIVING.toLocaleLowerCase("en-us"));
|
|
684
|
-
let
|
|
684
|
+
let Q = null;
|
|
685
685
|
const K = o.value.find((se) => se.ref === l.row.original._id);
|
|
686
686
|
if (K != null && K.milestones && K.milestones.length > 0) {
|
|
687
687
|
const se = K.milestones[K.milestones.length - 1];
|
|
688
688
|
if (se.estimatedTime) {
|
|
689
689
|
const ge = new Date(se.estimatedTime), de = ge.getDate().toString().padStart(2, "0");
|
|
690
|
-
|
|
690
|
+
Q = `${ge.toLocaleString("en-US", { month: "short" })} ${de}`;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
return L(
|
|
@@ -711,7 +711,7 @@ function Yn(C, a, o) {
|
|
|
711
711
|
`${z}`
|
|
712
712
|
)
|
|
713
713
|
),
|
|
714
|
-
...
|
|
714
|
+
...Q ? [
|
|
715
715
|
L(
|
|
716
716
|
"div",
|
|
717
717
|
{
|
|
@@ -726,7 +726,7 @@ function Yn(C, a, o) {
|
|
|
726
726
|
L(
|
|
727
727
|
"span",
|
|
728
728
|
{ class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
729
|
-
|
|
729
|
+
Q
|
|
730
730
|
)
|
|
731
731
|
]
|
|
732
732
|
)
|
|
@@ -852,8 +852,8 @@ function Yn(C, a, o) {
|
|
|
852
852
|
compact: !0
|
|
853
853
|
});
|
|
854
854
|
const u = Xe(t.purchaseOrder), { partial: $, over: I } = nt(u), z = at(b ?? "", $, I);
|
|
855
|
-
let R = g(`inventory.transfer.status.${z}`),
|
|
856
|
-
return z === te.enum.CLOSE && (R = `${g(`inventory.transfer.status.${te.enum.COMPLETE}`)}`), z === "PARTIAL_RECEIVED" &&
|
|
855
|
+
let R = g(`inventory.transfer.status.${z}`), Q = `${b ?? ""}`.toLocaleLowerCase("en-us");
|
|
856
|
+
return z === te.enum.CLOSE && (R = `${g(`inventory.transfer.status.${te.enum.COMPLETE}`)}`), z === "PARTIAL_RECEIVED" && Q === te.enum.PROCESSING.toLocaleLowerCase("en-us") && (Q = te.enum.RECEIVING.toLocaleLowerCase("en-us")), t.rejectedAt && (R = g("inventory.transfer.status.REJECT"), Q = te.enum.REJECT.toLocaleLowerCase("en-us")), L(
|
|
857
857
|
"div",
|
|
858
858
|
{
|
|
859
859
|
class: "flex"
|
|
@@ -863,7 +863,7 @@ function Yn(C, a, o) {
|
|
|
863
863
|
{
|
|
864
864
|
class: [
|
|
865
865
|
"fm-status-badge",
|
|
866
|
-
`fm-status-badge-${
|
|
866
|
+
`fm-status-badge-${Q}`,
|
|
867
867
|
I && "fm-status-badge-error"
|
|
868
868
|
].filter(Boolean).join(" ")
|
|
869
869
|
},
|
|
@@ -938,7 +938,7 @@ function Yn(C, a, o) {
|
|
|
938
938
|
return S;
|
|
939
939
|
}
|
|
940
940
|
return {
|
|
941
|
-
columnDefs:
|
|
941
|
+
columnDefs: Y(() => C === "receive/request" ? w() : d())
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
944
|
const Zt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "flex w-full justify-end gap-16" }, ss = /* @__PURE__ */ $e({
|
|
@@ -962,7 +962,7 @@ const Zt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
962
962
|
amount: s.quantity ?? { amount: 1, precision: 0 }
|
|
963
963
|
})));
|
|
964
964
|
});
|
|
965
|
-
const g =
|
|
965
|
+
const g = Y(() => f.items.length <= 10);
|
|
966
966
|
return (s, c) => {
|
|
967
967
|
const O = H("FmTable"), w = H("FmButton"), d = H("FmForm");
|
|
968
968
|
return i(), re(d, {
|
|
@@ -1177,7 +1177,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1177
1177
|
},
|
|
1178
1178
|
setup(C) {
|
|
1179
1179
|
const a = C, o = et(), f = Be(), h = tt(), n = J(!1);
|
|
1180
|
-
|
|
1180
|
+
Y(() => {
|
|
1181
1181
|
var w, d, T, S;
|
|
1182
1182
|
let s = !0;
|
|
1183
1183
|
o.isEnabled || (s = !1);
|
|
@@ -1274,17 +1274,17 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1274
1274
|
h.value = O;
|
|
1275
1275
|
}
|
|
1276
1276
|
});
|
|
1277
|
-
const n =
|
|
1277
|
+
const n = Y(
|
|
1278
1278
|
() => {
|
|
1279
1279
|
var c, O, w, d, T, S;
|
|
1280
1280
|
return o.getSubsidiaryFullName(
|
|
1281
1281
|
((w = (O = (c = a.purchaseOrder) == null ? void 0 : c.netSuite) == null ? void 0 : O.subsidiary) == null ? void 0 : w.id) || ((S = (T = (d = a.poRequest) == null ? void 0 : d.netSuite) == null ? void 0 : T.subsidiary) == null ? void 0 : S.id)
|
|
1282
1282
|
).fullName;
|
|
1283
1283
|
}
|
|
1284
|
-
), g =
|
|
1284
|
+
), g = Y(() => {
|
|
1285
1285
|
var c, O, w, d, T, S, A, l, t, b, u, $;
|
|
1286
1286
|
return (w = (O = (c = a.purchaseOrder) == null ? void 0 : c.netSuite) == null ? void 0 : O.additionalInfo) != null && w.transactionnumber ? (S = (T = (d = a.purchaseOrder) == null ? void 0 : d.netSuite) == null ? void 0 : T.additionalInfo) == null ? void 0 : S.transactionnumber : (t = (l = (A = h.value) == null ? void 0 : A.netSuite) == null ? void 0 : l.additionalInfo) != null && t.transactionnumber ? ($ = (u = (b = h.value) == null ? void 0 : b.netSuite) == null ? void 0 : u.additionalInfo) == null ? void 0 : $.transactionnumber : null;
|
|
1287
|
-
}), s =
|
|
1287
|
+
}), s = Y(() => {
|
|
1288
1288
|
var c, O, w, d, T, S;
|
|
1289
1289
|
return (O = (c = a.purchaseOrder) == null ? void 0 : c.deliveryFullfillment) != null && O.length && ((d = (w = a.purchaseOrder) == null ? void 0 : w.deliveryFullfillment) == null ? void 0 : d.length) > 0 ? (S = (T = a.purchaseOrder) == null ? void 0 : T.deliveryFullfillment) == null ? void 0 : S.map((A) => {
|
|
1290
1290
|
var l;
|
|
@@ -1292,7 +1292,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1292
1292
|
}).join(", ") : "N/A";
|
|
1293
1293
|
});
|
|
1294
1294
|
return (c, O) => {
|
|
1295
|
-
var w, d, T, S, A, l, t, b, u, $, I, z, R,
|
|
1295
|
+
var w, d, T, S, A, l, t, b, u, $, I, z, R, Q, K, se;
|
|
1296
1296
|
return v(o).isEnabled ? (i(), _("div", as, [
|
|
1297
1297
|
e("div", ls, [
|
|
1298
1298
|
O[0] || (O[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
|
|
@@ -1307,7 +1307,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1307
1307
|
!c.isTransferBetweenOutlets && h.value || c.scope === v(lt).APPROVAL ? (i(), _("div", fs, [
|
|
1308
1308
|
e("div", ys, " (Request) NetSuite " + y(c.transferType === v(Ge).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
1309
1309
|
e("div", vs, [
|
|
1310
|
-
(z = (I = h.value) == null ? void 0 : I.netSuite) != null && z.id ? (i(), _("span", hs, y((
|
|
1310
|
+
(z = (I = h.value) == null ? void 0 : I.netSuite) != null && z.id ? (i(), _("span", hs, y((Q = (R = h.value) == null ? void 0 : R.netSuite) == null ? void 0 : Q.refNo) + " (" + y((se = (K = h.value) == null ? void 0 : K.netSuite) == null ? void 0 : se.id) + ") ", 1)) : (i(), _("span", bs, "N/A"))
|
|
1311
1311
|
])
|
|
1312
1312
|
])) : U("", !0),
|
|
1313
1313
|
g.value ? (i(), _("div", gs, [
|
|
@@ -1464,13 +1464,13 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1464
1464
|
g.value ? (i(), _("p", Hs, "Something went wrong.")) : (i(), _(ue, { key: 0 }, [
|
|
1465
1465
|
e("div", Ds, [
|
|
1466
1466
|
t[4] || (t[4] = e("h3", { class: "fm-typo-en-body-lg-600 mb-4" }, "NetSuite Order Details", -1)),
|
|
1467
|
-
(i(!0), _(ue, null, xe(O.value, (R,
|
|
1468
|
-
key:
|
|
1467
|
+
(i(!0), _(ue, null, xe(O.value, (R, Q) => (i(), _("div", {
|
|
1468
|
+
key: Q,
|
|
1469
1469
|
class: "mb-2"
|
|
1470
1470
|
}, [
|
|
1471
1471
|
e("div", null, [
|
|
1472
1472
|
D(u, {
|
|
1473
|
-
label: v(it)(
|
|
1473
|
+
label: v(it)(Q)
|
|
1474
1474
|
}, null, 8, ["label"]),
|
|
1475
1475
|
e("div", As, [
|
|
1476
1476
|
Array.isArray(R) ? (i(), _("span", Ns, y(R.length > 0 ? R.join(", ") : "N/A"), 1)) : (i(), _("span", Fs, y(R), 1))
|
|
@@ -1510,8 +1510,8 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1510
1510
|
])
|
|
1511
1511
|
], -1)),
|
|
1512
1512
|
e("tbody", null, [
|
|
1513
|
-
(i(!0), _(ue, null, xe(w.value, (R,
|
|
1514
|
-
key:
|
|
1513
|
+
(i(!0), _(ue, null, xe(w.value, (R, Q) => (i(), _("tr", {
|
|
1514
|
+
key: Q,
|
|
1515
1515
|
class: "border-b border-fm-color-neutral-gray-200 last:border-b-0"
|
|
1516
1516
|
}, [
|
|
1517
1517
|
e("td", Es, y(A(R._dateiso8601)), 1),
|
|
@@ -1549,10 +1549,10 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1549
1549
|
]);
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
}),
|
|
1552
|
+
}), Ys = {
|
|
1553
1553
|
key: 0,
|
|
1554
1554
|
class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16 flex flex-col gap-8"
|
|
1555
|
-
},
|
|
1555
|
+
}, Qs = { class: "flex gap-8 items-center" }, Js = { class: "ml-auto" }, Xs = { class: "flex gap-3" }, Zs = /* @__PURE__ */ $e({
|
|
1556
1556
|
__name: "NetSuitePanel",
|
|
1557
1557
|
props: {
|
|
1558
1558
|
poRequest: {},
|
|
@@ -1562,12 +1562,12 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1562
1562
|
scope: {}
|
|
1563
1563
|
},
|
|
1564
1564
|
setup(C) {
|
|
1565
|
-
const a = C, o = Gt(), f =
|
|
1565
|
+
const a = C, o = Gt(), f = Y(() => o.isNetSuiteEnabled);
|
|
1566
1566
|
return (h, n) => {
|
|
1567
1567
|
var s, c;
|
|
1568
1568
|
const g = H("FmMenuDivider");
|
|
1569
|
-
return f.value ? (i(), _("div",
|
|
1570
|
-
e("div",
|
|
1569
|
+
return f.value ? (i(), _("div", Ys, [
|
|
1570
|
+
e("div", Qs, [
|
|
1571
1571
|
n[0] || (n[0] = e("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
|
|
1572
1572
|
e("div", Js, [
|
|
1573
1573
|
e("div", Xs, [
|
|
@@ -1634,14 +1634,14 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1634
1634
|
emits: ["submitted"],
|
|
1635
1635
|
setup(C, { emit: a }) {
|
|
1636
1636
|
Wt();
|
|
1637
|
-
const o = Ue(), f = Be(), h = J(!1), n = C, g = a, s = St("deliveryOrder"), c = je(), O =
|
|
1637
|
+
const o = Ue(), f = Be(), h = J(!1), n = C, g = a, s = St("deliveryOrder"), c = je(), O = Y(
|
|
1638
1638
|
() => {
|
|
1639
1639
|
var b;
|
|
1640
1640
|
return ((b = n.purchaseOrder.deliveryFullfillment) == null ? void 0 : b.findIndex(
|
|
1641
1641
|
(u) => n.deliveryOrder.fullfillmentId && u.id === n.deliveryOrder.fullfillmentId
|
|
1642
1642
|
)) ?? -1;
|
|
1643
1643
|
}
|
|
1644
|
-
), w = o.enablePurchaseOrderReceiveWithCustomCost, d = o.enablePortalDeliveryOrderWrite, T = J({}), S =
|
|
1644
|
+
), w = o.enablePurchaseOrderReceiveWithCustomCost, d = o.enablePortalDeliveryOrderWrite, T = J({}), S = Y(() => n.purchaseOrder.items.map((b, u) => Y({
|
|
1645
1645
|
get: () => {
|
|
1646
1646
|
var I;
|
|
1647
1647
|
const $ = (I = s.received[u]) == null ? void 0 : I.cost;
|
|
@@ -1650,17 +1650,17 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1650
1650
|
set: ($) => {
|
|
1651
1651
|
s.received[u].cost = {
|
|
1652
1652
|
currency: Ce(),
|
|
1653
|
-
...
|
|
1653
|
+
...Qe($, 4)
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
|
-
}))), A =
|
|
1656
|
+
}))), A = Y(() => n.deliveryOrder.received.map((b, u) => Y({
|
|
1657
1657
|
get: () => {
|
|
1658
1658
|
var I;
|
|
1659
1659
|
const $ = (I = s.received[u]) == null ? void 0 : I.amount;
|
|
1660
1660
|
return $ ? +he($) : 0;
|
|
1661
1661
|
},
|
|
1662
1662
|
set: ($) => {
|
|
1663
|
-
s.received[u].amount =
|
|
1663
|
+
s.received[u].amount = Qe($, 2);
|
|
1664
1664
|
}
|
|
1665
1665
|
})));
|
|
1666
1666
|
function l(b) {
|
|
@@ -1699,8 +1699,8 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1699
1699
|
});
|
|
1700
1700
|
}
|
|
1701
1701
|
return (b, u) => {
|
|
1702
|
-
const $ = H("FmButton"), I = H("FmStepperField"), z = H("FmSwitch"), R = H("FmTextField"),
|
|
1703
|
-
return i(), re(
|
|
1702
|
+
const $ = H("FmButton"), I = H("FmStepperField"), z = H("FmSwitch"), R = H("FmTextField"), Q = H("FmDialog");
|
|
1703
|
+
return i(), re(Q, {
|
|
1704
1704
|
modelValue: h.value,
|
|
1705
1705
|
"onUpdate:modelValue": u[1] || (u[1] = (K) => h.value = K),
|
|
1706
1706
|
overlay: !0
|
|
@@ -1731,7 +1731,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1731
1731
|
e("div", er, [
|
|
1732
1732
|
e("div", tr, [
|
|
1733
1733
|
u[2] || (u[2] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Adjustment date", -1)),
|
|
1734
|
-
e("div", sr, y(n.deliveryOrder.adjustment ? v(He)(new Date(v(
|
|
1734
|
+
e("div", sr, y(n.deliveryOrder.adjustment ? v(He)(new Date(v(Ye)(n.deliveryOrder.adjustment))) : "-"), 1)
|
|
1735
1735
|
]),
|
|
1736
1736
|
e("div", rr, [
|
|
1737
1737
|
u[4] || (u[4] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Received items", -1)),
|
|
@@ -1842,7 +1842,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1842
1842
|
},
|
|
1843
1843
|
createdAt: ""
|
|
1844
1844
|
}
|
|
1845
|
-
}), c = je(), O = tt(), w = Ue(), d = ((oe = n.purchaseOrder) == null ? void 0 : oe.supplier.internal) != null, T = d && w.enablePOSTransferRequireFulfillment, S = w.enablePortalDeliveryOrderWrite && (n.purchaseOrder.status === te.Enum.RECEIVING || n.purchaseOrder.status === te.Enum.COMPLETE) && (d ? !T : !0), A = w.enablePurchaseOrderReceiveWithCustomCost, l = w.enableBackdateReceive, t = J({}), b = Be(), u =
|
|
1845
|
+
}), c = je(), O = tt(), w = Ue(), d = ((oe = n.purchaseOrder) == null ? void 0 : oe.supplier.internal) != null, T = d && w.enablePOSTransferRequireFulfillment, S = w.enablePortalDeliveryOrderWrite && (n.purchaseOrder.status === te.Enum.RECEIVING || n.purchaseOrder.status === te.Enum.COMPLETE) && (d ? !T : !0), A = w.enablePurchaseOrderReceiveWithCustomCost, l = w.enableBackdateReceive, t = J({}), b = Be(), u = Y({
|
|
1846
1846
|
get() {
|
|
1847
1847
|
if (!s.createdAt) return "";
|
|
1848
1848
|
const k = new Date(s.createdAt), x = k.getFullYear(), N = String(k.getMonth() + 1).padStart(2, "0"), W = String(k.getDate()).padStart(2, "0");
|
|
@@ -1854,7 +1854,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1854
1854
|
x.setFullYear(parseInt(N)), x.setMonth(parseInt(W) - 1), x.setDate(parseInt(ie)), s.createdAt = x.toISOString();
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
-
}), $ =
|
|
1857
|
+
}), $ = Y({
|
|
1858
1858
|
get() {
|
|
1859
1859
|
if (!s.createdAt) return "";
|
|
1860
1860
|
const k = new Date(s.createdAt), x = String(k.getHours()).padStart(2, "0"), N = String(k.getMinutes()).padStart(2, "0");
|
|
@@ -1866,36 +1866,36 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1866
1866
|
x.setHours(parseInt(N)), x.setMinutes(parseInt(W)), s.createdAt = x.toISOString();
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
}), I =
|
|
1870
|
-
const k =
|
|
1869
|
+
}), I = Y(() => {
|
|
1870
|
+
const k = Ye(n.purchaseOrder._id);
|
|
1871
1871
|
if (!k) return "";
|
|
1872
1872
|
const x = new Date(k), N = x.getFullYear(), W = String(x.getMonth() + 1).padStart(2, "0"), ie = String(x.getDate()).padStart(2, "0");
|
|
1873
1873
|
return `${N}-${W}-${ie}`;
|
|
1874
|
-
}), z =
|
|
1875
|
-
const k =
|
|
1874
|
+
}), z = Y(() => {
|
|
1875
|
+
const k = Ye(n.purchaseOrder._id);
|
|
1876
1876
|
return k ? new Date(k) : null;
|
|
1877
|
-
}), R =
|
|
1877
|
+
}), R = Y(() => {
|
|
1878
1878
|
if (!u.value || !$.value || !z.value) return null;
|
|
1879
1879
|
if (/* @__PURE__ */ new Date(`${u.value}T${$.value}:00`) < z.value) {
|
|
1880
1880
|
const x = I.value, N = z.value.getHours(), W = z.value.getMinutes(), ie = N >= 12 ? "PM" : "AM", r = N % 12 || 12, m = `${String(r).padStart(2, "0")}:${String(W).padStart(2, "0")} ${ie}`;
|
|
1881
1881
|
return `Delivery date & time cannot be earlier than order creation (${x} ${m})`;
|
|
1882
1882
|
}
|
|
1883
1883
|
return null;
|
|
1884
|
-
}),
|
|
1884
|
+
}), Q = Y(() => R.value ? !1 : s.received.some((x) => {
|
|
1885
1885
|
const N = x.amount;
|
|
1886
1886
|
return N ? +he(N) > 0 : !1;
|
|
1887
1887
|
}));
|
|
1888
1888
|
function K() {
|
|
1889
1889
|
s.createdAt = "";
|
|
1890
1890
|
}
|
|
1891
|
-
const se =
|
|
1891
|
+
const se = Y(() => n.purchaseOrder.items.map((k, x) => Y({
|
|
1892
1892
|
get: () => {
|
|
1893
1893
|
var W;
|
|
1894
1894
|
const N = (W = s.received[x]) == null ? void 0 : W.amount;
|
|
1895
1895
|
return N ? +he(N) : 0;
|
|
1896
1896
|
},
|
|
1897
1897
|
set: (N) => {
|
|
1898
|
-
s.received[x].amount =
|
|
1898
|
+
s.received[x].amount = Qe(N, 2);
|
|
1899
1899
|
}
|
|
1900
1900
|
})));
|
|
1901
1901
|
function ge(k) {
|
|
@@ -1915,7 +1915,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1915
1915
|
} else
|
|
1916
1916
|
delete s.received[k].cost;
|
|
1917
1917
|
}
|
|
1918
|
-
const de =
|
|
1918
|
+
const de = Y(() => n.purchaseOrder.items.map((k, x) => Y({
|
|
1919
1919
|
get: () => {
|
|
1920
1920
|
var W;
|
|
1921
1921
|
const N = (W = s.received[x]) == null ? void 0 : W.cost;
|
|
@@ -1924,7 +1924,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1924
1924
|
set: (N) => {
|
|
1925
1925
|
s.received[x].cost = {
|
|
1926
1926
|
currency: Ce(),
|
|
1927
|
-
...
|
|
1927
|
+
...Qe(N, 4)
|
|
1928
1928
|
};
|
|
1929
1929
|
}
|
|
1930
1930
|
})));
|
|
@@ -1987,7 +1987,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
1987
1987
|
label: "Create",
|
|
1988
1988
|
size: "md",
|
|
1989
1989
|
variant: "destructive",
|
|
1990
|
-
disabled: !
|
|
1990
|
+
disabled: !Q.value,
|
|
1991
1991
|
onClick: qe
|
|
1992
1992
|
}, null, 8, ["disabled"])
|
|
1993
1993
|
]),
|
|
@@ -2117,7 +2117,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2117
2117
|
}, Gr = {
|
|
2118
2118
|
key: 1,
|
|
2119
2119
|
class: "border-t pt-6"
|
|
2120
|
-
}, Hr = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Wr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" },
|
|
2120
|
+
}, Hr = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Wr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, Yr = { class: "w-full" }, Qr = {
|
|
2121
2121
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
2122
2122
|
style: { "min-width": "130px" }
|
|
2123
2123
|
}, 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-400 text-fm-color-typo-secondary" }, ro = { class: "p-3 fm-typo-en-body-sm-600" }, oo = { key: 2 }, no = /* @__PURE__ */ $e({
|
|
@@ -2200,7 +2200,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2200
2200
|
d[5] || (d[5] = ke(" Change Logs "))
|
|
2201
2201
|
]),
|
|
2202
2202
|
e("div", Wr, [
|
|
2203
|
-
e("table",
|
|
2203
|
+
e("table", Yr, [
|
|
2204
2204
|
d[6] || (d[6] = e("thead", { class: "bg-fm-color-neutral-gray-50" }, [
|
|
2205
2205
|
e("tr", { class: "border-b border-fm-color-neutral-gray-200" }, [
|
|
2206
2206
|
e("th", {
|
|
@@ -2222,7 +2222,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2222
2222
|
key: b,
|
|
2223
2223
|
class: "border-b border-fm-color-neutral-gray-200 last:border-b-0"
|
|
2224
2224
|
}, [
|
|
2225
|
-
e("td",
|
|
2225
|
+
e("td", Qr, y(O(t._dateiso8601)), 1),
|
|
2226
2226
|
e("td", Jr, y(t._rolename), 1),
|
|
2227
2227
|
e("td", Xr, y(t._employeename), 1),
|
|
2228
2228
|
e("td", Zr, y(t._contextname), 1),
|
|
@@ -2273,7 +2273,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2273
2273
|
}, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Po = { class: "fm-typo-en-body-lg-600" }, qo = {
|
|
2274
2274
|
key: 4,
|
|
2275
2275
|
class: "flex flex-col gap-4"
|
|
2276
|
-
}, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Mo = { class: "flex flex-col gap-8" }, Uo = { class: "flex gap-8 items-center" }, Bo = { class: "flex-1 fm-typo-en-body-lg-600" }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, zo = { class: "flex w-full gap-4" }, Ko = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2 flex items-center gap-2" }, Go = { 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" }, Wo = ["innerHTML"],
|
|
2276
|
+
}, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Mo = { class: "flex flex-col gap-8" }, Uo = { class: "flex gap-8 items-center" }, Bo = { class: "flex-1 fm-typo-en-body-lg-600" }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, zo = { class: "flex w-full gap-4" }, Ko = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2 flex items-center gap-2" }, Go = { 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" }, Wo = ["innerHTML"], Yo = { 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" }, Jo = {
|
|
2277
2277
|
key: 0,
|
|
2278
2278
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
2279
2279
|
}, Xo = { class: "py-8" }, Zo = { class: "flex justify-end gap-4 items-center" }, en = { class: "fm-typo-en-body-lg-600" }, tn = {
|
|
@@ -2313,7 +2313,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2313
2313
|
},
|
|
2314
2314
|
emits: ["update:show", "submitted"],
|
|
2315
2315
|
setup(C, { emit: a }) {
|
|
2316
|
-
const o = C, f = a, h = tt(), n = Be(), g = Ue(), s = De(), c = ct(), O =
|
|
2316
|
+
const o = C, f = a, h = tt(), n = Be(), g = Ue(), s = De(), c = ct(), O = Y(
|
|
2317
2317
|
() => {
|
|
2318
2318
|
var r, m;
|
|
2319
2319
|
return {
|
|
@@ -2321,12 +2321,12 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2321
2321
|
name: ((m = c.sessionUser.value) == null ? void 0 : m.displayName) ?? ""
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
|
-
), w = rs(), { t: d } = ut(), T =
|
|
2324
|
+
), w = rs(), { t: d } = ut(), T = Y(
|
|
2325
2325
|
() => {
|
|
2326
2326
|
var r, m, V, E;
|
|
2327
2327
|
return ((m = (r = o.purchaseOrder) == null ? void 0 : r.supplier) == null ? void 0 : m.internal) === "restaurant" || ((E = (V = o.purchaseOrder) == null ? void 0 : V.supplier) == null ? void 0 : E.internal) === "warehouse" ? Ge.enum.transfer : Ge.enum.purchase;
|
|
2328
2328
|
}
|
|
2329
|
-
), S =
|
|
2329
|
+
), S = Y(() => {
|
|
2330
2330
|
var V;
|
|
2331
2331
|
const r = (V = o.shipments) == null ? void 0 : V.find((E) => {
|
|
2332
2332
|
var G;
|
|
@@ -2345,7 +2345,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2345
2345
|
M.enum.receiveStock,
|
|
2346
2346
|
M.enum.processRequest,
|
|
2347
2347
|
M.enum.closeRequest
|
|
2348
|
-
], z =
|
|
2348
|
+
], z = Y(() => {
|
|
2349
2349
|
if (!o.purchaseOrder)
|
|
2350
2350
|
return [];
|
|
2351
2351
|
const r = u.result.value;
|
|
@@ -2375,7 +2375,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2375
2375
|
console.error("Error getting available actions:", F);
|
|
2376
2376
|
}
|
|
2377
2377
|
return o.scope === "approval" && (G = G.filter((F) => F !== M.enum.completeReceive)), G;
|
|
2378
|
-
}), R = qt(o, "show"),
|
|
2378
|
+
}), R = qt(o, "show"), Q = Y(() => [
|
|
2379
2379
|
{
|
|
2380
2380
|
label: d("inventory.transfer.receiveRequest.details.overview"),
|
|
2381
2381
|
value: "overview"
|
|
@@ -2384,11 +2384,11 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2384
2384
|
label: d("inventory.transfer.receiveRequest.details.deliveryHistory"),
|
|
2385
2385
|
value: "deliveryHistory"
|
|
2386
2386
|
}
|
|
2387
|
-
]), K = J(
|
|
2387
|
+
]), K = J(Q.value[0]);
|
|
2388
2388
|
Rt(
|
|
2389
2389
|
() => o.show,
|
|
2390
2390
|
(r) => {
|
|
2391
|
-
r && (K.value =
|
|
2391
|
+
r && (K.value = Q.value[0]);
|
|
2392
2392
|
}
|
|
2393
2393
|
);
|
|
2394
2394
|
function se(r) {
|
|
@@ -2530,10 +2530,10 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
|
-
const qe =
|
|
2533
|
+
const qe = Y(() => {
|
|
2534
2534
|
var r, m;
|
|
2535
2535
|
return ((r = o.purchaseOrder) == null ? void 0 : r.status) === te.enum.RECEIVING || ((m = o.purchaseOrder) == null ? void 0 : m.status) === te.enum.COMPLETE;
|
|
2536
|
-
}), Ve =
|
|
2536
|
+
}), Ve = Y(() => o.purchaseOrder ? Xe(o.purchaseOrder) : {}), B = Y(() => {
|
|
2537
2537
|
const r = o.purchaseOrder;
|
|
2538
2538
|
if (!r) return { status: "", statusClass: "" };
|
|
2539
2539
|
const { partial: m, over: V } = nt(Ve.value), E = at(r.status, m, V);
|
|
@@ -2542,7 +2542,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2542
2542
|
status: G,
|
|
2543
2543
|
statusClass: `fm-status-badge fm-status-badge-${F}`
|
|
2544
2544
|
};
|
|
2545
|
-
}), q =
|
|
2545
|
+
}), q = Y(() => {
|
|
2546
2546
|
var F, j;
|
|
2547
2547
|
const r = ((F = o.purchaseOrder) == null ? void 0 : F.deliveryOrder) ?? [], m = ((j = o.purchaseOrder) == null ? void 0 : j.deliveryFullfillment) ?? [], V = [
|
|
2548
2548
|
...r.map((p) => ({
|
|
@@ -2583,7 +2583,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2583
2583
|
{
|
|
2584
2584
|
label: "Adjustment date",
|
|
2585
2585
|
values: [
|
|
2586
|
-
p.adjustment ? He(new Date(
|
|
2586
|
+
p.adjustment ? He(new Date(Ye(p.adjustment))) : "-"
|
|
2587
2587
|
]
|
|
2588
2588
|
},
|
|
2589
2589
|
{
|
|
@@ -2782,7 +2782,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2782
2782
|
return G(p.doc);
|
|
2783
2783
|
}
|
|
2784
2784
|
});
|
|
2785
|
-
}), oe =
|
|
2785
|
+
}), oe = Y(() => {
|
|
2786
2786
|
var m;
|
|
2787
2787
|
const r = {
|
|
2788
2788
|
...gt(0),
|
|
@@ -2800,10 +2800,10 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2800
2800
|
}
|
|
2801
2801
|
function x(r) {
|
|
2802
2802
|
var X;
|
|
2803
|
-
const V = (((X = o.purchaseOrder) == null ? void 0 : X.version) ?? Te.enum[1]) === Te.enum[2] ? r.id : r.sku._id, E = o.receivedMap[V], { isPartialReceive: G, isNoReceive: F, isOverReceive: j, isFullReceive: p } =
|
|
2803
|
+
const V = (((X = o.purchaseOrder) == null ? void 0 : X.version) ?? Te.enum[1]) === Te.enum[2] ? r.id : r.sku._id, E = o.receivedMap[V], { isPartialReceive: G, isNoReceive: F, isOverReceive: j, isFullReceive: p } = Qt(E);
|
|
2804
2804
|
return F ? "text-fm-color-typo-tertiary" : G ? "text-fm-color-system-warning-300" : j ? "text-fm-color-system-error-300" : p ? "text-fm-color-system-success-300" : "";
|
|
2805
2805
|
}
|
|
2806
|
-
const N =
|
|
2806
|
+
const N = Y(() => {
|
|
2807
2807
|
var r, m, V;
|
|
2808
2808
|
return (r = o.purchaseOrder) != null && r.itemsAtSubmission ? ((m = o.purchaseOrder) == null ? void 0 : m.version) === Te.enum[2] ? o.purchaseOrder.items.reduce((E, G) => {
|
|
2809
2809
|
var j, p;
|
|
@@ -2856,7 +2856,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
2856
2856
|
})
|
|
2857
2857
|
]),
|
|
2858
2858
|
D(E, {
|
|
2859
|
-
items:
|
|
2859
|
+
items: Q.value,
|
|
2860
2860
|
modelValue: K.value,
|
|
2861
2861
|
"onUpdate:modelValue": m[1] || (m[1] = (Oe) => K.value = Oe)
|
|
2862
2862
|
}, null, 8, ["items", "modelValue"]),
|
|
@@ -3038,8 +3038,8 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
3038
3038
|
}, null, 8, Wo)
|
|
3039
3039
|
])
|
|
3040
3040
|
]),
|
|
3041
|
-
e("div",
|
|
3042
|
-
e("div",
|
|
3041
|
+
e("div", Yo, [
|
|
3042
|
+
e("div", Qo, y(ee.code), 1),
|
|
3043
3043
|
(pe = ee.totalCost) != null && pe.amount && v(g).enableTotalCost ? (i(), _("div", Jo, " (" + y(v(Ke)(ee.totalCost)) + ") ", 1)) : U("", !0)
|
|
3044
3044
|
])
|
|
3045
3045
|
]);
|
|
@@ -3236,7 +3236,7 @@ const os = { class: "flex flex-row-reverse" }, ns = /* @__PURE__ */ $e({
|
|
|
3236
3236
|
export {
|
|
3237
3237
|
lt as P,
|
|
3238
3238
|
Jn as _,
|
|
3239
|
-
|
|
3239
|
+
Qn as a,
|
|
3240
3240
|
Jt as g,
|
|
3241
|
-
|
|
3241
|
+
Yn as u
|
|
3242
3242
|
};
|