Duplicate Invoice Tests
Contents
Creating Invoice with Reference Number
Action Log in to financials as demofinadmin and go to Receivables tab. Create a Sales Invoice to Demo Customer with no reference number.
Result Invoice created successfully.
Action Create another sales invoice to DemoCustomer with a reference number "test".
Result Invoice created successfully
Action Create another sales invoice to DemoCustomer with reference number "test".
Result An error message appears "Warning: Invoice ${invoiceId} has the same reference number. Are you sure you want to use this reference number?". The invoiceId is the one created in the last action. The create button now reads Force Create.
Action Click Force Create and when the popup confirmation appears, select OK.
Result Invoice created with reference number "test".
Action Create another sales invoice to DemoCustomer with reference number "TEST"
Result Same warning appears. The reference numbers are checked ignoring case.
Action Create a sales invoice to DemoAccount1 with reference number "test".
Result Invoice created successfully without any force complete.
Updating Invoice with Reference Number
Action Pick a sales invoice with reference number "test" and erase it. Press [Update].
Result Update successful and invoice reference number removed.
Action Change the reference number back to "test"
Result Warning message about duplicate reference number appears and button changes to [Force Update]
Action Press [Force Update]
Result Invoice updated to reference number "test".
Action Change some fields in the invoice header. Leave the reference number as "test", press [Update].
Result Invoice updates without force update warning. This is because the reference number has not changed.
Action Change reference number to something else, "testing".
Result Invoice updates without force update.
Action Pick the sales invoice to DemoCustomer that has no reference number. Change the reference number to "testing". When the force update warning comes up, change the reference number to "test" and press [Force Update].
Result Warning about duplicate reference number comes up again. Invoice is not updated. The idea here is you can't sneak a different duplicate reference number when pressing [Force Update].
Repeat Tests
Repeat tests for the following invoice types
- Commission Invoices
- Purchase Invoice
- Partner Invoice