]> git.evergreen-ils.org Git - Evergreen.git/commit
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:54:01 +0000 (10:54 -0500)
commit3c4aa090a4e177bc55158b4b7d368654b91fa1f6
tree5b94ec70a73b1d44e36063de9f45b3a30dfb2cce
parentccc0a8dbcef48ddd19ff94f8a72848bed11612e0
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