From: erickson Date: Tue, 8 Aug 2006 02:05:55 +0000 (+0000) Subject: added billing type retrieval method X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b71374b260a9b6261bca63ed3e61f4ccc53c0de1;p=evergreen%2Fpines.git added billing type retrieval method git-svn-id: svn://svn.open-ils.org/ILS/trunk@5356 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index 93f7abbe55..0f2c125b3e 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -63,15 +63,22 @@ sub retrieve_circ { __PACKAGE__->register_method( method => 'fetch_circ_mods', - api_name => 'open-ils.circ.circ_modifier.retrieve.all' -); - + api_name => 'open-ils.circ.circ_modifier.retrieve.all'); sub fetch_circ_mods { my $conf = OpenSRF::Utils::SettingsClient->new; return $conf->config_value( 'apps', 'open-ils.circ', 'app_settings', 'circ_modifiers', 'mod' ); } +__PACKAGE__->register_method( + method => 'fetch_bill_types', + api_name => 'open-ils.circ.billing_type.retrieve.all'); +sub fetch_bill_types { + my $conf = OpenSRF::Utils::SettingsClient->new; + return $conf->config_value( + 'apps', 'open-ils.circ', 'app_settings', 'billing_types', 'type' ); +} + # ------------------------------------------------------------------------ # Returns an array of {circ, record} hashes checked out by the user.