b4837c8b8cAdded mock for deleteObject in filaments test suite to support new delete functionality tests.Tom Butcher2026-03-08 01:58:41 +00:00
0300e00c8fEnhanced delete functionality for filaments by adding a route handler that checks for dependencies before deletion. Updated the database service to support this check, ensuring objects in use cannot be deleted. Refactored related routes for consistency.Tom Butcher2026-03-08 01:53:07 +00:00
866c29f33fSet default state as 'draft' and introduced 'postedAt' field. Implemented postProductStock route handler to transition product stock from draft to posted state, including state validation checks. Updated related service functions for consistency.Tom Butcher2026-03-07 20:37:41 +00:00
420ab75467Added user existence check in userRouteHandler to return 401 status if user is not found, enhancing authentication flow.Tom Butcher2026-03-07 20:32:36 +00:00
5f5eedc798Enhanced user management in auth.js by ensuring user data is returned with expanded object IDs, updated user retrieval to use lean queries for performance, and added profile image support in user info response.Tom Butcher2026-03-07 19:22:32 +00:00
7c44f36590Implemented product stocks and minor improvements.Tom Butcher2026-03-07 13:38:05 +00:00
eaa8bf4836Updated log level to trace in config, added OData routes, implemented HTTP Basic Auth for user authentication, and added functionality to set app password for users.Tom Butcher2026-03-02 00:54:10 +00:00
db85735f9bUpdate tax rate import path in taxrates.js to reflect schema renaming.Tom Butcher2025-12-27 14:03:44 +00:00
5a16890b7aAdd route handler for updating multiple stock events in stockevents.jsTom Butcher2025-12-27 14:03:38 +00:00
361689cef4Update allowedFilters in order items route to include shipment and shipment._id for enhanced filtering capabilities.Tom Butcher2025-12-27 14:03:25 +00:00
a7bda46acfAdd shipment management functionality with new route handlers for shipping, receiving, and canceling shipments. Updated service methods to handle state validation and order item updates accordingly.Tom Butcher2025-12-27 14:03:03 +00:00
7541612d67Refactor ObjectId handling in utils.js to use mongoose.Types.ObjectId for consistency across the codebase.Tom Butcher2025-12-27 14:02:50 +00:00
fadaafdad8Add purchase order management functionality with new route handlers for posting, acknowledging, and canceling purchase orders. Enhanced service methods to validate states and update order items and shipments accordingly.Tom Butcher2025-12-27 14:02:16 +00:00
eb2e920028Add batch update functionality for filament stocks, order items, part stocks, purchase orders, shipments, and filaments. Implemented new route handlers for editing multiple records and enhanced existing services to support bulk updates.Tom Butcher2025-12-27 14:01:46 +00:00
2ac550b0c4Refactor purchase order schema to include additional fields for shipping and state management. Implement rollup statistics and history methods for enhanced data aggregation and reporting capabilities.Tom Butcher2025-12-27 13:59:48 +00:00
9c4b73da67Enhance order item schema with new fields for state management, shipment tracking, and tax calculations. Introduce rollup statistics and history methods for improved data aggregation and reporting.Tom Butcher2025-12-27 13:59:37 +00:00
75e5079479Update models.js to correct tax rate import and add shipment and invoice modelsTom Butcher2025-12-27 13:59:22 +00:00
4421c0b946Add invoice management functionality with schema, routes, and service handlersTom Butcher2025-12-27 13:59:08 +00:00
9ab08f39a1Enhanced database functions with pagination support in listObjects, added checkStates function for state validation, and introduced editObjects function for batch updates. Updated editObject to include recalculate parameter.Tom Butcher2025-12-27 13:57:43 +00:00
85f9ca8b6dUpdated configuration for development environment, changing Keycloak client ID and updating app URLs for client and API.Tom Butcher2025-12-27 13:56:29 +00:00
c750b1a573Refactored shipment schema to include new fields and methods for handling order types and tax calculations.Tom Butcher2025-12-27 13:56:05 +00:00