X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fgl.pl;h=15b49d2e1968df40ac66fbeb1ea4eaae8a032dfa;hb=bb5ee43d0ddff8f8b57ce0f15a5664b26c110d1f;hp=4417615e1b25a1d8e33e2fd718ed02e572918725;hpb=c7f9bb36eb122b2d79f5aa8c4d080279705ddc7e;p=kivitendo-erp.git diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 4417615e1..15b49d2e1 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -31,15 +31,21 @@ # #====================================================================== +use POSIX qw(strftime); +use List::Util qw(sum); +use SL::FU; use SL::GL; +use SL::IS; use SL::PE; +use SL::ReportGenerator; -require "$form->{path}/arap.pl"; +require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; 1; -# end of main +# end of main # this is for our long dates # $locale->text('January') @@ -69,151 +75,220 @@ require "$form->{path}/arap.pl"; # $locale->text('Nov') # $locale->text('Dec') - sub add { + $lxdebug->enter_sub(); + + $auth->assert('general_ledger'); $form->{title} = "Add"; - - $form->{callback} = "$form->{script}?action=add&path=$form->{path}&login=$form->{login}&password=$form->{password}" unless $form->{callback}; + + $form->{callback} = "gl.pl?action=add" unless $form->{callback}; # we use this only to set a default date GL->transaction(\%myconfig, \%$form); - map { $chart .= "" } @{ $form->{chart} }; - map { $tax .= qq|