From 900de43cb9f4722477ab0ccd26a5fb56a732ff2c Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 23 May 2008 15:41:37 +0000 Subject: [PATCH] cleaned up some old docs and commented old fund handling code git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9692 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../src/perlmods/OpenILS/Application/Acq/Lineitem.pm | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm index 0db6cd3181..e29c600f55 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm @@ -339,8 +339,6 @@ __PACKAGE__->register_method( params => [ {desc => 'Authentication token', type => 'string'}, {desc => 'lineitem_detail to create', type => 'object'}, - {desc => q/Options hash. fund_id, the fund funding this line item - price, the price we are paying the vendor, in the vendor's currency/, type => 'hash'} ], return => {desc => 'The purchase order line item detail id, Event on failure'} } @@ -363,23 +361,6 @@ sub create_lineitem_detail { $e->allowed('MANAGE_FUND', $fund->org, $fund); } -=head XXX move to new method - 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 - my $fdebit = Fieldmapper::acq::fund_debit->new; - $fdebit->fund($$options{fund_id}); - $fdebit->origin_amount($price); - $fdebit->origin_currency_type($pct->code); # == vendor's currency - $fdebit->encumberance('t'); - $fdebit->debit_type(OILS_ACQ_DEBIT_TYPE_PURCHASE); - $fdebit->amount(currency_conversion_impl($pct->code, $fct->code, $price)); - $e->create_acq_fund_debit($fdebit) or return $e->die_event; - - $li_detail->fund_debit($fdebit->id); -=cut - $e->create_acq_lineitem_detail($li_detail) or return $e->die_event; $e->commit; return $li_detail->id; -- 2.11.0