31 lines
1.2 KiB
Gherkin
31 lines
1.2 KiB
Gherkin
@admin @invoices
|
|
Feature: Invoice creation and payment recording
|
|
Admin issues invoices against a booking and records payments when they
|
|
arrive. Both actions create audit trail entries.
|
|
|
|
Background:
|
|
Given "the admin" is logged in
|
|
When they visit "/admin/bookings/b_yoga_2026_summer"
|
|
And they click "Rechnungen"
|
|
|
|
Scenario: admin creates a final invoice
|
|
When they create an invoice numbered "2026-FIN-002" for 1500.00 €
|
|
Then they see "2026-FIN-002"
|
|
And they see "Offen"
|
|
|
|
Scenario: admin creates an invoice with an attached PDF
|
|
When they attach invoice PDF "invoice-sample.pdf"
|
|
And they create an invoice numbered "2026-PDF-001" for 500.00 €
|
|
Then they see "PDF öffnen"
|
|
|
|
Scenario: admin records a payment on an outstanding invoice
|
|
When they create an invoice numbered "2026-PAY-001" for 250.00 €
|
|
And they mark invoice "2026-PAY-001" as paid on "2026-05-10"
|
|
Then they see "Bezahlt"
|
|
|
|
Scenario: admin cancels an outstanding invoice
|
|
When they create an invoice numbered "2026-CXL-001" for 100.00 €
|
|
And they accept the next confirmation
|
|
And they click "invoice-cancel-2026-CXL-001"
|
|
Then they see "Storniert"
|