@feedmepos/mf-inventory-portal 1.2.61 → 1.2.63-dev.1
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-BqScGtJx.js → App-BHssUobV.js} +82 -78
- package/dist/{ApprovalView-BFdlYIot.js → ApprovalView-DRGCQeGY.js} +5 -5
- package/dist/{BindingsDialog-Dvmrms77.js → BindingsDialog-CWl3LpdO.js} +5 -5
- package/dist/{BindingsPicker-fPVSXv-h.js → BindingsPicker-BcASw3JJ.js} +3 -3
- package/dist/{BindingsTable-CnUa8VOi.js → BindingsTable-BiKiLiVY.js} +5 -5
- package/dist/{ClosingDraftView-10BcpWkm.js → ClosingDraftView-mh5Kw46x.js} +217 -216
- package/dist/{ClosingHistoryView-zLh0HCIb.js → ClosingHistoryView-C-ZrFei9.js} +36 -36
- package/dist/{ClosingTemplateView-BFupX87V.js → ClosingTemplateView-DBNRH0Tt.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-BLBqmOjw.js → DeliveryOrderPrintPreview-Dv3JZ3yr.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN8ziFA_.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CfL1adhx.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DJT_7Uus.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.js} +2 -2
- package/dist/{FmMultiselectDialog-DmnYEmN1.js → FmMultiselectDialog-D9g07F_c.js} +1 -1
- package/dist/{FmMultiselectDialog-B5paZk6T.js → FmMultiselectDialog-DuYKQng9.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-MW749j29.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CeXRT7Lf.js} +23 -22
- package/dist/{ImportView-BsI1_unJ.js → ImportView-DoMyJ1NE.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D8hvH-4n.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CqJQcOBK.js} +1 -1
- package/dist/{IngredientGroupView-BALVTSwF.js → IngredientGroupView-D_Cl4kJy.js} +5 -5
- package/dist/{IngredientsView-C-sauieO.js → IngredientsView-CG6wUGzt.js} +25 -24
- package/dist/{IntegrationView-GG2E4Yrl.js → IntegrationView-BIWPp1JH.js} +18 -17
- package/dist/{InventoryBindingForm-DCSBFj6b.js → InventoryBindingForm-BrL6-2He.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4_i25unG.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-M3uVquEq.js} +17 -16
- package/dist/{InventoryBindingSummary-6dFJPewB.js → InventoryBindingSummary-mnlQU1Mp.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CU9mgYbv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByPOKZRm.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DC1HpuMm.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DHwXNoTs.js} +2 -2
- package/dist/{PublishView-DO7k1AeP.js → PublishView-B4iVMq25.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C3VqOLCi.js → PurchaseOrderPrintPreview-ws-SKrEC.js} +11 -11
- package/dist/{ReceiveRequestView-CpgLQtbw.js → ReceiveRequestView-deSiORNX.js} +143 -142
- package/dist/RecipeView-EEK7PiKl.js +1558 -0
- package/dist/{StockView-CtC3ldc6.js → StockView-6j_t2Kf1.js} +106 -105
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cj6cVmd0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CgAMsW8n.js} +1 -1
- package/dist/{SupplierView-DKFtc22j.js → SupplierView-D5tSOECx.js} +20 -19
- package/dist/{SurchargeView-B-EYMp6w.js → SurchargeView-CP81Q4dW.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CDeeFvnm.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bmuw4PTO.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CH3hjFS8.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D1FuB-kv.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-rAyYuhku.js → TransferDetails.vue_vue_type_script_setup_true_lang-Canrz2ri.js} +501 -501
- package/dist/{TransferTemplateView-FeC34QoJ.js → TransferTemplateView-CRI_Lexa.js} +22 -21
- package/dist/UnitCostHistoryView-CT-4QDK8.js +651 -0
- package/dist/{UnitView-BoJisnXd.js → UnitView-BZmfd-aw.js} +11 -10
- package/dist/{WarehouseView-s-xF6xJ0.js → WarehouseView-BcmSyjA0.js} +5 -5
- package/dist/{WastageTemplateView-BQBlHZLh.js → WastageTemplateView-CNsdu0ga.js} +14 -14
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-_4kRbuQl.js → app-ayv5Jw7D.js} +8041 -7036
- package/dist/app.d.ts +228 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-BBWYKm_X.js → closing-template-D9UR8sMo.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-Cd93SZu4.js → date2-GNP-79dA.js} +1 -1
- package/dist/{dayjs.min-DeHn_Fz-.js → dayjs.min-Bg_wgP2J.js} +16 -16
- package/dist/{defineDeepModel-DUOLQh1E.js → defineDeepModel-Co03tZfS.js} +1 -1
- package/dist/{duplicate-template-BgpMF-fd.js → duplicate-template-BiPU4Z2Y.js} +1 -1
- package/dist/{feature-DqGkM6Yx.js → feature-BGeFfaiX.js} +95 -90
- package/dist/{format-time-from-id-BkH4swoc.js → format-time-from-id-ByV0VX1x.js} +1 -1
- package/dist/{format-unit-display-rkrD3WLD.js → format-unit-display-r1Hb4DfH.js} +16 -15
- package/dist/{import-export.helper-C8Q4AMQx.js → import-export.helper-PB9pPO3m.js} +16 -15
- package/dist/{index-B3m_9m2a.js → index-ClbYCYSU.js} +3 -3
- package/dist/{index-O5M93j6z.js → index-DMqOVOHw.js} +1 -1
- package/dist/{index-B0WTs-3a.js → index-DWWlEK_r.js} +1471 -1412
- package/dist/{lodash-Dj6GdEkm.js → lodash-BbWPSHMM.js} +1 -1
- package/dist/{netsuite-DpQxb3vH.js → netsuite-VGghPz8h.js} +92 -92
- package/dist/number-DPuTdA-J.js +232 -0
- package/dist/{purchase-order-template-DKuo07gT.js → purchase-order-template-BMNxJR59.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-CyF-4tvp.js +98 -0
- package/dist/stock-D1SElOsp.js +75 -0
- package/dist/{stock-D7HQf4-H.js → stock-b7nNc6ko.js} +1 -1
- 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-B3kE2tbF.js → supplier-Dm-bxVXL.js} +2 -2
- package/dist/{surcharge-Cc9vownX.js → surcharge-ZM-_XIvY.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-MnUTm-3P.js → use-ingredient-select-dialog-BYxTRqif.js} +2 -2
- package/dist/{use-inventory-binding-dialog-_J9LNiGo.js → use-inventory-binding-dialog-Dg9Mp0Vk.js} +2 -2
- package/dist/{use-template-enabled-locations-2-B9gbuIPM.js → use-template-enabled-locations-2-BmgcViqJ.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/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-BvsTy4Fg.js → vue-i18n-BwxQzDKn.js} +535 -535
- package/dist/{xlsx-BvjocXXw.js → xlsx-dJMIfias.js} +1 -1
- package/dist/{xlsx.util-D65Nsat4.js → xlsx.util-dclbjq8C.js} +1 -1
- package/package.json +3 -3
- package/dist/RecipeView-C2D7FdzN.js +0 -646
- package/dist/rules-D6o4zK8x.js +0 -327
- package/dist/stock-DLFjfcAv.js +0 -75
|
@@ -1,34 +1,35 @@
|
|
|
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 A, 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 { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { useBreakpoints as Ke, components as pe, FmButtonVariant as
|
|
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-ayv5Jw7D.js";
|
|
3
|
+
import { i as dt, _ as Bt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.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-Canrz2ri.js";
|
|
5
|
+
import { a as _e, d as Ce, c as Yt } from "./number-DPuTdA-J.js";
|
|
6
|
+
import { _ as gt, u as Kt, i as Xt, e as Zt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DHwXNoTs.js";
|
|
7
|
+
import { d as ct } from "./dayjs.min-Bg_wgP2J.js";
|
|
8
|
+
import { u as Wt } from "./useTabStorage-BkIVScW_.js";
|
|
9
|
+
import { u as Jt, _ as Gt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
10
|
+
import { useBreakpoints as Ke, components as pe, FmButtonVariant as eo, useSnackbar as Se, useDialog as to, useProxiedModel as _t } from "@feedmepos/ui-library";
|
|
11
11
|
import { F as Ie } from "./form-mode.enum-BKiNVH6A.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { u as
|
|
12
|
+
import { R as De, A as Ee, M as oo, c as mt, B as so } from "./rules-CyF-4tvp.js";
|
|
13
|
+
import { _ as ao, a as ro, b as lo, F as no } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CeXRT7Lf.js";
|
|
14
|
+
import { F as Me, u as Xe, P as io } from "./feature-BGeFfaiX.js";
|
|
15
|
+
import { u as qe } from "./netsuite-VGghPz8h.js";
|
|
15
16
|
import { useI18n as ye } from "@feedmepos/mf-common";
|
|
16
|
-
import { u as uo } from "./surcharge-
|
|
17
|
-
import { a as co } from "./FmMultiselectDialog-
|
|
17
|
+
import { u as uo } from "./surcharge-ZM-_XIvY.js";
|
|
18
|
+
import { a as co } from "./FmMultiselectDialog-DuYKQng9.js";
|
|
18
19
|
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-
|
|
20
|
+
import { u as xt } from "./supplier-Dm-bxVXL.js";
|
|
21
|
+
import { d as Ze, e as mo, g as po, b as fo } from "./date2-GNP-79dA.js";
|
|
22
|
+
import { u as vo, _ as yo } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CfL1adhx.js";
|
|
22
23
|
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-
|
|
24
|
+
import { a as kt } from "./format-unit-display-r1Hb4DfH.js";
|
|
25
|
+
import { u as We } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bmuw4PTO.js";
|
|
26
|
+
import { u as go } from "./vue-i18n-BwxQzDKn.js";
|
|
27
|
+
import { s as _o, r as ho } from "./xlsx.util-dclbjq8C.js";
|
|
27
28
|
import { F as xo } from "./FmDroppableField-J0xUsOTV.js";
|
|
28
|
-
import { d as ko } from "./defineDeepModel-
|
|
29
|
-
import { P as Co, J as
|
|
29
|
+
import { d as ko } from "./defineDeepModel-Co03tZfS.js";
|
|
30
|
+
import { P as Co, J as So } from "./app-DiX-EfV6.js";
|
|
30
31
|
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
|
|
32
|
+
const wo = () => Y(
|
|
32
33
|
gt,
|
|
33
34
|
{
|
|
34
35
|
zIndex: 50,
|
|
@@ -46,7 +47,7 @@ function Fo(y) {
|
|
|
46
47
|
var s, r, a, _, F, c, f;
|
|
47
48
|
return !!(((r = (s = i.defaultCost) == null ? void 0 : s.costPerUnit) == null ? void 0 : r.amount) ?? ((f = (c = (F = (_ = (a = y.supplier) == null ? void 0 : a.supplyItems) == null ? void 0 : _.find((D) => D.skuId === i._id)) == null ? void 0 : F.defaultCost) == null ? void 0 : c.costPerUnit) == null ? void 0 : f.amount));
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function w(i) {
|
|
50
51
|
if (!n(i.sku._id) && h(i.sku)) {
|
|
51
52
|
const { cost: o, supplierOverrideCost: s } = Me.calculateDefaultCost({
|
|
52
53
|
item: i.sku,
|
|
@@ -222,7 +223,7 @@ function Fo(y) {
|
|
|
222
223
|
},
|
|
223
224
|
{
|
|
224
225
|
id: "Cost",
|
|
225
|
-
header:
|
|
226
|
+
header: wo,
|
|
226
227
|
size: 180,
|
|
227
228
|
cell(i) {
|
|
228
229
|
const o = i.row.original, s = h(o.sku), r = d.value.xs || d.value.sm;
|
|
@@ -243,7 +244,7 @@ function Fo(y) {
|
|
|
243
244
|
[
|
|
244
245
|
u.enablePurchaseOrderCostEdit ? Y(pe.FmButton, {
|
|
245
246
|
prependIcon: "edit",
|
|
246
|
-
variant:
|
|
247
|
+
variant: eo.Tertiary,
|
|
247
248
|
disabled: y.disabled,
|
|
248
249
|
onClick() {
|
|
249
250
|
y.updateItem(
|
|
@@ -317,7 +318,7 @@ function Fo(y) {
|
|
|
317
318
|
!0
|
|
318
319
|
);
|
|
319
320
|
},
|
|
320
|
-
rules: [Ee(0),
|
|
321
|
+
rules: [Ee(0), oo(2)]
|
|
321
322
|
},
|
|
322
323
|
{
|
|
323
324
|
prepend() {
|
|
@@ -391,18 +392,18 @@ function Fo(y) {
|
|
|
391
392
|
headerClass: ""
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
|
-
],
|
|
395
|
+
], S = q(() => u.enableTotalCost && y.transferType === de.enum.purchase ? V : V.filter(
|
|
395
396
|
(i) => i.id !== "Cost"
|
|
396
397
|
/* Cost */
|
|
397
398
|
)), v = q(() => ({
|
|
398
399
|
...y.items.reduce((o, s) => {
|
|
399
|
-
const { cost: r } =
|
|
400
|
+
const { cost: r } = w(s);
|
|
400
401
|
return Me.add([o, r]);
|
|
401
402
|
}, Me.reset()),
|
|
402
|
-
currency: y.items[0] ?
|
|
403
|
+
currency: y.items[0] ? w(y.items[0]).cost.currency : ce()
|
|
403
404
|
}));
|
|
404
405
|
return {
|
|
405
|
-
columnDefs:
|
|
406
|
+
columnDefs: S,
|
|
406
407
|
totalCost: v
|
|
407
408
|
};
|
|
408
409
|
}
|
|
@@ -425,22 +426,22 @@ const $o = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
425
426
|
}, [
|
|
426
427
|
t("div", Io, $((h = d(n)) == null ? void 0 : h.name), 1),
|
|
427
428
|
t("div", Do, [
|
|
428
|
-
(b(!0), T(re, null, fe(u.prices[n].slice(0, 3), (
|
|
429
|
+
(b(!0), T(re, null, fe(u.prices[n].slice(0, 3), (w) => {
|
|
429
430
|
var V;
|
|
430
431
|
return b(), T("div", {
|
|
431
|
-
key:
|
|
432
|
+
key: w.date,
|
|
432
433
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
433
434
|
}, [
|
|
434
435
|
t("div", To, [
|
|
435
|
-
t("span", null, $(
|
|
436
|
+
t("span", null, $(w.totalCost ? e(Ce)(w.totalCost) : "No data"), 1),
|
|
436
437
|
g[0] || (g[0] = t("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
437
|
-
t("span", null, $(e(_e)(
|
|
438
|
-
t("span", null, $(((V =
|
|
438
|
+
t("span", null, $(e(_e)(w.totalUnit, !1)), 1),
|
|
439
|
+
t("span", null, $(((V = w.measurement) == null ? void 0 : V.abbrev) ?? w.unit.abbrev), 1)
|
|
439
440
|
]),
|
|
440
441
|
t("div", Vo, [
|
|
441
|
-
t("span", null, "(#" + $(
|
|
442
|
+
t("span", null, "(#" + $(w.seqNumber) + ")", 1),
|
|
442
443
|
g[1] || (g[1] = t("span", null, $(" "), -1)),
|
|
443
|
-
t("span", null, $(e(Ze)(new Date(
|
|
444
|
+
t("span", null, $(e(Ze)(new Date(w.date))), 1)
|
|
444
445
|
])
|
|
445
446
|
]);
|
|
446
447
|
}), 128))
|
|
@@ -463,7 +464,7 @@ const $o = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
463
464
|
setup(y) {
|
|
464
465
|
const { t: x } = ye();
|
|
465
466
|
return (d, u) => {
|
|
466
|
-
var h,
|
|
467
|
+
var h, w, V, S, v, i, o, s, r, a, _, F, c, f, D, M, Z, z, X, N, B, P, I, E, L, J, se;
|
|
467
468
|
const g = O("FmLabel"), n = O("FmSpacer");
|
|
468
469
|
return b(), T("div", Po, [
|
|
469
470
|
t("div", Ro, [
|
|
@@ -473,8 +474,8 @@ const $o = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
473
474
|
]),
|
|
474
475
|
t("div", null, [
|
|
475
476
|
m(e(me), {
|
|
476
|
-
render: (V = (
|
|
477
|
-
props: (v = (
|
|
477
|
+
render: (V = (w = (h = d.cellByColId.Delete) == null ? void 0 : h.column) == null ? void 0 : w.columnDef) == null ? void 0 : V.cell,
|
|
478
|
+
props: (v = (S = d.cellByColId.Delete) == null ? void 0 : S.getContext) == null ? void 0 : v.call(S)
|
|
478
479
|
}, null, 8, ["render", "props"])
|
|
479
480
|
])
|
|
480
481
|
]),
|
|
@@ -629,8 +630,8 @@ const Ho = {
|
|
|
629
630
|
},
|
|
630
631
|
emits: ["update:poItems", "update:forecastAmounts", "update:predictionId"],
|
|
631
632
|
setup(y, { emit: x }) {
|
|
632
|
-
const d = y, u = x, g = U(!1), n = U(7), h =
|
|
633
|
-
function
|
|
633
|
+
const d = y, u = x, g = U(!1), n = U(7), h = Kt(), w = Se(), { t: V } = ye();
|
|
634
|
+
function S(s, r, a) {
|
|
634
635
|
return r != null && s < r && (s = r), a != null && s > a && (s = a), s;
|
|
635
636
|
}
|
|
636
637
|
function v(s) {
|
|
@@ -649,7 +650,7 @@ const Ho = {
|
|
|
649
650
|
if (F) {
|
|
650
651
|
const D = F.conversion.amount;
|
|
651
652
|
let M = Math.ceil(_ / D);
|
|
652
|
-
return M =
|
|
653
|
+
return M = S(M, c, f), {
|
|
653
654
|
sku: s,
|
|
654
655
|
code: r,
|
|
655
656
|
name: a,
|
|
@@ -657,7 +658,7 @@ const Ho = {
|
|
|
657
658
|
measurement: F
|
|
658
659
|
};
|
|
659
660
|
} else {
|
|
660
|
-
const D = Math.ceil(
|
|
661
|
+
const D = Math.ceil(S(_, c, f));
|
|
661
662
|
return {
|
|
662
663
|
sku: s,
|
|
663
664
|
code: r,
|
|
@@ -668,9 +669,9 @@ const Ho = {
|
|
|
668
669
|
}
|
|
669
670
|
}
|
|
670
671
|
async function o() {
|
|
671
|
-
const s =
|
|
672
|
+
const s = mt(0)(n.value);
|
|
672
673
|
if (typeof s == "string") {
|
|
673
|
-
|
|
674
|
+
w.open({
|
|
674
675
|
message: s,
|
|
675
676
|
type: "error"
|
|
676
677
|
});
|
|
@@ -679,7 +680,7 @@ const Ho = {
|
|
|
679
680
|
g.value = !1, await h.readPurchaseOrder(n.value, d.templateId);
|
|
680
681
|
const r = h.purchaseOrderForecast.skus;
|
|
681
682
|
if (r.length === 0) {
|
|
682
|
-
|
|
683
|
+
w.open({
|
|
683
684
|
message: V("inventory.transfer.form.items.forecastStock.notAvailable"),
|
|
684
685
|
type: "info"
|
|
685
686
|
}), u("update:predictionId", h.purchaseOrderForecast.prediction_id);
|
|
@@ -767,7 +768,7 @@ const Ho = {
|
|
|
767
768
|
modelValue: n.value,
|
|
768
769
|
"onUpdate:modelValue": r[1] || (r[1] = (f) => n.value = f),
|
|
769
770
|
label: e(V)("inventory.transfer.form.items.forecastStock.days"),
|
|
770
|
-
rules: [e(
|
|
771
|
+
rules: [e(mt)(0)]
|
|
771
772
|
}, {
|
|
772
773
|
"helper-text": A(() => [
|
|
773
774
|
t("div", ss, [
|
|
@@ -801,7 +802,7 @@ const Ho = {
|
|
|
801
802
|
}
|
|
802
803
|
});
|
|
803
804
|
function ns() {
|
|
804
|
-
const y =
|
|
805
|
+
const y = Se(), x = We(), d = U(!1);
|
|
805
806
|
he(d, (h) => {
|
|
806
807
|
h && (g.value = !0, u().finally(() => {
|
|
807
808
|
g.value = !1;
|
|
@@ -809,7 +810,7 @@ function ns() {
|
|
|
809
810
|
});
|
|
810
811
|
async function u() {
|
|
811
812
|
try {
|
|
812
|
-
const { startDate: h, endDate:
|
|
813
|
+
const { startDate: h, endDate: w } = po(6), v = (await x.getPurchaseOrders({ start: h, end: w })).filter(
|
|
813
814
|
(i) => {
|
|
814
815
|
var o, s;
|
|
815
816
|
return i.status === Mt.enum.COMPLETE && ((o = i.supplier) == null ? void 0 : o.internal) !== "warehouse" && ((s = i.supplier) == null ? void 0 : s.internal) !== "restaurant";
|
|
@@ -868,13 +869,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
868
869
|
}])
|
|
869
870
|
}, [
|
|
870
871
|
(b(!0), T(re, null, fe(d.row.getVisibleCells(), (h) => {
|
|
871
|
-
var
|
|
872
|
+
var w, V, S, v;
|
|
872
873
|
return b(), T("td", {
|
|
873
874
|
key: h.id,
|
|
874
|
-
class: W(["h-[56px] text-fm-color-typo-primary", ((
|
|
875
|
+
class: W(["h-[56px] text-fm-color-typo-primary", ((w = x(h)) == null ? void 0 : w.cellClass) ?? "px-16"]),
|
|
875
876
|
style: vt({
|
|
876
877
|
width: (V = x(h)) == null ? void 0 : V.width,
|
|
877
|
-
maxWidth: (
|
|
878
|
+
maxWidth: (S = x(h)) == null ? void 0 : S.maxWidth,
|
|
878
879
|
textAlign: ((v = x(h)) == null ? void 0 : v.textAlign) ?? "left"
|
|
879
880
|
})
|
|
880
881
|
}, [
|
|
@@ -918,14 +919,14 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
918
919
|
},
|
|
919
920
|
emits: ["netsuite:ready"],
|
|
920
921
|
setup(y, { emit: x }) {
|
|
921
|
-
const d = qe(), u = y, g = x, { t: n } = go(), h = U(!1),
|
|
922
|
+
const d = qe(), u = y, g = x, { t: n } = go(), h = U(!1), w = U();
|
|
922
923
|
function V() {
|
|
923
924
|
var s, r, a, _;
|
|
924
925
|
if (!u.supplier) return;
|
|
925
|
-
u.supplier.internal ?
|
|
926
|
+
u.supplier.internal ? w.value = d.getNetSuiteLocation(
|
|
926
927
|
`${u.supplier.internal}_${u.supplier._id}`
|
|
927
|
-
) :
|
|
928
|
-
const i = u.supplier.internal ? d.getLocationSubsidiary((s =
|
|
928
|
+
) : w.value = d.getNetSuiteVendor(u.supplier._id);
|
|
929
|
+
const i = u.supplier.internal ? d.getLocationSubsidiary((s = w.value) == null ? void 0 : s.netSuiteId).id : (r = w.value) == null ? void 0 : r.subsidiaryId, o = u.supplier.internal ? (a = d.currentLocationSubsidiary()) == null ? void 0 : a.id : (_ = d.currentVendorSubsidiary(u.supplier._id)) == null ? void 0 : _.id;
|
|
929
930
|
h.value = !(!d.isEnabled || i && d.isEnabled && i == o);
|
|
930
931
|
}
|
|
931
932
|
he(
|
|
@@ -979,12 +980,12 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
979
980
|
}
|
|
980
981
|
}
|
|
981
982
|
});
|
|
982
|
-
const
|
|
983
|
+
const S = q(
|
|
983
984
|
() => u.supplier.internal ? d.currentLocationSubsidiary() : d.currentVendorSubsidiary(u.supplier._id)
|
|
984
985
|
), v = q(() => {
|
|
985
986
|
var i, o;
|
|
986
|
-
return
|
|
987
|
-
location is ${(o = d.getLocationSubsidiary((i =
|
|
987
|
+
return w.value == null ? `Cannot find the NetSuite location for "${u.supplier.name}"` : `The subsidiary of the request
|
|
988
|
+
location is ${(o = d.getLocationSubsidiary((i = w.value) == null ? void 0 : i.netSuiteId)) == null ? void 0 : o.fullName}`;
|
|
988
989
|
});
|
|
989
990
|
return (i, o) => {
|
|
990
991
|
const s = O("FmLabel"), r = O("FmIcon"), a = O("FmField"), _ = O("FmTooltip");
|
|
@@ -1014,7 +1015,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1014
1015
|
}, null, 8, ["color"]),
|
|
1015
1016
|
t("div", {
|
|
1016
1017
|
class: W([i.disabled ? "text-fm-color-typo-disabled" : ""])
|
|
1017
|
-
}, $((F =
|
|
1018
|
+
}, $((F = S.value) == null ? void 0 : F.fullName), 3)
|
|
1018
1019
|
])
|
|
1019
1020
|
];
|
|
1020
1021
|
}),
|
|
@@ -1028,7 +1029,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1028
1029
|
])) : K("", !0);
|
|
1029
1030
|
};
|
|
1030
1031
|
}
|
|
1031
|
-
}), 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" },
|
|
1032
|
+
}), 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 = {
|
|
1032
1033
|
key: 3,
|
|
1033
1034
|
class: "p-16 border border-fm-color-neutral-gray-300 fm-corner-radius-md flex flex-col"
|
|
1034
1035
|
}, Is = {
|
|
@@ -1055,7 +1056,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1055
1056
|
},
|
|
1056
1057
|
emits: ["validation-success", "form:ready"],
|
|
1057
1058
|
setup(y, { expose: x, emit: d }) {
|
|
1058
|
-
const u = y, g = d, { t: n } = ye(), h = Qe(),
|
|
1059
|
+
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), s = zt();
|
|
1059
1060
|
s.init(u.modelValue);
|
|
1060
1061
|
const { controller: r, state: a } = s, _ = Vt({
|
|
1061
1062
|
value: !1
|
|
@@ -1080,13 +1081,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1080
1081
|
});
|
|
1081
1082
|
const X = q(
|
|
1082
1083
|
() => h.currentLocation.type === qt.restaurant
|
|
1083
|
-
), N =
|
|
1084
|
+
), N = to(), B = vo(
|
|
1084
1085
|
() => a.value,
|
|
1085
1086
|
(l) => {
|
|
1086
1087
|
r.value.selectSupplier(l.supplier._id);
|
|
1087
1088
|
},
|
|
1088
1089
|
!0,
|
|
1089
|
-
!
|
|
1090
|
+
!S.businessSupplierOnly
|
|
1090
1091
|
), P = q({
|
|
1091
1092
|
get() {
|
|
1092
1093
|
var l;
|
|
@@ -1097,7 +1098,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1097
1098
|
}
|
|
1098
1099
|
}), I = q(() => {
|
|
1099
1100
|
let l = B.transferLocationOptions.value;
|
|
1100
|
-
return
|
|
1101
|
+
return S.mustUsePoTemplate && !a.value.template && (l = l.filter((p) => {
|
|
1101
1102
|
var j;
|
|
1102
1103
|
return (j = p.sublabel) == null ? void 0 : j.startsWith("restaurant");
|
|
1103
1104
|
})), l;
|
|
@@ -1221,7 +1222,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1221
1222
|
}
|
|
1222
1223
|
const xe = q(() => {
|
|
1223
1224
|
var l;
|
|
1224
|
-
return M.value ? ((l = M.value) == null ? void 0 : l.purchaseOrder.items) || [] :
|
|
1225
|
+
return M.value ? ((l = M.value) == null ? void 0 : l.purchaseOrder.items) || [] : w.skus.map((p) => ({
|
|
1225
1226
|
quantity: {
|
|
1226
1227
|
amount: 0,
|
|
1227
1228
|
precision: 0
|
|
@@ -1235,9 +1236,9 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1235
1236
|
},
|
|
1236
1237
|
measurement: p.trackingMeasurement ? p.unit.measurements.find((j) => j.id === p.trackingMeasurement) : null
|
|
1237
1238
|
}));
|
|
1238
|
-
}),
|
|
1239
|
+
}), we = q(() => {
|
|
1239
1240
|
const l = [];
|
|
1240
|
-
return (!
|
|
1241
|
+
return (!S.mustUsePoTemplate || S.mustUsePoTemplate && a.value.template) && l.push({
|
|
1241
1242
|
label: n("inventory.transfer.form.type.purchase"),
|
|
1242
1243
|
value: de.enum.purchase
|
|
1243
1244
|
}), l.push({
|
|
@@ -1272,7 +1273,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1272
1273
|
}
|
|
1273
1274
|
return (l, p) => {
|
|
1274
1275
|
var et, tt;
|
|
1275
|
-
const j = O("FmChip"), H = O("FmLabel"), ae = O("FmIcon"), ue = O("FmField"), Oe = O("FmTooltip"), Je = O("FmSelect"),
|
|
1276
|
+
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");
|
|
1276
1277
|
return b(), T("div", bs, [
|
|
1277
1278
|
t("div", gs, [
|
|
1278
1279
|
(et = u.modelValue) != null && et.template ? (b(), oe(j, {
|
|
@@ -1348,11 +1349,11 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1348
1349
|
}, null, 2)
|
|
1349
1350
|
])
|
|
1350
1351
|
]),
|
|
1351
|
-
t("div",
|
|
1352
|
+
t("div", Ss, [
|
|
1352
1353
|
m(H, {
|
|
1353
1354
|
label: P.value === e(de).enum.purchase ? e(n)("inventory.transfer.form.purchaseFrom") : e(n)("inventory.transfer.form.transferFrom")
|
|
1354
1355
|
}, null, 8, ["label"]),
|
|
1355
|
-
t("div",
|
|
1356
|
+
t("div", ws, [
|
|
1356
1357
|
m(Oe, {
|
|
1357
1358
|
"z-index": 51,
|
|
1358
1359
|
placement: "left",
|
|
@@ -1391,8 +1392,8 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1391
1392
|
"label-mark": "required",
|
|
1392
1393
|
modelValue: P.value,
|
|
1393
1394
|
"onUpdate:modelValue": p[0] || (p[0] = (R) => P.value = R),
|
|
1394
|
-
items:
|
|
1395
|
-
rules: [e(Ee)(1)(
|
|
1395
|
+
items: we.value,
|
|
1396
|
+
rules: [e(Ee)(1)(we.value)]
|
|
1396
1397
|
}, {
|
|
1397
1398
|
default: A(() => [
|
|
1398
1399
|
t("span", {
|
|
@@ -1435,13 +1436,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1435
1436
|
_: 1
|
|
1436
1437
|
}, 8, ["label", "modelValue", "items", "rules"])
|
|
1437
1438
|
], 64)),
|
|
1438
|
-
m(
|
|
1439
|
+
m(St, {
|
|
1439
1440
|
label: e(n)("inventory.transfer.form.reference"),
|
|
1440
1441
|
"label-mark": "optional",
|
|
1441
1442
|
modelValue: J.value,
|
|
1442
1443
|
"onUpdate:modelValue": p[2] || (p[2] = (R) => J.value = R)
|
|
1443
1444
|
}, null, 8, ["label", "modelValue"]),
|
|
1444
|
-
m(
|
|
1445
|
+
m(wt, {
|
|
1445
1446
|
label: e(n)("inventory.transfer.form.remark"),
|
|
1446
1447
|
"label-mark": "optional",
|
|
1447
1448
|
"max-length": 240,
|
|
@@ -1464,7 +1465,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1464
1465
|
_.value = !0;
|
|
1465
1466
|
})
|
|
1466
1467
|
}, null, 8, ["required", "subsidiaryOptional", "disabled", "supplier", "setting", "items", "onChange"])) : K("", !0),
|
|
1467
|
-
e(
|
|
1468
|
+
e(S).enableBackdatePo ? (b(), T("div", $s, [
|
|
1468
1469
|
t("div", {
|
|
1469
1470
|
class: W([
|
|
1470
1471
|
"flex",
|
|
@@ -1503,7 +1504,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1503
1504
|
key: 0,
|
|
1504
1505
|
modelValue: e(se),
|
|
1505
1506
|
"onUpdate:modelValue": p[8] || (p[8] = (R) => ge(se) ? se.value = R : null),
|
|
1506
|
-
rules: [e(
|
|
1507
|
+
rules: [e(so)(new Date(l.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1507
1508
|
}, null, 8, ["modelValue", "rules"])) : K("", !0),
|
|
1508
1509
|
X.value && !l.lastClosingDate ? (b(), T("div", Vs, [
|
|
1509
1510
|
m(ae, {
|
|
@@ -1559,7 +1560,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1559
1560
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1560
1561
|
])
|
|
1561
1562
|
], 2),
|
|
1562
|
-
P.value === e(de).enum.purchase && Z.value && e(
|
|
1563
|
+
P.value === e(de).enum.purchase && Z.value && e(S).enableTotalCost && z.value.length ? (b(), T("div", Ms, [
|
|
1563
1564
|
m(Ge, {
|
|
1564
1565
|
label: e(ie) ? e(n)("inventory.transfer.form.items.fetchingData") : e(n)("inventory.transfer.form.items.comparePriceHistory"),
|
|
1565
1566
|
"prepend-icon": "compare_arrows",
|
|
@@ -1619,7 +1620,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1619
1620
|
_: 1
|
|
1620
1621
|
}, 8, ["column-defs", "column-visibility", "row-data", "page-size"]))
|
|
1621
1622
|
]),
|
|
1622
|
-
e(
|
|
1623
|
+
e(S).enableTotalCost ? (b(), T("div", Es, [
|
|
1623
1624
|
t("div", qs, [
|
|
1624
1625
|
t("div", Us, $(e(n)("inventory.transfer.form.surcharges.totalCost")), 1),
|
|
1625
1626
|
t("div", Ns, $(e(ce)()) + " " + $(e(Ce)({
|
|
@@ -1674,7 +1675,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1674
1675
|
emits: ["update:show", "submitted"],
|
|
1675
1676
|
setup(y, { expose: x, emit: d }) {
|
|
1676
1677
|
var se;
|
|
1677
|
-
const u = y, g = d, n = We(), h = kt(),
|
|
1678
|
+
const u = y, g = d, n = We(), h = kt(), w = Se(), V = xt(), S = Ye(), v = Qe(), { t: i } = ye(), o = U(!1), s = U(!1), r = U(!1), a = U(!1), _ = q(() => {
|
|
1678
1679
|
var k;
|
|
1679
1680
|
return ((k = D.value.items) == null ? void 0 : k.filter((C) => C.quantity.amount === 0)) ?? [];
|
|
1680
1681
|
});
|
|
@@ -1684,7 +1685,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1684
1685
|
try {
|
|
1685
1686
|
await V.readSuppliers(), s.value = !0;
|
|
1686
1687
|
} catch {
|
|
1687
|
-
|
|
1688
|
+
w.open({
|
|
1688
1689
|
title: i("inventory.transfer.form.unableToFetchListOfSuppliers.title"),
|
|
1689
1690
|
message: i("inventory.transfer.form.unableToFetchListOfSuppliers.message"),
|
|
1690
1691
|
type: "error"
|
|
@@ -1763,7 +1764,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1763
1764
|
async function N() {
|
|
1764
1765
|
const k = D.value;
|
|
1765
1766
|
if (o.value = !0, k.items = k.items.filter((C) => C.quantity.amount > 0), !k.items.length) {
|
|
1766
|
-
|
|
1767
|
+
w.open({
|
|
1767
1768
|
title: "Cannot create order",
|
|
1768
1769
|
message: "There are no items with non-zero amount in your request.",
|
|
1769
1770
|
type: "error"
|
|
@@ -1772,13 +1773,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1772
1773
|
}
|
|
1773
1774
|
(k.supplier.internal === "warehouse" || k.supplier.internal === "restaurant") && (k.items = k.items.map(({ totalCost: C, ...Q }) => Q));
|
|
1774
1775
|
try {
|
|
1775
|
-
await n.createPurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)),
|
|
1776
|
+
await n.createPurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)), w.open({
|
|
1776
1777
|
title: i("inventory.transfer.receiveRequest.create.success"),
|
|
1777
1778
|
message: i("inventory.transfer.receiveRequest.create.successMessage"),
|
|
1778
1779
|
type: "success"
|
|
1779
1780
|
}), g("update:show", !1), g("submitted");
|
|
1780
1781
|
} catch (C) {
|
|
1781
|
-
|
|
1782
|
+
w.open({
|
|
1782
1783
|
title: i("inventory.transfer.receiveRequest.create.error.title"),
|
|
1783
1784
|
message: i("inventory.transfer.receiveRequest.create.error.message"),
|
|
1784
1785
|
type: "error"
|
|
@@ -1790,7 +1791,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1790
1791
|
async function B() {
|
|
1791
1792
|
const k = D.value;
|
|
1792
1793
|
if (o.value = !0, k.items = k.items.filter((C) => C.quantity.amount > 0), !k.items.length) {
|
|
1793
|
-
|
|
1794
|
+
w.open({
|
|
1794
1795
|
title: "Cannot create order",
|
|
1795
1796
|
message: "There are no items with non-zero amount in your request.",
|
|
1796
1797
|
type: "error"
|
|
@@ -1799,13 +1800,13 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1799
1800
|
}
|
|
1800
1801
|
(k.supplier.internal === "warehouse" || k.supplier.internal === "restaurant") && (k.items = k.items.map(({ totalCost: C, ...Q }) => Q));
|
|
1801
1802
|
try {
|
|
1802
|
-
await n.updatePurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)),
|
|
1803
|
+
await n.updatePurchaseOrder(k), await new Promise((C) => setTimeout(C, 1e3)), w.open({
|
|
1803
1804
|
title: i("inventory.transfer.receiveRequest.update.success"),
|
|
1804
1805
|
message: i("inventory.transfer.receiveRequest.update.successMessage"),
|
|
1805
1806
|
type: "success"
|
|
1806
1807
|
}), g("update:show", !1), g("submitted");
|
|
1807
1808
|
} catch (C) {
|
|
1808
|
-
|
|
1809
|
+
w.open({
|
|
1809
1810
|
title: i("inventory.transfer.receiveRequest.update.error.title"),
|
|
1810
1811
|
message: i("inventory.transfer.receiveRequest.update.error.message"),
|
|
1811
1812
|
type: "error"
|
|
@@ -1835,12 +1836,12 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1835
1836
|
function L() {
|
|
1836
1837
|
var Q, le;
|
|
1837
1838
|
const k = io.validatePurchaseOrderItems({
|
|
1838
|
-
skusById:
|
|
1839
|
+
skusById: S.skuById ?? {},
|
|
1839
1840
|
items: D.value.items ?? []
|
|
1840
1841
|
}), C = Object.values(k).flat();
|
|
1841
1842
|
if (C.length > 0) {
|
|
1842
1843
|
const ie = C[0];
|
|
1843
|
-
|
|
1844
|
+
w.open({
|
|
1844
1845
|
title: `[Row ${ie.index + 1}] "${ie.poItem.sku.name}"`,
|
|
1845
1846
|
message: `${ie.message}`,
|
|
1846
1847
|
type: "error"
|
|
@@ -1882,7 +1883,7 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1882
1883
|
"onUpdate:modelValue": C[1] || (C[1] = (ee) => D.value = ee),
|
|
1883
1884
|
disabled: o.value || Z.value,
|
|
1884
1885
|
suppliers: e(V).suppliers,
|
|
1885
|
-
skus: e(
|
|
1886
|
+
skus: e(S).skus,
|
|
1886
1887
|
key: M.value,
|
|
1887
1888
|
"last-closing-date": k.lastClosingDate
|
|
1888
1889
|
}, null, 8, ["modelValue", "disabled", "suppliers", "skus", "last-closing-date"]))
|
|
@@ -1949,16 +1950,16 @@ const is = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, us = { key: 0 }
|
|
|
1949
1950
|
}
|
|
1950
1951
|
});
|
|
1951
1952
|
function ia(y) {
|
|
1952
|
-
const [x, d, u, ...g] = _o(y), n = u.map((
|
|
1953
|
-
if (
|
|
1953
|
+
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));
|
|
1954
|
+
if (w.length)
|
|
1954
1955
|
throw new Error(
|
|
1955
|
-
`Missing headers (${
|
|
1956
|
+
`Missing headers (${w.join()}). Excel file does not come from the template.`
|
|
1956
1957
|
);
|
|
1957
|
-
return g.map((
|
|
1958
|
+
return g.map((S, v) => {
|
|
1958
1959
|
const i = {};
|
|
1959
1960
|
for (const o in n) {
|
|
1960
1961
|
const s = n[o];
|
|
1961
|
-
Object.assign(i, { [s]:
|
|
1962
|
+
Object.assign(i, { [s]: S[o] });
|
|
1962
1963
|
}
|
|
1963
1964
|
return {
|
|
1964
1965
|
index: v,
|
|
@@ -1971,10 +1972,10 @@ function ua(y) {
|
|
|
1971
1972
|
try {
|
|
1972
1973
|
return x.reduce(
|
|
1973
1974
|
(u, g) => {
|
|
1974
|
-
const n = new Array(), h = y.Sheets[g],
|
|
1975
|
+
const n = new Array(), h = y.Sheets[g], w = Ye(), V = ia(h), S = [];
|
|
1975
1976
|
for (const { index: i, data: o } of V) {
|
|
1976
1977
|
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`);
|
|
1977
|
-
const s =
|
|
1978
|
+
const s = w.skus.find((_) => _.code === o.scanned_code);
|
|
1978
1979
|
if (!s) {
|
|
1979
1980
|
n.push(`Row ${i + 1}: SKU not found`);
|
|
1980
1981
|
continue;
|
|
@@ -1989,7 +1990,7 @@ function ua(y) {
|
|
|
1989
1990
|
}
|
|
1990
1991
|
a = _;
|
|
1991
1992
|
}
|
|
1992
|
-
|
|
1993
|
+
S.push({
|
|
1993
1994
|
sku: s,
|
|
1994
1995
|
code: o.scanned_code,
|
|
1995
1996
|
name: o.item_name,
|
|
@@ -1999,7 +2000,7 @@ function ua(y) {
|
|
|
1999
2000
|
}
|
|
2000
2001
|
const v = {
|
|
2001
2002
|
type: "create",
|
|
2002
|
-
poItems:
|
|
2003
|
+
poItems: S,
|
|
2003
2004
|
excelSheetName: g,
|
|
2004
2005
|
errors: n
|
|
2005
2006
|
};
|
|
@@ -2036,8 +2037,8 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2036
2037
|
x.errors.length && (u.value = !u.value);
|
|
2037
2038
|
};
|
|
2038
2039
|
return (n, h) => {
|
|
2039
|
-
var
|
|
2040
|
-
const
|
|
2040
|
+
var S;
|
|
2041
|
+
const w = O("FmIcon"), V = O("FmTooltip");
|
|
2041
2042
|
return b(), T("div", da, [
|
|
2042
2043
|
t("div", {
|
|
2043
2044
|
onClick: g,
|
|
@@ -2056,7 +2057,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2056
2057
|
n.type === "create" ? (b(), T("span", pa, "(" + $(e(d)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
|
|
2057
2058
|
], 2),
|
|
2058
2059
|
n.errors.length ? (b(), T("div", fa, [
|
|
2059
|
-
m(
|
|
2060
|
+
m(w, {
|
|
2060
2061
|
name: "error",
|
|
2061
2062
|
size: "sm",
|
|
2062
2063
|
color: "system-error-300"
|
|
@@ -2065,7 +2066,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2065
2066
|
]),
|
|
2066
2067
|
h[0] || (h[0] = t("hr", { class: "my-2" }, null, -1)),
|
|
2067
2068
|
t("div", va, [
|
|
2068
|
-
(
|
|
2069
|
+
(S = n.items) != null && S.length ? (b(!0), T(re, { key: 0 }, fe(n.items, (v, i) => (b(), T("div", {
|
|
2069
2070
|
key: i,
|
|
2070
2071
|
class: "flex gap-4 mt-2 items-center"
|
|
2071
2072
|
}, [
|
|
@@ -2101,7 +2102,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2101
2102
|
])
|
|
2102
2103
|
]),
|
|
2103
2104
|
t("div", ha, [
|
|
2104
|
-
n.errors.length ? (b(), oe(
|
|
2105
|
+
n.errors.length ? (b(), oe(w, {
|
|
2105
2106
|
key: 0,
|
|
2106
2107
|
name: u.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
2107
2108
|
size: "md"
|
|
@@ -2124,10 +2125,10 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2124
2125
|
]);
|
|
2125
2126
|
};
|
|
2126
2127
|
}
|
|
2127
|
-
}), Ca = { class: "flex flex-col gap-24" },
|
|
2128
|
+
}), Ca = { class: "flex flex-col gap-24" }, Sa = {
|
|
2128
2129
|
key: 0,
|
|
2129
2130
|
class: "flex items-center gap-8"
|
|
2130
|
-
},
|
|
2131
|
+
}, 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 = {
|
|
2131
2132
|
key: 2,
|
|
2132
2133
|
class: "shrink-0"
|
|
2133
2134
|
}, Da = {
|
|
@@ -2139,9 +2140,9 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2139
2140
|
}, Pa = { class: "fm-typo-en-body-lg-600" }, pt = "Transfer note", Ra = /* @__PURE__ */ ne({
|
|
2140
2141
|
__name: "XilnexImportForm",
|
|
2141
2142
|
setup(y, { expose: x }) {
|
|
2142
|
-
const d = U(null), u =
|
|
2143
|
+
const d = U(null), u = Se(), g = U(!1), n = U(!1), h = ko(), w = U(!1), V = qe();
|
|
2143
2144
|
U([]);
|
|
2144
|
-
const
|
|
2145
|
+
const S = q({
|
|
2145
2146
|
get() {
|
|
2146
2147
|
var c;
|
|
2147
2148
|
return ((c = h.supplier) == null ? void 0 : c.name) ?? "";
|
|
@@ -2165,7 +2166,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2165
2166
|
});
|
|
2166
2167
|
He(async () => {
|
|
2167
2168
|
const c = await V.getNetSuiteLocations();
|
|
2168
|
-
console.log(c),
|
|
2169
|
+
console.log(c), w.value = !0;
|
|
2169
2170
|
});
|
|
2170
2171
|
const v = q({
|
|
2171
2172
|
get() {
|
|
@@ -2249,8 +2250,8 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2249
2250
|
default: A(() => [
|
|
2250
2251
|
t("div", Ca, [
|
|
2251
2252
|
m(D, {
|
|
2252
|
-
modelValue:
|
|
2253
|
-
"onUpdate:modelValue": f[0] || (f[0] = (I) =>
|
|
2253
|
+
modelValue: S.value,
|
|
2254
|
+
"onUpdate:modelValue": f[0] || (f[0] = (I) => S.value = I),
|
|
2254
2255
|
label: "Transfer from",
|
|
2255
2256
|
searchable: "",
|
|
2256
2257
|
searchTarget: "label",
|
|
@@ -2277,14 +2278,14 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2277
2278
|
label: "Transfer time",
|
|
2278
2279
|
rules: [e(De)()]
|
|
2279
2280
|
}, null, 8, ["modelValue", "rules"]),
|
|
2280
|
-
n.value ? (b(), T("div",
|
|
2281
|
+
n.value ? (b(), T("div", Sa, [
|
|
2281
2282
|
t("div", null, [
|
|
2282
2283
|
m(z, {
|
|
2283
2284
|
size: "md",
|
|
2284
2285
|
color: "neutral-gray-200"
|
|
2285
2286
|
})
|
|
2286
2287
|
]),
|
|
2287
|
-
t("div",
|
|
2288
|
+
t("div", wa, $(e(_)("inventory.formField.loading")), 1)
|
|
2288
2289
|
])) : (b(), T(re, { key: 1 }, [
|
|
2289
2290
|
m(xo, {
|
|
2290
2291
|
"max-file-size": 5,
|
|
@@ -2389,24 +2390,24 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2389
2390
|
},
|
|
2390
2391
|
emits: ["update:show", "submitted"],
|
|
2391
2392
|
setup(y, { expose: x, emit: d }) {
|
|
2392
|
-
const u = d, n = _t(y, "show"), h =
|
|
2393
|
+
const u = d, n = _t(y, "show"), h = Se(), w = We(), V = U(!1), S = U(), v = U();
|
|
2393
2394
|
x({
|
|
2394
2395
|
validateInputs: () => {
|
|
2395
2396
|
var s, r;
|
|
2396
|
-
(r = (s =
|
|
2397
|
+
(r = (s = S.value) == null ? void 0 : s.validateInputs) == null || r.call(s);
|
|
2397
2398
|
},
|
|
2398
2399
|
resetInputsValidation: () => {
|
|
2399
2400
|
var s, r;
|
|
2400
|
-
(r = (s =
|
|
2401
|
+
(r = (s = S.value) == null ? void 0 : s.resetInputsValidation) == null || r.call(s);
|
|
2401
2402
|
},
|
|
2402
2403
|
resetInputs: () => {
|
|
2403
2404
|
var s, r;
|
|
2404
|
-
(r = (s =
|
|
2405
|
+
(r = (s = S.value) == null ? void 0 : s.resetInputs) == null || r.call(s);
|
|
2405
2406
|
}
|
|
2406
2407
|
});
|
|
2407
2408
|
function i() {
|
|
2408
2409
|
var s, r;
|
|
2409
|
-
(r = (s =
|
|
2410
|
+
(r = (s = S.value) == null ? void 0 : s.validateInputs) == null || r.call(s);
|
|
2410
2411
|
}
|
|
2411
2412
|
async function o() {
|
|
2412
2413
|
var r, a, _, F, c;
|
|
@@ -2445,7 +2446,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2445
2446
|
}
|
|
2446
2447
|
V.value = !0;
|
|
2447
2448
|
try {
|
|
2448
|
-
await
|
|
2449
|
+
await w.importFromXilnex(v.value), u("update:show", !1);
|
|
2449
2450
|
} catch (f) {
|
|
2450
2451
|
await new Promise((D) => setTimeout(D, 1e3)), h.open({
|
|
2451
2452
|
title: "Upload failed",
|
|
@@ -2491,7 +2492,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2491
2492
|
t("div", Oa, [
|
|
2492
2493
|
m(Ra, {
|
|
2493
2494
|
ref_key: "formRef",
|
|
2494
|
-
ref:
|
|
2495
|
+
ref: S,
|
|
2495
2496
|
onValidationSuccess: o,
|
|
2496
2497
|
modelValue: v.value,
|
|
2497
2498
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => v.value = c)
|
|
@@ -2505,10 +2506,10 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2505
2506
|
}), 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 = {
|
|
2506
2507
|
key: 0,
|
|
2507
2508
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
2508
|
-
}, Ba = { class: "pt-8" }, ft = "ReceiveRequestViewSearchCriteria",
|
|
2509
|
+
}, Ba = { class: "pt-8" }, ft = "ReceiveRequestViewSearchCriteria", gr = /* @__PURE__ */ ne({
|
|
2509
2510
|
__name: "ReceiveRequestView",
|
|
2510
2511
|
setup(y) {
|
|
2511
|
-
const { t: x } = ye(), d =
|
|
2512
|
+
const { t: x } = ye(), d = Se();
|
|
2512
2513
|
Ae.object({
|
|
2513
2514
|
name: Ae.string().optional().nullable(),
|
|
2514
2515
|
startDate: Ae.string().optional().nullable(),
|
|
@@ -2516,8 +2517,8 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2516
2517
|
});
|
|
2517
2518
|
const u = q(
|
|
2518
2519
|
() => !o._currentLocation || v.loading.value
|
|
2519
|
-
), g =
|
|
2520
|
-
function
|
|
2520
|
+
), g = Wt(), n = Xe(), h = qe();
|
|
2521
|
+
function w() {
|
|
2521
2522
|
const N = {
|
|
2522
2523
|
name: "",
|
|
2523
2524
|
...dt()
|
|
@@ -2531,21 +2532,21 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2531
2532
|
}
|
|
2532
2533
|
}
|
|
2533
2534
|
function V() {
|
|
2534
|
-
g.setItem(ft, JSON.stringify(
|
|
2535
|
+
g.setItem(ft, JSON.stringify(S.value));
|
|
2535
2536
|
}
|
|
2536
|
-
const
|
|
2537
|
+
const S = U(w()), v = Lt(
|
|
2537
2538
|
Le.RECEIVE_REQUEST,
|
|
2538
|
-
|
|
2539
|
+
S.value
|
|
2539
2540
|
), { columnDefs: i } = jt(
|
|
2540
2541
|
Le.RECEIVE_REQUEST,
|
|
2541
2542
|
v,
|
|
2542
2543
|
v.shipments
|
|
2543
2544
|
), o = Qe();
|
|
2544
2545
|
async function s() {
|
|
2545
|
-
const N = `inventory-record_${
|
|
2546
|
+
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(
|
|
2546
2547
|
(I) => I.items.map((E) => {
|
|
2547
2548
|
var Q;
|
|
2548
|
-
const L = new Date(
|
|
2549
|
+
const L = new Date(Xt(I._id) ?? ""), J = I.effectiveAt ? new Date(I.effectiveAt) : void 0, se = _e(
|
|
2549
2550
|
Qt(E.sku, I.deliveryOrder || [])
|
|
2550
2551
|
), k = _e(E.quantity), C = ((Q = E == null ? void 0 : E.measurement) == null ? void 0 : Q.abbrev) || E.sku.unit.abbrev;
|
|
2551
2552
|
return {
|
|
@@ -2573,7 +2574,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2573
2574
|
"Ordered quantity",
|
|
2574
2575
|
"Unit"
|
|
2575
2576
|
];
|
|
2576
|
-
n.enableBackdatePo && P.insert("Effective at", 4), n.enableTotalCost && P.push("Total cost"), await
|
|
2577
|
+
n.enableBackdatePo && P.insert("Effective at", 4), n.enableTotalCost && P.push("Total cost"), await Zt(
|
|
2577
2578
|
[
|
|
2578
2579
|
{
|
|
2579
2580
|
name: "purchases",
|
|
@@ -2590,9 +2591,9 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2590
2591
|
}
|
|
2591
2592
|
const r = U(dt()), a = U("");
|
|
2592
2593
|
he([() => r.value], ([N]) => {
|
|
2593
|
-
!N.startDate || !N.endDate || (
|
|
2594
|
-
|
|
2595
|
-
|
|
2594
|
+
!N.startDate || !N.endDate || (S.value.startDate = N.startDate, S.value.endDate = N.endDate, v.updateDateRange(
|
|
2595
|
+
S.value.startDate,
|
|
2596
|
+
S.value.endDate
|
|
2596
2597
|
), V());
|
|
2597
2598
|
}), he([() => a.value], () => {
|
|
2598
2599
|
V();
|
|
@@ -2616,7 +2617,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2616
2617
|
if (N === "export")
|
|
2617
2618
|
return s();
|
|
2618
2619
|
}
|
|
2619
|
-
const { breakpoints: F } = Ke(), c = q(() => F.value.xs || F.value.sm), f = q(() => c.value ? 10 : 20), D =
|
|
2620
|
+
const { breakpoints: F } = Ke(), c = q(() => F.value.xs || F.value.sm), f = q(() => c.value ? 10 : 20), D = Jt(), M = q(() => [
|
|
2620
2621
|
{
|
|
2621
2622
|
label: x("inventory.transfer.receiveRequest.actions.create"),
|
|
2622
2623
|
value: "create",
|
|
@@ -2683,7 +2684,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2683
2684
|
const N = Co.build(z.value);
|
|
2684
2685
|
return v.purchaseOrders.value.filter((B) => {
|
|
2685
2686
|
var P, I, E, L;
|
|
2686
|
-
return
|
|
2687
|
+
return So(
|
|
2687
2688
|
{
|
|
2688
2689
|
netsuiteTransactionNumber: (I = (P = B.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : I.transactionnumber,
|
|
2689
2690
|
netsuiteOrderNo: (E = B.netSuite) == null ? void 0 : E.refNo,
|
|
@@ -2696,7 +2697,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2696
2697
|
});
|
|
2697
2698
|
return (N, B) => {
|
|
2698
2699
|
const P = O("FmTable");
|
|
2699
|
-
return b(), oe(
|
|
2700
|
+
return b(), oe(Gt, {
|
|
2700
2701
|
title: e(x)("inventory.transfer.receiveRequest.title2"),
|
|
2701
2702
|
actions: M.value,
|
|
2702
2703
|
"onClick:action": _
|
|
@@ -2742,7 +2743,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2742
2743
|
onRowClick: e(v).promptShowTransferDetails
|
|
2743
2744
|
}, {
|
|
2744
2745
|
default: A((J) => {
|
|
2745
|
-
var se, k, C, Q, le, ie, ee, be, ve, Te, Ve, Pe, Ue, xe,
|
|
2746
|
+
var se, k, C, Q, le, ie, ee, be, ve, Te, Ve, Pe, Ue, xe, we, Fe, Re, l, p, j;
|
|
2746
2747
|
return [
|
|
2747
2748
|
t("div", Ma, [
|
|
2748
2749
|
t("div", Ea, [
|
|
@@ -2761,7 +2762,7 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2761
2762
|
L.original.ref ? (b(), T("div", Na, [
|
|
2762
2763
|
m(e(me), {
|
|
2763
2764
|
render: (Ue = (Pe = (Ve = J.ref) == null ? void 0 : Ve.column) == null ? void 0 : Pe.columnDef) == null ? void 0 : Ue.cell,
|
|
2764
|
-
props: (
|
|
2765
|
+
props: (we = (xe = J.ref) == null ? void 0 : xe.getContext) == null ? void 0 : we.call(xe)
|
|
2765
2766
|
}, null, 8, ["render", "props"])
|
|
2766
2767
|
])) : K("", !0),
|
|
2767
2768
|
t("div", Ba, [
|
|
@@ -2802,5 +2803,5 @@ const da = { class: "flex flex-col flex-1" }, ca = { class: "flex flex-col" }, m
|
|
|
2802
2803
|
}
|
|
2803
2804
|
});
|
|
2804
2805
|
export {
|
|
2805
|
-
|
|
2806
|
+
gr as default
|
|
2806
2807
|
};
|