61 Commits

Author SHA1 Message Date
2622fae555 Implemented notifications.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
2026-03-01 01:42:27 +00:00
4b82048d8e Fixed invoice client. 2026-02-28 18:31:01 +00:00
9d78473a2a Update SalesOrder model to refine state validation for invoice actions
- Enhanced the disabled logic for invoice actions by introducing a list of allowed states: 'delivered', 'sent', 'confirmed', 'shipped', 'partiallyDelivered', and 'partiallyShipped'.
- Simplified the return statement for better readability and maintainability.
2025-12-28 02:10:40 +00:00
b2b1cd4fe0 Enhance Invoice Model with New Payment and Acknowledgment Features
- Added a "New Payment" button to the Invoice model, allowing users to initiate payments based on invoice state.
- Introduced an "Acknowledge" button for invoices in the "sent" state, enabling acknowledgment actions.
- Updated the invoice grouping and filtering criteria to include "orderType" and "to/from" fields.
- Adjusted column definitions to improve layout and visibility of new fields, including "acknowledgedAt" and "paidAt".
- Enhanced the invoice summary calculations to include acknowledged counts and totals.
2025-12-28 02:10:31 +00:00
6fc952be4d Add Payment Management Features
- Introduced Payment model and associated components for managing payments within the finance dashboard.
- Added PaymentIcon for visual representation in the sidebar and other components.
- Implemented Payments overview, including statistics and a new modal for creating payments.
- Enhanced InvoiceInfo component to include payment details and actions for acknowledging and posting payments.
- Updated database models to integrate payment functionalities, ensuring comprehensive financial tracking.
2025-12-28 02:09:01 +00:00
6b983ca873 Enhance Shipment model and NewShipment component with invoicing fields
- Added new invoicing fields: invoicedAmount, invoicedAmountWithTax, invoicedAmountRemaining, and invoicedAmountWithTaxRemaining to the Shipment model.
- Updated NewShipment component to include the new invoicing fields in its initial state configuration for better shipment tracking and management.
2025-12-28 01:10:26 +00:00
4da63e6a32 Enhance PurchaseOrder components with new invoice modal and state management
- Added a new modal for creating invoices within the PurchaseOrderInfo component.
- Introduced state management for the new invoice modal, allowing users to open and close it.
- Updated PurchaseOrder model to include additional allowed states for invoice creation.
- Added a new field for 'completedAt' in the NewPurchaseOrder component for better order tracking.
2025-12-28 01:10:10 +00:00
de74fb0668 Enhance OrderItem model and components with new invoicing fields
- Added new fields for invoicing, including invoicedAmount, invoicedAmountWithTax, invoicedQuantity, and their remaining counterparts in the OrderItem model.
- Updated NewOrderItem and OrderItemInfo components to include visibility settings for the new invoicing fields.
- Adjusted label widths in OrderItemInfo for better layout consistency.
2025-12-28 01:09:57 +00:00
bace57b436 Enhance Invoice management features with new PostInvoice functionality
- Added PostInvoice component for posting invoices with confirmation dialog.
- Updated InvoiceInfo component to include new invoice order items and shipments sections.
- Modified NewInvoice component to set default issued and due dates.
- Refactored Invoice model to include new fields for issuedAt, dueAt, invoiceOrderItems, and invoiceShipments.
- Updated action names from 'send' to 'post' for clarity in the invoice workflow.
2025-12-28 01:09:36 +00:00
2fbafc5396 Refactor database models to replace '_id' with '_reference' in columns
- Updated multiple models to change the column identifier from '_id' to '_reference' for consistency across the database schema.
- Adjusted relevant filters and properties to align with the new column naming convention.
2025-12-27 21:22:59 +00:00
e2a81a8503 Update Invoice and PurchaseOrder models to replace 'customer' with 'client' and change 'processing' color to 'purple' 2025-12-27 20:52:11 +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
8f65154691 Fixed vendor selection. 2025-12-27 20:00:18 +00:00
7e1ec9f3ae Removed development logging. 2025-12-27 15:19:09 +00:00
a0e09508f4 Update Job and Printer models to change 'info' color to 'processing' for printing count. 2025-12-27 13:55:07 +00:00
769229aacb Updated NewOrderItem component to set default state to 'draft' and added an optional section for shipment details.
New actions for editing, canceling edits, finishing edits, and deleting items, along with visibility and disabled states based on item status.
2025-12-27 13:54:14 +00:00
4a605ddc09 Enhance Purchase Order management with new actions and UI updates
- Updated NewPurchaseOrder component to set default state to 'draft'.
- Removed unnecessary item property display and added new properties for total amounts and shipping details.
- Introduced new PurchaseOrderInfo component to manage order items and shipments, including modals for creating new items and shipments, posting, acknowledging, and canceling orders.
- Enhanced PurchaseOrder model with new actions for editing, canceling edits, finishing edits, and deleting orders, along with updated visibility and disabled states based on order status.
- Added new properties to the PurchaseOrder model for better tracking of order states and financial details.
2025-12-27 13:52:50 +00:00
62a494509a Refactor shipment components and update shipment model
- Changed default shipment state from 'pending' to 'draft' in NewShipment component.
- Updated shipment information display to include new pricing and optional sections.
- Added modal dialogs for shipping, receiving, and canceling shipments in ShipmentInfo component.
- Enhanced Shipment model with new actions for editing, canceling edits, finishing edits, and managing shipment states.
- Introduced new properties for amount, tax rate, and tax amount in the Shipment model, along with updated sorting and filtering options.
2025-12-27 13:52:13 +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
a4e68b5088 Updated models. 2025-12-13 21:06:01 +00:00
705c517acf Added totalTime field to Job and SubJob models for duration calculation, and updated OrderItem model to include reference field and reorder properties for improved data structure. 2025-12-09 02:11:43 +00:00
7a4dec3f54 Added total weight to filament stocks. 2025-12-08 23:03:47 +00:00
32373ba350 Added parent type to note. 2025-12-08 23:02:25 +00:00
35a6b847e6 Added inventory overview. 2025-12-08 23:01:34 +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
f24bc27e2c Add OrderItem and Shipment models to database schema
- Introduced OrderItem and Shipment models with associated properties and actions.
- Updated ObjectModels to include new models for better integration.
- Refactored existing models to remove unnecessary ID references and improve hyperlink support for related objects.
- Enhanced various models by removing deprecated fields and ensuring consistency in object references.
2025-12-07 02:41:17 +00:00
863f0ad90c Added address to Vendor 2025-12-03 23:47:24 +00:00
13bbcbe50e Added tax rates, tax records and minor style improvements. 2025-12-03 23:35:30 +00:00
17a4a5abd5 Added purchase orders and couriers. 2025-12-03 03:40:00 +00:00
10a4b33620 Group subjobs by job. 2025-12-03 00:08:43 +00:00
05d7864da8 A lot of UI fixes updated packages etc. 2025-12-02 18:29:09 +00:00
97f0c816ad Minor tweaks 2025-11-29 01:25:43 +00:00
df85d99aaf Implemented DocumentPrinters and DocumentJobs 2025-11-29 01:24:57 +00:00
0594cf82cd Added more columns 2025-11-29 01:23:59 +00:00
afe25c1e09 Enhance DocumentJob, DocumentPrinter, and Printer models by adding new fields for state, object IDs, and document size management. Update action labels for clarity and improve data handling with date formatting. Introduce new connection options for printers and enhance the user interface for job management. 2025-11-24 03:34:20 +00:00
c2f55a5967 Update FilamentStock model to conditionally return startingWeight based on object state type 2025-11-17 18:51:17 +00:00
5434b10923 Add printer control actions: restart, start, pause, and stop 2025-11-17 18:48:13 +00:00
48631c98c3 Refactor file handling and update API methods for improved file management. Renamed fetchObjectContent to fetchFileContent, updated related function calls, and enhanced file preview capabilities. Removed unused components and optimized imports. 2025-11-16 17:02:15 +00:00
6bb4943d0c Added file functionality. 2025-09-07 19:47:15 +01:00
82831e4225 Deploy fixes 2025-09-07 19:44:10 +01:00
bdc376af25 Added file support 2025-09-07 19:41:26 +01:00
1b7fd77a99 Add new 'deploy' action to Job model and enhance Printer model with additional fields for 'active', 'online', 'currentJob', 'currentSubJob', and 'alerts'; update existing fields for improved data handling. 2025-09-05 23:19:56 +01:00
27a7acf68f Added file and document job support. 2025-09-05 23:12:52 +01:00
ced34b4a86 Fixed note schema. 2025-08-31 21:31:31 +01:00
4d01a6a04f Overhaul printer control 1. 2025-08-31 21:29:00 +01:00
be2109505f Fixed filament number data types. 2025-08-30 23:39:27 +01:00
5680b067a8 Fixed warnings and info pages. 2025-08-23 00:53:47 +01:00
e7fe26f2da Object Type is required if present. 2025-08-19 23:59:21 +01:00
97d5bfcee7 Update Filament and Printer models for improved data structure
- Added 'createdAt' to the sorters array in the Filament model for enhanced sorting capabilities.
- Refactored the Printer model to change 'moonraker.host' to 'host' and introduced a new 'host._id' field for better object representation and clarity.
- Updated the 'hostname' field to improve consistency in naming conventions.
2025-08-18 01:05:18 +01:00