X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=admin%2Faqbudgetperiods.pl;h=e74935e7f389e583a659df2058d6c8f2f836f13f;hb=f0a660093442941ee11c0c2fe11402eebfa45a01;hp=fadf83dbcac04d1e514cd1db873e9a9352cc6ddf;hpb=73605d792f51a8ff4bd41fb32406b8e3c1cbd307;p=koha.git diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl index fadf83dbca..e74935e7f3 100755 --- a/admin/aqbudgetperiods.pl +++ b/admin/aqbudgetperiods.pl @@ -14,9 +14,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. =head1 admin/aqbudgetperiods.pl @@ -42,6 +42,7 @@ script to administer the budget periods table ## modules use strict; +#use warnings; FIXME - Bug 2505 use Number::Format qw(format_price); use CGI; use List::Util qw/min/; @@ -81,7 +82,9 @@ my ($template, $borrowernumber, $cookie, $staff_flags ) = get_template_and_user( my $cur = GetCurrency(); -$template->param( cur => $cur->{symbol} ); +$template->param( symbol => $cur->{symbol}, + currency => $cur->{currency} + ); my $cur_format = C4::Context->preference("CurrencyFormat"); my $num; @@ -117,6 +120,7 @@ if ( $op eq 'add_form' ) { my $editnum = new Number::Format( 'int_curr_symbol' => '', 'thousands_sep' => '', + 'mon_thousands_sep' => '', 'mon_decimal_point' => '.' ); @@ -184,10 +188,8 @@ elsif ( $op eq 'delete_confirmed' ) { $budgetperiod->{budget_active} = 1; push( @period_loop, $budgetperiod ); } - my $budget_period_dropbox = GetBudgetPeriodsDropbox(); $template->param( - budget_period_dropbox => $budget_period_dropbox, period_loop => \@period_loop, pagination_bar => pagination_bar("aqbudgetperiods.pl",getnbpages(scalar(@$results),$pagesize),$page), );