This is an old revision of the document!
Table of Contents
Below are test cases used when testing the Conditional Negative Balances branch and identify some combinations of settings that should be tested when changes are made to billing.
No Prohibit Negative Balance Settings Are Enabled, Payment Made
Note: tested with negative balance settings unset and with Prohibit Negative Balances (default) setting set to False.
- Check out item.
- Mark as lost. Price of item (29.99) added to the record.
- Pay the entire 29.99 fee.
- Check the item in.
Expected Behavior: Produces negative balance in the amount of 29.99
Negative Balance Settings Are Unset, No Payment Made
- Check out item.
- Mark as lost. Price of item (29.99) added to the record.
- Check in item
Expected Behavior: $0 balance on transaction. No history of the transaction visible to the user through the GUI.
Basic No Negative Balance Test
Relevant settings: Prohibit Negative Balances (default) set to True.
- Check out item
- Mark as lost. Price of item (12.99) added to the record.
- Apply $12.99 payment to the transaction.
- Check the item back in.
Expected Behavior: $0 balance on the transaction.
Prohibit Negative Balances with Partial Payment
Relevant settings: Prohibit Negative Balances (default) set to True.
- Check out item
- Mark as lost. Price of item (3.99) added to record.
- Pay 1.99, leaving 2.00 owed on the transaction.
- Check the item back in.
Expected behavior: $0 balance on the transaction