Git Product home page Git Product logo

b2-final-starter-7's People

Contributors

cjsim89 avatar dylan-perry avatar juliet-e avatar mikedao avatar

b2-final-starter-7's Issues

7_Merchant_Invoice_Show_Page_Subtotal_and_Grand_Total_Revenues

As a merchant
When I visit one of my merchant invoice show pages
I see the subtotal for my merchant from this invoice (that is, the total that does not include coupon discounts)
And I see the grand total revenue after the discount was applied
And I see the name and code of the coupon used as a link to that coupon's show page.

3_Merchant_Coupon_Show_Page

  1. Merchant Coupon Show Page

As a merchant
When I visit a merchant's coupon show page
I see that coupon's name and code
And I see the percent/dollar off value
As well as its status (active or inactive)
And I see a count of how many times that coupon has been used.

(Note: "use" of a coupon should be limited to successful transactions.)

5_Merchant_Coupon_Activate

  1. Merchant Coupon Activate

As a merchant
When I visit one of my inactive coupon show pages
I see a button to activate that coupon
When I click that button
I'm taken back to the coupon show page
And I can see that its status is now listed as 'active'.

1_Merchant_Coupons_Index

As a merchant
When I visit my merchant dashboard page
I see a link to view all of my coupons
When I click this link
I'm taken to my coupons index page
Where I see all of my coupon names including their amount off
And each coupon's name is also a link to its show page.

1_Scientist_Show_Page

As a visitor
When I visit a scientist's show page
I see all of that scientist's information including:

  • name
  • specialty
  • university where they got their degree
    And I see the name of the lab where this scientist works
    And I see the names of all of the experiments this scientist is running

6_Merchant_Coupon_Index_Sorted

As a merchant
When I visit my coupon index page
I can see that my coupons are separated between active and inactive coupons.

4_Merchant_Coupon_Deactivate

  1. Merchant Coupon Deactivate

As a merchant
When I visit one of my active coupon's show pages
I see a button to deactivate that coupon
When I click that button
I'm taken back to the coupon show page
And I can see that its status is now listed as 'inactive'.

  • Sad Paths to consider:
  1. A coupon cannot be deactivated if there are any pending invoices with that coupon.

8_Admin_Invoice_Show_Page_Subtotal_and_Grand_Total_Revenues

As an admin
When I visit one of my admin invoice show pages
I see the name and code of the coupon that was used (if there was a coupon applied)
And I see both the subtotal revenue from that invoice (before coupon) and the grand total revenue (after coupon) for this invoice.

  • Alternate Paths to consider:
  1. There may be invoices with items from more than 1 merchant. Coupons for a merchant only apply to items from that merchant.
  2. When a coupon with a dollar-off value is used with an invoice with multiple merchants' items, the dollar-off amount applies to the total amount even though there may be items present from another merchant.

2_Merchant_Coupon_Create

As a merchant
When I visit my coupon index page
I see a link to create a new coupon.
When I click that link
I am taken to a new page where I see a form to add a new coupon.
When I fill in that form with a name, unique code, an amount, and whether that amount is a percent or a dollar amount
And click the Submit button
I'm taken back to the coupon index page
And I can see my new coupon listed.

*** Sad Paths to consider:

  1. This Merchant already has 5 active coupons
  2. Coupon code entered is NOT unique**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.