110 Commits

Author SHA1 Message Date
5809b7ab23 Updated production vars.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-07 13:05:34 +00:00
fa2d5b91c3 Implemented sales order calculations.
Some checks reported warnings
farmcontrol/farmcontrol-api/pipeline/head This commit is unstable
2026-03-06 21:14:08 +00:00
ee14c420df Added CSV support.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-03 01:20:38 +00:00
f852e607f9 Added excel support.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-03 01:01:52 +00:00
fcaa5a1043 Fixed tests.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-02 02:05:00 +00:00
8ad3d3da5c Implemented multiple app passwords.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
2026-03-02 01:58:24 +00:00
eaa8bf4836 Updated 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. 2026-03-02 00:54:10 +00:00
ed25260d5b Added smtp to production builds. 2026-03-01 21:45:21 +00:00
f23503863c Fixed remote dir.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 20:23:43 +00:00
deb2b4a154 Modified ssh to default to farmcontrol home dir.
Some checks reported warnings
farmcontrol/farmcontrol-api/pipeline/head This commit is unstable
2026-03-01 20:20:06 +00:00
36516bd911 Fixed copy dir.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 20:11:44 +00:00
30b5258088 Fixed file copying.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 20:08:40 +00:00
09c6911acc Fixed copy code.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 20:03:19 +00:00
c0196a624c Improved jenkins deploy code.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 20:01:07 +00:00
44841dd5b8 Fixed unit tests.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 19:37:34 +00:00
a9c4b29f9f Improved notifications.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
2026-03-01 19:21:05 +00:00
6e3b900423 Implemented redis session storage. 2026-03-01 17:06:26 +00:00
78509ed3a2 Implemented email notifications. 2026-03-01 16:54:56 +00:00
a2d62ddec1 Fixed api tests.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-03-01 02:09:41 +00:00
3e47cb131b Implemented notifications.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
2026-03-01 01:42:30 +00:00
838e48ade6 Install lodash.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2026-02-01 22:44:42 +00:00
19690c3a16 Added pnpm lock.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
2026-02-01 21:51:46 +00:00
81b7dd6e16 Switch to pnpm.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
2026-02-01 21:42:17 +00:00
7fb968d4ed Added build status to readme.md
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2025-12-29 02:41:09 +00:00
dc7889cc6a Improved deployment.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
2025-12-29 00:55:26 +00:00
164353d071 Delete package-lock.json. 2025-12-29 00:42:06 +00:00
28c94159b4 Added unit tests.
Some checks failed
farmcontrol/farmcontrol-api/pipeline/head There was a failure building this commit
2025-12-29 00:39:13 +00:00
2d156aa98f Added Jenskinsfile.
Some checks reported warnings
farmcontrol/farmcontrol-api/pipeline/head This commit is unstable
2025-12-28 23:50:10 +00: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
d3cbea45c5 Add invoicing fields to shipment schema and update recalculation logic
- Introduced new fields: 'invoicedAmount', 'invoicedAmountWithTax', 'invoicedAmountRemaining', and 'invoicedAmountWithTaxRemaining' to the shipment schema for better tracking of invoicing status.
- Updated the recalculation logic to compute remaining invoiced amounts based on the newly added fields.
2025-12-28 02:11:50 +00:00
dd86075734 Add 'name' field and invoicing details to order item schema
- Introduced a new 'name' field as a required attribute in the order item schema.
- Added invoicing-related fields: 'invoicedAmountWithTax', 'invoicedAmount', 'invoicedQuantity', 'invoicedAmountRemaining', 'invoicedAmountWithTaxRemaining', and 'invoicedQuantityRemaining' to track invoicing status.
- Updated route handlers to accommodate the new 'name' field in order item creation and editing processes.
- Enhanced the recalculation logic to include remaining invoiced amounts and quantities.
2025-12-28 02:11:37 +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
858041b8e9 Refactor invoice schema to improve clarity and add acknowledgment date
- Renamed 'vendor' and 'client' fields to 'from' and 'to' for better semantic understanding.
- Added 'acknowledgedAt' field to track acknowledgment date of invoices.
2025-12-28 02:10:55 +00:00
8126574186 Enhance invoice schema with order items and shipments
- Added new schemas for invoice order items and shipments to support detailed invoice management.
- Updated the main invoice schema to include references to order items and shipments.
- Implemented a recalculation method for invoice totals, including amounts with and without tax.
- Enhanced rollup configurations to provide more detailed statistics on invoice states.
2025-12-28 01:10:52 +00:00
2630976f9e Add client and sales order management functionality
- Introduced new schemas for clients and sales orders.
- Implemented route handlers for CRUD operations on clients and sales orders.
- Updated the main application routes to include client and sales order routes.
- Enhanced the models to support new data structures and relationships.
2025-12-27 20:47:10 +00:00
dea6a90b68 Removed development logging. 2025-12-27 15:19:13 +00:00
c4f2de910a Remove images. 2025-12-27 14:05:45 +00:00
5d8e2d0cb8 Clean repo. 2025-12-27 14:04:54 +00:00
a12ae1f340 Bump packages. 2025-12-27 14:03:54 +00:00
db85735f9b Update tax rate import path in taxrates.js to reflect schema renaming. 2025-12-27 14:03:44 +00:00
5a16890b7a Add route handler for updating multiple stock events in stockevents.js 2025-12-27 14:03:38 +00:00
361689cef4 Update allowedFilters in order items route to include shipment and shipment._id for enhanced filtering capabilities. 2025-12-27 14:03:25 +00:00
a7bda46acf Add 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. 2025-12-27 14:03:03 +00:00
7541612d67 Refactor ObjectId handling in utils.js to use mongoose.Types.ObjectId for consistency across the codebase. 2025-12-27 14:02:50 +00:00
ecb888f692 Renamed tax rates. 2025-12-27 14:02:39 +00:00
fadaafdad8 Add 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. 2025-12-27 14:02:16 +00:00
eb2e920028 Add 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. 2025-12-27 14:01:46 +00:00
2ac550b0c4 Refactor 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. 2025-12-27 13:59:48 +00:00
9c4b73da67 Enhance 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. 2025-12-27 13:59:37 +00:00
75e5079479 Update models.js to correct tax rate import and add shipment and invoice models 2025-12-27 13:59:22 +00:00