From 38332f0bbc18de90a3b83876a3249b3d3e4883bc Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 16 Jun 2011 11:50:16 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 917b20f4b9..dafa288e6e 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( -- 2.11.0