LP 1198465: More tests for conditional negative balances user/dbwells/lp1198465_cond_neg_bal_rebase_20150529
authorRemington Steed <rjs7@calvin.edu>
Tue, 21 Jul 2015 17:21:15 +0000 (13:21 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 21 Jul 2015 20:22:08 +0000 (16:22 -0400)
commitd885e47cec43ef0b5d6fde644eb7a6e122eda08e
tree8594168ebf3a81bd6289ef2e26f6ba6430260a29
parentd373c7a544e1da8c7a5e5a23d4fdf310c0385dff
LP 1198465: More tests for conditional negative balances

This commit adds the remaining test cases documented by Kathy Lussier on
this wiki page:

    http://evergreen-ils.org/dokuwiki/doku.php?id=qa:billing_test_cases

Test cases included in this commit are:

    6. Restores Overdue Fines Appropriately, No Previous "Voids", Patron
       Will Not Owe On Lost Item Return
    7. Restores Overdue Fines Appropriately, No Previous "Voids", Patron
       Will Still Owe On Lost Item Return
    9. Restore Overdue Fines Appropriately, Previous Voids, Negative
       Balance Allowed
   13. Prohibit negative balances on lost materials bills ONLY
   14. Prohibit negative balances on overdue bills ONLY

Note that test case 5 is omitted because it is a duplicate of case 2,
and case 11 is included but commented out because it is unclear how best
to handle the situation.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/live_t/09-lp1198465_neg_balances.t
Open-ILS/src/sql/Pg/live_t/lp1198465_run_this_before_livetests.sql