[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 3f1fb76335f639f218cfeacaeee47f92365e1609
Evergreen Git
git at git.evergreen-ils.org
Fri Jan 20 15:58:34 EST 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_0 has been updated
via 3f1fb76335f639f218cfeacaeee47f92365e1609 (commit)
from 7bb8330f3924181234761829d15f365fc9dfc90a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3f1fb76335f639f218cfeacaeee47f92365e1609
Author: James Fournie <jfournie at sitka.bclibraries.ca>
Date: Wed Dec 7 11:27:45 2011 -0800
Acq fix for LP#901378
Proratable invoice charges do not have a fund_debit, we need to check for
this before attempting to delete the charge. If there's no fund_debit
we can generally assume that there's no corresponding debit to this charge
and skip trying to delete it.
Signed-off-by: James Fournie <jfournie at sitka.bclibraries.ca>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm
index 305bd07..9d59b6a 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm
@@ -133,7 +133,7 @@ sub build_invoice_api {
my $debit = $e->retrieve_acq_fund_debit($item->fund_debit);
$debit->encumbrance('t');
$e->update_acq_fund_debit($debit) or return $e->die_event;
- } else {
+ } elsif($item->fund_debit) {
$e->delete_acq_fund_debit($e->retrieve_acq_fund_debit($item->fund_debit))
or return $e->die_event;
}
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/OpenILS/Application/Acq/Invoice.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list