X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c7f9bb36eb122b2d79f5aa8c4d080279705ddc7e..76592c8a3:/bin/mozilla/gl.pl
diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl
index 4417615e1..63f4cad4a 100644
--- a/bin/mozilla/gl.pl
+++ b/bin/mozilla/gl.pl
@@ -24,22 +24,28 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1335, USA.
#======================================================================
#
# Genereal Ledger
#
#======================================================================
+use utf8;
+use strict;
-use SL::GL;
-use SL::PE;
-
-require "$form->{path}/arap.pl";
+use POSIX qw(strftime);
+use List::Util qw(sum);
-1;
-# end of main
+use SL::FU;
+use SL::GL;
+use SL::IS;
+use SL::ReportGenerator;
+use SL::DBUtils qw(selectrow_query selectall_hashref_query);
+require "bin/mozilla/common.pl";
+require "bin/mozilla/reportgenerator.pl";
# this is for our long dates
# $locale->text('January')
@@ -69,1281 +75,1165 @@ require "$form->{path}/arap.pl";
# $locale->text('Nov')
# $locale->text('Dec')
-
sub add {
+ $main::lxdebug->enter_sub();
+
+ $main::auth->assert('gl_transactions');
+
+ my $form = $main::form;
+ my %myconfig = %main::myconfig;
$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
+ # yep. aber er holt hier auch schon ALL_CHARTS. Aufwand / Nutzen? jb
GL->transaction(\%myconfig, \%$form);
- map { $chart .= "" } @{ $form->{chart} };
- map { $tax .= qq|