@feedmepos/mf-inventory-portal 1.2.65 → 1.2.66-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-DEmYZZ1B.js → App-D7YEj-Dq.js} +82 -78
- package/dist/{ApprovalView-BsjUVJws.js → ApprovalView-ColHOrfB.js} +5 -5
- package/dist/{BindingsDialog-D3imHH3Z.js → BindingsDialog-C150vSNc.js} +5 -5
- package/dist/{BindingsPicker-DO4gQPN1.js → BindingsPicker-DzgCqIvK.js} +3 -3
- package/dist/{BindingsTable-D7xNfttj.js → BindingsTable-rCxma9yH.js} +5 -5
- package/dist/{ClosingDraftView-CtnBSmw8.js → ClosingDraftView-Di4SC8Ba.js} +225 -223
- package/dist/ClosingHistoryView-D7U8f0_W.js +1147 -0
- package/dist/{ClosingTemplateView-CMwSS9rh.js → ClosingTemplateView-B74-KHne.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-BjmSS9su.js → DeliveryOrderPrintPreview-CLWrZHRz.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-PaJxAwfq.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsZHmmJk.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiVdVYaT.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B3KzU-nc.js} +2 -2
- package/dist/{FmMultiselectDialog-CbyZNNG-.js → FmMultiselectDialog-CaqfXI51.js} +1 -1
- package/dist/{FmMultiselectDialog-D0nX5qsz.js → FmMultiselectDialog-uzanqsJE.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CD_YyePH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bvr1CV0g.js} +23 -22
- package/dist/{ImportView-aJ4TFKPM.js → ImportView-CKA8AUFx.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CuR9NfYU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BRQ82pXx.js} +1 -1
- package/dist/{IngredientGroupView-DUEG260s.js → IngredientGroupView-DGSkK-cR.js} +5 -5
- package/dist/{IngredientsView-DVMyMVrC.js → IngredientsView-BVMx8Cw0.js} +25 -24
- package/dist/{IntegrationView-fPxyilFi.js → IntegrationView-Cag3jdd3.js} +18 -17
- package/dist/{InventoryBindingForm-B3UkZuh1.js → InventoryBindingForm-BtaWRWIr.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BKIPodzM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DP6TMTY3.js} +17 -16
- package/dist/{InventoryBindingSummary-BouYW6hE.js → InventoryBindingSummary-D03_qf_U.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DNKT61XF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-LBsuWChb.js} +5 -5
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DoYWx15l.js +93 -0
- package/dist/{PublishView-DOqZQ6EC.js → PublishView-CsxpT2bJ.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-Ce5gAr4m.js → PurchaseOrderPrintPreview-DNMz4ujs.js} +11 -11
- package/dist/{ReceiveRequestView-Cc64UK7B.js → ReceiveRequestView-DgV6D94u.js} +144 -142
- package/dist/RecipeView-CxdmHDdY.js +1690 -0
- package/dist/StockView-a0Gase_O.js +2395 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DET2fkbz.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CWIROMzg.js} +1 -1
- package/dist/{SupplierView-DHN7YeKF.js → SupplierView-DL14m94P.js} +20 -19
- package/dist/{SurchargeView-HP1FTw9C.js → SurchargeView-DZ-4jRuM.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dmc1JYgH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-lR0rkDAn.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-B7oS8hTd.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-foY1WHix.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DHV6OqXy.js → TransferDetails.vue_vue_type_script_setup_true_lang-m-YUty01.js} +131 -130
- package/dist/{TransferTemplateView-EXdlE0KB.js → TransferTemplateView-CYNUq8mF.js} +22 -21
- package/dist/UnitCostHistoryView-ui6oT5R8.js +651 -0
- package/dist/UnitDisplayControl.vue_vue_type_script_setup_true_lang-C5ho7UeP.js +137 -0
- package/dist/{UnitView-_-DIG18g.js → UnitView-BpKmGKmt.js} +11 -9
- package/dist/{WarehouseView-WMQ_n-_f.js → WarehouseView-B6R4SQdt.js} +5 -5
- package/dist/{WastageTemplateView-C-wRbiNy.js → WastageTemplateView-Dc8K5oy9.js} +14 -14
- package/dist/api/closing.d.ts +2 -0
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock.d.ts +5 -1
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-_wLPJvlC.js → app-ClBmHSAd.js} +8983 -7890
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-B0HNCf_j.js → closing-template-D3ll-DmL.js} +1 -1
- 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-BmRujNQL.js → date2-B04oAq4m.js} +1 -1
- package/dist/{dayjs.min-CXh48dHa.js → dayjs.min-BK1YULDe.js} +16 -16
- package/dist/decimal-C5uiNe8X.js +99 -0
- package/dist/{defineDeepModel-TkDG2QNy.js → defineDeepModel-BaqD0Vf4.js} +1 -1
- package/dist/{duplicate-template-BzBR_5Cy.js → duplicate-template-CL_VMuy6.js} +1 -1
- package/dist/export-DuYgQUek.js +25 -0
- package/dist/{feature-BAPc_0tE.js → feature-BJaM6Q_V.js} +94 -89
- package/dist/{format-time-from-id-Ch8lz0j3.js → format-time-from-id-Bi1h_3wY.js} +1 -1
- package/dist/{format-unit-display-pxNgyWy1.js → format-unit-display-BWLDa0Nc.js} +16 -15
- package/dist/{import-export.helper-COYebamd.js → import-export.helper-Wpqvmiy3.js} +16 -15
- package/dist/{index-C0t1NFHp.js → index-BNhsGU5L.js} +1 -1
- package/dist/{index-DZJznlrX.js → index-BpfI5lAx.js} +3 -3
- package/dist/{index--_LLyzOc.js → index-CzyVBwGH.js} +1471 -1412
- package/dist/{lodash-AonP5yrI.js → lodash-UDA7PXDd.js} +1 -1
- package/dist/{netsuite-DxqPjEqv.js → netsuite-BGoVaPpB.js} +92 -92
- package/dist/number-BrjYTvCG.js +138 -0
- package/dist/{purchase-order-template-C0aR-o7E.js → purchase-order-template-C4g22Uzt.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-Cls3M_gA.js +98 -0
- package/dist/stock-BouVYqdU.js +75 -0
- package/dist/{stock-ClNth1E-.js → stock-C7tIRrXX.js} +28 -27
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +120 -30
- package/dist/{supplier-B8TSd8y3.js → supplier-DczTUpJg.js} +2 -2
- package/dist/{surcharge-CA0pCS0I.js → surcharge-Cn0mnlxa.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dvcgd9yd.js → use-ingredient-select-dialog-BXcMkvwh.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CzthGApH.js → use-inventory-binding-dialog-xAzicEAt.js} +2 -2
- package/dist/{use-template-enabled-locations-2-DKXN5g18.js → use-template-enabled-locations-2-DfwfBvAI.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -12
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +204 -36
- package/dist/views/closing-history/ClosingDetailDialog.vue.d.ts +23 -0
- 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 +170 -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 +5 -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/components/dialog/SnapshotRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/recalculationUtils.d.ts +16 -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-CEulw4I5.js → vue-i18n-B7BiaQqD.js} +404 -404
- package/dist/{xlsx-BtS4E6KT.js → xlsx-JP__vSrM.js} +1 -1
- package/dist/{xlsx.util-DJI2rWqR.js → xlsx.util-CsyLStS7.js} +1 -1
- package/package.json +1 -1
- package/dist/ClosingHistoryView-DYL41vEL.js +0 -447
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqbGMohU.js +0 -116
- package/dist/RecipeView-BFizdFr2.js +0 -646
- package/dist/StockView-BrUbNS1w.js +0 -2520
- package/dist/rules-RTkxkzJH.js +0 -327
- package/dist/stock-DPU3FeY4.js +0 -75
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { computed as q, h as Y, defineComponent as ne, openBlock as b, createElementBlock as T, Fragment as re, renderList as fe, createElementVNode as t, toDisplayString as $, unref as e, resolveComponent as O, createVNode as m, withCtx as M, createCommentVNode as K, ref as U, createBlock as oe, watch as he, normalizeClass as W, normalizeStyle as vt, onMounted as He, createTextVNode as ke, reactive as Vt, mergeProps as je, isRef as ge, createSlots as Pt, Teleport as Rt, normalizeProps as Ot, guardReactiveProps as At } from "vue";
|
|
2
|
-
import { t as de, s as ce, f as yt,
|
|
3
|
-
import { i as dt, _ as Bt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as zt, a as Lt, P as Le, b as jt, _ as Ht, g as Qt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
6
|
-
import { _ as gt, u as
|
|
7
|
-
import { d as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
2
|
+
import { t as de, s as ce, f as yt, O as Mt, D as Et, u as Qe, a as Ye, P as qt, Q as Ut, v as Nt, y as bt, m as Ae } from "./app-ClBmHSAd.js";
|
|
3
|
+
import { i as dt, _ as Bt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B3KzU-nc.js";
|
|
4
|
+
import { u as zt, a as Lt, P as Le, b as jt, _ as Ht, g as Qt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-m-YUty01.js";
|
|
5
|
+
import { a as _e, d as Ce, c as Yt } from "./number-BrjYTvCG.js";
|
|
6
|
+
import { _ as gt, u as Kt, i as Xt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DoYWx15l.js";
|
|
7
|
+
import { d as ct } from "./dayjs.min-BK1YULDe.js";
|
|
8
|
+
import { e as Zt } from "./export-DuYgQUek.js";
|
|
9
|
+
import { u as Wt } from "./useTabStorage-BkIVScW_.js";
|
|
10
|
+
import { u as Jt, _ as Gt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-mvRR4CrP.js";
|
|
11
|
+
import { useBreakpoints as Ke, components as pe, FmButtonVariant as eo, useSnackbar as Se, useDialog as to, useProxiedModel as _t } from "@feedmepos/ui-library";
|
|
11
12
|
import { F as Ie } from "./form-mode.enum-BKiNVH6A.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { u as
|
|
13
|
+
import { R as De, A as Ee, M as oo, c as mt, B as so } from "./rules-Cls3M_gA.js";
|
|
14
|
+
import { _ as ao, a as ro, b as lo, F as no } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bvr1CV0g.js";
|
|
15
|
+
import { F as Me, u as Xe, P as io } from "./feature-BJaM6Q_V.js";
|
|
16
|
+
import { u as qe } from "./netsuite-BGoVaPpB.js";
|
|
15
17
|
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
16
|
-
import { u as uo } from "./surcharge-
|
|
17
|
-
import { a as co } from "./FmMultiselectDialog-
|
|
18
|
+
import { u as uo } from "./surcharge-Cn0mnlxa.js";
|
|
19
|
+
import { a as co } from "./FmMultiselectDialog-uzanqsJE.js";
|
|
18
20
|
import { F as me, _ as ht } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
19
|
-
import { u as xt } from "./supplier-
|
|
20
|
-
import { d as Ze, e as mo, g as po, b as fo } from "./date2-
|
|
21
|
-
import { u as vo, _ as yo } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { u as xt } from "./supplier-DczTUpJg.js";
|
|
22
|
+
import { d as Ze, e as mo, g as po, b as fo } from "./date2-B04oAq4m.js";
|
|
23
|
+
import { u as vo, _ as yo } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsZHmmJk.js";
|
|
22
24
|
import { _ as bo } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
23
|
-
import { a as kt } from "./format-unit-display-
|
|
24
|
-
import { u as We } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
25
|
-
import { u as go } from "./vue-i18n-
|
|
26
|
-
import { s as _o, r as ho } from "./xlsx.util-
|
|
25
|
+
import { a as kt } from "./format-unit-display-BWLDa0Nc.js";
|
|
26
|
+
import { u as We } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-lR0rkDAn.js";
|
|
27
|
+
import { u as go } from "./vue-i18n-B7BiaQqD.js";
|
|
28
|
+
import { s as _o, r as ho } from "./xlsx.util-CsyLStS7.js";
|
|
27
29
|
import { F as xo } from "./FmDroppableField-J0xUsOTV.js";
|
|
28
|
-
import { d as ko } from "./defineDeepModel-
|
|
29
|
-
import { P as Co, J as
|
|
30
|
+
import { d as ko } from "./defineDeepModel-BaqD0Vf4.js";
|
|
31
|
+
import { P as Co, J as So } from "./app-DiX-EfV6.js";
|
|
30
32
|
var te = /* @__PURE__ */ ((y) => (y.Code = "Code", y.Name = "Name", y.TemplateName = "TemplateName", y.Amount = "Amount", y.Cost = "Cost", y.TotalCost = "TotalCost", y.Delete = "Delete", y))(te || {});
|
|
31
|
-
const
|
|
33
|
+
const wo = () => Y(
|
|
32
34
|
gt,
|
|
33
35
|
{
|
|
34
36
|
zIndex: 50,
|
|
@@ -49,7 +51,7 @@ function Fo(y) {
|
|
|
49
51
|
)) == null ? void 0 : F.defaultCost) == null ? void 0 : c.costPerUnit) == null ? void 0 : f.amount;
|
|
50
52
|
return (((A = (I = i.defaultCost) == null ? void 0 : I.costPerUnit) == null ? void 0 : A.amount) ?? o) != null;
|
|
51
53
|
}
|
|
52
|
-
function
|
|
54
|
+
function w(i) {
|
|
53
55
|
if (!n(i.sku._id) && h(i.sku)) {
|
|
54
56
|
const { cost: o, supplierOverrideCost: a } = Me.calculateDefaultCost({
|
|
55
57
|
item: i.sku,
|
|
@@ -225,7 +227,7 @@ function Fo(y) {
|
|
|
225
227
|
},
|
|
226
228
|
{
|
|
227
229
|
id: "Cost",
|
|
228
|
-
header:
|
|
230
|
+
header: wo,
|
|
229
231
|
size: 180,
|
|
230
232
|
cell(i) {
|
|
231
233
|
const o = i.row.original, a = h(o.sku), r = d.value.xs || d.value.sm;
|
|
@@ -246,7 +248,7 @@ function Fo(y) {
|
|
|
246
248
|
[
|
|
247
249
|
u.enablePurchaseOrderCostEdit ? Y(pe.FmButton, {
|
|
248
250
|
prependIcon: "edit",
|
|
249
|
-
variant:
|
|
251
|
+
variant: eo.Tertiary,
|
|
250
252
|
disabled: y.disabled,
|
|
251
253
|
onClick() {
|
|
252
254
|
y.updateItem(
|
|
@@ -320,7 +322,7 @@ function Fo(y) {
|
|
|
320
322
|
!0
|
|
321
323
|
);
|
|
322
324
|
},
|
|
323
|
-
rules: [Ee(0),
|
|
325
|
+
rules: [Ee(0), oo(2)]
|
|
324
326
|
},
|
|
325
327
|
{
|
|
326
328
|
prepend() {
|
|
@@ -394,18 +396,18 @@ function Fo(y) {
|
|
|
394
396
|
headerClass: ""
|
|
395
397
|
}
|
|
396
398
|
}
|
|
397
|
-
],
|
|
399
|
+
], S = q(() => u.enableTotalCost && y.transferType === de.enum.purchase ? V : V.filter(
|
|
398
400
|
(i) => i.id !== "Cost"
|
|
399
401
|
/* Cost */
|
|
400
402
|
)), v = q(() => ({
|
|
401
403
|
...y.items.reduce((o, a) => {
|
|
402
|
-
const { cost: r } =
|
|
404
|
+
const { cost: r } = w(a);
|
|
403
405
|
return Me.add([o, r]);
|
|
404
406
|
}, Me.reset()),
|
|
405
|
-
currency: y.items[0] ?
|
|
407
|
+
currency: y.items[0] ? w(y.items[0]).cost.currency : ce()
|
|
406
408
|
}));
|
|
407
409
|
return {
|
|
408
|
-
columnDefs:
|
|
410
|
+
columnDefs: S,
|
|
409
411
|
totalCost: v
|
|
410
412
|
};
|
|
411
413
|
}
|
|
@@ -428,22 +430,22 @@ const $o = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
428
430
|
}, [
|
|
429
431
|
t("div", Io, $((h = d(n)) == null ? void 0 : h.name), 1),
|
|
430
432
|
t("div", Do, [
|
|
431
|
-
(b(!0), T(re, null, fe(u.prices[n].slice(0, 3), (
|
|
433
|
+
(b(!0), T(re, null, fe(u.prices[n].slice(0, 3), (w) => {
|
|
432
434
|
var V;
|
|
433
435
|
return b(), T("div", {
|
|
434
|
-
key:
|
|
436
|
+
key: w.date,
|
|
435
437
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
436
438
|
}, [
|
|
437
439
|
t("div", To, [
|
|
438
|
-
t("span", null, $(
|
|
440
|
+
t("span", null, $(w.totalCost ? e(Ce)(w.totalCost) : "No data"), 1),
|
|
439
441
|
g[0] || (g[0] = t("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
440
|
-
t("span", null, $(e(_e)(
|
|
441
|
-
t("span", null, $(((V =
|
|
442
|
+
t("span", null, $(e(_e)(w.totalUnit, !1)), 1),
|
|
443
|
+
t("span", null, $(((V = w.measurement) == null ? void 0 : V.abbrev) ?? w.unit.abbrev), 1)
|
|
442
444
|
]),
|
|
443
445
|
t("div", Vo, [
|
|
444
|
-
t("span", null, "(#" + $(
|
|
446
|
+
t("span", null, "(#" + $(w.seqNumber) + ")", 1),
|
|
445
447
|
g[1] || (g[1] = t("span", null, $(" "), -1)),
|
|
446
|
-
t("span", null, $(e(Ze)(new Date(
|
|
448
|
+
t("span", null, $(e(Ze)(new Date(w.date))), 1)
|
|
447
449
|
])
|
|
448
450
|
]);
|
|
449
451
|
}), 128))
|
|
@@ -466,7 +468,7 @@ const $o = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
466
468
|
setup(y) {
|
|
467
469
|
const { t: x } = ye();
|
|
468
470
|
return (d, u) => {
|
|
469
|
-
var h,
|
|
471
|
+
var h, w, V, S, v, i, o, a, r, s, _, F, c, f, I, A, X, z, Z, N, B, P, D, E, L, J, se;
|
|
470
472
|
const g = O("FmLabel"), n = O("FmSpacer");
|
|
471
473
|
return b(), T("div", Po, [
|
|
472
474
|
t("div", Ro, [
|
|
@@ -476,8 +478,8 @@ const $o = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
476
478
|
]),
|
|
477
479
|
t("div", null, [
|
|
478
480
|
m(e(me), {
|
|
479
|
-
render: (V = (
|
|
480
|
-
props: (v = (
|
|
481
|
+
render: (V = (w = (h = d.cellByColId.Delete) == null ? void 0 : h.column) == null ? void 0 : w.columnDef) == null ? void 0 : V.cell,
|
|
482
|
+
props: (v = (S = d.cellByColId.Delete) == null ? void 0 : S.getContext) == null ? void 0 : v.call(S)
|
|
481
483
|
}, null, 8, ["render", "props"])
|
|
482
484
|
])
|
|
483
485
|
]),
|
|
@@ -632,8 +634,8 @@ const Ho = {
|
|
|
632
634
|
},
|
|
633
635
|
emits: ["update:poItems", "update:forecastAmounts", "update:predictionId"],
|
|
634
636
|
setup(y, { emit: x }) {
|
|
635
|
-
const d = y, u = x, g = U(!1), n = U(7), h =
|
|
636
|
-
function
|
|
637
|
+
const d = y, u = x, g = U(!1), n = U(7), h = Kt(), w = Se(), { t: V } = ye();
|
|
638
|
+
function S(a, r, s) {
|
|
637
639
|
return r != null && a < r && (a = r), s != null && a > s && (a = s), a;
|
|
638
640
|
}
|
|
639
641
|
function v(a) {
|
|
@@ -652,7 +654,7 @@ const Ho = {
|
|
|
652
654
|
if (F) {
|
|
653
655
|
const I = F.conversion.amount;
|
|
654
656
|
let A = Math.ceil(_ / I);
|
|
655
|
-
return A =
|
|
657
|
+
return A = S(A, c, f), {
|
|
656
658
|
sku: a,
|
|
657
659
|
code: r,
|
|
658
660
|
name: s,
|
|
@@ -660,7 +662,7 @@ const Ho = {
|
|
|
660
662
|
measurement: F
|
|
661
663
|
};
|
|
662
664
|
} else {
|
|
663
|
-
const I = Math.ceil(
|
|
665
|
+
const I = Math.ceil(S(_, c, f));
|
|
664
666
|
return {
|
|
665
667
|
sku: a,
|
|
666
668
|
code: r,
|
|
@@ -671,9 +673,9 @@ const Ho = {
|
|
|
671
673
|
}
|
|
672
674
|
}
|
|
673
675
|
async function o() {
|
|
674
|
-
const a =
|
|
676
|
+
const a = mt(0)(n.value);
|
|
675
677
|
if (typeof a == "string") {
|
|
676
|
-
|
|
678
|
+
w.open({
|
|
677
679
|
message: a,
|
|
678
680
|
type: "error"
|
|
679
681
|
});
|
|
@@ -682,7 +684,7 @@ const Ho = {
|
|
|
682
684
|
g.value = !1, await h.readPurchaseOrder(n.value, d.templateId);
|
|
683
685
|
const r = h.purchaseOrderForecast.skus;
|
|
684
686
|
if (r.length === 0) {
|
|
685
|
-
|
|
687
|
+
w.open({
|
|
686
688
|
message: V("inventory.transfer.form.items.forecastStock.notAvailable"),
|
|
687
689
|
type: "info"
|
|
688
690
|
}), u("update:predictionId", h.purchaseOrderForecast.prediction_id);
|
|
@@ -770,7 +772,7 @@ const Ho = {
|
|
|
770
772
|
modelValue: n.value,
|
|
771
773
|
"onUpdate:modelValue": r[1] || (r[1] = (f) => n.value = f),
|
|
772
774
|
label: e(V)("inventory.transfer.form.items.forecastStock.days"),
|
|
773
|
-
rules: [e(
|
|
775
|
+
rules: [e(mt)(0)]
|
|
774
776
|
}, {
|
|
775
777
|
"helper-text": M(() => [
|
|
776
778
|
t("div", ss, [
|
|
@@ -804,7 +806,7 @@ const Ho = {
|
|
|
804
806
|
}
|
|
805
807
|
});
|
|
806
808
|
function ns() {
|
|
807
|
-
const y =
|
|
809
|
+
const y = Se(), x = We(), d = U(!1);
|
|
808
810
|
he(d, (h) => {
|
|
809
811
|
h && (g.value = !0, u().finally(() => {
|
|
810
812
|
g.value = !1;
|
|
@@ -812,7 +814,7 @@ function ns() {
|
|
|
812
814
|
});
|
|
813
815
|
async function u() {
|
|
814
816
|
try {
|
|
815
|
-
const { startDate: h, endDate:
|
|
817
|
+
const { startDate: h, endDate: w } = po(6), v = (await x.getPurchaseOrders({ start: h, end: w })).filter(
|
|
816
818
|
(i) => {
|
|
817
819
|
var o, a;
|
|
818
820
|
return i.status === Mt.enum.COMPLETE && ((o = i.supplier) == null ? void 0 : o.internal) !== "warehouse" && ((a = i.supplier) == null ? void 0 : a.internal) !== "restaurant";
|
|
@@ -871,13 +873,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
871
873
|
}])
|
|
872
874
|
}, [
|
|
873
875
|
(b(!0), T(re, null, fe(d.row.getVisibleCells(), (h) => {
|
|
874
|
-
var
|
|
876
|
+
var w, V, S, v;
|
|
875
877
|
return b(), T("td", {
|
|
876
878
|
key: h.id,
|
|
877
|
-
class: W(["h-[56px] text-fm-color-typo-primary", ((
|
|
879
|
+
class: W(["h-[56px] text-fm-color-typo-primary", ((w = x(h)) == null ? void 0 : w.cellClass) ?? "px-16"]),
|
|
878
880
|
style: vt({
|
|
879
881
|
width: (V = x(h)) == null ? void 0 : V.width,
|
|
880
|
-
maxWidth: (
|
|
882
|
+
maxWidth: (S = x(h)) == null ? void 0 : S.maxWidth,
|
|
881
883
|
textAlign: ((v = x(h)) == null ? void 0 : v.textAlign) ?? "left"
|
|
882
884
|
})
|
|
883
885
|
}, [
|
|
@@ -921,14 +923,14 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
921
923
|
},
|
|
922
924
|
emits: ["netsuite:ready"],
|
|
923
925
|
setup(y, { emit: x }) {
|
|
924
|
-
const d = qe(), u = y, g = x, { t: n } = go(), h = U(!1),
|
|
926
|
+
const d = qe(), u = y, g = x, { t: n } = go(), h = U(!1), w = U();
|
|
925
927
|
function V() {
|
|
926
928
|
var a, r, s, _;
|
|
927
929
|
if (!u.supplier) return;
|
|
928
|
-
u.supplier.internal ?
|
|
930
|
+
u.supplier.internal ? w.value = d.getNetSuiteLocation(
|
|
929
931
|
`${u.supplier.internal}_${u.supplier._id}`
|
|
930
|
-
) :
|
|
931
|
-
const i = u.supplier.internal ? d.getLocationSubsidiary((a =
|
|
932
|
+
) : w.value = d.getNetSuiteVendor(u.supplier._id);
|
|
933
|
+
const i = u.supplier.internal ? d.getLocationSubsidiary((a = w.value) == null ? void 0 : a.netSuiteId).id : (r = w.value) == null ? void 0 : r.subsidiaryId, o = u.supplier.internal ? (s = d.currentLocationSubsidiary()) == null ? void 0 : s.id : (_ = d.currentVendorSubsidiary(u.supplier._id)) == null ? void 0 : _.id;
|
|
932
934
|
h.value = !(!d.isEnabled || i && d.isEnabled && i == o);
|
|
933
935
|
}
|
|
934
936
|
he(
|
|
@@ -982,12 +984,12 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
982
984
|
}
|
|
983
985
|
}
|
|
984
986
|
});
|
|
985
|
-
const
|
|
987
|
+
const S = q(
|
|
986
988
|
() => u.supplier.internal ? d.currentLocationSubsidiary() : d.currentVendorSubsidiary(u.supplier._id)
|
|
987
989
|
), v = q(() => {
|
|
988
990
|
var i, o;
|
|
989
|
-
return
|
|
990
|
-
location is ${(o = d.getLocationSubsidiary((i =
|
|
991
|
+
return w.value == null ? `Cannot find the NetSuite location for "${u.supplier.name}"` : `The subsidiary of the request
|
|
992
|
+
location is ${(o = d.getLocationSubsidiary((i = w.value) == null ? void 0 : i.netSuiteId)) == null ? void 0 : o.fullName}`;
|
|
991
993
|
});
|
|
992
994
|
return (i, o) => {
|
|
993
995
|
const a = O("FmLabel"), r = O("FmIcon"), s = O("FmField"), _ = O("FmTooltip");
|
|
@@ -1017,7 +1019,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1017
1019
|
}, null, 8, ["color"]),
|
|
1018
1020
|
t("div", {
|
|
1019
1021
|
class: W([i.disabled ? "text-fm-color-typo-disabled" : ""])
|
|
1020
|
-
}, $((F =
|
|
1022
|
+
}, $((F = S.value) == null ? void 0 : F.fullName), 3)
|
|
1021
1023
|
])
|
|
1022
1024
|
];
|
|
1023
1025
|
}),
|
|
@@ -1031,7 +1033,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1031
1033
|
])) : K("", !0);
|
|
1032
1034
|
};
|
|
1033
1035
|
}
|
|
1034
|
-
}), bs = { class: "flex flex-col gap-4" }, gs = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, _s = { class: "flex flex-col gap-16" }, hs = { class: "flex flex-col gap-24" }, xs = { class: "flex flex-col gap-8" }, ks = { class: "flex flex-col gap-4" }, Cs = { class: "flex items-center gap-4" },
|
|
1036
|
+
}), bs = { class: "flex flex-col gap-4" }, gs = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, _s = { class: "flex flex-col gap-16" }, hs = { class: "flex flex-col gap-24" }, xs = { class: "flex flex-col gap-8" }, ks = { class: "flex flex-col gap-4" }, Cs = { class: "flex items-center gap-4" }, Ss = { class: "flex flex-col gap-8" }, ws = { class: "flex flex-col gap-4" }, Fs = { class: "flex items-center gap-4" }, $s = {
|
|
1035
1037
|
key: 3,
|
|
1036
1038
|
class: "p-16 border border-fm-color-neutral-gray-300 fm-corner-radius-md flex flex-col"
|
|
1037
1039
|
}, Is = {
|
|
@@ -1058,7 +1060,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1058
1060
|
},
|
|
1059
1061
|
emits: ["validation-success", "form:ready"],
|
|
1060
1062
|
setup(y, { expose: x, emit: d }) {
|
|
1061
|
-
const u = y, g = d, { t: n } = ye(), h = Qe(),
|
|
1063
|
+
const u = y, g = d, { t: n } = ye(), h = Qe(), w = Ye(), V = uo(), S = Xe(), v = kt(), { breakpoints: i } = Ke(), o = q(() => i.value.xs || i.value.sm), a = zt();
|
|
1062
1064
|
a.init(u.modelValue);
|
|
1063
1065
|
const { controller: r, state: s } = a, _ = Vt({
|
|
1064
1066
|
value: !1
|
|
@@ -1083,13 +1085,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1083
1085
|
});
|
|
1084
1086
|
const Z = q(
|
|
1085
1087
|
() => h.currentLocation.type === qt.restaurant
|
|
1086
|
-
), N =
|
|
1088
|
+
), N = to(), B = vo(
|
|
1087
1089
|
() => s.value,
|
|
1088
1090
|
(l) => {
|
|
1089
1091
|
r.value.selectSupplier(l.supplier._id);
|
|
1090
1092
|
},
|
|
1091
1093
|
!0,
|
|
1092
|
-
!
|
|
1094
|
+
!S.businessSupplierOnly
|
|
1093
1095
|
), P = q({
|
|
1094
1096
|
get() {
|
|
1095
1097
|
var l;
|
|
@@ -1100,7 +1102,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1100
1102
|
}
|
|
1101
1103
|
}), D = q(() => {
|
|
1102
1104
|
let l = B.transferLocationOptions.value;
|
|
1103
|
-
return
|
|
1105
|
+
return S.mustUsePoTemplate && !s.value.template && (l = l.filter((p) => {
|
|
1104
1106
|
var j;
|
|
1105
1107
|
return (j = p.sublabel) == null ? void 0 : j.startsWith("restaurant");
|
|
1106
1108
|
})), l;
|
|
@@ -1224,7 +1226,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1224
1226
|
}
|
|
1225
1227
|
const xe = q(() => {
|
|
1226
1228
|
var l;
|
|
1227
|
-
return A.value ? ((l = A.value) == null ? void 0 : l.purchaseOrder.items) || [] :
|
|
1229
|
+
return A.value ? ((l = A.value) == null ? void 0 : l.purchaseOrder.items) || [] : w.skus.map((p) => ({
|
|
1228
1230
|
quantity: {
|
|
1229
1231
|
amount: 0,
|
|
1230
1232
|
precision: 0
|
|
@@ -1238,9 +1240,9 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1238
1240
|
},
|
|
1239
1241
|
measurement: p.trackingMeasurement ? p.unit.measurements.find((j) => j.id === p.trackingMeasurement) : null
|
|
1240
1242
|
}));
|
|
1241
|
-
}),
|
|
1243
|
+
}), we = q(() => {
|
|
1242
1244
|
const l = [];
|
|
1243
|
-
return (!
|
|
1245
|
+
return (!S.mustUsePoTemplate || S.mustUsePoTemplate && s.value.template) && l.push({
|
|
1244
1246
|
label: n("inventory.transfer.form.type.purchase"),
|
|
1245
1247
|
value: de.enum.purchase
|
|
1246
1248
|
}), l.push({
|
|
@@ -1275,7 +1277,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1275
1277
|
}
|
|
1276
1278
|
return (l, p) => {
|
|
1277
1279
|
var et, tt;
|
|
1278
|
-
const j = O("FmChip"), H = O("FmLabel"), ae = O("FmIcon"), ue = O("FmField"), Oe = O("FmTooltip"), Je = O("FmSelect"),
|
|
1280
|
+
const j = O("FmChip"), H = O("FmLabel"), ae = O("FmIcon"), ue = O("FmField"), Oe = O("FmTooltip"), Je = O("FmSelect"), St = O("FmTextField"), wt = O("FmTextarea"), Ge = O("FmSwitch"), Ft = O("FmDatePicker"), $t = O("FmTimePicker"), Ne = O("FmFormGroup"), It = O("FmButton"), Dt = O("FmTable"), Tt = O("FmForm");
|
|
1279
1281
|
return b(), T("div", bs, [
|
|
1280
1282
|
t("div", gs, [
|
|
1281
1283
|
(et = u.modelValue) != null && et.template ? (b(), oe(j, {
|
|
@@ -1351,11 +1353,11 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1351
1353
|
}, null, 2)
|
|
1352
1354
|
])
|
|
1353
1355
|
]),
|
|
1354
|
-
t("div",
|
|
1356
|
+
t("div", Ss, [
|
|
1355
1357
|
m(H, {
|
|
1356
1358
|
label: P.value === e(de).enum.purchase ? e(n)("inventory.transfer.form.purchaseFrom") : e(n)("inventory.transfer.form.transferFrom")
|
|
1357
1359
|
}, null, 8, ["label"]),
|
|
1358
|
-
t("div",
|
|
1360
|
+
t("div", ws, [
|
|
1359
1361
|
m(Oe, {
|
|
1360
1362
|
"z-index": 51,
|
|
1361
1363
|
placement: "left",
|
|
@@ -1394,8 +1396,8 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1394
1396
|
"label-mark": "required",
|
|
1395
1397
|
modelValue: P.value,
|
|
1396
1398
|
"onUpdate:modelValue": p[0] || (p[0] = (R) => P.value = R),
|
|
1397
|
-
items:
|
|
1398
|
-
rules: [e(Ee)(1)(
|
|
1399
|
+
items: we.value,
|
|
1400
|
+
rules: [e(Ee)(1)(we.value)]
|
|
1399
1401
|
}, {
|
|
1400
1402
|
default: M(() => [
|
|
1401
1403
|
t("span", {
|
|
@@ -1438,13 +1440,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1438
1440
|
_: 1
|
|
1439
1441
|
}, 8, ["label", "modelValue", "items", "rules"])
|
|
1440
1442
|
], 64)),
|
|
1441
|
-
m(
|
|
1443
|
+
m(St, {
|
|
1442
1444
|
label: e(n)("inventory.transfer.form.reference"),
|
|
1443
1445
|
"label-mark": "optional",
|
|
1444
1446
|
modelValue: J.value,
|
|
1445
1447
|
"onUpdate:modelValue": p[2] || (p[2] = (R) => J.value = R)
|
|
1446
1448
|
}, null, 8, ["label", "modelValue"]),
|
|
1447
|
-
m(
|
|
1449
|
+
m(wt, {
|
|
1448
1450
|
label: e(n)("inventory.transfer.form.remark"),
|
|
1449
1451
|
"label-mark": "optional",
|
|
1450
1452
|
"max-length": 240,
|
|
@@ -1467,7 +1469,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1467
1469
|
_.value = !0;
|
|
1468
1470
|
})
|
|
1469
1471
|
}, null, 8, ["required", "subsidiaryOptional", "disabled", "supplier", "setting", "items", "onChange"])) : K("", !0),
|
|
1470
|
-
e(
|
|
1472
|
+
e(S).enableBackdatePo ? (b(), T("div", $s, [
|
|
1471
1473
|
t("div", {
|
|
1472
1474
|
class: W([
|
|
1473
1475
|
"flex",
|
|
@@ -1506,7 +1508,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1506
1508
|
key: 0,
|
|
1507
1509
|
modelValue: e(se),
|
|
1508
1510
|
"onUpdate:modelValue": p[8] || (p[8] = (R) => ge(se) ? se.value = R : null),
|
|
1509
|
-
rules: [e(
|
|
1511
|
+
rules: [e(so)(new Date(l.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1510
1512
|
}, null, 8, ["modelValue", "rules"])) : K("", !0),
|
|
1511
1513
|
Z.value && !l.lastClosingDate ? (b(), T("div", Vs, [
|
|
1512
1514
|
m(ae, {
|
|
@@ -1562,7 +1564,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1562
1564
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1563
1565
|
])
|
|
1564
1566
|
], 2),
|
|
1565
|
-
P.value === e(de).enum.purchase && X.value && e(
|
|
1567
|
+
P.value === e(de).enum.purchase && X.value && e(S).enableTotalCost && z.value.length ? (b(), T("div", Ms, [
|
|
1566
1568
|
m(Ge, {
|
|
1567
1569
|
label: e(ie) ? e(n)("inventory.transfer.form.items.fetchingData") : e(n)("inventory.transfer.form.items.comparePriceHistory"),
|
|
1568
1570
|
"prepend-icon": "compare_arrows",
|
|
@@ -1622,7 +1624,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1622
1624
|
_: 1
|
|
1623
1625
|
}, 8, ["column-defs", "column-visibility", "row-data", "page-size"]))
|
|
1624
1626
|
]),
|
|
1625
|
-
e(
|
|
1627
|
+
e(S).enableTotalCost ? (b(), T("div", Es, [
|
|
1626
1628
|
t("div", qs, [
|
|
1627
1629
|
t("div", Us, $(e(n)("inventory.transfer.form.surcharges.totalCost")), 1),
|
|
1628
1630
|
t("div", Ns, $(e(ce)()) + " " + $(e(Ce)({
|
|
@@ -1677,7 +1679,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1677
1679
|
emits: ["update:show", "submitted"],
|
|
1678
1680
|
setup(y, { expose: x, emit: d }) {
|
|
1679
1681
|
var se;
|
|
1680
|
-
const u = y, g = d, n = We(), h = kt(),
|
|
1682
|
+
const u = y, g = d, n = We(), h = kt(), w = Se(), V = xt(), S = Ye(), v = Qe(), { t: i } = ye(), o = U(!1), a = U(!1), r = U(!1), s = U(!1), _ = q(() => {
|
|
1681
1683
|
var k;
|
|
1682
1684
|
return ((k = I.value.items) == null ? void 0 : k.filter((C) => C.quantity.amount === 0)) ?? [];
|
|
1683
1685
|
});
|
|
@@ -1687,7 +1689,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1687
1689
|
try {
|
|
1688
1690
|
await V.readSuppliers(), a.value = !0;
|
|
1689
1691
|
} catch {
|
|
1690
|
-
|
|
1692
|
+
w.open({
|
|
1691
1693
|
title: i("inventory.transfer.form.unableToFetchListOfSuppliers.title"),
|
|
1692
1694
|
message: i("inventory.transfer.form.unableToFetchListOfSuppliers.message"),
|
|
1693
1695
|
type: "error"
|
|
@@ -1766,7 +1768,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1766
1768
|
async function N() {
|
|
1767
1769
|
const k = I.value;
|
|
1768
1770
|
if (o.value = !0, k.items = k.items.filter((C) => C.quantity.amount > 0), !k.items.length) {
|
|
1769
|
-
|
|
1771
|
+
w.open({
|
|
1770
1772
|
title: "Cannot create order",
|
|
1771
1773
|
message: "There are no items with non-zero amount in your request.",
|
|
1772
1774
|
type: "error"
|
|
@@ -1775,13 +1777,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1775
1777
|
}
|
|
1776
1778
|
(k.supplier.internal === "warehouse" || k.supplier.internal === "restaurant") && (k.items = k.items.map(({ totalCost: C, ...Q }) => Q));
|
|
1777
1779
|
try {
|
|
1778
|
-
await n.createPurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)),
|
|
1780
|
+
await n.createPurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)), w.open({
|
|
1779
1781
|
title: i("inventory.transfer.receiveRequest.create.success"),
|
|
1780
1782
|
message: i("inventory.transfer.receiveRequest.create.successMessage"),
|
|
1781
1783
|
type: "success"
|
|
1782
1784
|
}), g("update:show", !1), g("submitted");
|
|
1783
1785
|
} catch (C) {
|
|
1784
|
-
|
|
1786
|
+
w.open({
|
|
1785
1787
|
title: i("inventory.transfer.receiveRequest.create.error.title"),
|
|
1786
1788
|
message: i("inventory.transfer.receiveRequest.create.error.message"),
|
|
1787
1789
|
type: "error"
|
|
@@ -1793,7 +1795,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1793
1795
|
async function B() {
|
|
1794
1796
|
const k = I.value;
|
|
1795
1797
|
if (o.value = !0, k.items = k.items.filter((C) => C.quantity.amount > 0), !k.items.length) {
|
|
1796
|
-
|
|
1798
|
+
w.open({
|
|
1797
1799
|
title: "Cannot create order",
|
|
1798
1800
|
message: "There are no items with non-zero amount in your request.",
|
|
1799
1801
|
type: "error"
|
|
@@ -1802,13 +1804,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1802
1804
|
}
|
|
1803
1805
|
(k.supplier.internal === "warehouse" || k.supplier.internal === "restaurant") && (k.items = k.items.map(({ totalCost: C, ...Q }) => Q));
|
|
1804
1806
|
try {
|
|
1805
|
-
await n.updatePurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)),
|
|
1807
|
+
await n.updatePurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)), w.open({
|
|
1806
1808
|
title: i("inventory.transfer.receiveRequest.update.success"),
|
|
1807
1809
|
message: i("inventory.transfer.receiveRequest.update.successMessage"),
|
|
1808
1810
|
type: "success"
|
|
1809
1811
|
}), g("update:show", !1), g("submitted");
|
|
1810
1812
|
} catch (C) {
|
|
1811
|
-
|
|
1813
|
+
w.open({
|
|
1812
1814
|
title: i("inventory.transfer.receiveRequest.update.error.title"),
|
|
1813
1815
|
message: i("inventory.transfer.receiveRequest.update.error.message"),
|
|
1814
1816
|
type: "error"
|
|
@@ -1838,12 +1840,12 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1838
1840
|
function L() {
|
|
1839
1841
|
var Q, le;
|
|
1840
1842
|
const k = io.validatePurchaseOrderItems({
|
|
1841
|
-
skusById:
|
|
1843
|
+
skusById: S.skuById ?? {},
|
|
1842
1844
|
items: I.value.items ?? []
|
|
1843
1845
|
}), C = Object.values(k).flat();
|
|
1844
1846
|
if (C.length > 0) {
|
|
1845
1847
|
const ie = C[0];
|
|
1846
|
-
|
|
1848
|
+
w.open({
|
|
1847
1849
|
title: `[Row ${ie.index + 1}] "${ie.poItem.sku.name}"`,
|
|
1848
1850
|
message: `${ie.message}`,
|
|
1849
1851
|
type: "error"
|
|
@@ -1885,7 +1887,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1885
1887
|
"onUpdate:modelValue": C[1] || (C[1] = (ee) => I.value = ee),
|
|
1886
1888
|
disabled: o.value || X.value,
|
|
1887
1889
|
suppliers: e(V).suppliers,
|
|
1888
|
-
skus: e(
|
|
1890
|
+
skus: e(S).skus,
|
|
1889
1891
|
key: A.value,
|
|
1890
1892
|
"last-closing-date": k.lastClosingDate
|
|
1891
1893
|
}, null, 8, ["modelValue", "disabled", "suppliers", "skus", "last-closing-date"]))
|
|
@@ -1952,16 +1954,16 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1952
1954
|
}
|
|
1953
1955
|
});
|
|
1954
1956
|
function ia(y) {
|
|
1955
|
-
const [x, d, u, ...g] = _o(y), n = u.map((
|
|
1956
|
-
if (
|
|
1957
|
+
const [x, d, u, ...g] = _o(y), n = u.map((S) => S.toLowerCase().trim().replace(/ /g, "_")), w = ["item_name", "transfer_quantity(uom)", "uom", "scanned_code"].filter((S) => !n.includes(S));
|
|
1958
|
+
if (w.length)
|
|
1957
1959
|
throw new Error(
|
|
1958
|
-
`Missing headers (${
|
|
1960
|
+
`Missing headers (${w.join()}). Excel file does not come from the template.`
|
|
1959
1961
|
);
|
|
1960
|
-
return g.map((
|
|
1962
|
+
return g.map((S, v) => {
|
|
1961
1963
|
const i = {};
|
|
1962
1964
|
for (const o in n) {
|
|
1963
1965
|
const a = n[o];
|
|
1964
|
-
Object.assign(i, { [a]:
|
|
1966
|
+
Object.assign(i, { [a]: S[o] });
|
|
1965
1967
|
}
|
|
1966
1968
|
return {
|
|
1967
1969
|
index: v,
|
|
@@ -1974,10 +1976,10 @@ function ua(y) {
|
|
|
1974
1976
|
try {
|
|
1975
1977
|
return x.reduce(
|
|
1976
1978
|
(u, g) => {
|
|
1977
|
-
const n = new Array(), h = y.Sheets[g],
|
|
1979
|
+
const n = new Array(), h = y.Sheets[g], w = Ye(), V = ia(h), S = [];
|
|
1978
1980
|
for (const { index: i, data: o } of V) {
|
|
1979
1981
|
o.scanned_code === "" && n.push(`Row ${i + 1}: Scanned code is empty`), o.item_name === "" && n.push(`Row ${i + 1}: Item name is empty`), o.uom === "" && n.push(`Row ${i + 1}: UOM is empty`), o["transfer_quantity(uom)"] === "" && n.push(`Row ${i + 1}: Transfer quantity is empty`);
|
|
1980
|
-
const a =
|
|
1982
|
+
const a = w.skus.find((_) => _.code === o.scanned_code);
|
|
1981
1983
|
if (!a) {
|
|
1982
1984
|
n.push(`Row ${i + 1}: SKU not found`);
|
|
1983
1985
|
continue;
|
|
@@ -1992,7 +1994,7 @@ function ua(y) {
|
|
|
1992
1994
|
}
|
|
1993
1995
|
s = _;
|
|
1994
1996
|
}
|
|
1995
|
-
|
|
1997
|
+
S.push({
|
|
1996
1998
|
sku: a,
|
|
1997
1999
|
code: o.scanned_code,
|
|
1998
2000
|
name: o.item_name,
|
|
@@ -2002,7 +2004,7 @@ function ua(y) {
|
|
|
2002
2004
|
}
|
|
2003
2005
|
const v = {
|
|
2004
2006
|
type: "create",
|
|
2005
|
-
poItems:
|
|
2007
|
+
poItems: S,
|
|
2006
2008
|
excelSheetName: g,
|
|
2007
2009
|
errors: n
|
|
2008
2010
|
};
|
|
@@ -2039,8 +2041,8 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2039
2041
|
x.errors.length && (u.value = !u.value);
|
|
2040
2042
|
};
|
|
2041
2043
|
return (n, h) => {
|
|
2042
|
-
var
|
|
2043
|
-
const
|
|
2044
|
+
var S;
|
|
2045
|
+
const w = O("FmIcon"), V = O("FmTooltip");
|
|
2044
2046
|
return b(), T("div", da, [
|
|
2045
2047
|
t("div", {
|
|
2046
2048
|
onClick: g,
|
|
@@ -2059,7 +2061,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2059
2061
|
n.type === "create" ? (b(), T("span", pa, "(" + $(e(d)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
|
|
2060
2062
|
], 2),
|
|
2061
2063
|
n.errors.length ? (b(), T("div", fa, [
|
|
2062
|
-
m(
|
|
2064
|
+
m(w, {
|
|
2063
2065
|
name: "error",
|
|
2064
2066
|
size: "sm",
|
|
2065
2067
|
color: "system-error-300"
|
|
@@ -2068,7 +2070,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2068
2070
|
]),
|
|
2069
2071
|
h[0] || (h[0] = t("hr", { class: "my-2" }, null, -1)),
|
|
2070
2072
|
t("div", va, [
|
|
2071
|
-
(
|
|
2073
|
+
(S = n.items) != null && S.length ? (b(!0), T(re, { key: 0 }, fe(n.items, (v, i) => (b(), T("div", {
|
|
2072
2074
|
key: i,
|
|
2073
2075
|
class: "flex gap-4 mt-2 items-center"
|
|
2074
2076
|
}, [
|
|
@@ -2104,7 +2106,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2104
2106
|
])
|
|
2105
2107
|
]),
|
|
2106
2108
|
t("div", ha, [
|
|
2107
|
-
n.errors.length ? (b(), oe(
|
|
2109
|
+
n.errors.length ? (b(), oe(w, {
|
|
2108
2110
|
key: 0,
|
|
2109
2111
|
name: u.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
2110
2112
|
size: "md"
|
|
@@ -2127,10 +2129,10 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2127
2129
|
]);
|
|
2128
2130
|
};
|
|
2129
2131
|
}
|
|
2130
|
-
}), Ca = { class: "flex flex-col gap-24" },
|
|
2132
|
+
}), Ca = { class: "flex flex-col gap-24" }, Sa = {
|
|
2131
2133
|
key: 0,
|
|
2132
2134
|
class: "flex items-center gap-8"
|
|
2133
|
-
},
|
|
2135
|
+
}, wa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fa = { class: "flex flex-col gap-8" }, $a = { class: "line-clamp-2 text-ellipsis break-all" }, Ia = {
|
|
2134
2136
|
key: 2,
|
|
2135
2137
|
class: "shrink-0"
|
|
2136
2138
|
}, Da = {
|
|
@@ -2142,9 +2144,9 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2142
2144
|
}, Pa = { class: "fm-typo-en-body-lg-600" }, pt = "Transfer note", Ra = /* @__PURE__ */ ne({
|
|
2143
2145
|
__name: "XilnexImportForm",
|
|
2144
2146
|
setup(y, { expose: x }) {
|
|
2145
|
-
const d = U(null), u =
|
|
2147
|
+
const d = U(null), u = Se(), g = U(!1), n = U(!1), h = ko(), w = U(!1), V = qe();
|
|
2146
2148
|
U([]);
|
|
2147
|
-
const
|
|
2149
|
+
const S = q({
|
|
2148
2150
|
get() {
|
|
2149
2151
|
var c;
|
|
2150
2152
|
return ((c = h.supplier) == null ? void 0 : c.name) ?? "";
|
|
@@ -2168,7 +2170,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2168
2170
|
});
|
|
2169
2171
|
He(async () => {
|
|
2170
2172
|
const c = await V.getNetSuiteLocations();
|
|
2171
|
-
console.log(c),
|
|
2173
|
+
console.log(c), w.value = !0;
|
|
2172
2174
|
});
|
|
2173
2175
|
const v = q({
|
|
2174
2176
|
get() {
|
|
@@ -2252,8 +2254,8 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2252
2254
|
default: M(() => [
|
|
2253
2255
|
t("div", Ca, [
|
|
2254
2256
|
m(I, {
|
|
2255
|
-
modelValue:
|
|
2256
|
-
"onUpdate:modelValue": f[0] || (f[0] = (D) =>
|
|
2257
|
+
modelValue: S.value,
|
|
2258
|
+
"onUpdate:modelValue": f[0] || (f[0] = (D) => S.value = D),
|
|
2257
2259
|
label: "Transfer from",
|
|
2258
2260
|
searchable: "",
|
|
2259
2261
|
searchTarget: "label",
|
|
@@ -2280,14 +2282,14 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2280
2282
|
label: "Transfer time",
|
|
2281
2283
|
rules: [e(De)()]
|
|
2282
2284
|
}, null, 8, ["modelValue", "rules"]),
|
|
2283
|
-
n.value ? (b(), T("div",
|
|
2285
|
+
n.value ? (b(), T("div", Sa, [
|
|
2284
2286
|
t("div", null, [
|
|
2285
2287
|
m(z, {
|
|
2286
2288
|
size: "md",
|
|
2287
2289
|
color: "neutral-gray-200"
|
|
2288
2290
|
})
|
|
2289
2291
|
]),
|
|
2290
|
-
t("div",
|
|
2292
|
+
t("div", wa, $(e(_)("inventory.formField.loading")), 1)
|
|
2291
2293
|
])) : (b(), T(re, { key: 1 }, [
|
|
2292
2294
|
m(xo, {
|
|
2293
2295
|
"max-file-size": 5,
|
|
@@ -2392,24 +2394,24 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2392
2394
|
},
|
|
2393
2395
|
emits: ["update:show", "submitted"],
|
|
2394
2396
|
setup(y, { expose: x, emit: d }) {
|
|
2395
|
-
const u = d, n = _t(y, "show"), h =
|
|
2397
|
+
const u = d, n = _t(y, "show"), h = Se(), w = We(), V = U(!1), S = U(), v = U();
|
|
2396
2398
|
x({
|
|
2397
2399
|
validateInputs: () => {
|
|
2398
2400
|
var a, r;
|
|
2399
|
-
(r = (a =
|
|
2401
|
+
(r = (a = S.value) == null ? void 0 : a.validateInputs) == null || r.call(a);
|
|
2400
2402
|
},
|
|
2401
2403
|
resetInputsValidation: () => {
|
|
2402
2404
|
var a, r;
|
|
2403
|
-
(r = (a =
|
|
2405
|
+
(r = (a = S.value) == null ? void 0 : a.resetInputsValidation) == null || r.call(a);
|
|
2404
2406
|
},
|
|
2405
2407
|
resetInputs: () => {
|
|
2406
2408
|
var a, r;
|
|
2407
|
-
(r = (a =
|
|
2409
|
+
(r = (a = S.value) == null ? void 0 : a.resetInputs) == null || r.call(a);
|
|
2408
2410
|
}
|
|
2409
2411
|
});
|
|
2410
2412
|
function i() {
|
|
2411
2413
|
var a, r;
|
|
2412
|
-
(r = (a =
|
|
2414
|
+
(r = (a = S.value) == null ? void 0 : a.validateInputs) == null || r.call(a);
|
|
2413
2415
|
}
|
|
2414
2416
|
async function o() {
|
|
2415
2417
|
var r, s, _, F, c;
|
|
@@ -2448,7 +2450,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2448
2450
|
}
|
|
2449
2451
|
V.value = !0;
|
|
2450
2452
|
try {
|
|
2451
|
-
await
|
|
2453
|
+
await w.importFromXilnex(v.value), u("update:show", !1);
|
|
2452
2454
|
} catch (f) {
|
|
2453
2455
|
await new Promise((I) => setTimeout(I, 1e3)), h.open({
|
|
2454
2456
|
title: "Upload failed",
|
|
@@ -2494,7 +2496,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2494
2496
|
t("div", Oa, [
|
|
2495
2497
|
m(Ra, {
|
|
2496
2498
|
ref_key: "formRef",
|
|
2497
|
-
ref:
|
|
2499
|
+
ref: S,
|
|
2498
2500
|
onValidationSuccess: o,
|
|
2499
2501
|
modelValue: v.value,
|
|
2500
2502
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => v.value = c)
|
|
@@ -2508,10 +2510,10 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2508
2510
|
}), Ma = { class: "flex flex-col py-8" }, Ea = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ua = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Na = {
|
|
2509
2511
|
key: 0,
|
|
2510
2512
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
2511
|
-
}, Ba = { class: "pt-8" }, ft = "ReceiveRequestViewSearchCriteria",
|
|
2513
|
+
}, Ba = { class: "pt-8" }, ft = "ReceiveRequestViewSearchCriteria", _r = /* @__PURE__ */ ne({
|
|
2512
2514
|
__name: "ReceiveRequestView",
|
|
2513
2515
|
setup(y) {
|
|
2514
|
-
const { t: x } = ye(), d =
|
|
2516
|
+
const { t: x } = ye(), d = Se();
|
|
2515
2517
|
Ae.object({
|
|
2516
2518
|
name: Ae.string().optional().nullable(),
|
|
2517
2519
|
startDate: Ae.string().optional().nullable(),
|
|
@@ -2519,8 +2521,8 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2519
2521
|
});
|
|
2520
2522
|
const u = q(
|
|
2521
2523
|
() => !o._currentLocation || v.loading.value
|
|
2522
|
-
), g =
|
|
2523
|
-
function
|
|
2524
|
+
), g = Wt(), n = Xe(), h = qe();
|
|
2525
|
+
function w() {
|
|
2524
2526
|
const N = {
|
|
2525
2527
|
name: "",
|
|
2526
2528
|
...dt()
|
|
@@ -2534,21 +2536,21 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2534
2536
|
}
|
|
2535
2537
|
}
|
|
2536
2538
|
function V() {
|
|
2537
|
-
g.setItem(ft, JSON.stringify(
|
|
2539
|
+
g.setItem(ft, JSON.stringify(S.value));
|
|
2538
2540
|
}
|
|
2539
|
-
const
|
|
2541
|
+
const S = U(w()), v = Lt(
|
|
2540
2542
|
Le.RECEIVE_REQUEST,
|
|
2541
|
-
|
|
2543
|
+
S.value
|
|
2542
2544
|
), { columnDefs: i } = jt(
|
|
2543
2545
|
Le.RECEIVE_REQUEST,
|
|
2544
2546
|
v,
|
|
2545
2547
|
v.shipments
|
|
2546
2548
|
), o = Qe();
|
|
2547
2549
|
async function a() {
|
|
2548
|
-
const N = `inventory-record_${
|
|
2550
|
+
const N = `inventory-record_${ct(S.value.startDate).format("DD-MM-YYYY_HH-mm")}-${ct(S.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, B = v.purchaseOrders.value.flatMap(
|
|
2549
2551
|
(D) => D.items.map((E) => {
|
|
2550
2552
|
var Q;
|
|
2551
|
-
const L = new Date(
|
|
2553
|
+
const L = new Date(Xt(D._id) ?? ""), J = D.effectiveAt ? new Date(D.effectiveAt) : void 0, se = _e(
|
|
2552
2554
|
Qt(E.sku, D.deliveryOrder || [])
|
|
2553
2555
|
), k = _e(E.quantity), C = ((Q = E == null ? void 0 : E.measurement) == null ? void 0 : Q.abbrev) || E.sku.unit.abbrev;
|
|
2554
2556
|
return {
|
|
@@ -2576,7 +2578,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2576
2578
|
"Ordered quantity",
|
|
2577
2579
|
"Unit"
|
|
2578
2580
|
];
|
|
2579
|
-
n.enableBackdatePo && P.insert("Effective at", 4), n.enableTotalCost && P.push("Total cost"), await
|
|
2581
|
+
n.enableBackdatePo && P.insert("Effective at", 4), n.enableTotalCost && P.push("Total cost"), await Zt(
|
|
2580
2582
|
[
|
|
2581
2583
|
{
|
|
2582
2584
|
name: "purchases",
|
|
@@ -2593,9 +2595,9 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2593
2595
|
}
|
|
2594
2596
|
const r = U(dt()), s = U("");
|
|
2595
2597
|
he([() => r.value], ([N]) => {
|
|
2596
|
-
!N.startDate || !N.endDate || (
|
|
2597
|
-
|
|
2598
|
-
|
|
2598
|
+
!N.startDate || !N.endDate || (S.value.startDate = N.startDate, S.value.endDate = N.endDate, v.updateDateRange(
|
|
2599
|
+
S.value.startDate,
|
|
2600
|
+
S.value.endDate
|
|
2599
2601
|
), V());
|
|
2600
2602
|
}), he([() => s.value], () => {
|
|
2601
2603
|
V();
|
|
@@ -2619,7 +2621,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2619
2621
|
if (N === "export")
|
|
2620
2622
|
return a();
|
|
2621
2623
|
}
|
|
2622
|
-
const { breakpoints: F } = Ke(), c = q(() => F.value.xs || F.value.sm), f = q(() => c.value ? 10 : 20), I =
|
|
2624
|
+
const { breakpoints: F } = Ke(), c = q(() => F.value.xs || F.value.sm), f = q(() => c.value ? 10 : 20), I = Jt(), A = q(() => [
|
|
2623
2625
|
{
|
|
2624
2626
|
label: x("inventory.transfer.receiveRequest.actions.create"),
|
|
2625
2627
|
value: "create",
|
|
@@ -2686,7 +2688,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2686
2688
|
const N = Co.build(z.value);
|
|
2687
2689
|
return v.purchaseOrders.value.filter((B) => {
|
|
2688
2690
|
var P, D, E, L;
|
|
2689
|
-
return
|
|
2691
|
+
return So(
|
|
2690
2692
|
{
|
|
2691
2693
|
netsuiteTransactionNumber: (D = (P = B.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : D.transactionnumber,
|
|
2692
2694
|
netsuiteOrderNo: (E = B.netSuite) == null ? void 0 : E.refNo,
|
|
@@ -2699,7 +2701,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2699
2701
|
});
|
|
2700
2702
|
return (N, B) => {
|
|
2701
2703
|
const P = O("FmTable");
|
|
2702
|
-
return b(), oe(
|
|
2704
|
+
return b(), oe(Gt, {
|
|
2703
2705
|
title: e(x)("inventory.transfer.receiveRequest.title2"),
|
|
2704
2706
|
actions: A.value,
|
|
2705
2707
|
"onClick:action": _
|
|
@@ -2745,7 +2747,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2745
2747
|
onRowClick: e(v).promptShowTransferDetails
|
|
2746
2748
|
}, {
|
|
2747
2749
|
default: M((J) => {
|
|
2748
|
-
var se, k, C, Q, le, ie, ee, be, ve, Te, Ve, Pe, Ue, xe,
|
|
2750
|
+
var se, k, C, Q, le, ie, ee, be, ve, Te, Ve, Pe, Ue, xe, we, Fe, Re, l, p, j;
|
|
2749
2751
|
return [
|
|
2750
2752
|
t("div", Ma, [
|
|
2751
2753
|
t("div", Ea, [
|
|
@@ -2764,7 +2766,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2764
2766
|
L.original.ref ? (b(), T("div", Na, [
|
|
2765
2767
|
m(e(me), {
|
|
2766
2768
|
render: (Ue = (Pe = (Ve = J.ref) == null ? void 0 : Ve.column) == null ? void 0 : Pe.columnDef) == null ? void 0 : Ue.cell,
|
|
2767
|
-
props: (
|
|
2769
|
+
props: (we = (xe = J.ref) == null ? void 0 : xe.getContext) == null ? void 0 : we.call(xe)
|
|
2768
2770
|
}, null, 8, ["render", "props"])
|
|
2769
2771
|
])) : K("", !0),
|
|
2770
2772
|
t("div", Ba, [
|
|
@@ -2805,5 +2807,5 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2805
2807
|
}
|
|
2806
2808
|
});
|
|
2807
2809
|
export {
|
|
2808
|
-
|
|
2810
|
+
_r as default
|
|
2809
2811
|
};
|