@erpsquad/common 1.9.99 → 1.9.101
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/chunks/{android-12-switch-DSBIf4t0.esm.js → android-12-switch-DNPEmult.esm.js} +13 -12
- package/dist/chunks/android-12-switch-DNPEmult.esm.js.map +1 -0
- package/dist/chunks/{android-12-switch-DvCF0gyx.js → android-12-switch-cTw1ou6B.js} +13 -12
- package/dist/chunks/android-12-switch-cTw1ou6B.js.map +1 -0
- package/dist/chunks/{apiHelper-Cv_qWaYo.esm.js → apiHelper-73EBSKIp.esm.js} +5 -5
- package/dist/chunks/{apiHelper-Cv_qWaYo.esm.js.map → apiHelper-73EBSKIp.esm.js.map} +1 -1
- package/dist/chunks/{apiHelper-5tNsUtSY.js → apiHelper-BVJa3_k8.js} +5 -5
- package/dist/chunks/{apiHelper-5tNsUtSY.js.map → apiHelper-BVJa3_k8.js.map} +1 -1
- package/dist/chunks/{appbar-DM2iBqb4.esm.js → appbar-CqjkuAGQ.esm.js} +3 -3
- package/dist/chunks/{appbar-DM2iBqb4.esm.js.map → appbar-CqjkuAGQ.esm.js.map} +1 -1
- package/dist/chunks/{appbar-rfkAYQdQ.js → appbar-pTs1Yhzo.js} +3 -3
- package/dist/chunks/{appbar-rfkAYQdQ.js.map → appbar-pTs1Yhzo.js.map} +1 -1
- package/dist/chunks/{default-data-DQ7VPUoj.js → default-data-BDDKiXW_.js} +7 -7
- package/dist/chunks/{default-data-DQ7VPUoj.js.map → default-data-BDDKiXW_.js.map} +1 -1
- package/dist/chunks/{default-data-BV_r59U9.esm.js → default-data-Btk_wk18.esm.js} +7 -7
- package/dist/chunks/{default-data-BV_r59U9.esm.js.map → default-data-Btk_wk18.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-v5GvXDZ9.js → form-builder-deconversion-C4DFp-Jv.js} +2 -2
- package/dist/chunks/{form-builder-deconversion-v5GvXDZ9.js.map → form-builder-deconversion-C4DFp-Jv.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-CUwBfP4C.esm.js → form-builder-deconversion-CIJWMHun.esm.js} +2 -2
- package/dist/chunks/{form-builder-deconversion-CUwBfP4C.esm.js.map → form-builder-deconversion-CIJWMHun.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-Bfrr-bT2.js → fullScreen-BNlY6F_Z.js} +2 -2
- package/dist/chunks/{fullScreen-Bfrr-bT2.js.map → fullScreen-BNlY6F_Z.js.map} +1 -1
- package/dist/chunks/{fullScreen-BO0UA3Zr.esm.js → fullScreen-CV8aHM8J.esm.js} +2 -2
- package/dist/chunks/{fullScreen-BO0UA3Zr.esm.js.map → fullScreen-CV8aHM8J.esm.js.map} +1 -1
- package/dist/chunks/{languageContext-BP7EvzMv.js → languageContext-BSEvKGy9.js} +2 -2
- package/dist/chunks/{languageContext-BP7EvzMv.js.map → languageContext-BSEvKGy9.js.map} +1 -1
- package/dist/chunks/{languageContext-DM_LTp53.esm.js → languageContext-D_khAb2z.esm.js} +2 -2
- package/dist/chunks/{languageContext-DM_LTp53.esm.js.map → languageContext-D_khAb2z.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-D9TSOBR0.esm.js → migration-utils-ChJDhzct.esm.js} +96 -15
- package/dist/chunks/migration-utils-ChJDhzct.esm.js.map +1 -0
- package/dist/chunks/{migration-utils-DwLXzWtr.js → migration-utils-D_sKDk5V.js} +96 -15
- package/dist/chunks/migration-utils-D_sKDk5V.js.map +1 -0
- package/dist/chunks/{page-context-B_wK6kLR.esm.js → page-context-D0QJui88.esm.js} +154 -57
- package/dist/chunks/page-context-D0QJui88.esm.js.map +1 -0
- package/dist/chunks/{page-context-h7LEMAG0.js → page-context-fgpShY8H.js} +153 -56
- package/dist/chunks/page-context-fgpShY8H.js.map +1 -0
- package/dist/chunks/{pathname.quotes-B-KBD2nK.js → pathname.quotes-B3uFEZQS.js} +8 -2
- package/dist/chunks/{pathname.quotes-B-KBD2nK.js.map → pathname.quotes-B3uFEZQS.js.map} +1 -1
- package/dist/chunks/{pathname.quotes-BJy0IzWu.esm.js → pathname.quotes-Y66LAPf2.esm.js} +8 -2
- package/dist/chunks/{pathname.quotes-BJy0IzWu.esm.js.map → pathname.quotes-Y66LAPf2.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-l49eLo8p.esm.js → sidebar-DGGqCL8z.esm.js} +4 -4
- package/dist/chunks/{sidebar-l49eLo8p.esm.js.map → sidebar-DGGqCL8z.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-C2zkLZyA.js → sidebar-DZ3SNJU4.js} +4 -4
- package/dist/chunks/{sidebar-C2zkLZyA.js.map → sidebar-DZ3SNJU4.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-BQN2N8jx.esm.js → sidebarScreen-D0v7aHxc.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-BQN2N8jx.esm.js.map → sidebarScreen-D0v7aHxc.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-PoYXto7E.js → sidebarScreen-usZhvsdA.js} +4 -4
- package/dist/chunks/{sidebarScreen-PoYXto7E.js.map → sidebarScreen-usZhvsdA.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-l8HA79k1.js → uom-field-wrapper-C_fC_3cE.js} +20 -14
- package/dist/chunks/uom-field-wrapper-C_fC_3cE.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-Ckop1JTE.esm.js → uom-field-wrapper-Wz8rJ_Zi.esm.js} +20 -14
- package/dist/chunks/uom-field-wrapper-Wz8rJ_Zi.esm.js.map +1 -0
- package/dist/chunks/{useAccountSetting-ngzko7sX.js → useAccountSetting-BUtKbR7D.js} +2 -2
- package/dist/chunks/{useAccountSetting-ngzko7sX.js.map → useAccountSetting-BUtKbR7D.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-D6Hhq1Pz.esm.js → useAccountSetting-YwdjGrxs.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-D6Hhq1Pz.esm.js.map → useAccountSetting-YwdjGrxs.esm.js.map} +1 -1
- package/dist/chunks/{useAuth-HvZ6U960.js → useAuth-Bn-Dk5iL.js} +3 -1
- package/dist/chunks/{useAuth-HvZ6U960.js.map → useAuth-Bn-Dk5iL.js.map} +1 -1
- package/dist/chunks/{useAuth-Tfx2guEJ.esm.js → useAuth-DatwJNOz.esm.js} +3 -1
- package/dist/chunks/{useAuth-Tfx2guEJ.esm.js.map → useAuth-DatwJNOz.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-DwsR1jcv.js → useLangauge-CZdmpat2.js} +2 -2
- package/dist/chunks/{useLangauge-DwsR1jcv.js.map → useLangauge-CZdmpat2.js.map} +1 -1
- package/dist/chunks/{useLangauge-BU_fP3ZM.esm.js → useLangauge-ko-Wm4Qq.esm.js} +2 -2
- package/dist/chunks/{useLangauge-BU_fP3ZM.esm.js.map → useLangauge-ko-Wm4Qq.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-VgWJGErE.esm.js → useReduxIntegration-B8otN3ek.esm.js} +3 -3
- package/dist/chunks/{useReduxIntegration-VgWJGErE.esm.js.map → useReduxIntegration-B8otN3ek.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-JMVTp0lq.js → useReduxIntegration-CZkiPDYL.js} +3 -3
- package/dist/chunks/{useReduxIntegration-JMVTp0lq.js.map → useReduxIntegration-CZkiPDYL.js.map} +1 -1
- package/dist/components/index.esm.js +8 -8
- package/dist/components/index.js +8 -8
- package/dist/components/protected-route.d.ts +1 -1
- package/dist/constants/index.esm.js +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/lang/en.d.ts +6 -0
- package/dist/constants/resource-lang.d.ts +6 -0
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/index.esm.js +17 -17
- package/dist/index.js +17 -17
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/src/components/protected-route.d.ts +1 -1
- package/dist/src/constants/lang/en.d.ts +6 -0
- package/dist/src/constants/resource-lang.d.ts +6 -0
- package/dist/src/utils/format-permissions.d.ts +23 -0
- package/dist/src/utils/format-permissions_old.d.ts +11 -0
- package/dist/src/utils/menu-filter.d.ts +4 -2
- package/dist/utils/format-permissions.d.ts +23 -0
- package/dist/utils/format-permissions_old.d.ts +11 -0
- package/dist/utils/index.esm.js +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/menu-filter.d.ts +4 -2
- package/dist/views/index.esm.js +6 -6
- package/dist/views/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-DSBIf4t0.esm.js.map +0 -1
- package/dist/chunks/android-12-switch-DvCF0gyx.js.map +0 -1
- package/dist/chunks/migration-utils-D9TSOBR0.esm.js.map +0 -1
- package/dist/chunks/migration-utils-DwLXzWtr.js.map +0 -1
- package/dist/chunks/page-context-B_wK6kLR.esm.js.map +0 -1
- package/dist/chunks/page-context-h7LEMAG0.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-Ckop1JTE.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-l8HA79k1.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
|
|
2
2
|
import { useFieldArray, Controller, useForm, useFormContext } from "react-hook-form";
|
|
3
3
|
import { P as PropTypes, e as _objectWithoutPropertiesLoose, _ as _extends$1, g as generateUtilityClass, j as capitalize, u as useDefaultProps, k as interopRequireDefaultExports, w as lighten_1, x as darken_1, f as alpha_1 } from "./identifier-u4E_J1of.esm.js";
|
|
4
|
-
import { i as default_1$3, T as Typography, e as useForkRef, o as ownerWindow, d as useEnhancedEffect, h as debounce, p as isMuiElement, u as useAuth, q as useControlled, r as requireCreateSvgIcon } from "./useAuth-
|
|
5
|
-
import { an as default_1$4, w as DynamicSelect, i as DateTimePicker, D as DatePicker$1, ao as useThemeProps, A as Accordion$1, C as Checkbox$1, g as ChipOrPlaceholder$1, j as DropdownButton, ad as TitleDropdownButton, T as HeaderCard, ab as TabBar, ap as default_1$5, a6 as SearchableSelect, aq as Chip$1, ac as TimePicker, ah as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, u as DynamicSearchSelect, n as DynamicDate, z as DynamicTime, f as ChipGenerator, l as DynamicCheckBox, M as Footer, F as Fallback, ar as TabContext, as as TabList, at as Tab, au as TabPanel, av as default_1$9, a as ActionBar, aw as SwitchBase } from "./android-12-switch-
|
|
6
|
-
import { D as DynamicInput, E as Typography$1, b as Avatar, G as o, M as Modal, c as Select, B as Button, C as ConfirmPopUp, f as Box$1, d as Toast, u as useTheme$1, S as SearchBar, I as resolveComponentProps, J as mergeSlotProps, K as appendOwnerState, P as Paper$1, o as chainPropTypes, h as ButtonBase$1, y as default_1$6, T as TextField$1, e as Tooltip$1, F as default_1$7, x as default_1$8, N as Menu$2, O as MenuItem$1, Q as IconButton$1, q as useRtl, z as List$1, v as ListItem, U as ListItemText$1, V as refType } from "./appbar-
|
|
4
|
+
import { i as default_1$3, T as Typography, e as useForkRef, o as ownerWindow, d as useEnhancedEffect, h as debounce, p as isMuiElement, u as useAuth, q as useControlled, r as requireCreateSvgIcon } from "./useAuth-DatwJNOz.esm.js";
|
|
5
|
+
import { an as default_1$4, w as DynamicSelect, i as DateTimePicker, D as DatePicker$1, ao as useThemeProps, A as Accordion$1, C as Checkbox$1, g as ChipOrPlaceholder$1, j as DropdownButton, ad as TitleDropdownButton, T as HeaderCard, ab as TabBar, ap as default_1$5, a6 as SearchableSelect, aq as Chip$1, ac as TimePicker, ah as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, u as DynamicSearchSelect, n as DynamicDate, z as DynamicTime, f as ChipGenerator, l as DynamicCheckBox, M as Footer, F as Fallback, ar as TabContext, as as TabList, at as Tab, au as TabPanel, av as default_1$9, a as ActionBar, aw as SwitchBase } from "./android-12-switch-DNPEmult.esm.js";
|
|
6
|
+
import { D as DynamicInput, E as Typography$1, b as Avatar, G as o, M as Modal, c as Select, B as Button, C as ConfirmPopUp, f as Box$1, d as Toast, u as useTheme$1, S as SearchBar, I as resolveComponentProps, J as mergeSlotProps, K as appendOwnerState, P as Paper$1, o as chainPropTypes, h as ButtonBase$1, y as default_1$6, T as TextField$1, e as Tooltip$1, F as default_1$7, x as default_1$8, N as Menu$2, O as MenuItem$1, Q as IconButton$1, q as useRtl, z as List$1, v as ListItem, U as ListItemText$1, V as refType } from "./appbar-CqjkuAGQ.esm.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import React__default, { useState, lazy, useMemo, useRef, useEffect, useCallback, useContext, createElement, useLayoutEffect, createContext, cloneElement } from "react";
|
|
9
9
|
import DatePicker from "react-datepicker";
|
|
@@ -11,7 +11,7 @@ import DatePicker from "react-datepicker";
|
|
|
11
11
|
import { C as CalenderIcon, i as images } from "./images-BY6aQF32.esm.js";
|
|
12
12
|
import { KeyboardArrowLeft, KeyboardArrowRight, Close, ChevronLeft, ChevronRight, Add, AccessTimeRounded, KeyboardArrowUp, KeyboardArrowDown, Clear } from "@mui/icons-material";
|
|
13
13
|
import { Box, styled as styled$1, TextField, DialogTitle, IconButton, DialogContent, MenuItem, DialogActions, CircularProgress, FormControlLabel, Checkbox as Checkbox$2, ButtonBase, useTheme, useMediaQuery, Drawer, Grid, Tooltip, Collapse, Divider, ButtonGroup, Button as Button$1, Popper, Grow, Paper, ClickAwayListener, Menu as Menu$1, ListItemIcon, ListItemText, OutlinedInput, InputAdornment, Dialog, FormHelperText, Card as Card$1, CardContent as CardContent$1, TableRow, TableCell, TableContainer, Table, TableHead, TableBody } from "@mui/material";
|
|
14
|
-
import { u as useLanguage } from "./useLangauge-
|
|
14
|
+
import { u as useLanguage } from "./useLangauge-ko-Wm4Qq.esm.js";
|
|
15
15
|
import dayjs from "dayjs";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import { aU as formatText, ar as getToken, W as formatLabel, a1 as generateFields, G as fetchRentalResponseItems, H as fetchRfqItemsByIdForResponse, a8 as getErrorMessage, aI as responseItemDetailsColumns, _ as formatTimeForPayload, R as formatDateForPayload, ay as mapApiPayload, Q as formatDate, r as createdOnAndBy, aO as toFixedWithNumbers } from "./common-B6euWODJ.esm.js";
|
|
@@ -20,12 +20,12 @@ import { g as generateUtilityClasses, a as clsx, b as composeClasses, s as style
|
|
|
20
20
|
import { AlertTriangle, Clock, TrendingUp, Sparkles, ChevronDown, Check, Copy, ChevronUp } from "lucide-react";
|
|
21
21
|
import * as d3 from "d3";
|
|
22
22
|
import * as Yup from "yup";
|
|
23
|
-
import { C as Chip, M as Menu, t as transformTableColumns, b as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-
|
|
23
|
+
import { C as Chip, M as Menu, t as transformTableColumns, b as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-CIJWMHun.esm.js";
|
|
24
24
|
import { M as MoreIcon, s as Filter, e as Close$1, b as ArrowUpDown, q as RecgtangleIcon, C as CheckBoxIcon$1, T as Trash, h as Export, r as Calendar$1, E as Edit } from "./trash-jodcm4T5.esm.js";
|
|
25
25
|
import { bc as getV1User, bd as getV1ReportsScheduleReport, M as getV1ReportsReportList, be as deleteV1ReportsScheduleReportId, bf as putV1ReportsUpdateScheduleReportId, bg as postV1ReportsScheduleReport, x as getV1FormBuilder } from "./api-BAbF3OU7.esm.js";
|
|
26
26
|
import { enqueueSnackbar, SnackbarProvider, useSnackbar } from "notistack";
|
|
27
27
|
import { useDispatch } from "react-redux";
|
|
28
|
-
import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./apiHelper-
|
|
28
|
+
import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./apiHelper-73EBSKIp.esm.js";
|
|
29
29
|
import Board from "@asseinfo/react-kanban";
|
|
30
30
|
import { c as calculateEntries, g as getEntityId, R as RANGE, a as handleCompareDateRangeSync, h as handleCompareDateRange } from "./navigation-utils-DvSBvB6q.esm.js";
|
|
31
31
|
import FullCalendar from "@fullcalendar/react";
|
|
@@ -39,17 +39,17 @@ import resourceTimelinePlugin from "@fullcalendar/resource-timeline";
|
|
|
39
39
|
import { E as Eye, a as EyeOff, A as ArrowDown } from "./tick-CRp4S9uN.esm.js";
|
|
40
40
|
import ReactFlagsSelect from "react-flags-select";
|
|
41
41
|
import { useParams, useLocation, useNavigate, Navigate } from "react-router-dom";
|
|
42
|
-
import { E as ErpLoader } from "./page-context-
|
|
42
|
+
import { E as ErpLoader } from "./page-context-D0QJui88.esm.js";
|
|
43
43
|
import { Gantt, ViewMode } from "gantt-task-react";
|
|
44
44
|
import { DateRange, Calendar } from "react-date-range";
|
|
45
45
|
import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
|
|
46
46
|
import DataEditor, { GridCellKind } from "@glideapps/glide-data-grid";
|
|
47
47
|
import { useExtraCells } from "@glideapps/glide-data-grid-cells";
|
|
48
48
|
import { createPortal } from "react-dom";
|
|
49
|
-
import { C as Collapse$1 } from "./sidebar-
|
|
49
|
+
import { C as Collapse$1 } from "./sidebar-DGGqCL8z.esm.js";
|
|
50
50
|
import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
|
|
51
51
|
import _$1 from "lodash";
|
|
52
|
-
import { f as usePages, b as useDeepMemo, g as usePermissions, a as useApi } from "./useAccountSetting-
|
|
52
|
+
import { f as usePages, b as useDeepMemo, g as usePermissions, a as useApi } from "./useAccountSetting-YwdjGrxs.esm.js";
|
|
53
53
|
import { P as PathnameDocument } from "./modules-D5_hDIg9.esm.js";
|
|
54
54
|
import { f as PathnameRental, b as PathnameCrm, e as PathnamePurchase, d as PathnameManufacturing, c as PathnameInventory, a as PathnameAccounting } from "./pathname.rental-VYOFVGX6.esm.js";
|
|
55
55
|
import { a as PathnameUsers } from "./pathname.hrms-C5ojsho0.esm.js";
|
|
@@ -7289,6 +7289,8 @@ const InlineEditFields = ({
|
|
|
7289
7289
|
syncFieldValue
|
|
7290
7290
|
}) => {
|
|
7291
7291
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7292
|
+
console.log("🚀 ~ InlineEditFields ~ row:", row);
|
|
7293
|
+
console.log("🚀 ~ InlineEditFields ~ col:", col);
|
|
7292
7294
|
const [inputValue, setInputValue] = useState();
|
|
7293
7295
|
const [isInitialSet, setIsInitialSet] = useState(false);
|
|
7294
7296
|
const customFilter = useRef(null);
|
|
@@ -7410,14 +7412,15 @@ const InlineEditFields = ({
|
|
|
7410
7412
|
const editFields = Object.keys(row._valuesCache || {});
|
|
7411
7413
|
const dValues = {};
|
|
7412
7414
|
row.getAllCells().forEach((cell) => {
|
|
7413
|
-
var _a2, _b2, _c2;
|
|
7415
|
+
var _a2, _b2, _c2, _d2;
|
|
7414
7416
|
if (((_a2 = cell.column.columnDef) == null ? void 0 : _a2.enableEditing) === void 0 || ((_b2 = cell.column.columnDef) == null ? void 0 : _b2.enableEditing) === true) {
|
|
7415
7417
|
const { is_multiple, valueKey: valueKey2 } = ((_c2 = cell.column.columnDef) == null ? void 0 : _c2.editProperties) || {};
|
|
7418
|
+
const cellEditVariant = (_d2 = cell.column.columnDef) == null ? void 0 : _d2.editVariant;
|
|
7416
7419
|
if (editFields.includes(cell.column.id)) {
|
|
7417
7420
|
const vl = _$1.get(row.original, valueKey2);
|
|
7418
|
-
if (
|
|
7421
|
+
if (cellEditVariant === "select" && is_multiple) {
|
|
7419
7422
|
dValues[cell.column.id] = vl ? Array.isArray(vl) ? vl : [vl] : [];
|
|
7420
|
-
} else if (
|
|
7423
|
+
} else if (cellEditVariant === "date" || cellEditVariant === "date_time" || cellEditVariant === "time") {
|
|
7421
7424
|
dValues[cell.column.id] = vl ? dayjs(vl).isValid() ? dayjs(vl) : void 0 : dayjs(row.original[cell.column.id]).isValid() ? dayjs(row.original[cell.column.id]) : void 0;
|
|
7422
7425
|
} else {
|
|
7423
7426
|
dValues[cell.column.id] = _$1.get(
|
|
@@ -8014,6 +8017,8 @@ const MaterialEditableTable = React__default.memo(({
|
|
|
8014
8017
|
v[vl] = val.name;
|
|
8015
8018
|
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "date") {
|
|
8016
8019
|
v[vl] = dayjs(val).format((cell == null ? void 0 : cell.dateFormat) || "DD-MM-YYYY");
|
|
8020
|
+
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "time") {
|
|
8021
|
+
v[vl] = dayjs.isDayjs(val) ? val.format("HH:mm") : val;
|
|
8017
8022
|
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "select" && typeof val === "object" && val !== null) {
|
|
8018
8023
|
v[vl] = val.name || val.label || val.display_name || val.title || val.value || val.id || val;
|
|
8019
8024
|
} else if (cell && (cell == null ? void 0 : cell.editVariant) == "select" && typeof val === "string") {
|
|
@@ -15802,7 +15807,8 @@ const useUomFieldUpdater = ({
|
|
|
15802
15807
|
if (location_quantity) {
|
|
15803
15808
|
switch (sourceKey) {
|
|
15804
15809
|
case "total_on_hand_quantity":
|
|
15805
|
-
|
|
15810
|
+
const totalOnHand = location_quantity.total_available_quantity - location_quantity.total_reserved_quantity;
|
|
15811
|
+
convertedValue = totalOnHand > 0 ? totalOnHand / factor : 0;
|
|
15806
15812
|
break;
|
|
15807
15813
|
case "total_available_quantity":
|
|
15808
15814
|
convertedValue = location_quantity.total_available_quantity / factor;
|
|
@@ -15973,4 +15979,4 @@ export {
|
|
|
15973
15979
|
DynamicDateTime as y,
|
|
15974
15980
|
DynamicLayoutWrapper as z
|
|
15975
15981
|
};
|
|
15976
|
-
//# sourceMappingURL=uom-field-wrapper-
|
|
15982
|
+
//# sourceMappingURL=uom-field-wrapper-Wz8rJ_Zi.esm.js.map
|