Skip to content

315 — should sum prices when both a time record and an expense are linked

Description

Verifies that when an invoice item has both a time record and an expense linked, the item's price and final price equal the sum of the linked amounts.

Preconditions

  • Signed-in tenant with Client 01, the Private 04 time record (€2,880.00) and expense2 (€200.00), and the user on the new invoice form past the client step.

Steps

  1. Click Add item, type the item name.
  2. Link the time record Private 04 via the time-records picker. Expected: item price 2880 and final price 2880.
  3. Link expense2 via the additional-items picker. Expected: item price 3080 and final price 3080 (2880 + 200).
  • Spec: playwright/tests/integration/invoice.spec.ts (line 467)