[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 9ebe72e82e3eb27cc8eba9ff51f8069cb0c55996

Evergreen Git git at git.evergreen-ils.org
Thu Jun 16 11:54:53 EDT 2011


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  9ebe72e82e3eb27cc8eba9ff51f8069cb0c55996 (commit)
      from  6572b5fd2d58bdb3ae86667ab6d138a7e7a3ea17 (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 9ebe72e82e3eb27cc8eba9ff51f8069cb0c55996
Author: Bill Erickson <berick at esilibrary.com>
Date:   Thu Jun 16 11:50:16 2011 -0400

    Repaired exchange rate PO activation bug
    
    Code was using the wrong hash key to read data from cstore request,
    resulting in a NULL debit amount when activating a PO with a different
    provider => fund currencies.  This resulted in POs that could not be
    activated.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
index 1440a93..7c6b228 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
@@ -689,7 +689,7 @@ sub create_lineitem_detail_debit {
                 $lid->fund->currency_type, # destination currency
                 $li->estimated_unit_price # source amount
             ]
-        })->[0]->{value};
+        })->[0]->{'acq.exchange_ratio'};
     }
 
     my $debit = create_fund_debit(

-----------------------------------------------------------------------

Summary of changes:
 .../src/perlmods/OpenILS/Application/Acq/Order.pm  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list