USER STORY : Downloding past invoices
tomik-z-cech opened this issue · comments
As a Site User, I can download any of my own past order invoices in case of needing them in future.
Acceptance Criteria :
Loged In User :
When I navigate to "Order History" and select partucular invoice to download then then the the invoice downloads in web browser .
Not Loged in User :
Doesn't have that option.
Tasks :
- Create a logic in
views.py
to download selected invoice - Protect the view for only loged in users
- Protect the invoice for only user the invoice belongs to
- Test functionality as loged in user
- Test functionality as not loged in user
- Test functionality as user of order
- Test functionality as not user of order
Epic :
EPIC 11
This was done in commit 3b301fc.