1.1 KiB
1.1 KiB
ADDED Requirements
Requirement: User can record paychecks by pay date
The system SHALL allow the user to create a paycheck with a positive amount and a local pay date.
Scenario: Valid paycheck is created
- WHEN the user submits a positive amount and valid local pay date
- THEN the system stores the paycheck and returns the created record
Scenario: Invalid paycheck is rejected
- WHEN the user submits a missing or invalid amount or date
- THEN the system rejects the request with a validation error and does not store the paycheck
Requirement: User can review and delete paychecks
The system SHALL allow the user to list recorded paychecks and delete a specific paycheck by identifier.
Scenario: Paychecks are listed
- WHEN the user requests paychecks for the app
- THEN the system returns stored paychecks in a stable order with their recorded fields
Scenario: Paycheck is deleted
- WHEN the user deletes an existing paycheck
- THEN the system removes that paycheck and it no longer appears in future dashboard totals or insight inputs