Skip to content

Invoice System React w Redux

Dustin Tinney edited this page Sep 28, 2020 · 4 revisions

This Kata was presented at XP2006 by EmmanuelGaillot and ChristopheThibaut.

Problem Description

User Story 1

Clicking on the New Relic or CircleCi invoice will show you a total of $1,000,000. We'd like this amount to come from the subtotals of the given line items.

Refactor note: We'd like to also look at starting to add testing beyond snapshot tests as our application moves from an MVP phase.

User Story 2

Use the discount_percent in the payload to discount the line item. Show the previous amount, the new amount and the amount discounted. Example below:

Name                | Description                              | Unit Price | Quanity | Discount | Subtotal
Anti-Virus Software | Subscription services for virus software | $200 | 1 | 50% | $100 (was $200)

![](https://gitlab.com/testdouble/accounts-receivable-react/uploads/5ea855ea29cf553527c54e211cfb9842/image.png)

### User Story 3

### User Story 4
Clone this wiki locally