Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Story 30, User cancels an order #53

Closed
5 of 7 tasks
memcmahon opened this issue May 20, 2019 · 0 comments
Closed
5 of 7 tasks

User Story 30, User cancels an order #53

memcmahon opened this issue May 20, 2019 · 0 comments
Assignees

Comments

@memcmahon
Copy link
Collaborator

memcmahon commented May 20, 2019

As a registered user
When I visit an order's show page
If the order is still "pending", I see a button or link to cancel the order
When I click the cancel button for an order, the following happens:
- Each row in the "order items" table is given a status of "unfulfilled"
- The order itself is given a status of "cancelled"
- Any item quantities in the order that were previously fulfilled have their quantities returned to their respective merchant's inventory for that item.
- I am returned to my profile page
- I see a flash message telling me the order is now cancelled
- And I see that this order now has an updated status of "cancelled"

DO THESE STORIES FIRST:

  • User Story 17, User Profile Show Page
  • User Story 29, User views an Order Show Page

Checklist:

  • base tests are written
  • base code is written to pass tests
  • edge case ("sad path") tests written (if required)
  • edge case code written (if required)
  • code is reviewed
  • branch is merged
  • all tests still pass

child of turingschool-projects#241

child of turingschool-projects#274

depends on turingschool-projects#252

depends on turingschool-projects#238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants