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