Enforce one-payment-per-xact-per-call
authorMike Rylander <mrylander@gmail.com>
Fri, 15 Nov 2013 21:40:36 +0000 (16:40 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 20 Nov 2013 15:55:01 +0000 (10:55 -0500)
commit8ea35f2e331e41e2198f71f205b3331277ef61fa
tree28fb321d6c2eb94557472233ab2d59fa00d23d85
parentcdac86e1201d94b610678cdcf84e0e93107fdc05
Enforce one-payment-per-xact-per-call

There is no legitimate reason for a transaction to receive more than
one payment per call to open-ils.circ open-ils.circ.money.payment,
but we have seen the staff client generate such a data structure. This
leads to seemingly duplicate payments, and is bad all around.  So,
we will enforce the restriction by taking only the first payment per
xact in the list of payments.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm