174 Commits

Author SHA1 Message Date
0bf16d844e Refactor TimeDisplay component to improve time difference calculation
- Updated the time difference logic to handle both past and future dates more accurately.
- Simplified the calculation process by introducing base and compare dates.
- Enhanced the output format to include "in" for future dates and improved readability of time strings.
2025-12-28 01:09:11 +00:00
cefe77bc0e Enhance ObjectProperty component to support conditional input rendering
- Added `useFormItem` prop to control input rendering behavior.
- Refactored input rendering logic to streamline component structure and improve maintainability.
- Updated various input types to utilize the new `inputProps` for consistent handling of properties.
2025-12-28 01:09:02 +00:00
aa6fe3c839 Enhance ObjectForm component with custom merge logic for array handling
- Introduced a custom mergeWith function to handle array replacements during state updates.
- Updated initial form data setting to include computed values while maintaining editing state.
- Refactored update event handler to utilize the new merge logic for improved data management.
2025-12-28 01:08:54 +00:00
4bd9acdc11 Refactor ObjectChildTable component to enhance editing functionality
- Removed unused formListName prop and related logic for cleaner code.
- Introduced resolveChangeValue function to streamline value handling during edits.
- Updated cell rendering to include a new handleCellChange function for better state management.
- Simplified the component structure by eliminating unnecessary Form.List integration.
2025-12-28 01:08:46 +00:00
b38af41929 Add form validation to NewObjectForm component
- Implemented validation for form fields in the NewObjectForm component.
- Added logic to set form validity state based on validation results.
2025-12-28 01:08:35 +00:00
9fb884638f Add ActionsIcon component and corresponding SVG icon
- Introduced a new ActionsIcon component that utilizes an SVG for rendering.
- Updated ObjectTable to display the ActionsIcon in the actions column when applicable.
- Added the SVG file for the ActionsIcon to the assets/icons directory.
2025-12-27 21:22:44 +00:00
0dfb22b5cf Update StateTag component to include 'confirmed' status with purple color coding 2025-12-27 20:51:53 +00:00
ca7ab55d1e Add sales module with client and sales order management features
- Introduced new SVG icons for client and sales order.
- Implemented SalesRoutes for navigation.
- Created components for managing clients and sales orders, including overview, client info, and order details.
- Added functionality for creating, editing, and canceling sales orders.
- Integrated sales statistics and actions within the dashboard layout.
2025-12-27 20:46:45 +00:00
24502dddfc Fixed charts lazy loading. 2025-12-27 17:25:04 +00:00
f462717bb3 Replaced moment with dayjs 2025-12-27 16:16:11 +00:00
7e1ec9f3ae Removed development logging. 2025-12-27 15:19:09 +00:00
f6986a45cd Fixed all warnings. 2025-12-27 15:06:02 +00:00
57e90e2b6f Add additional states to StateTag component
- Introduced new states: 'sent', 'acknowledged', 'ordered', 'received', 'invoiced', 'planned', 'partiallyShipped', 'shipped', 'delivered', and 'paid' with corresponding badge statuses and texts.
- Updated badge properties to handle custom colors for non-standard statuses.
2025-12-27 13:51:10 +00:00
50bc816e97 Added edit mode to tables. 2025-12-27 13:50:30 +00:00
38cafdb4a4 Bug fix: re-render tree when type, masterFiter etc changes. 2025-12-27 13:50:17 +00:00
556b16a5dc Add fixedNumber prop to ObjectProperty component for number formatting. 2025-12-27 13:49:26 +00:00
ab56a3abd4 Add navigation after object deletion in ObjectForm component. 2025-12-27 13:49:13 +00:00
100bfb69dc Initialize objectData state with defaultValues and set _isEditing to true in NewObjectForm component 2025-12-27 13:48:55 +00:00
a7cd374375 Refactor StatsDisplay component to use Tag and Badge for visual indicators
- Replaced Alert with Tag for displaying stat colors.
- Updated color mapping function to return Tag colors instead of Alert types.
- Enhanced layout and styling for better visual representation of stats.
- Introduced Badge component for status indication alongside stat labels.
2025-12-27 13:47:19 +00:00
b3c5357064 Enhance color theme in HistoryDisplay and ThemeContext
- Updated color mapping in HistoryDisplay to include new colors: cyan, pink, purple, magenta, and volcano.
- Added corresponding color definitions in ThemeContext for improved theme customization.
2025-12-27 13:46:58 +00:00
0a780b6d85 Add MessageDialogView component for displaying messages. 2025-12-27 13:46:26 +00:00
cabc68c932 Add finance dashboard components and routes
- Introduced FinanceOverview, FinanceSidebar, and Invoices components for the finance dashboard.
- Added InvoiceInfo and NewInvoice components for managing invoices.
- Created SVG icons for finance and invoice.
- Updated routing to include finance-related paths.
- Enhanced DashboardBreadcrumb and DashboardNavigation to support finance navigation.
- Defined Invoice model with actions and properties for invoice management.
2025-12-27 13:45:26 +00:00
d7827ecb6d Implemented new message context. 2025-12-14 23:06:42 +00:00
bbadede777 Used computed on object save. 2025-12-13 21:05:47 +00:00
c3b695b76c Updated NetGrossDisplay component to parse net and gross values as floats for accurate numerical representation. 2025-12-13 21:05:20 +00:00
b7e81e2caa Enhanced ObjectSelect component to handle array inputs by normalizing values to a string of IDs, improving identity detection for in-place updates. 2025-12-09 02:10:09 +00:00
3d17a08a71 Enhanced HistoryDisplay component with custom date range selection and improved loading states. 2025-12-09 02:09:48 +00:00
d3a3aafb04 Change to now go to overview page by default. 2025-12-08 23:02:50 +00:00
98ca73791f Overhauled printer overview page (now working, with charts and realtime updates to current state) 2025-12-08 23:00:58 +00:00
aaeeb4013e Fixed infinite loop 2025-12-08 22:59:35 +00:00
aad5326c7e Update ObjectTypeSelect component to adjust label positioning for improved display
- Modified the label rendering in ObjectTypeSelect to include a style adjustment, positioning the ObjectTypeDisplay component slightly higher for better visual alignment.
2025-12-07 02:42:26 +00:00
f7532338b6 Refactor ObjectTable component to utilize refs for table filter and sorter management
- Replaced state management for tableFilter and tableSorter with refs for improved performance and reduced re-renders.
- Introduced tableData state to manage flattened data for display.
- Updated data fetching logic to reference current filter and sorter values from refs.
- Enhanced useEffect to flatten pages array for table display.
2025-12-07 02:42:18 +00:00
2879b8648d Enhance ObjectSelect component with value identity tracking and loading optimizations
- Introduced valueRef and prevValueIdentityRef to track changes in selected object values.
- Added getValueIdentity function to normalize object values for comparison.
- Updated treeSelectValue handling to prevent unnecessary fetches and improve performance.
- Enhanced useEffect dependencies for accurate value change detection and logging.
2025-12-07 02:42:10 +00:00
c10daf008e Enhance ObjectProperty component with readOnly handling and reference case support
- Added functionality to process readOnly as a function for dynamic object data handling.
- Updated rendering logic to include a new 'reference' case, allowing for the display of ID references with appropriate components.
- Improved ObjectDisplay rendering by passing showHyperlink prop for enhanced interactivity.
2025-12-07 02:42:02 +00:00
b955f42b88 Refactor ObjectForm component to improve computed value handling
- Introduced a working copy of currentData to facilitate sequential updates of computed values.
- Updated property processing logic to utilize workingData for accurate calculations.
- Removed unnecessary parameters in processProperty function for cleaner code.
- Enhanced dependency array in useEffect to include calculateComputedValues and model for better reactivity.
2025-12-07 02:41:55 +00:00
6da485bc8f Enhance IdDisplay component with reference and plainCode props
- Added reference prop to allow custom display of IDs.
- Introduced plainCode prop to toggle between code and text display styles.
- Updated rendering logic to accommodate new props for improved flexibility in ID presentation.
2025-12-07 02:41:45 +00:00
4995d37aa2 Removed console.log statements from various components to clean up the code and improve performance. 2025-12-07 02:38:39 +00:00
9f05bfd929 Enhanced ObjectDisplay component with spotlight data fetching and hyperlink support. Added props for showHyperlink and showSpotlight, and improved rendering logic for object names with optional popover tooltips. 2025-12-07 02:37:28 +00:00
13bbcbe50e Added tax rates, tax records and minor style improvements. 2025-12-03 23:35:30 +00:00
d0911c1166 Implemented server updates to printer controls. 2025-12-03 15:46:52 +00:00
17a4a5abd5 Added purchase orders and couriers. 2025-12-03 03:40:00 +00:00
f2bdb973d1 Fixed masterFilter being present. 2025-12-03 00:09:01 +00:00
2e8f627c83 Updated object select to use better child handling with API mods. 2025-12-03 00:06:43 +00:00
05d7864da8 A lot of UI fixes updated packages etc. 2025-12-02 18:29:09 +00:00
15a9764762 More small macOS fixes. 2025-11-30 00:17:29 +00:00
5ac11dc59e Small macOS fix. 2025-11-30 00:17:13 +00:00
ba1bba1a24 Add 'unconsumed' state to StateTag component with corresponding success status 2025-11-30 00:15:34 +00:00
d5d0040871 Added scroll box for custom scroll bars. 2025-11-30 00:13:52 +00:00
df85d99aaf Implemented DocumentPrinters and DocumentJobs 2025-11-29 01:24:57 +00:00
986e5fcff5 Fixed update bug 2025-11-29 01:21:54 +00:00