From ac5b087ea2d9ba7428d367aaeb288534158fee9a Mon Sep 17 00:00:00 2001 From: christopherm Date: Fri, 1 Sep 2006 01:16:38 +0000 Subject: Initial Import git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/ledger-smb@1 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/mozilla/gl.pl | 1116 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1116 insertions(+) create mode 100755 bin/mozilla/gl.pl (limited to 'bin/mozilla/gl.pl') diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl new file mode 100755 index 00000000..0acfbb65 --- /dev/null +++ b/bin/mozilla/gl.pl @@ -0,0 +1,1116 @@ +#===================================================================== +# LedgerSMB +# Small Medium Business Accounting software +# +# See COPYRIGHT file for copyright information +#====================================================================== +# +# This file has NOT undergone whitespace cleanup. +# +#====================================================================== +# +# Genereal Ledger +# +#====================================================================== + + +use LedgerSMB::GL; +use LedgerSMB::PE; + +require "$form->{path}/arap.pl"; + +1; +# end of main + + +# this is for our long dates +# $locale->text('January') +# $locale->text('February') +# $locale->text('March') +# $locale->text('April') +# $locale->text('May ') +# $locale->text('June') +# $locale->text('July') +# $locale->text('August') +# $locale->text('September') +# $locale->text('October') +# $locale->text('November') +# $locale->text('December') + +# this is for our short month +# $locale->text('Jan') +# $locale->text('Feb') +# $locale->text('Mar') +# $locale->text('Apr') +# $locale->text('May') +# $locale->text('Jun') +# $locale->text('Jul') +# $locale->text('Aug') +# $locale->text('Sep') +# $locale->text('Oct') +# $locale->text('Nov') +# $locale->text('Dec') + + +sub add { + + $form->{title} = "Add"; + + $form->{callback} = "$form->{script}?action=add&transfer=$form->{transfer}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; + + &create_links; + + $form->{rowcount} = ($form->{transfer}) ? 3 : 9; + $form->{oldtransdate} = $form->{transdate}; + $form->{focus} = "reference"; + + # departments + if (@{ $form->{all_department} }) { + $form->{selectdepartment} = "