Commit Graph
44 Commits
Author SHA1 Message Date
Jepp9350 4d23abfab9 Add weekly report support to department dashboard
Introduced components and logic to display department metrics for the current week or just today. Added navigation to toggle views and updated related components to fetch and display weekly data when selected.
2025-03-07 16:12:39 +01:00
Jepp9350 e53b9f005c Improve invoice handling for E-conomic integration
Refactor and enhance E-conomic invoice management by adding detailed UI feedback and modular components. Introduced loading indicators, error handling, and currency formatting for better user experience. Expanded collected order invoice management functionality to support new data fields and external identification.
2025-03-07 14:57:14 +01:00
Jepp9350 892f4297d1 Add enhanced error handling and UI improvements
Introduced catch and then callable support for authenticated requests, improved error fallback pages with loading states, and enhanced logging for better debugging. Updated collected order invoice page with dynamic loading states and error handling. Added new min and max fields to product options with editable table support, and implemented a confirmation dialog for user logout.
2025-03-07 12:28:56 +01:00
Jepp9350 6badce766d Remove unnecessary console logs from discount-related components
Commented out debug console logs in multiple files to clean up the codebase. This improves readability and reduces noise in the browser console during execution.
2025-03-07 11:23:33 +01:00
Jepp9350 62c7b50120 Add customer discount display to products
Introduced a reusable CustomerProductDiscountDisplay component to show applicable discounts per product. Updated related files to pass necessary props and refactor discount handling for accuracy and consistency.
2025-03-07 11:16:16 +01:00
Jepp9350 639ed6b7ab Add support for notes on products requiring them
If a product requires a note, prompt the user to input it before proceeding. The note is validated to ensure it's not empty and is attached to the order item during creation. This enhances functionality for handling customizable product orders.
2025-03-07 09:05:00 +01:00
Jepp9350 86e9ef7050 Add UserNotificationButton component to navigation
Introduced a new `UserNotificationButton` component to display user notifications with a dropdown functionality. Integrated the component into `UserNavigationTop.vue` alongside existing user menu options to enhance user interaction. Styles and dependencies for badges and lists were also added.
2025-03-07 08:52:21 +01:00
Jepp9350 d0cda61e59 Add function to update product option names
This commit introduces a new async function, `set.name`, to update the name of product options via the appropriate API endpoint. This improves the flexibility of modifying product option properties.
2025-03-06 16:05:24 +01:00
Jepp9350 76836680e1 Add support for product addon notes and validation
Introduced functionality to handle optional notes for product addons, including validation prompts before adding or toggling addons. Updated related components to support the new `notes` field, ensuring seamless integration with product handling and order creation.
2025-03-06 15:58:18 +01:00
Jepp9350 ddfcb7e03e Add earnings tracking and global discount functionality
Introduced a new "earnings" metric to the department dashboard with corresponding UI updates. Also implemented a mechanism to fetch and display user-specific global discounts in the product selection form. Adjusted relevant components and logic to support these features.
2025-03-06 14:37:22 +01:00
Jepp9350 50630fd1e4 Refactor daily report module to improve reusability
Modularized daily report components by introducing shared data logic in `DepartmentDailyReportObject.vue`. Added navigation, history view, and multi-tab support for better user experience. Refactored functions to dynamically respond to selected date and department changes.
2025-03-06 14:00:37 +01:00
Jepp9350 d9dc112df9 Add customer-specific discounts display to POS system
Introduced a new "Discounts" tab in the POS customer section to show customer-specific discounts, with sorting and display logic for global, category, and product discounts. Enhanced tab visibility handling in ElementTabsBox and added caching for product names in the session.
2025-03-06 11:19:26 +01:00
Jepp9350 df290aef69 Add order existence check and improve permission logic
Added a new reactive property `doesOrderExist` to check and reflect the existence of an order in the DepartmentPosOrder component. Updated permission logic in SessionUser to include superuser checks and default handling for department access. This enhances error handling and ensures broader access control flexibility.
2025-03-06 09:32:11 +01:00
Jepp9350 6a36244fd0 Add wash type display with truncation and improve table UI
Introduced functionality to display wash types with truncation and a modal for detailed information. Adjusted column layout to accommodate the new feature and refined button styling for consistency.
2025-03-05 15:12:00 +01:00
Jepp9350 89c3f7dd6a Add "Other" section to SuperUser user dashboard
Introduced a new "Other" navigation tab and corresponding components for managing special agreements and wash subscriptions within the SuperUser user dashboard. Adjusted routing, API calls, and navigation links to support this feature. Updated environment configurations and fixed path handling in various components.
2025-03-05 13:43:34 +01:00
Jepp9350 5a49daa419 Improve path handling and update redirection logic
Added slash validation to redirect paths across SessionUser functions to ensure proper URL generation. Updated clickable row and redirection logic in product tables to enhance consistency and user experience.
2025-03-05 12:11:33 +01:00
Jepp9350 5d04418e0f Add support for hiding product column in product addons
Introduced a new `hideProductColumn` prop to manage the visibility of the product column across related components. Updated table logic, pagination components, and create object functionality to respect this prop. Enhanced flexibility for use cases where visibility of the product column is not required.
2025-03-05 12:01:17 +01:00
Jepp9350 73da88700c Add "Actions" column and buttons to products table
Introduced an "Actions" column to the products table in the superuser view, allowing users to perform actions on individual products. This includes a new button linking to product details, improving navigation and functionality. Additionally, localized text was added for the new "Actions" label.
2025-03-05 11:18:09 +01:00
Jepp9350 0ef66a1903 Add invoiceCollectionId ref and initialize in order data
Introduce a new `invoiceCollectionId` ref to track invoice collection IDs and initialize it when loading order data. Also, fix a minor comment typo in PosDepartmentStep3.vue.
2025-03-05 11:14:27 +01:00
Jepp9350 213b011f7e Add department overview with daily reports
Introduce a new `DepartmentDailyReportSmall` component to display daily reports for accessible departments. Replace placeholder content in the department dashboard with dynamically generated department overviews. Also, add a helper method in `SessionUser` to fetch accessible department IDs.
2025-03-04 16:22:59 +01:00
Jepp9350 bc1ff9ed54 Add water usage tracking and improve daily report handling
Updated DepartmentDailyReports to add water usage fields and support notes for daily reports. Enhanced form submission logic in DepartmentDashboardDailyReportTodayForm to handle fetching or creating reports dynamically based on date. Improved error handling and integrated success messages for better user feedback.
2025-03-04 15:19:27 +01:00
Jepp9350 eed41f1ee9 Add product management views and components for SuperUser
Introduce new components and pages to enable SuperUser product administration, including product details, addons, and pagination. Adjust routing and session objects to support new functionality and ensure smooth navigation and management.
2025-03-04 14:05:53 +01:00
Jepp9350 6bb8799ec1 Remove deprecated button and add development warning
Removed the "Create daily report" button as it is no longer needed. Added a warning message indicating the feature is under development in the daily report form and disabled the save button to prevent incomplete functionality usage.
2025-03-04 12:02:40 +01:00
Jepp9350 af61ead3b1 Wrap components with NotFoundFallBackPageWrapper for validation.
Added NotFoundFallBackPageWrapper across various department-related components to handle scenarios where the department ID is missing or inaccessible. Also updated getDepartmentIdFromUrl to ensure valid department IDs are returned.
2025-03-04 11:52:54 +01:00
Jepp9350 a1cafbcd2f Add detailed daily report functionalities to department dashboard
Implemented new components for product sales and daily report form. Enhanced existing report displays with dynamic transaction and product count data. Introduced backend integration for fetching product and transaction details and updated UI to display relevant metrics.
2025-03-04 11:39:16 +01:00
Jepp9350 b091414087 Add Department Daily Report module to Department Dashboard
Integrated the Department Daily Report feature, enabling users to view, create, and manage daily reports. Added new Vue components, routing, and backend interactions for handling department-specific daily report data. Updated SessionUser functionality to include daily reports support.
2025-03-04 09:32:02 +01:00
Jepp9350 2851d768db Update order handling to include closed status and improve UI
Added support for 'closed_at' field to determine order editability and updated related logic. Enhanced UI to show invoice collection ID in tags and adjusted navigation paths for better context. Minor formatting improvements included.
2025-03-03 17:23:49 +01:00
Jepp9350 c13c08ad87 Update customer search label in SelectCustomerFormPOS
Removed "(ID / Name)" from the customer search label for clarity. This improves readability and ensures the label is more concise while maintaining its purpose.
2025-03-03 16:02:03 +01:00
Jepp9350 5d9aabc02a Refactor customer search to use authenticatedRequest.
Replaced manual axios calls with the authenticatedRequest utility for cleaner and more secure API interaction. Simplified logic by removing redundant token handling and search filter prediction. Updated response handling to align with the new API response structure.
2025-03-03 15:58:50 +01:00
Jepp9350 5567a43c9a Add collected order invoice management and improve edit logic
Introduce collected order invoice views, tables, and detailed navigation for superuser dashboards. Enhance `showEditOrderItemForm` to support an optional callback, streamlining post-submission actions. These changes improve invoice handling and editing workflows for better usability.
2025-03-03 15:36:40 +01:00
Jepp9350 30d8f5f2cb Add daily report module and update conditions for POS orders
Added a "Dagsopgørelse" module with navigation logic for daily reporting. Enhanced POS order deletion button to allow super users to delete invoiced orders. Commented out unused product display section in the product selection form for clarity.
2025-03-03 10:58:27 +01:00
Jepp9350 c47fed6ae8 Add invoice management and improve POS functionality
Introduced "CollectedOrderInvoices" for better invoice handling, including UI components, pagination, and back-end setup. Improved user feedback in POS steps, enhanced form behaviors with new props and watchers, and refined visual styles across components.
2025-02-28 13:49:54 +01:00
Jepp9350 e2cffbad4b Add cloning functionality for roles and improve UX loading states
Implemented a clone role feature with backend integration and updated the roles UI. Enhanced loading states with watchers to ensure smoother user experience and improved conditional rendering. Updated styles and permissions management for better clarity and maintainability.
2025-02-28 09:26:51 +01:00
Jepp9350 12e6895db7 Refactor POS order components and improve modularity
Reorganized and modularized POS-related components for better maintainability, including extracting reusable elements like `DefaultPageWrapper`, `POSOrderReference`, and `PosNotes`. Improved flexibility and structure in handling order details, license plates, and notes.
2025-02-27 17:53:50 +01:00
Jepp9350 a497994a75 Enhance UI with dynamic headers and user dropdown menu
Added support for dynamic titles and subtitles in department dashboards. Reworked the user navigation to include a dropdown menu with permission-based options and logout functionality. Improved overall layout and user interaction across components.
2025-02-26 15:08:36 +01:00
Jepp9350 6cefd1fa53 Enhance addon handling with quantity controls and unselecting
Added support for managing addon quantities including increment, decrement, and conditional status toggling. Improved UX by allowing product unselection and refined expandable product details behavior. These changes enhance flexibility and clarity in addon operations.
2025-02-26 14:49:52 +01:00
Jepp9350 8d878d788a Add navigation enhancements and tab functionality
Introduced `PreviousStep` component for better navigation and integrated it into step 3 of the POS process. Added tab functionality in step 2 using `ElementTabsBox` to improve organization of information. Minor code improvements include moving imports and adding watchers for reactive tab handling.
2025-02-26 13:57:01 +01:00
Jepp9350 39e08fb9f1 Implement infinite scroll, improve UI, and refactor tabs
Integrated infinite scroll for license plate scans using visibility detection. Refactored layout to use tables and enhanced tabs with dynamic visibility and compact mode. Made minor refinements, including handling required customer attributes and deactivating UI components for better user experience.
2025-02-26 12:12:45 +01:00
Jepp9350 d28f166f2f Refactor department dashboard and improve menu visibility logic
Introduced new components and refactored existing ones to streamline the department dashboard setup. Enhanced menu visibility with a `hidden` property and a helper function to dynamically determine visibility. Updated labels and removed redundant wrappers for better user interface consistency.
2025-02-26 10:21:54 +01:00
Jepp9350 02a36f0cc6 Refactor department dashboard templates and update tables
Unified department dashboard templates by replacing redundant wrappers with `DepartmentDashboardPageWrapper`. Improved table design and adjusted text for better localization and user experience.
2025-02-26 08:55:19 +01:00
Jepp9350 800253699c Add related items support and improve POS UI/UX
Introduced support for related items in orders by enabling nested relationships through the `related_item_id` parameter. Enhanced the POS interface with better UI elements, such as reusable components (`ProductBox`, `WhiteBox`) and dynamic labels for buttons. Debugging tools and query parameter support for `order_id`, `step`, and `customer_id` were also added to streamline the process flow.
2025-02-25 17:57:08 +01:00
Jepp9350 333898469d Add permission checks and refine UI elements
Introduce `RequiresPermission` component to enforce role-based access control throughout the application. Refine UI elements with sharper input styles and ensure focused accessibility improvements (e.g., auto-focus on specific fields). Enhance vehicle data parsing and popper usability, while maintaining robust handling of asynchronous operations.
2025-02-25 13:10:11 +01:00
Jepp9350 edc979d8fb Refactor dashboard and UI components; add theming system
Introduce a centralized theming configuration via `ThemeConfig.vue`. Refactor various dashboard components for consistency and modularity, including new wrappers (`DepartmentDashboardPageWrapper`, `WhiteBox`, `ButtonsBox`). Enhance user context with `UserNavigationTop` and improve menu structure with reusable menus (`AdminLeftMenu`, `MenuDefault`). Update button and UI element styles using dynamic theming.
2025-02-25 11:29:41 +01:00
Jepp9350 18dc8fb40f Add Department POS module and related views
Introduced Department POS functionality with navigation, orders, and order detail views. Set up routing and middleware for POS operations. Added base styles, assets, and updated package dependencies to support these changes.
2025-02-25 08:20:04 +01:00