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

Evergreen Git git at git.evergreen-ils.org
Thu Jun 16 11:53:20 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, master has been updated
       via  38332f0bbc18de90a3b83876a3249b3d3e4883bc (commit)
      from  7dbe75cc1bde68590b1a9c9a34ec879cf438572b (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 38332f0bbc18de90a3b83876a3249b3d3e4883bc
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/lib/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
index 917b20f..dafa288 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
+++ b/Open-ILS/src/perlmods/lib/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:
 .../perlmods/lib/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