[open-ils-commits] [GIT] Evergreen ILS branch master updated. de40cb6bfbf2c41a1e287ec143c81576ed3edde8

Evergreen Git git at git.evergreen-ils.org
Fri Jan 20 15:57:45 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, master has been updated
       via  de40cb6bfbf2c41a1e287ec143c81576ed3edde8 (commit)
      from  38b6cf81e44f8ab852222911a7d8b646f45b7311 (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 de40cb6bfbf2c41a1e287ec143c81576ed3edde8
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/lib/OpenILS/Application/Acq/Invoice.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm
index 305bd07..9d59b6a 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm
+++ b/Open-ILS/src/perlmods/lib/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:
 .../lib/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