<<

FUNCTIONS ABOUT BUDGETS

GetBudgetName

  my $budget_name = &GetBudgetName($budget_id);

get the budget_name for a given budget_id

GetBudget

  &GetBudget($budget_id);

get a specific budget

GetBudgetByOrderNumber

  &GetBudgetByOrderNumber($ordernumber);

get a specific budget by order number

GetChildBudgetsSpent

  &GetChildBudgetsSpent($budget-id);

gets the total spent of the level and sublevels of $budget_id

GetBudgets

  &GetBudgets($filter, $order_by);

gets all budgets

GetBudgetUsers

    my @borrowernumbers = &GetBudgetUsers($budget_id);

Return the list of borrowernumbers linked to a budget

ModBudgetUsers

    &ModBudgetUsers($budget_id, @borrowernumbers);

Modify the list of borrowernumbers linked to a budget

GetCurrencies

  @currencies = &GetCurrencies;

Returns the list of all known currencies.

$currencies is a array; its elements are references-to-hash, whose keys are the fields from the currency table in the Koha database.

ModCurrencies

&ModCurrencies($currency, $newrate);

Sets the exchange rate for $currency to be $newrate.

ConvertCurrency

  $foreignprice = &ConvertCurrency($currency, $localprice);

Converts the price $localprice to foreign currency $currency by dividing by the exchange rate, and returns the result.

If no exchange rate is found, e is one to one.

AUTHOR

Koha Development Team <http://koha-community.org/>

<<