LP 1198465: Add code for adjustment payments
authorJason Stephenson <jason@sigio.com>
Sat, 20 Jul 2013 15:41:52 +0000 (11:41 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 11 Nov 2014 20:29:42 +0000 (15:29 -0500)
commitb8b9f804f737ae3511c08b0f7aa433e5571cf707
tree66d3539d572a22232415e372dee4a5851f83687f
parentd2a521c0ff32e9921bfc93cb86b2c917e5eda92e
LP 1198465: Add code for adjustment payments

This new payment type complements the current void logic that flags
bills as voided.

This new payment type is needed because the current way that Evergreen
voids bills requires that all voids happen in the same increment as the
bills themselves.  This prevents voiding of a partial bill or a bill
that has had a partial payment applied.

This commit also adds the org. unit setting types for the conditional
negative balances enhancements:

bill.prohibit_negative_balance_default
bill.prohibit_negative_balance_on_overdues
bill.prohibit_negative_balance_on_lost
bill.negative_balance_interval_default
bill.negative_balance_interval_on_overdues
bill.negative_balance_interval_on_lost

Finally, create a helper function for checking intervals along the way,
and a handy little subroutine to void all bills of a given type on a
circulation transaction.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
Open-ILS/src/sql/Pg/080.schema.money.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.conditional_negative_balance.sql [new file with mode: 0644]