From df073d6e09c0f87fb2e88cc215ace843a5851d4a Mon Sep 17 00:00:00 2001 From: einhverfr Date: Thu, 12 Apr 2007 20:46:20 +0000 Subject: Formatting with Perltidy git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1068 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/aa.pl | 2742 ++++++++++++++++++------------- bin/admin.pl | 1327 ++++++++------- bin/am.pl | 3863 ++++++++++++++++++++++++-------------------- bin/ap.pl | 9 +- bin/ar.pl | 9 +- bin/arap.pl | 1160 ++++++++------ bin/arapprn.pl | 1071 +++++++------ bin/bp.pl | 724 +++++---- bin/ca.pl | 638 ++++---- bin/cp.pl | 2046 +++++++++++++----------- bin/ct.pl | 3613 +++++++++++++++++++++++------------------ bin/gl.pl | 1661 ++++++++++--------- bin/hr.pl | 1520 ++++++++++-------- bin/ic.pl | 4884 ++++++++++++++++++++++++++++++++------------------------ bin/io.pl | 2489 ++++++++++++++++------------- bin/ir.pl | 1448 +++++++++-------- bin/is.pl | 1507 +++++++++-------- bin/jc.pl | 2774 ++++++++++++++++++-------------- bin/login.pl | 354 ++-- bin/menu.pl | 373 +++-- bin/oe.pl | 4620 ++++++++++++++++++++++++++++++----------------------- bin/pe.pl | 3145 ++++++++++++++++++++---------------- bin/pos.pl | 1433 +++++++++-------- bin/ps.pl | 21 +- bin/pw.pl | 41 +- bin/rc.pl | 985 ++++++------ bin/rp.pl | 3290 +++++++++++++++++++++----------------- 27 files changed, 26655 insertions(+), 21092 deletions(-) (limited to 'bin') diff --git a/bin/aa.pl b/bin/aa.pl index 3c3f875a..f4e6c1b1 100755 --- a/bin/aa.pl +++ b/bin/aa.pl @@ -7,9 +7,9 @@ # with permission. # # This file contains source code included with or based on SQL-Ledger which -# is Copyright Dieter Simader and DWS Systems Inc. 2000-2005 and licensed -# under the GNU General Public License version 2 or, at your option, any later -# version. For a full list including contact information of contributors, +# is Copyright Dieter Simader and DWS Systems Inc. 2000-2005 and licensed +# under the GNU General Public License version 2 or, at your option, any later +# version. For a full list including contact information of contributors, # maintainers, and copyright holders, see the CONTRIBUTORS file. # # Original Copyright Notice from SQL-Ledger 2.6.17 (before the fork): @@ -47,17 +47,16 @@ use LedgerSMB::Tax; # any custom scripts for this one -if (-f "bin/custom/aa.pl") { - eval { require "bin/custom/aa.pl"; }; +if ( -f "bin/custom/aa.pl" ) { + eval { require "bin/custom/aa.pl"; }; } -if (-f "bin/custom/$form->{login}_aa.pl") { - eval { require "bin/custom/$form->{login}_aa.pl"; }; +if ( -f "bin/custom/$form->{login}_aa.pl" ) { + eval { require "bin/custom/$form->{login}_aa.pl"; }; } - 1; -# end of main +# end of main # this is for our long dates # $locale->text('January') @@ -87,346 +86,413 @@ if (-f "bin/custom/$form->{login}_aa.pl") { # $locale->text('Nov') # $locale->text('Dec') - sub add { - $form->{title} = "Add"; - $form->{callback} = "$form->{script}?action=add&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; + $form->{title} = "Add"; + $form->{callback} = +"$form->{script}?action=add&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" + unless $form->{callback}; - &create_links; + &create_links; - $form->{focus} = "amount_1"; - &display_form; - -} + $form->{focus} = "amount_1"; + &display_form; +} sub edit { - $form->{title} = "Edit"; + $form->{title} = "Edit"; - &create_links; - &display_form; + &create_links; + &display_form; } - sub display_form { - &form_header; - &form_footer; + &form_header; + &form_footer; } - sub create_links { - if ($form->{script} eq 'ap.pl'){ - $form->{ARAP} = 'AP'; - $form->{vc} = 'vendor'; - } elsif ($form->{script} eq 'ar.pl'){ + if ( $form->{script} eq 'ap.pl' ) { + $form->{ARAP} = 'AP'; + $form->{vc} = 'vendor'; + } + elsif ( $form->{script} eq 'ar.pl' ) { $form->{ARAP} = 'AR'; - $form->{vc} = 'customer'; - } - - $form->create_links($form->{ARAP}, \%myconfig, $form->{vc}); - - $duedate = $form->{duedate}; - $taxincluded = $form->{taxincluded}; - - $form->{formname} = "transaction"; - $form->{format} = "postscript" if $myconfig{printer}; - $form->{media} = $myconfig{printer}; - - $form->{selectformname} = qq|