@feedmepos/mf-inventory-portal 1.2.59 → 1.2.60-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-Nwc0Ha2r.js → App-B_yr-6yL.js} +82 -78
- package/dist/{ApprovalView-Y5f915s3.js → ApprovalView-DoYBBuSD.js} +5 -5
- package/dist/{BindingsDialog-5N7R_u4c.js → BindingsDialog-DG7HOy6J.js} +5 -5
- package/dist/{BindingsPicker-BJwvLu2s.js → BindingsPicker-DVCYpyrR.js} +3 -3
- package/dist/{BindingsTable-B8sq-qXH.js → BindingsTable-CCel2b_W.js} +5 -5
- package/dist/{ClosingDraftView-BsyYOZsz.js → ClosingDraftView-CfM7gNBX.js} +891 -893
- package/dist/{ClosingHistoryView-BNpsMNy1.js → ClosingHistoryView-DWH4bFgg.js} +36 -36
- package/dist/{ClosingTemplateView-BBqbq07d.js → ClosingTemplateView-JYnnvm7L.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CmOO7wuE.js → DeliveryOrderPrintPreview-BihBTJGj.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXlY-Gu1.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CWjtQajS.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CAMkZRFI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js} +2 -2
- package/dist/{FmMultiselectDialog-CwJUv9tG.js → FmMultiselectDialog-CxDviJZM.js} +16 -16
- package/dist/{FmMultiselectDialog-LagHyTQP.js → FmMultiselectDialog-D51nW6yj.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BmHFIkt1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js} +16 -15
- package/dist/{ImportView-wQ_bNesb.js → ImportView-C52rZFib.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DtMrJIVs.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CjZmd-Sa.js} +1 -1
- package/dist/{IngredientGroupView-DsGMhdwu.js → IngredientGroupView-DTHpZP2L.js} +5 -5
- package/dist/{IngredientsView-JdjcLdOx.js → IngredientsView-CrCW6heJ.js} +25 -24
- package/dist/{IntegrationView-CMmSIRUk.js → IntegrationView--DZANrHj.js} +18 -17
- package/dist/{InventoryBindingForm-UL-UKtYW.js → InventoryBindingForm-DLTpv-zQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-r875PDKP.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-hkIg4Rbp.js} +17 -16
- package/dist/{InventoryBindingSummary-BDAuT62b.js → InventoryBindingSummary-D9ptV8Cw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5zOYiqR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdPxhkg0.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B2zppgqk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ci3esisT.js} +2 -2
- package/dist/{PublishView-CSoZCSHT.js → PublishView-DxzL_D61.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-D5Qw44xo.js → PurchaseOrderPrintPreview-D0tg-2TC.js} +11 -11
- package/dist/{ReceiveRequestView-Chntp08E.js → ReceiveRequestView-2U534J1_.js} +251 -250
- package/dist/RecipeView-VZRyX3Mm.js +1558 -0
- package/dist/{StockView-CuCK7tD2.js → StockView-CvWbnYGz.js} +653 -651
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxjceLuZ.js +183 -0
- package/dist/{SupplierView-CA17Tz02.js → SupplierView-DMIunLvv.js} +20 -19
- package/dist/{SurchargeView-EIftjMCa.js → SurchargeView-jteWYvQz.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CqA6RmPy.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYXsAP0i.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DAkKiy0Z.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BbbAEIcW.js → TransferDetails.vue_vue_type_script_setup_true_lang-CEXA3vvS.js} +77 -78
- package/dist/{TransferTemplateView-CYfbm9aS.js → TransferTemplateView-DMQ1WIij.js} +22 -21
- package/dist/UnitCostHistoryView-DQ3sXVAQ.js +651 -0
- package/dist/{UnitView-6s5CsGEQ.js → UnitView-p6eZ8G2C.js} +9 -9
- package/dist/{WarehouseView-BXDQOyFZ.js → WarehouseView-BIShkEPs.js} +5 -5
- package/dist/{WastageTemplateView-Cq92TiRs.js → WastageTemplateView-DCbczB_0.js} +14 -14
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock-estimate.d.ts +2 -0
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-DJuq_faF.js → app-BAVBNKKH.js} +7461 -6448
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-D_zbp5V1.js → closing-template-DqxA750a.js} +1 -1
- package/dist/components/StockForecastProps.d.ts +6 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-4vrHarNG.js → date2-CgwRU403.js} +1 -1
- package/dist/{dayjs.min-Dwp8614O.js → dayjs.min-CjWVK_Fe.js} +16 -16
- package/dist/{defineDeepModel-DVt2Wz9r.js → defineDeepModel-B1j_kSRA.js} +1 -1
- package/dist/{duplicate-template-CkYWeFtL.js → duplicate-template-iHtqE_uw.js} +1 -1
- package/dist/{feature-Beh-qc03.js → feature-DEryk-Cv.js} +94 -89
- package/dist/{format-time-from-id-84iLSxVu.js → format-time-from-id-C-mbWMLS.js} +1 -1
- package/dist/{format-unit-display-DfeNpWk4.js → format-unit-display-C8Hzskg0.js} +16 -15
- package/dist/helper/number.d.ts +2 -0
- package/dist/helper/type.d.ts +5 -0
- package/dist/{import-export.helper-fAVzQM2q.js → import-export.helper-DGg16RXI.js} +17 -16
- package/dist/{index-CoEqhZLm.js → index-BAkoTUB0.js} +1 -1
- package/dist/{index-B2_16R5E.js → index-BLowSL6G.js} +1471 -1412
- package/dist/{index-Chogzhcq.js → index-CLr4DPan.js} +3 -3
- package/dist/{lodash-Cx8BU1GH.js → lodash-D1_0uR01.js} +1 -1
- package/dist/{netsuite-C1bml-v1.js → netsuite-Bbxz8tiD.js} +60 -60
- package/dist/number-Cof88Fjz.js +232 -0
- package/dist/{purchase-order-template-BqFnJ-6B.js → purchase-order-template-B-sXEbRE.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-CzPUVxD_.js +98 -0
- package/dist/{stock-KxT4JbNf.js → stock-BYPFH5a_.js} +1 -1
- package/dist/stock-D9E1uFb1.js +75 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +119 -30
- package/dist/{supplier-C7wUB1zT.js → supplier-wQYh275s.js} +2 -2
- package/dist/{surcharge-CjB_Qtbv.js → surcharge-Bi21qFa0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-D5KSqA4Z.js → use-ingredient-select-dialog-DH-mXl8H.js} +2 -2
- package/dist/{use-inventory-binding-dialog-eGOvztV3.js → use-inventory-binding-dialog-i8E2CNuV.js} +2 -2
- package/dist/{use-template-enabled-locations-2-3kcVWPQm.js → use-template-enabled-locations-2-DRk9TskI.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/stock/type.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
- package/dist/{vue-i18n-C6XNfngV.js → vue-i18n-Cf9iDkfk.js} +398 -398
- package/dist/{xlsx-BwNUbN_O.js → xlsx-lp5RXzSw.js} +398 -398
- package/dist/{xlsx.util-B_DE3inS.js → xlsx.util-BxpZNkEZ.js} +1 -1
- package/package.json +2 -2
- package/dist/RecipeView-Ck3Pa4fg.js +0 -646
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-fMji2qKG.js +0 -172
- package/dist/decimal-Bf6AG_d3.js +0 -99
- package/dist/rules-y2OYGOro.js +0 -201
- package/dist/stock-BWUzlDTa.js +0 -75
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { p as Ct, f as We } from "./format-time-from-id-
|
|
2
|
-
import { ref as J, computed as Y, h as L, defineComponent as $e, reactive as Rt, onMounted as yt, resolveComponent as
|
|
1
|
+
import { p as Ct, f as We } from "./format-time-from-id-C-mbWMLS.js";
|
|
2
|
+
import { ref as J, computed as Y, h as L, defineComponent as $e, reactive as Rt, onMounted as yt, resolveComponent as H, openBlock as l, createBlock as re, withCtx as ee, createElementVNode as e, createVNode as D, unref as v, createElementBlock as b, toDisplayString as y, createCommentVNode as B, Fragment as de, renderList as xe, createTextVNode as ke, normalizeClass as Me, watch as kt, isRef as Dt, resolveDynamicComponent as At } from "vue";
|
|
3
3
|
import { c as mt } from "./component-DpCUABT3.js";
|
|
4
4
|
import { R as ye, D as Se } from "./row-action.enum-BcW_L_nE.js";
|
|
5
|
-
import { o as Nt, u as De,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { u as Ue, F as qt, a as st } from "./feature-Beh-qc03.js";
|
|
5
|
+
import { o as Nt, u as De, X as U, Y as Ze, O as se, H as Ft, c as vt, v as it, Z as ht, t as He, s as Ce, D as Ye, y as qe, E as Pe } from "./app-BAVBNKKH.js";
|
|
6
|
+
import { k as bt, F as Tt, c as gt, a as be, t as Qe, d as Ke } from "./number-Cof88Fjz.js";
|
|
7
|
+
import { t as It, c as Pt, h as _t, a as Ge } from "./date2-CgwRU403.js";
|
|
8
|
+
import { u as Ue, F as qt, a as st } from "./feature-DEryk-Cv.js";
|
|
10
9
|
import { useCoreStore as ct, useI18n as ut } from "@feedmepos/mf-common";
|
|
11
|
-
import { u as et, a as dt, S as we } from "./netsuite-
|
|
10
|
+
import { u as et, a as dt, S as we } from "./netsuite-Bbxz8tiD.js";
|
|
12
11
|
import { useDialog as tt, useSnackbar as Be, components as Je, FmButtonVariant as ge, useProxiedModel as Vt } from "@feedmepos/ui-library";
|
|
13
12
|
import { F as Ve } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
14
13
|
import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
|
|
15
|
-
import { u as Lt, a as Mt, f as Ut } from "./format-unit-display-
|
|
16
|
-
import { u as je, _ as Bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as jt, a as zt, b as Kt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { u as
|
|
19
|
-
import { c as
|
|
20
|
-
import { i as Wt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { u as Lt, a as Mt, f as Ut } from "./format-unit-display-C8Hzskg0.js";
|
|
15
|
+
import { u as je, _ as Bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyoUVoDH.js";
|
|
16
|
+
import { _ as jt, a as zt, b as Kt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js";
|
|
17
|
+
import { u as Ht, R as pt } from "./usePromise-CbVUCxhj.js";
|
|
18
|
+
import { c as Gt } from "./index-CLr4DPan.js";
|
|
19
|
+
import { i as Wt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
21
20
|
import { F as ft } from "./form-mode.enum-BKiNVH6A.js";
|
|
22
|
-
import { d as St } from "./defineDeepModel-
|
|
23
|
-
import { u as Yt } from "./vue-i18n-
|
|
21
|
+
import { d as St } from "./defineDeepModel-B1j_kSRA.js";
|
|
22
|
+
import { u as Yt } from "./vue-i18n-Cf9iDkfk.js";
|
|
24
23
|
const Qt = Nt(($, a) => {
|
|
25
24
|
const o = De();
|
|
26
25
|
return {
|
|
@@ -145,7 +144,7 @@ function Ot() {
|
|
|
145
144
|
}
|
|
146
145
|
var lt = /* @__PURE__ */ (($) => ($.RECEIVE_REQUEST = "receive/request", $.APPROVAL = "approval", $))(lt || {});
|
|
147
146
|
const ze = J(), rt = J();
|
|
148
|
-
function
|
|
147
|
+
function Wn($, a) {
|
|
149
148
|
const o = tt(), f = De(), h = Ue();
|
|
150
149
|
et();
|
|
151
150
|
const n = Lt(), A = Mt(), t = J(!1), c = Be(), S = je(), x = Qt(), u = J(new Array()), T = J(new Array()), N = J(
|
|
@@ -206,15 +205,15 @@ function Yn($, a) {
|
|
|
206
205
|
u.value = [], T.value = [], t.value = !0;
|
|
207
206
|
try {
|
|
208
207
|
const j = await S.getPurchaseOrders(w.value);
|
|
209
|
-
u.value = j.sort((
|
|
210
|
-
const V = j.flatMap((
|
|
208
|
+
u.value = j.sort((G, ce) => ce._id.localeCompare(G._id));
|
|
209
|
+
const V = j.flatMap((G) => G.shipmentIds || []).filter(Boolean), oe = V.length > 0 ? await x.getShipmentsByIds(V) : [];
|
|
211
210
|
T.value = oe;
|
|
212
211
|
const k = await r.readCurrentLocationLastClosing(!0), _ = k == null ? void 0 : k._id;
|
|
213
212
|
_ && (d.value = Ct(_)), await h.awaitFeatureLoaded(() => h.mustUsePoTemplate) && await A.fetchTemplates();
|
|
214
|
-
const F = u.value.map((
|
|
213
|
+
const F = u.value.map((G) => {
|
|
215
214
|
var ce;
|
|
216
|
-
return ((ce =
|
|
217
|
-
}).filter((
|
|
215
|
+
return ((ce = G.request) == null ? void 0 : ce.id) ?? "";
|
|
216
|
+
}).filter((G) => G);
|
|
218
217
|
O.value = await S.readRequestByIds(F);
|
|
219
218
|
} catch {
|
|
220
219
|
c.open({
|
|
@@ -269,7 +268,7 @@ function Yn($, a) {
|
|
|
269
268
|
async function ve(j, V) {
|
|
270
269
|
const oe = Math.random().toString();
|
|
271
270
|
Q.value = oe, V ?? (V = O.value.computeFirst(
|
|
272
|
-
(
|
|
271
|
+
(G) => G.purchaseOrderId === j._id ? G : null
|
|
273
272
|
) ?? void 0);
|
|
274
273
|
const k = $ === "receive/request" ? f.currentLocation : V == null ? void 0 : V.to, _ = $ === "approval", F = {
|
|
275
274
|
poRequest: V,
|
|
@@ -282,8 +281,8 @@ function Yn($, a) {
|
|
|
282
281
|
show: !0,
|
|
283
282
|
canResubmit: !1,
|
|
284
283
|
canApprove: _,
|
|
285
|
-
"onUpdate:show"(
|
|
286
|
-
z.value.show =
|
|
284
|
+
"onUpdate:show"(G) {
|
|
285
|
+
z.value.show = G;
|
|
287
286
|
},
|
|
288
287
|
scope: $,
|
|
289
288
|
receivedMap: Xe(j) ?? {},
|
|
@@ -315,8 +314,8 @@ function Yn($, a) {
|
|
|
315
314
|
},
|
|
316
315
|
transferTo: k
|
|
317
316
|
}), await new Promise((ce) => setTimeout(ce, 1e3));
|
|
318
|
-
const
|
|
319
|
-
V === U.enum.confirmDraft && j.effectiveAt &&
|
|
317
|
+
const G = De().currentLocationDBName.startsWith("restaurant_");
|
|
318
|
+
V === U.enum.confirmDraft && j.effectiveAt && G ? c.open({
|
|
320
319
|
title: "Success",
|
|
321
320
|
message: `${oe}. The backdate will be reflected once your POS has received this change.`,
|
|
322
321
|
type: "success"
|
|
@@ -559,7 +558,7 @@ function wt() {
|
|
|
559
558
|
}
|
|
560
559
|
};
|
|
561
560
|
}
|
|
562
|
-
function
|
|
561
|
+
function Yn($, a, o) {
|
|
563
562
|
const f = De(), h = et(), n = ct(), A = wt(), { t } = ut();
|
|
564
563
|
function c(w) {
|
|
565
564
|
switch (w.status) {
|
|
@@ -984,7 +983,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
984
983
|
});
|
|
985
984
|
const A = Y(() => f.items.length <= 10);
|
|
986
985
|
return (t, c) => {
|
|
987
|
-
const S =
|
|
986
|
+
const S = H("FmTable"), x = H("FmButton"), u = H("FmForm");
|
|
988
987
|
return l(), re(u, {
|
|
989
988
|
ref_key: "formRef",
|
|
990
989
|
ref: h,
|
|
@@ -1224,7 +1223,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1224
1223
|
});
|
|
1225
1224
|
}
|
|
1226
1225
|
return (t, c) => {
|
|
1227
|
-
const S =
|
|
1226
|
+
const S = H("FmButton");
|
|
1228
1227
|
return l(), b("div", os, [
|
|
1229
1228
|
D(S, {
|
|
1230
1229
|
"prepend-icon": "sync",
|
|
@@ -1298,13 +1297,13 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1298
1297
|
e("div", is, y(n.value || "N/A"), 1)
|
|
1299
1298
|
]),
|
|
1300
1299
|
!c.isTransferBetweenOutlets && c.scope === v(lt).RECEIVE_REQUEST ? (l(), b("div", cs, [
|
|
1301
|
-
e("div", us, " NetSuite " + y((u = (x = c.purchaseOrder) == null ? void 0 : x.netSuite) != null && u.recordType ? v(ht)((N = (T = c.purchaseOrder) == null ? void 0 : T.netSuite) == null ? void 0 : N.recordType) : c.transferType === v(
|
|
1300
|
+
e("div", us, " NetSuite " + y((u = (x = c.purchaseOrder) == null ? void 0 : x.netSuite) != null && u.recordType ? v(ht)((N = (T = c.purchaseOrder) == null ? void 0 : T.netSuite) == null ? void 0 : N.recordType) : c.transferType === v(He).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
1302
1301
|
e("div", ds, [
|
|
1303
1302
|
(O = (w = c.purchaseOrder) == null ? void 0 : w.netSuite) != null && O.id ? (l(), b("span", ms, y((d = (r = c.purchaseOrder) == null ? void 0 : r.netSuite) == null ? void 0 : d.refNo) + " (" + y((g = (i = c.purchaseOrder) == null ? void 0 : i.netSuite) == null ? void 0 : g.id) + ") ", 1)) : (l(), b("span", ps, "N/A"))
|
|
1304
1303
|
])
|
|
1305
1304
|
])) : B("", !0),
|
|
1306
1305
|
!c.isTransferBetweenOutlets && h.value || c.scope === v(lt).APPROVAL ? (l(), b("div", fs, [
|
|
1307
|
-
e("div", ys, " (Request) NetSuite " + y(c.transferType === v(
|
|
1306
|
+
e("div", ys, " (Request) NetSuite " + y(c.transferType === v(He).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
1308
1307
|
e("div", vs, [
|
|
1309
1308
|
(K = (C = h.value) == null ? void 0 : C.netSuite) != null && K.id ? (l(), b("span", hs, y((X = (R = h.value) == null ? void 0 : R.netSuite) == null ? void 0 : X.refNo) + " (" + y((Q = (z = h.value) == null ? void 0 : z.netSuite) == null ? void 0 : Q.id) + ") ", 1)) : (l(), b("span", bs, "N/A"))
|
|
1310
1309
|
])
|
|
@@ -1313,7 +1312,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1313
1312
|
S[1] || (S[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
|
|
1314
1313
|
e("div", _s, y(A.value), 1)
|
|
1315
1314
|
])) : B("", !0),
|
|
1316
|
-
v(o).isEnabled && c.transferType === v(
|
|
1315
|
+
v(o).isEnabled && c.transferType === v(He).enum.transfer && !c.isTransferBetweenOutlets ? (l(), b("div", Ss, [
|
|
1317
1316
|
S[2] || (S[2] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
|
|
1318
1317
|
e("div", xs, y(t.value), 1)
|
|
1319
1318
|
])) : B("", !0)
|
|
@@ -1351,7 +1350,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1351
1350
|
), await new Promise((x) => setTimeout(x, 800)), window.open(S, "_blank");
|
|
1352
1351
|
}
|
|
1353
1352
|
return (h, n) => {
|
|
1354
|
-
const A =
|
|
1353
|
+
const A = H("FmButton");
|
|
1355
1354
|
return l(), b("div", ws, [
|
|
1356
1355
|
D(A, {
|
|
1357
1356
|
"prepend-icon": "history",
|
|
@@ -1374,7 +1373,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1374
1373
|
}, Ps = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, qs = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, Vs = { class: "w-full" }, Es = {
|
|
1375
1374
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
1376
1375
|
style: { "min-width": "130px" }
|
|
1377
|
-
}, 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-400 text-fm-color-typo-secondary" }, Ks = { class: "p-3 fm-typo-en-body-sm-600" },
|
|
1376
|
+
}, 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-400 text-fm-color-typo-secondary" }, Ks = { class: "p-3 fm-typo-en-body-sm-600" }, Hs = { key: 2 }, Gs = { key: 1 }, Ws = /* @__PURE__ */ $e({
|
|
1378
1377
|
__name: "NetSuiteLatestInfo",
|
|
1379
1378
|
props: {
|
|
1380
1379
|
netsuiteId: {},
|
|
@@ -1436,7 +1435,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1436
1435
|
});
|
|
1437
1436
|
}
|
|
1438
1437
|
return (O, r) => {
|
|
1439
|
-
const d =
|
|
1438
|
+
const d = H("FmButton"), i = H("FmLabel"), g = H("FmCircularProgress"), C = H("FmIcon"), K = H("FmDialog");
|
|
1440
1439
|
return l(), b("div", Cs, [
|
|
1441
1440
|
D(K, {
|
|
1442
1441
|
modelValue: f.value,
|
|
@@ -1460,7 +1459,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1460
1459
|
])),
|
|
1461
1460
|
default: ee(() => [
|
|
1462
1461
|
n.value ? (l(), b("div", Rs, "Loading...")) : (l(), b("div", ks, [
|
|
1463
|
-
A.value ? (l(), b("p",
|
|
1462
|
+
A.value ? (l(), b("p", Gs, "Something went wrong.")) : (l(), b(de, { key: 0 }, [
|
|
1464
1463
|
e("div", Ds, [
|
|
1465
1464
|
r[4] || (r[4] = e("h3", { class: "fm-typo-en-body-lg-600 mb-4" }, "NetSuite Order Details", -1)),
|
|
1466
1465
|
(l(!0), b(de, null, xe(S.value, (R, X) => (l(), b("div", {
|
|
@@ -1528,7 +1527,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1528
1527
|
])
|
|
1529
1528
|
])
|
|
1530
1529
|
])
|
|
1531
|
-
])) : (l(), b("div",
|
|
1530
|
+
])) : (l(), b("div", Hs, r[8] || (r[8] = [
|
|
1532
1531
|
e("p", null, "No change logs available.", -1)
|
|
1533
1532
|
])))
|
|
1534
1533
|
], 64))
|
|
@@ -1561,10 +1560,10 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1561
1560
|
scope: {}
|
|
1562
1561
|
},
|
|
1563
1562
|
setup($) {
|
|
1564
|
-
const a = $, o =
|
|
1563
|
+
const a = $, o = Gt(), f = Y(() => o.isNetSuiteEnabled);
|
|
1565
1564
|
return (h, n) => {
|
|
1566
1565
|
var t, c;
|
|
1567
|
-
const A =
|
|
1566
|
+
const A = H("FmMenuDivider");
|
|
1568
1567
|
return f.value ? (l(), b("div", Ys, [
|
|
1569
1568
|
e("div", Qs, [
|
|
1570
1569
|
n[0] || (n[0] = e("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
|
|
@@ -1698,7 +1697,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1698
1697
|
});
|
|
1699
1698
|
}
|
|
1700
1699
|
return (d, i) => {
|
|
1701
|
-
const g =
|
|
1700
|
+
const g = H("FmButton"), C = H("FmStepperField"), K = H("FmSwitch"), R = H("FmTextField"), X = H("FmDialog");
|
|
1702
1701
|
return l(), re(X, {
|
|
1703
1702
|
modelValue: h.value,
|
|
1704
1703
|
"onUpdate:modelValue": i[1] || (i[1] = (z) => h.value = z),
|
|
@@ -1714,7 +1713,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1714
1713
|
})) : B("", !0)
|
|
1715
1714
|
]),
|
|
1716
1715
|
"dialog-header": ee(() => [
|
|
1717
|
-
e("div", null, "Received on " + y(v(
|
|
1716
|
+
e("div", null, "Received on " + y(v(Ge)(n.deliveryOrder.createdAt)), 1)
|
|
1718
1717
|
]),
|
|
1719
1718
|
"dialog-footer": ee(() => [
|
|
1720
1719
|
D(g, {
|
|
@@ -1730,7 +1729,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1730
1729
|
e("div", er, [
|
|
1731
1730
|
e("div", tr, [
|
|
1732
1731
|
i[2] || (i[2] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Adjustment date", -1)),
|
|
1733
|
-
e("div", sr, y(n.deliveryOrder.adjustment ? v(
|
|
1732
|
+
e("div", sr, y(n.deliveryOrder.adjustment ? v(Ge)(new Date(v(Ye)(n.deliveryOrder.adjustment))) : "-"), 1)
|
|
1734
1733
|
]),
|
|
1735
1734
|
e("div", rr, [
|
|
1736
1735
|
i[4] || (i[4] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Received items", -1)),
|
|
@@ -1844,13 +1843,13 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1844
1843
|
}), c = je(), S = tt(), x = Ue(), u = ((oe = n.purchaseOrder) == null ? void 0 : oe.supplier.internal) != null, T = u && x.enablePOSTransferRequireFulfillment, N = x.enablePortalDeliveryOrderWrite && (n.purchaseOrder.status === se.Enum.RECEIVING || n.purchaseOrder.status === se.Enum.COMPLETE) && (u ? !T : !0), w = x.enablePurchaseOrderReceiveWithCustomCost, O = x.enableBackdateReceive, r = J({}), d = Be(), i = Y({
|
|
1845
1844
|
get() {
|
|
1846
1845
|
if (!t.createdAt) return "";
|
|
1847
|
-
const k = new Date(t.createdAt), _ = k.getFullYear(), F = String(k.getMonth() + 1).padStart(2, "0"),
|
|
1848
|
-
return `${_}-${F}-${
|
|
1846
|
+
const k = new Date(t.createdAt), _ = k.getFullYear(), F = String(k.getMonth() + 1).padStart(2, "0"), G = String(k.getDate()).padStart(2, "0");
|
|
1847
|
+
return `${_}-${F}-${G}`;
|
|
1849
1848
|
},
|
|
1850
1849
|
set(k) {
|
|
1851
1850
|
if (k) {
|
|
1852
|
-
const _ = t.createdAt ? new Date(t.createdAt) : /* @__PURE__ */ new Date(), [F,
|
|
1853
|
-
_.setFullYear(parseInt(F)), _.setMonth(parseInt(
|
|
1851
|
+
const _ = t.createdAt ? new Date(t.createdAt) : /* @__PURE__ */ new Date(), [F, G, ce] = k.split("-");
|
|
1852
|
+
_.setFullYear(parseInt(F)), _.setMonth(parseInt(G) - 1), _.setDate(parseInt(ce)), t.createdAt = _.toISOString();
|
|
1854
1853
|
}
|
|
1855
1854
|
}
|
|
1856
1855
|
}), g = Y({
|
|
@@ -1861,22 +1860,22 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1861
1860
|
},
|
|
1862
1861
|
set(k) {
|
|
1863
1862
|
if (k) {
|
|
1864
|
-
const _ = t.createdAt ? new Date(t.createdAt) : /* @__PURE__ */ new Date(), [F,
|
|
1865
|
-
_.setHours(parseInt(F)), _.setMinutes(parseInt(
|
|
1863
|
+
const _ = t.createdAt ? new Date(t.createdAt) : /* @__PURE__ */ new Date(), [F, G] = k.split(":");
|
|
1864
|
+
_.setHours(parseInt(F)), _.setMinutes(parseInt(G)), t.createdAt = _.toISOString();
|
|
1866
1865
|
}
|
|
1867
1866
|
}
|
|
1868
1867
|
}), C = Y(() => {
|
|
1869
1868
|
const k = Ye(n.purchaseOrder._id);
|
|
1870
1869
|
if (!k) return "";
|
|
1871
|
-
const _ = new Date(k), F = _.getFullYear(),
|
|
1872
|
-
return `${F}-${
|
|
1870
|
+
const _ = new Date(k), F = _.getFullYear(), G = String(_.getMonth() + 1).padStart(2, "0"), ce = String(_.getDate()).padStart(2, "0");
|
|
1871
|
+
return `${F}-${G}-${ce}`;
|
|
1873
1872
|
}), K = Y(() => {
|
|
1874
1873
|
const k = Ye(n.purchaseOrder._id);
|
|
1875
1874
|
return k ? new Date(k) : null;
|
|
1876
1875
|
}), R = Y(() => {
|
|
1877
1876
|
if (!i.value || !g.value || !K.value) return null;
|
|
1878
1877
|
if (/* @__PURE__ */ new Date(`${i.value}T${g.value}:00`) < K.value) {
|
|
1879
|
-
const _ = C.value, F = K.value.getHours(),
|
|
1878
|
+
const _ = C.value, F = K.value.getHours(), G = K.value.getMinutes(), ce = F >= 12 ? "PM" : "AM", s = F % 12 || 12, m = `${String(s).padStart(2, "0")}:${String(G).padStart(2, "0")} ${ce}`;
|
|
1880
1879
|
return `Delivery date & time cannot be earlier than order creation (${_} ${m})`;
|
|
1881
1880
|
}
|
|
1882
1881
|
return null;
|
|
@@ -1889,8 +1888,8 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1889
1888
|
}
|
|
1890
1889
|
const Q = Y(() => n.purchaseOrder.items.map((k, _) => Y({
|
|
1891
1890
|
get: () => {
|
|
1892
|
-
var
|
|
1893
|
-
const F = (
|
|
1891
|
+
var G;
|
|
1892
|
+
const F = (G = t.received[_]) == null ? void 0 : G.amount;
|
|
1894
1893
|
return F ? +be(F) : 0;
|
|
1895
1894
|
},
|
|
1896
1895
|
set: (F) => {
|
|
@@ -1916,8 +1915,8 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1916
1915
|
}
|
|
1917
1916
|
const ie = Y(() => n.purchaseOrder.items.map((k, _) => Y({
|
|
1918
1917
|
get: () => {
|
|
1919
|
-
var
|
|
1920
|
-
const F = (
|
|
1918
|
+
var G;
|
|
1919
|
+
const F = (G = t.received[_]) == null ? void 0 : G.cost;
|
|
1921
1920
|
return F ? +be(F) : 0;
|
|
1922
1921
|
},
|
|
1923
1922
|
set: (F) => {
|
|
@@ -1960,7 +1959,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1960
1959
|
});
|
|
1961
1960
|
}
|
|
1962
1961
|
return (k, _) => {
|
|
1963
|
-
const F =
|
|
1962
|
+
const F = H("FmButton"), G = H("FmDatePicker"), ce = H("FmTimePicker"), s = H("FmIcon"), m = H("FmStepperField"), P = H("FmSwitch"), M = H("FmTextField"), W = H("FmDialog");
|
|
1964
1963
|
return l(), re(W, {
|
|
1965
1964
|
modelValue: f.value,
|
|
1966
1965
|
"onUpdate:modelValue": _[4] || (_[4] = (E) => f.value = E),
|
|
@@ -2014,7 +2013,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2014
2013
|
]),
|
|
2015
2014
|
e("div", Cr, [
|
|
2016
2015
|
e("div", Rr, [
|
|
2017
|
-
D(
|
|
2016
|
+
D(G, {
|
|
2018
2017
|
modelValue: i.value,
|
|
2019
2018
|
"onUpdate:modelValue": _[0] || (_[0] = (I) => i.value = I)
|
|
2020
2019
|
}, null, 8, ["modelValue"])
|
|
@@ -2113,10 +2112,10 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2113
2112
|
}), zr = { class: "flex flex-row-reverse" }, Kr = {
|
|
2114
2113
|
key: 0,
|
|
2115
2114
|
class: "flex"
|
|
2116
|
-
},
|
|
2115
|
+
}, Hr = {
|
|
2117
2116
|
key: 1,
|
|
2118
2117
|
class: "border-t pt-6"
|
|
2119
|
-
},
|
|
2118
|
+
}, Gr = { 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 = {
|
|
2120
2119
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
2121
2120
|
style: { "min-width": "130px" }
|
|
2122
2121
|
}, 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({
|
|
@@ -2162,7 +2161,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2162
2161
|
});
|
|
2163
2162
|
}
|
|
2164
2163
|
return (x, u) => {
|
|
2165
|
-
const T =
|
|
2164
|
+
const T = H("FmButton"), N = H("FmCircularProgress"), w = H("FmIcon"), O = H("FmDialog");
|
|
2166
2165
|
return l(), b("div", zr, [
|
|
2167
2166
|
D(O, {
|
|
2168
2167
|
modelValue: f.value,
|
|
@@ -2189,8 +2188,8 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2189
2188
|
u[4] || (u[4] = e("span", null, "Change Log Loading...", -1)),
|
|
2190
2189
|
D(N, { size: "md" })
|
|
2191
2190
|
])) : B("", !0),
|
|
2192
|
-
!h.value && A.value.length > 0 ? (l(), b("div",
|
|
2193
|
-
e("h3",
|
|
2191
|
+
!h.value && A.value.length > 0 ? (l(), b("div", Hr, [
|
|
2192
|
+
e("h3", Gr, [
|
|
2194
2193
|
D(w, {
|
|
2195
2194
|
name: "error",
|
|
2196
2195
|
color: "#ff9500",
|
|
@@ -2272,7 +2271,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2272
2271
|
}, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Po = { class: "fm-typo-en-body-lg-600" }, qo = {
|
|
2273
2272
|
key: 4,
|
|
2274
2273
|
class: "flex flex-col gap-4"
|
|
2275
|
-
}, 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" },
|
|
2274
|
+
}, 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" }, Ho = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-2" }, Go = { 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 = {
|
|
2276
2275
|
key: 0,
|
|
2277
2276
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
2278
2277
|
}, Xo = { class: "py-8" }, Zo = { class: "flex justify-end gap-4 items-center" }, en = { class: "fm-typo-en-body-lg-600" }, tn = {
|
|
@@ -2296,7 +2295,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2296
2295
|
}, _n = { class: "flex-1 flex flex-col items-center" }, Sn = {
|
|
2297
2296
|
class: "py-12 flex flex-col gap-4 flex-1",
|
|
2298
2297
|
name: "delivery details"
|
|
2299
|
-
}, xn = { class: "flex flex-col gap-8" }, On = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, wn = { class: "flex flex-col gap-4" }, $n = { class: "flex gap-8 xs:flex-col" },
|
|
2298
|
+
}, xn = { class: "flex flex-col gap-8" }, On = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, wn = { class: "flex flex-col gap-4" }, $n = { class: "flex gap-8 xs:flex-col" }, Qn = /* @__PURE__ */ $e({
|
|
2300
2299
|
__name: "TransferDetails",
|
|
2301
2300
|
props: {
|
|
2302
2301
|
poRequest: {},
|
|
@@ -2323,7 +2322,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2323
2322
|
), x = wt(), { t: u } = ut(), T = Y(
|
|
2324
2323
|
() => {
|
|
2325
2324
|
var s, m, P, M;
|
|
2326
|
-
return ((m = (s = o.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : m.internal) === "restaurant" || ((M = (P = o.purchaseOrder) == null ? void 0 : P.supplier) == null ? void 0 : M.internal) === "warehouse" ?
|
|
2325
|
+
return ((m = (s = o.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : m.internal) === "restaurant" || ((M = (P = o.purchaseOrder) == null ? void 0 : P.supplier) == null ? void 0 : M.internal) === "warehouse" ? He.enum.transfer : He.enum.purchase;
|
|
2327
2326
|
}
|
|
2328
2327
|
), N = Y(() => {
|
|
2329
2328
|
var P;
|
|
@@ -2340,7 +2339,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2340
2339
|
}
|
|
2341
2340
|
}
|
|
2342
2341
|
return m;
|
|
2343
|
-
}), w = J(!1), O = J(""), r = J(!0), d = je(), i =
|
|
2342
|
+
}), w = J(!1), O = J(""), r = J(!0), d = je(), i = Ht(d.getWorkflowConfig), g = Ot(), C = [
|
|
2344
2343
|
U.enum.receiveStock,
|
|
2345
2344
|
U.enum.processRequest,
|
|
2346
2345
|
U.enum.closeRequest
|
|
@@ -2578,12 +2577,12 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2578
2577
|
return {
|
|
2579
2578
|
header: "Received",
|
|
2580
2579
|
deliveryOrder: p,
|
|
2581
|
-
date:
|
|
2580
|
+
date: Ge(new Date(p.createdAt)),
|
|
2582
2581
|
info: [
|
|
2583
2582
|
{
|
|
2584
2583
|
label: "Adjustment date",
|
|
2585
2584
|
values: [
|
|
2586
|
-
p.adjustment ?
|
|
2585
|
+
p.adjustment ? Ge(new Date(Ye(p.adjustment))) : "-"
|
|
2587
2586
|
]
|
|
2588
2587
|
},
|
|
2589
2588
|
{
|
|
@@ -2686,7 +2685,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2686
2685
|
const Z = m.findIndex((q) => q.id === p.id);
|
|
2687
2686
|
return {
|
|
2688
2687
|
header: "Fulfillment",
|
|
2689
|
-
date:
|
|
2688
|
+
date: Ge(new Date(p.createdAt)),
|
|
2690
2689
|
info: [
|
|
2691
2690
|
{
|
|
2692
2691
|
label: "Sequence",
|
|
@@ -2824,7 +2823,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2824
2823
|
newAmount: p
|
|
2825
2824
|
}), M;
|
|
2826
2825
|
}, /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2827
|
-
}),
|
|
2826
|
+
}), G = (s) => {
|
|
2828
2827
|
var P, M;
|
|
2829
2828
|
const m = F.value;
|
|
2830
2829
|
return ((P = o.purchaseOrder) == null ? void 0 : P.version) === Pe.enum[2] ? m.has(s.id) : m.has((M = s.sku) == null ? void 0 : M.code);
|
|
@@ -2834,7 +2833,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2834
2833
|
return ((P = o.purchaseOrder) == null ? void 0 : P.version) === Pe.enum[2] ? m.get(s.id) : m.get((M = s.sku) == null ? void 0 : M.code);
|
|
2835
2834
|
};
|
|
2836
2835
|
return (s, m) => {
|
|
2837
|
-
const P =
|
|
2836
|
+
const P = H("FmButton"), M = H("FmButtonGroup"), W = H("FmChip"), E = H("FmIcon"), I = H("FmMenuDivider"), p = H("FmCard"), Z = H("FmTooltip"), ae = H("FmSpacer"), ne = H("FmSideSheet");
|
|
2838
2837
|
return l(), re(ne, {
|
|
2839
2838
|
modelValue: v(R),
|
|
2840
2839
|
"onUpdate:modelValue": m[8] || (m[8] = (q) => Dt(R) ? R.value = q : null),
|
|
@@ -3006,7 +3005,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3006
3005
|
e("div", zo, [
|
|
3007
3006
|
e("div", Ko, [
|
|
3008
3007
|
ke(y(te.name) + " ", 1),
|
|
3009
|
-
|
|
3008
|
+
G(te) ? (l(), re(Z, {
|
|
3010
3009
|
key: 0,
|
|
3011
3010
|
variant: "rich",
|
|
3012
3011
|
placement: "top",
|
|
@@ -3015,7 +3014,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3015
3014
|
content: ee(() => {
|
|
3016
3015
|
var he, _e;
|
|
3017
3016
|
return [
|
|
3018
|
-
e("div",
|
|
3017
|
+
e("div", Ho, [
|
|
3019
3018
|
m[9] || (m[9] = e("div", { class: "font-semibold" }, "Submission changes", -1)),
|
|
3020
3019
|
e("div", null, "Original Amount: " + y((he = ce(te)) == null ? void 0 : he.originalAmount), 1),
|
|
3021
3020
|
e("div", null, " New Amount: " + y((_e = ce(te)) == null ? void 0 : _e.newAmount), 1)
|
|
@@ -3032,7 +3031,7 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3032
3031
|
_: 2
|
|
3033
3032
|
}, 1024)) : B("", !0)
|
|
3034
3033
|
]),
|
|
3035
|
-
e("div",
|
|
3034
|
+
e("div", Go, [
|
|
3036
3035
|
e("span", {
|
|
3037
3036
|
innerHTML: k(te)
|
|
3038
3037
|
}, null, 8, Wo)
|
|
@@ -3235,8 +3234,8 @@ const es = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3235
3234
|
});
|
|
3236
3235
|
export {
|
|
3237
3236
|
lt as P,
|
|
3238
|
-
|
|
3239
|
-
|
|
3237
|
+
Qn as _,
|
|
3238
|
+
Yn as a,
|
|
3240
3239
|
Xt as g,
|
|
3241
|
-
|
|
3240
|
+
Wn as u
|
|
3242
3241
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { defineComponent as ae, onMounted as Fe, computed as N, ref as H, watch as Ce, inject as ot, resolveComponent as V, openBlock as S, createElementBlock as L, createElementVNode as e, createVNode as c, withCtx as B, renderSlot as xe, withDirectives as qe, normalizeClass as re, vModelText as Pe, reactive as st, h as Q, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as ke, renderList as Qe, createBlock as ne, mergeProps as Ye, createTextVNode as le, mergeModels as Le, useModel as nt, isRef as He, Teleport as lt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
2
|
import { u as it, _ as ut } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-
|
|
4
|
+
import { f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-C8Hzskg0.js";
|
|
5
5
|
import { R as Ee } from "./row-action.enum-BcW_L_nE.js";
|
|
6
|
-
import { a as We, s as ct, t as X, u as Ge, v as ft, k as ye } from "./app-
|
|
7
|
-
import { _ as yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as We, s as ct, t as X, u as Ge, v as ft, k as ye } from "./app-BAVBNKKH.js";
|
|
7
|
+
import { _ as yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUIrR73y.js";
|
|
8
8
|
import { components as ue, useSnackbar as vt, useProxiedModel as Ke, useBreakpoints as bt } from "@feedmepos/ui-library";
|
|
9
9
|
import { defineStore as gt, storeToRefs as ze } from "pinia";
|
|
10
10
|
import { F as de } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import {
|
|
12
|
-
import { d as
|
|
13
|
-
import {
|
|
14
|
-
import { F as
|
|
15
|
-
import { u as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
11
|
+
import { I as ht, a as _t, R as we, A as Te, M as xt } from "./rules-CzPUVxD_.js";
|
|
12
|
+
import { u as he, t as je, b as kt, n as wt, a as se, g as be, c as ve, d as Tt } from "./number-Cof88Fjz.js";
|
|
13
|
+
import { d as Ze } from "./defineDeepModel-B1j_kSRA.js";
|
|
14
|
+
import { _ as Ft, F as Ct, a as It, b as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DLqUnROc.js";
|
|
15
|
+
import { F as _e, u as ge } from "./feature-DEryk-Cv.js";
|
|
16
|
+
import { u as Je } from "./netsuite-Bbxz8tiD.js";
|
|
17
|
+
import { u as $t } from "./supplier-wQYh275s.js";
|
|
18
|
+
import { u as St } from "./use-ingredient-select-dialog-DH-mXl8H.js";
|
|
18
19
|
import { F as ee, _ as Xe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
19
|
-
import { u as Ot } from "./use-template-enabled-locations-2-
|
|
20
|
-
import { u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { u as At } from "./purchase-order-template-
|
|
22
|
-
import { f as Rt } from "./format-time-from-id-
|
|
23
|
-
import { f as Bt } from "./date2-
|
|
20
|
+
import { u as Ot } from "./use-template-enabled-locations-2-DRk9TskI.js";
|
|
21
|
+
import { u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CWjtQajS.js";
|
|
22
|
+
import { u as At } from "./purchase-order-template-B-sXEbRE.js";
|
|
23
|
+
import { f as Rt } from "./format-time-from-id-C-mbWMLS.js";
|
|
24
|
+
import { f as Bt } from "./date2-CgwRU403.js";
|
|
24
25
|
const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { class: "flex-1" }, Lt = { class: "flex items-center" }, Nt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
25
26
|
__name: "FmMinMaxInput",
|
|
26
27
|
props: {
|
|
@@ -72,8 +73,8 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { c
|
|
|
72
73
|
return Math.max((p == null ? void 0 : p.precision) ?? 0, (b == null ? void 0 : b.precision) ?? 0, h.precision ?? 0);
|
|
73
74
|
}), s = (p) => {
|
|
74
75
|
if (!p) return "";
|
|
75
|
-
const b =
|
|
76
|
-
return
|
|
76
|
+
const b = kt(p), w = r.value, i = he(b, w);
|
|
77
|
+
return wt(
|
|
77
78
|
+se(i),
|
|
78
79
|
i.precision
|
|
79
80
|
);
|
|
@@ -182,7 +183,7 @@ function Qt(f, h) {
|
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
185
|
function Yt(f) {
|
|
185
|
-
const h =
|
|
186
|
+
const h = _t(f), y = se(f);
|
|
186
187
|
return function(r) {
|
|
187
188
|
const s = !(r != null && r.min) || h(r.min) === !0, u = !(r != null && r.max) || h(r.max) === !0;
|
|
188
189
|
return !s && !u ? `Min & max must be a multiple of ${y}` : s ? u ? !0 : `Max must be a multiple of ${y}` : `Min must be a multiple of ${y}`;
|
|
@@ -415,7 +416,7 @@ function Ht(f, h = {}) {
|
|
|
415
416
|
amount: 1,
|
|
416
417
|
precision: be(o.sku.unit, o.measurement)
|
|
417
418
|
}),
|
|
418
|
-
|
|
419
|
+
xt(o.sku.unit, o.measurement)
|
|
419
420
|
]
|
|
420
421
|
});
|
|
421
422
|
},
|
|
@@ -1463,7 +1464,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1463
1464
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
1464
1465
|
};
|
|
1465
1466
|
}
|
|
1466
|
-
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" },
|
|
1467
|
+
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, js = /* @__PURE__ */ ae({
|
|
1467
1468
|
__name: "TransferTemplateView",
|
|
1468
1469
|
setup(f) {
|
|
1469
1470
|
const { t: h } = me(), { createTemplate: y, viewTemplate: a, importTemplates: r, exportTemplates: s } = Ne(), { templateDialogProps: u, templateDetailsProps: _ } = ze(Ne()), M = pt(), { loading: v, templates: o } = ze(M), d = H(!1), m = it(), k = Ge(), { breakpoints: T } = bt();
|
|
@@ -1611,5 +1612,5 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1611
1612
|
}
|
|
1612
1613
|
});
|
|
1613
1614
|
export {
|
|
1614
|
-
|
|
1615
|
+
js as default
|
|
1615
1616
|
};
|