LP 1198465: More tests for conditional negative balances
authorRemington Steed <rjs7@calvin.edu>
Tue, 21 Jul 2015 17:21:15 +0000 (13:21 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 24 Jul 2015 00:22:03 +0000 (20:22 -0400)
commit90aba03fdd0491539657853682c7a0ae7e302a13
tree4c4f0b3c30e2c70e81273a927f17014b87f327b0
parent77953f1ebae6651b4a4af7f4d819ffcc63a15d78
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/live_t/09-lp1198465_neg_balances.t
Open-ILS/src/sql/Pg/live_t/lp1198465_run_this_before_livetests.sql