Last active
April 22, 2021 12:56
-
-
Save vnadgir/fc21b8c70d3acb97401a6ebc70c921b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Cash customer | |
##Conceptual level | |
Given a customer has been issued with an invoice of 200 pounds | |
And the customer is a cash paying customer | |
When the invoice is due (which now happens to be the last day of the month) | |
Then the invoice amount is reflected as a debit balance on the ledger | |
## Process today | |
Given a customer has been issued with an invoice of 200 pounds | |
And the customer is a cash paying customer | |
When the DD run is executed | |
Then the line item for the customers invoice for 200 pounds appears in the non dd file | |
## Credit invoice with a debt scenario (incomplete) | |
Given a customer has been issued with an credit invoice of 200 pounds | |
And the customer is | |
When the DD run is executed | |
Then the line item for the customers invoice for 200 pounds appears in the non dd file | |
========================== | |
## Concepts | |
### - DD retakes? | |
## Might need to set expectation with customer when this will take effect | |
Given a customer is a DD payer | |
When the customer calls to change their bank details | |
Then their bank mandate details are not reflected until 3 days later | |
Given a customer has been issued with an invoice of 200 pounds | |
When the customer is a DD payer at the time when the invoice is generated | |
And the customer is still a DD payer at the time when the direct debit file is generated | |
Then the dd file contains a line item for the customer's 200 pounds | |
Given a customer has been issued with an invoice of 200 pounds | |
When the customer is a DD payer at the time when the invoice is generated | |
And the customer is still a DD payer at the time when the direct debit file is generated | |
And the customers preference for payment collection is the last working day | |
Then the line item for the customers 200 pounds appears in the "main" DD file | |
Given a customer has been issued with an invoice of 200 pounds | |
When the customer is a DD payer at the time when the invoice is generated | |
And the customer is still a DD payer at the time when the direct debit file is generated | |
And the customers preference for payment collection is the first working day | |
Then the line item for the customers 200 pounds appears in the "First of the month" DD file | |
## DD Adjust (Billing errors) - we owe customer | |
Given a customer has been issued with an invoice of 200 pounds | |
And the invoice amount has been adjusted to be 93 pounds | |
When the appropriate dd file is generated | |
Then the line item for the customers 93 pounds appears in the dd file | |
## DD Adjust (Billing errors) - customer owes us | |
Given a customer has been issued with an invoice of 200 pounds | |
And the invoice amount has been adjusted to be 389 pounds | |
When the appropriate dd file is generated | |
Then the line item for the customers 200 pounds appears in the dd file | |
## Payment method changes to cash (irrespective of how this change happens) | |
Given a customer has been issued with an invoice of 200 pounds | |
And the customer is a dd customer when the invoice was generated | |
When payment method is changed to cash before the dd run is executed | |
Then the line item for the customers 200 pounds appears in the non-dd file | |
## Credit scenarios | |
### DD Adjust | |
Given a customer has been issued with an credit invoice of 189 pounds | |
And the invoice amount has been adjusted to be 100 pounds | |
When the appropriate dd file is generated | |
Then the line item for the customer's credit 100 pounds appears in the dd file | |
### Credit invoice with Debt | |
Given a customer has been issued with an credit invoice of 189 pounds | |
And the customer is in debt for a 150 pounds | |
When the appropriate dd file is generated | |
Then the line item for the customer's credit of 39 pounds appears in the dd file | |
Given a customer has been issued with an credit invoice of 195 pounds | |
And the customer is in credit for a 50 pounds | |
When the appropriate dd file is generated | |
Then the line item for the customer's credit of 245 pounds appears in the dd file | |
Given a customer has been issued with an credit invoice of 195 pounds | |
And the customer is in debt for a 245 pounds | |
When the appropriate dd file is generated | |
Then the line item for the customer's credit of 195 pounds appears in the non-dd file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment