minor po detail bug fixes
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Feb 2008 23:55:56 +0000 (23:55 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Feb 2008 23:55:56 +0000 (23:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8791 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm

index 5e1732a..6cb7fd8 100644 (file)
@@ -514,7 +514,7 @@ sub currency_conversion_impl {
         from => 'acqct'
     });
 
-    return $result->{value};
+    return $result->[0]->{value};
 }
 
 
@@ -771,8 +771,8 @@ sub create_po_li_detail {
     return $e->die_event unless 
         $e->allowed('MANAGE_FUND', $fund->org, $fund);
 
-    my $fct = $e->retrieve_acq_currency_type($fund->currency_type);
-    my $pct = $e->retrieve_acq_currency_type($provider->currency_type);
+    my $fct = $e->search_acq_currency_type({code => $fund->currency_type})->[0];
+    my $pct = $e->search_acq_currency_type({code => $provider->currency_type})->[0];
     my $price = $$options{price};
 
     # create the fund_debit for this line item detail