Household pattern
Receipt
What the helper did, itemised, with the line that allowed it.
States
Itemised, with total
Reorder oat milk, eggs and bananas
Done on its own, Monday, Aug 24 at 7:05 am
- Oat milk, 2 cartons$9.98
- Large eggs, dozen$5.49
- Bananas, bunch of 6$2.93
- Total$18.40
Oat milk ran out Sunday and there were two eggs left. Added to Wednesday's Greenleaf delivery.
Single line
Apply $5 off $50 at Valley Wholesale
Done on its own, Friday, Aug 28 at 7:10 am
- Detergent order, $5 off−$5
Valley's monthly $5-off offer applies to the detergent order.
No money
a slot change
Move today's delivery to 7–9 pm
Done on its own, Wednesday, Aug 26 at 8:15 am
Greenleaf dropped the 5–7 pm slot. 7–9 pm is the next one today and nobody's out this evening.
After you said yes
Reorder laundry detergent, the 5-litre size
Done after you said yes, Wednesday, Aug 26 at 7:00 am
- Free & clear laundry detergent, 5 L · about 140 washes$55
The big bottle from Valley Wholesale works out 30% cheaper per wash than the one you usually get, but it's a bigger order than usual.
Quiet (not sent under the policy)
Reorder oat milk, eggs and bananas
Done on its own, Monday, Aug 24 at 7:05 am
- Oat milk, 2 cartons$9.98
- Large eggs, dozen$5.49
- Bananas, bunch of 6$2.93
- Total$18.40
Oat milk ran out Sunday and there were two eggs left. Added to Wednesday's Greenleaf delivery.
Not sent to you. Your receipts are set to “only the unusual”.
When to use
- In the detail panel for any event that was done, on its own or after a yes.
- In a receipts feed.
When not to
- For asks or refusals.
- For money the helper did not move. A split it recorded is not a receipt for spending.
Props
| Name | Type | Notes |
|---|---|---|
| event* | EvaluatedEvent | Uses source.lines for the itemisation. |
| policy | ReceiptPolicy | The contract's receipt setting, quoted when the receipt is quiet. |
| link / linkHref | ContractLink, string | Footer link. |
* required
Accessibility invariants
- Named "Receipt: <action>". Lines are a list with amounts in tabular figures.
- A quiet receipt (one the policy would not have sent) is dashed, says so in words, and is still readable.
- Savings are negative amounts in the acted tone, with the minus sign present.
Agent instructions
For anything generating UI from this system
Render a Receipt for events whose decision is acted, or asked and approved (or expired and proceeded). Pass the contract's receipts policy so quiet receipts explain themselves. Use the fixture's lines as they are; do not total them yourself.