Closed BerglundDaniel closed 7 months ago
The updates across various components indicate a shift towards enhanced error handling, logging, and performance optimization in an accounting system. Changes include adjustments to file naming conventions, broader product querying, improved logging for tracking and error detection, and refined validation checks. Additionally, there's a focus on preventing duplicate entries and handling edge cases, such as missing signers. Testing has been updated to reflect these changes, and there's a new feature for creating fake payments in debug mode.
File(s) | Summary of Changes |
---|---|
admin/src/Sales/AccountingExport.jsx |
Changed file extension from ".sie" to ".si" and updated default file name logic. |
api/src/firstrun.py |
Modified product query to retrieve all products instead of filtering by category. |
api/src/shop/accounting/accounting.py |
Added logging, a dictionary for entry type tracking, and validation checks. |
api/src/shop/accounting/export.py |
Improved performance by refactoring object creation, added error handling, and enhanced logging. |
api/src/shop/accounting/sie_file.py |
Updated HEADER_TEMPLATE , added duplicate entry prevention, and improved None value error handling. |
api/src/shop/accounting/test/export_test.py , api/src/shop/accounting/test/sie_file_test.py |
Updated function arguments and variables, modified setup, and temporarily disabled a test method. |
api/src/shop/stripe_payment_intent.py , api/src/shop/test/stripe_payment_intent_test.py |
Added debug mode handling, a function for creating fake payments, and updated tests accordingly. |
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?
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation
Tests