From cf5fe23a0f13baaa7637ac66898945d3e9da42f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 9 Mar 2012 16:30:41 +0100 Subject: [PATCH] ar form_header nach template ausgelagert --- bin/mozilla/ar.pl | 574 ++++--------------------- templates/webpages/ar/form_header.html | 279 ++++++++++++ 2 files changed, 356 insertions(+), 497 deletions(-) create mode 100644 templates/webpages/ar/form_header.html diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index cd30053ed..e69e13cbf 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -32,7 +32,7 @@ #====================================================================== use POSIX qw(strftime); -use List::Util qw(sum first); +use List::Util qw(sum first max); use SL::AR; use SL::FU; @@ -218,19 +218,16 @@ sub form_header { my $cgi = $::request->{cgi}; my ($title, $readonly, $exchangerate, $rows); - my ($taxincluded, $notes, $department, $customer, $employee, $amount, $project); - my ($jsscript, $button1, $button2, $onload); - my ($selectAR_amount, $selectAR_paid, $ARselected, $tax); - my (@column_index, %column_data); + my ($notes, $department, $customer, $employee, $amount, $project); + my ($onload); + my ($ARselected); $title = $form->{title}; - $form->{title} = $locale->text("$title Accounts Receivables Transaction"); - - $form->{taxincluded} = ($form->{taxincluded}) ? "checked" : ""; - # $locale->text('Add Accounts Receivables Transaction') # $locale->text('Edit Accounts Receivables Transaction') + $form->{title} = $locale->text("$title Accounts Receivables Transaction"); + $form->{javascript} = qq|