djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

[Work-in-Progress] Endpoints to allow downloading reports as CSV (#288, #289, #290) #291

Closed Deep-Chill closed 9 months ago

Deep-Chill commented 10 months ago

Added endpoints to allow downloading reports as CSV.

Some reports need their data to be slightly transformed, eg. balances-due view requires accounting for different units, the coupon_uses view requires accounting for nested values.

Notes:

Deep-Chill commented 10 months ago

Added #289 here because it uses the Mixin created in #288 and #290 was a minor change. Not sure if the download views/URLs belong with the API views/URLs, let me know if you want them moved to 'urls/views'.