319 — should render two saved invoice items correctly in the items grid¶
Description¶
Verifies that the invoice's items grid correctly renders two saved items at once: one summing a time record + expense, and one priced by unit × units with an amount discount, with all columns and aggregated totals showing the correct values.
Preconditions¶
- Signed-in tenant with
Client 01, thePrivate 01(€480) andPrivate 04(€2,880) time records,expense2(€200), and the user on the new invoice form past the client step.
Steps¶
- Click Add item, set its name, link time record
Private 04and expenseexpense2. Expected: the item modal final price reads3080. Save the item. - Click Add item again, set its name, link
Private 01, toggle Has unit on, set units3, unit price100, unit name from the seeded unit, switch discount type to Amount and value50. Expected: the item modal final price reads250. Save the item. - Expected: the items grid shows 2 items.
- Expected: item 1 row shows time records
1, additional items1, unit name-, price/unit-, units-, price3,080.00, discount-, total price€3,080.00. - Expected: item 2 row shows time records
1, additional items-, the chosen unit name, price/unit€100.00, units3, price300.00, discount€50.00, total price€250.00. - Expected: items total discount reads
€50.00and items total price reads€3,330.00.
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 511)