@erpsquad/common 1.10.61 → 1.10.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.
Files changed (103) hide show
  1. package/dist/chunks/{ERPUIProvider-J0ITULsH.esm.js → ERPUIProvider-BBpkVsj9.esm.js} +6 -6
  2. package/dist/chunks/{ERPUIProvider-J0ITULsH.esm.js.map → ERPUIProvider-BBpkVsj9.esm.js.map} +1 -1
  3. package/dist/chunks/{ERPUIProvider-BK3ErZzr.js → ERPUIProvider-PAl_tpW_.js} +6 -6
  4. package/dist/chunks/{ERPUIProvider-BK3ErZzr.js.map → ERPUIProvider-PAl_tpW_.js.map} +1 -1
  5. package/dist/chunks/{android-12-switch-DwQ80MjS.js → android-12-switch-WBRkjBCP.js} +22 -15
  6. package/dist/chunks/{android-12-switch-DwQ80MjS.js.map → android-12-switch-WBRkjBCP.js.map} +1 -1
  7. package/dist/chunks/{android-12-switch-CWsjQ9_V.esm.js → android-12-switch-XAicROeO.esm.js} +22 -15
  8. package/dist/chunks/{android-12-switch-CWsjQ9_V.esm.js.map → android-12-switch-XAicROeO.esm.js.map} +1 -1
  9. package/dist/chunks/{appbar-BKCYuYKD.js → appbar-17zpqli4.js} +6 -6
  10. package/dist/chunks/appbar-17zpqli4.js.map +1 -0
  11. package/dist/chunks/{appbar-CQ5FSUhV.esm.js → appbar-BBLrVA6U.esm.js} +6 -6
  12. package/dist/chunks/appbar-BBLrVA6U.esm.js.map +1 -0
  13. package/dist/chunks/{checkbox-DVpvboV2.esm.js → checkbox-BG9DbVQ5.esm.js} +3 -3
  14. package/dist/chunks/{checkbox-DVpvboV2.esm.js.map → checkbox-BG9DbVQ5.esm.js.map} +1 -1
  15. package/dist/chunks/{checkbox-D9Q_dONB.js → checkbox-CS7OvJZk.js} +3 -3
  16. package/dist/chunks/{checkbox-D9Q_dONB.js.map → checkbox-CS7OvJZk.js.map} +1 -1
  17. package/dist/chunks/{default-data-B1mGeShg.esm.js → default-data-CK-90IND.esm.js} +12 -12
  18. package/dist/chunks/{default-data-B1mGeShg.esm.js.map → default-data-CK-90IND.esm.js.map} +1 -1
  19. package/dist/chunks/{default-data-BOPncQrd.js → default-data-Do_oTvMU.js} +12 -12
  20. package/dist/chunks/{default-data-BOPncQrd.js.map → default-data-Do_oTvMU.js.map} +1 -1
  21. package/dist/chunks/{form-builder-deconversion-B7Ico4Wt.js → form-builder-deconversion-CtfddwVS.js} +2 -2
  22. package/dist/chunks/form-builder-deconversion-CtfddwVS.js.map +1 -0
  23. package/dist/chunks/{form-builder-deconversion-CUr6uDVY.esm.js → form-builder-deconversion-DNCtkxQC.esm.js} +2 -2
  24. package/dist/chunks/form-builder-deconversion-DNCtkxQC.esm.js.map +1 -0
  25. package/dist/chunks/{fullScreen-C6wmX53f.esm.js → fullScreen-B5e0kvj4.esm.js} +2 -2
  26. package/dist/chunks/{fullScreen-C6wmX53f.esm.js.map → fullScreen-B5e0kvj4.esm.js.map} +1 -1
  27. package/dist/chunks/{fullScreen-Ilje5t_2.js → fullScreen-CzRFGTzg.js} +2 -2
  28. package/dist/chunks/{fullScreen-Ilje5t_2.js.map → fullScreen-CzRFGTzg.js.map} +1 -1
  29. package/dist/chunks/{modules-DhLwjN8v.js → modules-BEfRrTxc.js} +2 -2
  30. package/dist/chunks/{modules-DhLwjN8v.js.map → modules-BEfRrTxc.js.map} +1 -1
  31. package/dist/chunks/{modules-tItvvhnF.esm.js → modules-BjL8mfuw.esm.js} +2 -2
  32. package/dist/chunks/{modules-tItvvhnF.esm.js.map → modules-BjL8mfuw.esm.js.map} +1 -1
  33. package/dist/chunks/{page-context-CvxEbMEs.esm.js → page-context-BR0JEfCp.esm.js} +3 -3
  34. package/dist/chunks/{page-context-CvxEbMEs.esm.js.map → page-context-BR0JEfCp.esm.js.map} +1 -1
  35. package/dist/chunks/{page-context-C1aLBCMN.js → page-context-D32zeXhS.js} +3 -3
  36. package/dist/chunks/{page-context-C1aLBCMN.js.map → page-context-D32zeXhS.js.map} +1 -1
  37. package/dist/chunks/{reducer-CEIlU0Ko.esm.js → reducer-BTCTEHl_.esm.js} +2 -2
  38. package/dist/chunks/{reducer-CEIlU0Ko.esm.js.map → reducer-BTCTEHl_.esm.js.map} +1 -1
  39. package/dist/chunks/{reducer-DDNHc1q8.js → reducer-DznW4Uhk.js} +2 -2
  40. package/dist/chunks/{reducer-DDNHc1q8.js.map → reducer-DznW4Uhk.js.map} +1 -1
  41. package/dist/chunks/{route-page-map-pK2cJVjt.js → route-page-map-CuVKVc8s.js} +12 -5
  42. package/dist/chunks/route-page-map-CuVKVc8s.js.map +1 -0
  43. package/dist/chunks/{route-page-map-B-P_qkAc.esm.js → route-page-map-gBJ6YfCI.esm.js} +12 -5
  44. package/dist/chunks/route-page-map-gBJ6YfCI.esm.js.map +1 -0
  45. package/dist/chunks/{sidebar-CuuG9Cro.js → sidebar-CGHpNE59.js} +2 -2
  46. package/dist/chunks/{sidebar-CuuG9Cro.js.map → sidebar-CGHpNE59.js.map} +1 -1
  47. package/dist/chunks/{sidebar-XnB3MZSx.esm.js → sidebar-CaMjOaT0.esm.js} +2 -2
  48. package/dist/chunks/{sidebar-XnB3MZSx.esm.js.map → sidebar-CaMjOaT0.esm.js.map} +1 -1
  49. package/dist/chunks/{sidebarScreen-oRVnKUwK.js → sidebarScreen-BMRTGPNT.js} +3 -3
  50. package/dist/chunks/{sidebarScreen-oRVnKUwK.js.map → sidebarScreen-BMRTGPNT.js.map} +1 -1
  51. package/dist/chunks/{sidebarScreen-wd1XHW7h.esm.js → sidebarScreen-vQN2vT2D.esm.js} +3 -3
  52. package/dist/chunks/{sidebarScreen-wd1XHW7h.esm.js.map → sidebarScreen-vQN2vT2D.esm.js.map} +1 -1
  53. package/dist/chunks/{store-4PjkVqCL.js → store-BlcYtLUe.js} +2 -2
  54. package/dist/chunks/{store-4PjkVqCL.js.map → store-BlcYtLUe.js.map} +1 -1
  55. package/dist/chunks/{store-0dCHFFVS.esm.js → store-Djcai2P1.esm.js} +2 -2
  56. package/dist/chunks/{store-0dCHFFVS.esm.js.map → store-Djcai2P1.esm.js.map} +1 -1
  57. package/dist/chunks/{translations-C3zIy7AK.js → translations-BUtRMBGm.js} +12 -5
  58. package/dist/chunks/translations-BUtRMBGm.js.map +1 -0
  59. package/dist/chunks/{translations-DQnNjq2i.esm.js → translations-D-6zNK2j.esm.js} +13 -6
  60. package/dist/chunks/translations-D-6zNK2j.esm.js.map +1 -0
  61. package/dist/chunks/{uom-field-wrapper-D9vQnJ7u.esm.js → uom-field-wrapper-DtW2ZDgN.esm.js} +48 -36
  62. package/dist/chunks/uom-field-wrapper-DtW2ZDgN.esm.js.map +1 -0
  63. package/dist/chunks/{uom-field-wrapper-DfH09cqm.js → uom-field-wrapper-xtQt1ONl.js} +48 -36
  64. package/dist/chunks/uom-field-wrapper-xtQt1ONl.js.map +1 -0
  65. package/dist/chunks/{useAddressContact-D7bXJ169.js → useAddressContact-CpNYDTXT.js} +4 -4
  66. package/dist/chunks/{useAddressContact-D7bXJ169.js.map → useAddressContact-CpNYDTXT.js.map} +1 -1
  67. package/dist/chunks/{useAddressContact-CgADuA2u.esm.js → useAddressContact-Cz2yg1H9.esm.js} +4 -4
  68. package/dist/chunks/{useAddressContact-CgADuA2u.esm.js.map → useAddressContact-Cz2yg1H9.esm.js.map} +1 -1
  69. package/dist/components/calculation-summary/calculation-summary.d.ts +2 -0
  70. package/dist/components/index.esm.js +8 -8
  71. package/dist/components/index.js +8 -8
  72. package/dist/constants/index.esm.js +2 -2
  73. package/dist/constants/index.js +2 -2
  74. package/dist/contexts/index.esm.js +1 -1
  75. package/dist/contexts/index.js +1 -1
  76. package/dist/hooks/index.esm.js +3 -3
  77. package/dist/hooks/index.js +3 -3
  78. package/dist/index.esm.js +22 -21
  79. package/dist/index.js +18 -17
  80. package/dist/index.js.map +1 -1
  81. package/dist/layout/index.esm.js +2 -2
  82. package/dist/layout/index.js +2 -2
  83. package/dist/redux/index.esm.js +2 -2
  84. package/dist/redux/index.js +2 -2
  85. package/dist/src/components/calculation-summary/calculation-summary.d.ts +2 -0
  86. package/dist/src/utils/calculation.d.ts +3 -2
  87. package/dist/utils/calculation.d.ts +3 -2
  88. package/dist/utils/index.esm.js +4 -3
  89. package/dist/utils/index.js +3 -2
  90. package/dist/utils/index.js.map +1 -1
  91. package/dist/views/index.esm.js +8 -8
  92. package/dist/views/index.js +7 -7
  93. package/package.json +1 -1
  94. package/dist/chunks/appbar-BKCYuYKD.js.map +0 -1
  95. package/dist/chunks/appbar-CQ5FSUhV.esm.js.map +0 -1
  96. package/dist/chunks/form-builder-deconversion-B7Ico4Wt.js.map +0 -1
  97. package/dist/chunks/form-builder-deconversion-CUr6uDVY.esm.js.map +0 -1
  98. package/dist/chunks/route-page-map-B-P_qkAc.esm.js.map +0 -1
  99. package/dist/chunks/route-page-map-pK2cJVjt.js.map +0 -1
  100. package/dist/chunks/translations-C3zIy7AK.js.map +0 -1
  101. package/dist/chunks/translations-DQnNjq2i.esm.js.map +0 -1
  102. package/dist/chunks/uom-field-wrapper-D9vQnJ7u.esm.js.map +0 -1
  103. package/dist/chunks/uom-field-wrapper-DfH09cqm.js.map +0 -1
@@ -2,8 +2,8 @@ import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
2
2
  import { useFieldArray, Controller, useForm, useWatch, 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, y as lighten_1, z as darken_1, f as alpha_1 } from "./identifier-0SZUhw_A.esm.js";
4
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-BVQ2r4xx.esm.js";
5
- import { aq as default_1$4, w as DynamicSelect, h as DateTimePicker, D as DatePicker$1, ar as useThemeProps, A as Accordion$1, a8 as Select, f as ChipOrPlaceholder$1, i as DropdownButton, s as DynamicPhone, u as DynamicSearchSelect, k as DynamicCheckBox, af as TitleDropdownButton, T as HeaderCard, ad as TabBar, as as default_1$5, a7 as SearchableSelect, at as Chip$1, ae as TimePicker, aj as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, m as DynamicDate, z as DynamicTime, C as ChipGenerator, M as Footer, F as Fallback, au as IconButton$1, av as TabContext, aw as TabList, ax as Tab, ay as TabPanel, az as default_1$9, a as ActionBar, aA as SwitchBase } from "./android-12-switch-CWsjQ9_V.esm.js";
6
- import { D as DynamicInput, E as Typography$1, b as Avatar, G as o, M as Modal, 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 useRtl, z as List$1, v as ListItem, Q as ListItemText$1, U as refType } from "./appbar-CQ5FSUhV.esm.js";
5
+ import { aq as default_1$4, w as DynamicSelect, h as DateTimePicker, D as DatePicker$1, ar as useThemeProps, A as Accordion$1, a8 as Select, f as ChipOrPlaceholder$1, i as DropdownButton, s as DynamicPhone, u as DynamicSearchSelect, k as DynamicCheckBox, af as TitleDropdownButton, T as HeaderCard, ad as TabBar, as as default_1$5, a7 as SearchableSelect, at as Chip$1, ae as TimePicker, aj as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, m as DynamicDate, z as DynamicTime, C as ChipGenerator, M as Footer, F as Fallback, au as IconButton$1, av as TabContext, aw as TabList, ax as Tab, ay as TabPanel, az as default_1$9, a as ActionBar, aA as SwitchBase } from "./android-12-switch-XAicROeO.esm.js";
6
+ import { D as DynamicInput, E as Typography$1, b as Avatar, G as o, M as Modal, 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 useRtl, z as List$1, v as ListItem, Q as ListItemText$1, U as refType } from "./appbar-BBLrVA6U.esm.js";
7
7
  import * as React from "react";
8
8
  import React__default, { useState, lazy, useMemo, useRef, useEffect, useCallback, useLayoutEffect, useContext, createElement, createContext, cloneElement } from "react";
9
9
  import DatePicker from "react-datepicker";
@@ -23,14 +23,14 @@ import { marked } from "marked";
23
23
  import { bw as streamV1AiFeatureChat, aF as getV1User, bx as getV1ReportsScheduleReport, J as getV1ReportsReportList, by as deleteV1ReportsScheduleReportId, bz as putV1ReportsUpdateScheduleReportId, bA as postV1ReportsScheduleReport, y as getV1FormBuilder } from "./api-DhR7H-jj.esm.js";
24
24
  import { b as getApiConfigSafe, a as auth, g as getApiConfig } from "./api-config-GOys-syK.esm.js";
25
25
  import * as Yup from "yup";
26
- import { C as Checkbox$1, f as usePages, b as useDeepMemo, a as useApi } from "./checkbox-DVpvboV2.esm.js";
27
- import { C as Chip, M as Menu, t as transformTableColumns, b as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-CUr6uDVY.esm.js";
26
+ import { C as Checkbox$1, f as usePages, b as useDeepMemo, a as useApi } from "./checkbox-BG9DbVQ5.esm.js";
27
+ import { C as Chip, M as Menu, t as transformTableColumns, b as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-DNCtkxQC.esm.js";
28
28
  import { M as MoreIcon, q as Filter, e as Close$1, c as ArrowUpDown, g as Export, p as Calendar$1, a as ArrowDown } from "./radio-button-DSUBR45C.esm.js";
29
29
  import { enqueueSnackbar, useSnackbar, SnackbarProvider } from "notistack";
30
30
  import { useDispatch } from "react-redux";
31
- import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./ERPUIProvider-J0ITULsH.esm.js";
31
+ import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./ERPUIProvider-BBpkVsj9.esm.js";
32
32
  import Board from "@asseinfo/react-kanban";
33
- import { a as calculateEntries } from "./translations-DQnNjq2i.esm.js";
33
+ import { a as calculateEntries, t as truncateDecimals } from "./translations-D-6zNK2j.esm.js";
34
34
  import FullCalendar from "@fullcalendar/react";
35
35
  import dayGridPlugin from "@fullcalendar/daygrid";
36
36
  import listPlugin from "@fullcalendar/list";
@@ -44,22 +44,22 @@ import { j as Copy$1, e as ArrowUp } from "./arrow-up-BDkqlEB_.esm.js";
44
44
  import ReactFlagsSelect from "react-flags-select";
45
45
  import { useParams, useLocation, useNavigate } from "react-router-dom";
46
46
  import { g as getEntityId, R as RANGE, a as handleCompareDateRangeSync, h as handleCompareDateRange } from "./navigation-utils-ChG-fDRf.esm.js";
47
- import { E as ErpLoader } from "./page-context-CvxEbMEs.esm.js";
47
+ import { E as ErpLoader } from "./page-context-BR0JEfCp.esm.js";
48
48
  import { Gantt, ViewMode } from "gantt-task-react";
49
49
  import { DateRange, Calendar } from "react-date-range";
50
50
  import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
51
51
  import DataEditor, { GridCellKind } from "@glideapps/glide-data-grid";
52
52
  import { useExtraCells } from "@glideapps/glide-data-grid-cells";
53
53
  import { createPortal } from "react-dom";
54
- import { C as Collapse$1 } from "./sidebar-XnB3MZSx.esm.js";
54
+ import { C as Collapse$1 } from "./sidebar-CaMjOaT0.esm.js";
55
55
  import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
56
56
  import { R as RecgtangleIcon, C as CheckBoxIcon$1, T as Trash, E as Edit } from "./trash-Dgfsw2UY.esm.js";
57
57
  import _$1 from "lodash";
58
- import { P as PathnameDocument } from "./modules-tItvvhnF.esm.js";
58
+ import { P as PathnameDocument } from "./modules-BjL8mfuw.esm.js";
59
59
  import { f as PathnameRental, b as PathnameCrm, e as PathnamePurchase, d as PathnameManufacturing, c as PathnameInventory, a as PathnameAccounting } from "./pathname.rental-Dvo5a732.esm.js";
60
- import { a as PathnameUsers } from "./route-page-map-B-P_qkAc.esm.js";
60
+ import { a as PathnameUsers } from "./route-page-map-gBJ6YfCI.esm.js";
61
61
  import { u as useAppDispatch, a as useAppSelector } from "./hooks-Cj9Yhy-E.esm.js";
62
- import { f as fetchCompanies } from "./store-0dCHFFVS.esm.js";
62
+ import { f as fetchCompanies } from "./store-Djcai2P1.esm.js";
63
63
  import { useDropzone } from "react-dropzone";
64
64
  /* empty css */
65
65
  import { css, keyframes } from "@emotion/react";
@@ -3475,11 +3475,16 @@ const CalculationSummary = ({
3475
3475
  formValues,
3476
3476
  enablePromotions,
3477
3477
  enableShippings,
3478
- currencySymbol
3478
+ currencySymbol,
3479
+ decimals = 2,
3480
+ useTruncation = false
3479
3481
  }) => {
3480
- var _a;
3482
+ var _a, _b;
3481
3483
  const { user } = useAuth();
3482
3484
  const defaultCurrencySymbol = currencySymbol || ((_a = user == null ? void 0 : user.currency_data) == null ? void 0 : _a.symbol) || "";
3485
+ const isArabia = ((_b = getApiConfigSafe()) == null ? void 0 : _b.countryEnv) === "arabia";
3486
+ const finalDecimals = isArabia ? 4 : decimals;
3487
+ const finalUseTruncation = isArabia ? true : useTruncation;
3483
3488
  const [itemsData, setItemsData] = useState({
3484
3489
  totalQuantity: 0,
3485
3490
  total: 0,
@@ -3527,7 +3532,10 @@ const CalculationSummary = ({
3527
3532
  formValues == null ? void 0 : formValues.additional_discount_percentage,
3528
3533
  formValues == null ? void 0 : formValues.additional_discount_amount,
3529
3534
  formValues == null ? void 0 : formValues.round_off,
3530
- formValues == null ? void 0 : formValues.round_off_option
3535
+ formValues == null ? void 0 : formValues.round_off_option,
3536
+ formValues == null ? void 0 : formValues.promotion_amount,
3537
+ finalDecimals,
3538
+ finalUseTruncation
3531
3539
  );
3532
3540
  totalDiscount /= eRate;
3533
3541
  additinoalDiscountAmount /= eRate;
@@ -3542,40 +3550,42 @@ const CalculationSummary = ({
3542
3550
  const promotionAmountWithERate = Number((formValues == null ? void 0 : formValues.promotion_amount) || 0) / eRate;
3543
3551
  finalAmount = finalAmount - promotionAmountWithERate;
3544
3552
  const grandTotal = finalAmount + shippingAmountWithERate + handlingAmountWithERate - promotionAmountWithERate;
3553
+ const formatValue = (val) => {
3554
+ const num = Number(val) || 0;
3555
+ return finalUseTruncation ? truncateDecimals(num, finalDecimals).toFixed(finalDecimals) : num.toFixed(finalDecimals);
3556
+ };
3545
3557
  setItemsData({
3546
3558
  ...itemsData,
3547
3559
  totalQuantity,
3548
- total: finalAmount.toFixed(2),
3560
+ total: formatValue(finalAmount),
3549
3561
  currencySymbol
3550
3562
  });
3551
3563
  setDiscountData({
3552
3564
  ...discountData,
3553
- itemDiscount: totalItemsExpenseDiscount.toFixed(2),
3554
- additionalDiscount: Number(additinoalDiscountAmount).toFixed(2),
3555
- totalDiscount: (totalDiscount + promotionAmountWithERate).toFixed(2),
3556
- promotionAmount: promotionAmountWithERate.toFixed(2),
3565
+ itemDiscount: formatValue(totalItemsExpenseDiscount),
3566
+ additionalDiscount: formatValue(additinoalDiscountAmount),
3567
+ totalDiscount: formatValue(totalDiscount + promotionAmountWithERate),
3568
+ promotionAmount: formatValue(promotionAmountWithERate),
3557
3569
  currencySymbol
3558
3570
  });
3559
3571
  setSubtotalData({
3560
3572
  ...subtotalData,
3561
- subtotalExTax: (finalAmount - totalTaxAmount).toFixed(2),
3562
- subtotalExDiscount: Number(finalAmount + Number(totalDiscount)).toFixed(
3563
- 2
3564
- ),
3573
+ subtotalExTax: formatValue(finalAmount - totalTaxAmount),
3574
+ subtotalExDiscount: formatValue(finalAmount + Number(totalDiscount)),
3565
3575
  currencySymbol
3566
3576
  });
3567
3577
  setTaxesData({
3568
3578
  ...taxesData,
3569
- taxes: totalTaxAmount.toFixed(2),
3570
- total: totalTaxAmount.toFixed(2),
3571
- shippingAmount: shippingAmountWithERate.toFixed(2),
3572
- handlingAmount: handlingAmountWithERate.toFixed(2),
3579
+ taxes: formatValue(totalTaxAmount),
3580
+ total: formatValue(totalTaxAmount),
3581
+ shippingAmount: formatValue(shippingAmountWithERate),
3582
+ handlingAmount: formatValue(handlingAmountWithERate),
3573
3583
  currencySymbol
3574
3584
  });
3575
3585
  setTotalData({
3576
3586
  ...totalData,
3577
- total: grandTotal.toFixed(2),
3578
- roundOffDifferenceAmount: roundOffDifference.toFixed(2),
3587
+ total: formatValue(grandTotal),
3588
+ roundOffDifferenceAmount: formatValue(roundOffDifference),
3579
3589
  currencySymbol
3580
3590
  });
3581
3591
  }, [
@@ -3593,7 +3603,9 @@ const CalculationSummary = ({
3593
3603
  formValues == null ? void 0 : formValues.promotion_amount,
3594
3604
  formValues == null ? void 0 : formValues.exchange_rate,
3595
3605
  formValues == null ? void 0 : formValues.currency_data,
3596
- defaultCurrencySymbol
3606
+ defaultCurrencySymbol,
3607
+ finalDecimals,
3608
+ finalUseTruncation
3597
3609
  ]);
3598
3610
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { className: "addPurchaseInvoice--RightContainer", children: [
3599
3611
  /* @__PURE__ */ jsxRuntimeExports.jsx(ItemsSummary, { data: itemsData }),
@@ -11014,7 +11026,7 @@ const ItemResponseDetails = (props) => {
11014
11026
  }
11015
11027
  }
11016
11028
  }),
11017
- paginationModel: { pageNo: 1, limit: 10 },
11029
+ paginationModel: { pageNo: 1, limit: 20 },
11018
11030
  totalPages: 20,
11019
11031
  enableColumnDragging: true,
11020
11032
  isResetRow: false,
@@ -11456,7 +11468,7 @@ const ScheduleReportModal = ({
11456
11468
  const GeneralScheduleReport = ({ module = "accounting", title = "Schedule report" }) => {
11457
11469
  const [pagination, setPagination] = useState({
11458
11470
  pageNo: 1,
11459
- limit: 10,
11471
+ limit: 20,
11460
11472
  totalCount: 0
11461
11473
  });
11462
11474
  const [toast, setToast] = useState(null);
@@ -11581,7 +11593,7 @@ const GeneralScheduleReport = ({ module = "accounting", title = "Schedule report
11581
11593
  enableEditing: false,
11582
11594
  isResetRow: false,
11583
11595
  enableRowSelection: false,
11584
- paginationModel: { pageNo: 1, limit: 10 },
11596
+ paginationModel: { pageNo: 1, limit: 20 },
11585
11597
  defaultActionColumnItems: [
11586
11598
  /* @__PURE__ */ jsxRuntimeExports.jsx(
11587
11599
  IconButton,
@@ -15110,7 +15122,7 @@ const Forms = ({ config }) => {
15110
15122
  isLoading: false,
15111
15123
  paginationModel: {
15112
15124
  pageNo: 1,
15113
- limit: 10,
15125
+ limit: 20,
15114
15126
  totalCount: 0
15115
15127
  }
15116
15128
  });
@@ -15337,7 +15349,7 @@ const Forms = ({ config }) => {
15337
15349
  rows: formBuilder.rows,
15338
15350
  columns: columns2,
15339
15351
  totalPages: 1,
15340
- paginationModel: { pageNo: 1, limit: 10 },
15352
+ paginationModel: { pageNo: 1, limit: 20 },
15341
15353
  enableEditing: false,
15342
15354
  states: { sorting: sorting || [] },
15343
15355
  onSortingChange: setSorting,
@@ -16803,4 +16815,4 @@ export {
16803
16815
  DyanmicTextEditor as y,
16804
16816
  DynamicDateRange as z
16805
16817
  };
16806
- //# sourceMappingURL=uom-field-wrapper-D9vQnJ7u.esm.js.map
16818
+ //# sourceMappingURL=uom-field-wrapper-DtW2ZDgN.esm.js.map