LP#1748924 Enhanced Billing Timestamp Support
authorDan Wells <dbw2@calvin.edu>
Mon, 12 Feb 2018 15:11:33 +0000 (10:11 -0500)
committerDan Wells <dbw2@calvin.edu>
Mon, 12 Feb 2018 17:55:27 +0000 (12:55 -0500)
commit0a348a4590acb249d888ab71fab909d26a1aafbe
tree4922eb080ad6c049033df38e57ce1e6647a6c42c
parent1f630f2189842cec8949596edd3c2fada4a9c8fc
LP#1748924 Enhanced Billing Timestamp Support

As discussed at Hack-a-way 2016, rather than continue to try to cram
multiple meanings into one timestamp, let's create a complete set of
all the useful timestamps for a typical billing.

In this new config, every billing will have a 'create_date', then most
(overdues) will also describe when they start and end.

billing_ts is now deprecated, but will continue to exist for backwards
compatibility.  It will be managed by trigger to approximate its
current definition; equal to 'period_end' for overdues, equal to
'create_date' for other billings.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
Open-ILS/src/sql/Pg/080.schema.money.sql