Skip to content

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 01 and the user on the new invoice form past the client step.

Steps

  1. Click Add item, toggle Has unit on, set units to 3, set unit price to 100.
  2. Expected: item price reads 300 (100 × 3) and final price reads 300.
  3. Switch the item discount type to Amount and enter value 50.
  4. Expected: final price reads 250 (300 − 50).
  • Spec: playwright/tests/integration/invoice.spec.ts (line 498)