Validation user stories
I'm having some trouble figuring out how to handle validation using user stories. I've come up with the following approach but I'm not sure if it is correct.
Is the following a valid user story?
As a Comptroller
I want to prevent a customer from being disabled when it has unpaid invoices
So I can ensure that the customer pays their invoices
If not, how would I ensure that this is properly tracked?
As an administrator who disables customer accounts,
I would like to be prevented from disabling a customer account if the account has unpaid invoices
so that customers have a chance to pay their invoices.
Acceptance Criteria: display a message to the administrator with information about why the account cannot be disabled.
Perhaps this can be written as a specific acceptance criterion for a more general user story, e.g.
Given a customer account
Where at least one invoice is unpaid
Then the account will be enabled