Closed minigubben closed 7 months ago
The overall change involves modifying the accounting export functionality to encode and decode the data correctly for file downloads. In the frontend, the response handling has been updated to convert base64-encoded data to a binary format using atob
. On the backend, the data is now encoded in cp437
before being base64 encoded to ensure proper format for ASCII conversion.
File | Change Summary |
---|---|
admin/src/Sales/.../AccountingExport.jsx |
Updated response handling to use response and convert base64 data using atob . |
api/src/shop/views.py |
Imported b64encode and modified data encoding to cp437 before base64 encoding. |
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