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 I am logged in as "christina@seminarhof.example" with password "admin1234"
|
|
When I visit "/admin/bookings/b_yoga_2026_summer"
|
|
And I click "Rechnungen"
|
|
|
|
Scenario: admin creates a final invoice
|
|
When I create an invoice numbered "2026-FIN-002" for 1500.00 €
|
|
Then I see "2026-FIN-002"
|
|
And I see "Offen"
|
|
|
|
Scenario: admin creates an invoice with an attached PDF
|
|
When I attach invoice PDF "invoice-sample.pdf"
|
|
And I create an invoice numbered "2026-PDF-001" for 500.00 €
|
|
Then I see "PDF öffnen"
|
|
|
|
Scenario: admin records a payment on an outstanding invoice
|
|
When I create an invoice numbered "2026-PAY-001" for 250.00 €
|
|
And I mark invoice "2026-PAY-001" as paid on "2026-05-10"
|
|
Then I see "Bezahlt"
|
|
|
|
Scenario: admin cancels an outstanding invoice
|
|
When I create an invoice numbered "2026-CXL-001" for 100.00 €
|
|
And I accept the next confirmation
|
|
And I click "invoice-cancel-2026-CXL-001"
|
|
Then I see "Storniert"
|