318 — should compute price = unit_price × units, then apply discount¶
Description¶
Verifies that when an invoice item uses units, the item price is calculated as unit price × units, and that an item-level discount is then subtracted from that.
Preconditions¶
- Signed-in tenant with
Client 01and the user on the new invoice form past the client step.
Steps¶
- Click Add item, toggle Has unit on, set units to
3, set unit price to100. - Expected: item price reads
300(100 × 3) and final price reads300. - Switch the item discount type to Amount and enter value
50. - Expected: final price reads
250(300 − 50).
Related¶
- Spec:
playwright/tests/integration/invoice.spec.ts(line 498)