User Story
Customers may want to avoid suspending the customers for Out-Of-Turn invoices, because now the Invoice Related options are applied to all invoice types. So the options should be separated and handled independently.
Use Cases - Use separate configuration for Out-Of-Turn invoices.
Preconditions: Administrator may need to avoid suspending customers for generated Out-Of-Turn invoice
Roles: Administrator, System, Customer
Use scenario #1.1: Setting separate configuration for Out-Of-Turn invoices
Scenario:
The administrator goes to Customer Class
Administrator enables Out-Of-Turn invoices
Administrator goes to tab Out-Of-Turn Invoices
Administrator chooses invoice template and other options for Out-Of-Turn Invoices
- Administrator does not set the "Suspend customer's services' options"
Administrator saves the Customer Class
Administrator goes to customer invoices page
Administrator creates Out-Of-Turn Invoice
System generates the Out-Of-Turn invoice, for generating uses the Invoice template from Customer Class, Out-Of-Turn section
Administrator prints the invoice and gives it to the customer
Customer does not pay the invoice for a long period of time
- System rechecks the invoice and sees, that it is Out-Of-Turn
- System does not suspend customer for unpaid Out-Of-Turn invoice
The administrator goes to Customer Class
Administrator enables Out-Of-Turn invoices
Administrator goes to tab Out-Of-Turn Invoices
Administrator chooses invoice template and other options for Out-Of-Turn Invoices
- Administrator sets the "Suspend customer's services' options"
- Administrator sets the notification warning days
Administrator saves the Customer Class
Administrator goes to customer invoices page
Administrator creates Out-Of-Turn Invoice
System generates the Out-Of-Turn invoice, for generating uses the Invoice template from Customer Class, Out-Of-Turn section
Administrator prints the invoice and gives it to the customer
Customer does not pay the invoice for a long period of time
- System rechecks the invoice and sees, that it is Out-Of-Turn
System sends the appropriate notification to a customer
Use scenario #1.3: Overriding Out-Of-Turn invoices on Customer level
- The administrator wants to use different Invoice template for Out-Of-Turn invoices
- Administrator goes to Customer, tab Invoices&Taxation
- Administrator can override invoice template for Regular Invoices and Out-Of-Turn invoices
- Administrator can override sending invoices via email for regular and Out-Of-Turn invoices
- Administrator adjusts the customer configuration to Out-Of-Turn Invoice Template - Custom Template, send out-of-turn invoices via email - no
- Next time when administrator creates out-of-turn invoice system uses custom template and does not send the invoice to customer despite the configuration set for Regular Invoices
Other requirements / constraints
RC1: Previous invoice settings should be separated into 2 groups - Regular and Out-Of-Turn Invoices
RC2: Regular Invoices options should be cloned to Out-Of-Turn Invoices options
RC3: Store the options only if the Out-Of-Turn invoices are allowed (Customer Class only)
RC4: There are 2 options allowed to override from customer class level: Out-Of-Turn Invoice Template and Send Out-Of-Turn invoices.