$branches = &GetBranches();
- Returns informations about ALL branches, IndependantBranches Insensitive.
- GetBranchInfo() returns the same information without the problems of this function
- (namespace collision, mainly).
- Create a branch selector with the following code.
-
+Returns informations about ALL branches, IndependantBranches Insensitive.
+GetBranchInfo() returns the same information without the problems of this function
+(namespace collision, mainly).
+
+Create a branch selector with the following code.
+
=head3 in PERL SCRIPT
my $branches = GetBranches;
# ----------------------------BUDGETS.PM-----------------------------";
+=head1 FUNCTIONS ABOUT BUDGETS
+
+=cut
+
sub HideCols {
my ( $authcat, @hide_cols ) = @_;
my $dbh = C4::Context->dbh;
return $rc;
}
-=head2 FUNCTIONS ABOUT BUDGETS
-
-=over 2
-
-=cut
-
-=back
-=head3 GetBudget
+=head2 GetBudget
-=over 4
-
-&GetBudget($budget_id);
+ &GetBudget($budget_id);
get a specific budget
-=back
-
=cut
# -------------------------------------------------------------------
return $result;
}
-=head3 GetBudgets
-
-=over 4
+=head2 GetBudgets
-&GetBudgets($filter, $order_by);
+ &GetBudgets($filter, $order_by);
gets all budgets
-=back
-
=cut
# -------------------------------------------------------------------
return $total_spent;
}
-=head3 GetChildBudgetsSpent
-
-=over 4
+=head2 GetChildBudgetsSpent
-&GetChildBudgetsSpent($budget-id);
+ &GetChildBudgetsSpent($budget-id);
gets the total spent of the level and sublevels of $budget_id
-=back
-
=cut
# -------------------------------------------------------------------
# -------------------------------------------------------------------
-=head3 GetCurrencies
+=head2 GetCurrencies
-@currencies = &GetCurrencies;
+ @currencies = &GetCurrencies;
Returns the list of all known currencies.
return $r;
}
-=head3 ModCurrencies
+=head2 ModCurrencies
&ModCurrencies($currency, $newrate);
# -------------------------------------------------------------------
-=head3 ConvertCurrency
+=head2 ConvertCurrency
-$foreignprice = &ConvertCurrency($currency, $localprice);
+ $foreignprice = &ConvertCurrency($currency, $localprice);
Converts the price C<$localprice> to foreign currency C<$currency> by
dividing by the exchange rate, and returns the result.
-If no exchange rate is found,e is one
-to one.
+If no exchange rate is found, e is one to one.
=cut
return ( $price / $cur );
}
-=head3 _columns
+=head2 _columns
- returns an array containing fieldname followed by PRI as value if PRIMARY Key
+returns an array containing fieldname followed by PRI as value if PRIMARY Key
=cut