Closed BerglundDaniel closed 8 months ago
The codebase has been updated to refine the accounting export features. The changes include a rework of the date selection interface, shifting from a from-to range to a specific year and month selection. The export function now filters transactions by completion status, and the payment intent retrieval has been adjusted for date comparisons. Additionally, the backend route and logic for date range calculations have been updated to align with the new year and month parameters.
File Path | Change Summary |
---|---|
admin/src/Sales/AccountingExport.jsx |
Renamed date selection variables and updated logic to accommodate year and month instead of from-to date range. |
api/src/shop/accounting/export.py |
Added a filter condition to only include completed transactions. |
api/src/shop/stripe_payment_intent.py |
Changed the comparison operator for end_date to strictly less than ("lt"). |
api/src/shop/views.py |
Imported new modules for date manipulation and updated the accounting file download route to use year and month. |
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
Style