Closed BerglundDaniel closed 8 months ago
The recent update introduces an accounting module to the API, including enums for entry types, time period handling, and SIE file generation. It refactors existing code to use the new enums, adds accounting logic and export capabilities, and enhances Stripe payment integration. New tests ensure the accounting features work as expected. The database schema is updated to support accounting, with migrations adjusting column types accordingly.
Files | Summary |
---|---|
.../enums.py , .../time_period.py |
Introduced AccountingEntryType enum and TimePeriod with related functionality. |
.../firstrun.py , .../models.py |
Refactored to use AccountingEntryType enum; updated Transaction and ProductAccountsCostCenters classes. |
.../accounting/... , .../accounting/export.py , .../accounting/sie_file.py , .../accounting/verification.py |
Added accounting classes and functions for transactions, exports, SIE file generation, and verification management. |
.../accounting/test/... |
Created tests for transaction handling, export processes, and SIE file generation. |
.../stripe_payment_intent.py , .../views.py |
Improved Stripe payment handling and added routes for bookkeeping export and file download. |
.../test_aid/db.py , .../test_aid/obj.py |
Enhanced test support with new methods and object creations for transactions and accounting. |
.../migrations/0026_accounting_fraction_integer.sql |
Database migration to change fraction column type in the accounting table. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
@coderabbitai review
The goal of this PR is to implement a route that can be used for the export button in #396
It is dependent on #394
Leaving some TODOs in to be fixed next week since we need the bookeeping to be done
Summary by CodeRabbit
New Features
Enhancements
Bug Fixes
Documentation
Tests