tomik-z-cech / PP5-Ohm-Azing-Components

View massive selection of electronic components at our online store. Find high-quality resistors, capacitors, tools, kits and more. Shop now for all your electronic needs !

Home Page:https://ohmazing-components-1a5a0fcb9e95.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.