5 Commits

Author SHA1 Message Date
f74b85bb88 Added authorisation and decline functionality for payments, including new route handlers and schema updates to track authorisation and decline timestamps. Updated payment cancellation logic to reflect changes in payment states.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-06-21 22:32:57 +01:00
2996b1670f Refactored tax record management by moving tax record schema and routes to the finance directory, enhancing organization. Implemented CRUD operations for tax records in the new service and added corresponding tests for route handlers. 2026-06-21 22:23:14 +01:00
a7e35c279e Refactor invoice routes and handlers for improved clarity and functionality
- Renamed and updated route handlers for sending and marking invoices to acknowledge and post invoices, respectively.
- Changed filter parameters from 'customer' to 'client' and added 'order' and 'orderType' filters for better invoice management.
- Enhanced invoice handling logic to include order items and shipments, improving the overall invoicing process.
- Updated the population fields in invoice queries to reflect new schema relationships.
- Adjusted state checks and logging for better error handling and clarity in invoice processing.
2025-12-28 02:12:03 +00:00
0f14f0f52c Add payment management functionality
- Introduced a new payment schema to handle payment records, including fields for amount, vendor, client, invoice, and state.
- Implemented route handlers for CRUD operations on payments, including listing, creating, editing, and deleting payments.
- Updated application routes to include payment routes for better organization and access.
- Added statistics and history retrieval methods for payments to enhance reporting capabilities.
2025-12-28 02:11:16 +00:00
4421c0b946 Add invoice management functionality with schema, routes, and service handlers 2025-12-27 13:59:08 +00:00