2122 Commits
Author SHA1 Message Date
Jepp9350 007dab73cb Add new customer invoice management features
Introduced filters for invoice periods (per order/month) and statuses (open/closed). Added detailed invoice item display with expandable content for orders. Updated global content visibility logic and refined API settings.
2025-04-01 11:56:02 +02:00
Jepp9350 0688959ed4 Add new components, translations, and features for FXRatesAPI and invoices
Introduced functionality for FXRatesAPI integration, added pagination components, and enhanced invoice handling with new tables and dropdowns. Expanded translations, adjusted user display settings, and streamlined POS department step logic for better transaction handling.
2025-03-31 13:19:27 +02:00
Jepp9350 f537d588d4 Add order completion functionality and related UI updates
Introduces the ability to mark orders as completed via the API. Updates the UI to reflect completion status, including a new button for completing orders and warning tags for incomplete orders. Ensures smooth user flow with success dialogs and error handling.
2025-03-27 14:29:47 +01:00
Jepp9350 35657d0304 Enhance form handling and booking data integration
Added new form submission callbacks and enhanced validation options across multiple components. Improved booking data handling with new methods, updated UI for displaying booking details, and refinements to layout and service representation.
2025-03-27 10:57:21 +01:00
Jepp9350 ca82578418 Enhance form handling and field functionality
Updated form logic to support multi-select fields and improved field option handling with helper functions. Added a debug button for form output and optimized component structure. Adjusted the layout and visibility of booking certificate elements for better organization.
2025-03-26 17:49:22 +01:00
Jepp9350 37af10a0a0 Refactor permission handling and improve menu/item visibility logic
Added permission-based access controls across menus and components. Improved visibility logic for menu items and dropdowns, including dynamic checks for permissions and conditions. Introduced a new "DepartmentDailyBookingReportSmall" component for department-specific booking reports with dynamic data handling.
2025-03-26 13:15:31 +01:00
Jepp9350 4e1cf7257f Add branding support to Department profile management
Introduced functionality to fetch, display, and manage department branding. Added `getBranding` and `hasBranding` methods, new edit branding form, and associated UI updates. Ensured live updates through watchers and improved code organization.
2025-03-26 12:07:48 +01:00
Jepp9350 a169868ddc Refactor department and form logic for improved flexibility
Replaced `department` with `departmentAdvanced` for enhanced logic, introducing reusable functions and default configurations. Extended `FormDisplay` with customizable `field_options`, `form_field_options`, and `validator_options` to support dynamic validation and field attributes.
2025-03-26 11:04:32 +01:00
Jepp9350 726681d3fe Add branding management feature for departments.
Introduced a new "Profil & Branding" tab to the SuperUser dashboard for managing department branding data. Implemented components, routes, and backend object definitions to support CRUD actions for branding, along with form validation and display functionality.
2025-03-26 10:09:22 +01:00
Jepp9350 70168ee2bb Add booking management and wash certificate generation features
Introduce booking data handling with support for creating wash certificates. Updates include a new booking overview display, enhanced validator options, and integration of booking objects in the session user module. Refactor UI components and add supporting methods for seamless user interaction.
2025-03-25 19:10:33 +01:00
Jepp9350 444b47adf1 Add guest dashboard modules and improve global form handling
Introduced new views and components for guest dashboard, including GuestHome, guest-specific menus, and booking pages for washes. Enhanced the forms system with reCAPTCHA support, calendar integration, and better field handling. Adjusted router configuration and updated requests to separate authenticated and unauthenticated flows.
2025-03-25 13:11:25 +01:00
Jepp9350 10a450a396 Refactor error handler imports and simplify return logic.
Reordered imported functions for better code readability. Simplified the `isLocked` function by directly returning `validator.locked` instead of using an intermediate variable.
2025-03-24 11:55:19 +01:00
Jepp9350 c490c0cdcd Add field-specific error handling and improve form logic
Introduce `fieldErrors` to manage validation errors per field, updating them based on server responses and user input. Enhance form handling by adding error messages in the UI, refining field change logic, and supporting field options for select elements. Also, clean up console logs for better code clarity.
2025-03-24 11:37:46 +01:00
Jepp9350 5822fed31f Restrict specific addons based on customer attributes.
Added logic to restrict "Spot Free" and "Indvendig vask" addons when certain customer attributes are set. Updated the UI to display a disabled button with a warning for restricted addons, ensuring users are informed that these options are unavailable.
2025-03-24 09:36:46 +01:00
Jepp9350 efa60a87cb Add restriction for additional services based on attributes
Introduced a check for customer attributes to restrict additional services when applicable. If the attribute "restrictAdditionalServices" is present, a disabled warning button is shown instead of addon options. This ensures compliance with customer-specific restrictions.
2025-03-24 08:18:39 +01:00
Jepp9350 9984bbb613 Add SweetAlert success message on report save
Implemented SweetAlert to display a success notification when the report is saved. This enhances user feedback and improves the interface's responsiveness.
2025-03-14 15:15:18 +01:00
Jepp9350 4c4a998b84 Remove redundant note validation logic from product forms
Simplifies note handling by eliminating duplicate and unnecessary validation checks. Ensures the workflow remains functional while reducing code complexity and potential redundancy across components.
2025-03-13 14:59:23 +01:00
Jepp9350 a3aec14e74 Improve sorting, redirects, and UI consistency
Added sorting by date to daily report history and ensured new daily reports are created only for the current day. Updated redirect logic to allow external links and replaced outdated dropdown items in user navigation. Minor UI adjustment to button wrapping for better responsiveness.
2025-03-13 14:37:02 +01:00
Jepp9350 fd55de8015 Improve pagination, table handling, and data display logic
Refactored the pagination logic to handle limits and prevent duplicate data loading. Enhanced table components with new columns, conditional parsing, and functions for better user interaction and UI clarity. Added translations and adjustments for improved multi-language support.
2025-03-13 13:25:11 +01:00
Jepp9350 36dbfee07b Refactor and enhance filtering, data handling, and UI components
Introduced new functionalities such as "onlyFromInvoiceCollection", customer_name, yesterday's water usage, and parse functions for better data processing and filtering. Enhanced UI components by adding proper handling for reactive tabs, hiding empty states, and dynamic views like tabs for invoice management. Adjusted behavior to improve accessibility, loading conditions, and clarity across dashboards and tables.
2025-03-13 09:29:52 +01:00
Jepp9350 62c0ed4041 Update table column header to use dynamic translation key
Replaced the hardcoded "Transaktioner" with a dynamic translation key for consistency and localization support. This ensures the header adapts to the user's language settings.
2025-03-12 14:39:42 +01:00
Jepp9350 beb0919eae Add form handling, new booking flow, and demo branding check
Introduced form management with `Forms` object and new `FormDisplay` component. Updated booking flow with a new route and page for creating wash bookings. Added branding toggling logic for demo domain and enhanced user dashboard pagination with contextual buttons.
2025-03-12 14:37:25 +01:00
Jepp9350 7bdafee811 Refactor addon buttons and bind customer attributes.
Refactored the structure of addon buttons in `ProductBox.vue` for better readability and maintainability by replacing nested `div` elements with `template` tags. Added `customer_attributes` binding to `SelectProductsFormPOS.vue` for enhanced customer-specific functionality.
2025-03-12 09:05:37 +01:00
Jepp9350 db46abfe6c Update query parameters management and comment out unused button
Improved navigation by dynamically updating query parameters at key steps in the POS process for better state handling. Additionally, commented out the unused "ExportOrderToDraftButton" to clean up the UI logic.
2025-03-11 16:31:15 +01:00
Jepp9350 4e764d8c30 Add metadata structure and improve menu/item integration.
This commit adds metadata support for various modules, including reCAPTCHA, MotorAPI, Stripe, Email, and Backups. It updates the left menu structure by dynamically integrating object metadata and adds the Orders object to SessionUser. These changes enhance modularity, configurability, and scalability across the application.
2025-03-10 13:31:23 +01:00
Jepp9350 ce2c696f91 Add dynamic notification handling with error management
Introduced a notification system allowing fetching, displaying, and managing user notifications dynamically. Added error handling, improved component reusability with `UserNotificationListItem`, and integrated notifications into the session model. Enhanced UI elements to provide loading states, error messages, and real-time updates.
2025-03-10 12:01:33 +01:00
Jepp9350 ffe46f081e Refactor invoice handling and improve order status logic
Updated logic for handling invoice collections, adding checks for closed and booked states, and refined order status display logic with relevant color classes and messages. Additionally, commented out unused invoicing sections in `UserOrders.vue` for clarity and maintainability.
2025-03-10 08:52:30 +01:00
Jepp9350 7c0344ad45 Add read-only mode and user-specific components integration
Introduced a `readOnly` prop to several components to disable editing functionality when needed. Integrated `UserOtherSpecialArrangement` and `UserOtherVaskeabonnement` components into the `collectedOrderInvoice` view, displaying user-specific data in read-only mode. Added a placeholder component `collectedOrderInvoiceCustomerNotes` for future customer note handling.
2025-03-07 16:44:52 +01:00
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