my $budget_name = &GetBudgetName($budget_id);
get the budget_name for a given budget_id
&GetBudget($budget_id);
get a specific budget
&GetBudgetByOrderNumber($ordernumber);
get a specific budget by order number
my $budget = &GetBudgetByCode($budget_code);
Retrieve all aqbudgets fields as a hashref for the budget that has given budget_code
my $spent = GetBudgetHierarchySpent( $budget_id );
Gets the total spent of the level and sublevels of $budget_id
my $ordered = GetBudgetHierarchyOrdered( $budget_id );
Gets the total ordered of the level and sublevels of $budget_id
&GetBudgets($filter, $order_by);
gets all budgets
my @borrowernumbers = &GetBudgetUsers($budget_id);
Return the list of borrowernumbers linked to a budget
&ModBudgetUsers($budget_id, @borrowernumbers);
Modify the list of borrowernumbers linked to a budget
@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($currency, $newrate);
Sets the exchange rate for $currency
to be $newrate
.
$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.
my $new_budget_period_id = CloneBudgetPeriod({ budget_period_id => $budget_period_id, budget_period_startdate => $budget_period_startdate, budget_period_enddate => $budget_period_enddate, mark_original_budget_as_inactive => 1n reset_all_budgets => 1, });
Clone a budget period with all budgets. If the mark_origin_budget_as_inactive is set (0 by default), the original budget will be marked as inactive.
If the reset_all_budgets is set (0 by default), all budget (fund) amounts will be reset.
CloneBudgetHierarchy({ budgets => $budgets, new_budget_period_id => $new_budget_period_id; });
Clone a budget hierarchy.
my $report = MoveOrders({ from_budget_period_id => $from_budget_period_id, to_budget_period_id => $to_budget_period_id, });
Move orders from one budget period to another.
Koha Development Team <http://koha-community.org/>