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/aa.pl | 1681 +++++++++++++++++++++++++ bin/mozilla/admin.pl | 1628 ++++++++++++++++++++++++ bin/mozilla/am.pl | 3260 ++++++++++++++++++++++++++++++++++++++++++++++++ bin/mozilla/ap.pl | 28 + bin/mozilla/ar.pl | 28 + bin/mozilla/arap.pl | 907 ++++++++++++++ bin/mozilla/arapprn.pl | 580 +++++++++ bin/mozilla/bp.pl | 520 ++++++++ bin/mozilla/ca.pl | 502 ++++++++ bin/mozilla/cp.pl | 1380 ++++++++++++++++++++ bin/mozilla/ct.pl | 2466 ++++++++++++++++++++++++++++++++++++ bin/mozilla/gl.pl | 1116 +++++++++++++++++ bin/mozilla/hr.pl | 1235 ++++++++++++++++++ bin/mozilla/ic.pl | 3226 +++++++++++++++++++++++++++++++++++++++++++++++ bin/mozilla/io.pl | 1672 +++++++++++++++++++++++++ bin/mozilla/ir.pl | 834 +++++++++++++ bin/mozilla/is.pl | 941 ++++++++++++++ bin/mozilla/jc.pl | 1901 ++++++++++++++++++++++++++++ bin/mozilla/login.pl | 340 +++++ bin/mozilla/menu.pl | 255 ++++ bin/mozilla/oe.pl | 3012 ++++++++++++++++++++++++++++++++++++++++++++ bin/mozilla/pe.pl | 2567 ++++++++++++++++++++++++++++++++++++++ bin/mozilla/pos.pl | 926 ++++++++++++++ bin/mozilla/ps.pl | 34 + bin/mozilla/pw.pl | 62 + bin/mozilla/rc.pl | 491 ++++++++ bin/mozilla/rp.pl | 2338 ++++++++++++++++++++++++++++++++++ 27 files changed, 33930 insertions(+) create mode 100755 bin/mozilla/aa.pl create mode 100755 bin/mozilla/admin.pl create mode 100755 bin/mozilla/am.pl create mode 100755 bin/mozilla/ap.pl create mode 100755 bin/mozilla/ar.pl create mode 100755 bin/mozilla/arap.pl create mode 100755 bin/mozilla/arapprn.pl create mode 100755 bin/mozilla/bp.pl create mode 100755 bin/mozilla/ca.pl create mode 100755 bin/mozilla/cp.pl create mode 100755 bin/mozilla/ct.pl create mode 100755 bin/mozilla/gl.pl create mode 100755 bin/mozilla/hr.pl create mode 100755 bin/mozilla/ic.pl create mode 100755 bin/mozilla/io.pl create mode 100755 bin/mozilla/ir.pl create mode 100755 bin/mozilla/is.pl create mode 100755 bin/mozilla/jc.pl create mode 100755 bin/mozilla/login.pl create mode 100755 bin/mozilla/menu.pl create mode 100755 bin/mozilla/oe.pl create mode 100755 bin/mozilla/pe.pl create mode 100755 bin/mozilla/pos.pl create mode 100755 bin/mozilla/ps.pl create mode 100755 bin/mozilla/pw.pl create mode 100755 bin/mozilla/rc.pl create mode 100755 bin/mozilla/rp.pl (limited to 'bin/mozilla') diff --git a/bin/mozilla/aa.pl b/bin/mozilla/aa.pl new file mode 100755 index 00000000..0e02bf2f --- /dev/null +++ b/bin/mozilla/aa.pl @@ -0,0 +1,1681 @@ +#===================================================================== +# LedgerSMB +# Small Medium Business Accounting software +# +# See COPYRIGHT file for copyright information +#====================================================================== +# +# This file has NOT undergone whitespace cleanup. +# +#====================================================================== +# +# AR / AP +# +#====================================================================== + +# any custom scripts for this one +if (-f "$form->{path}/custom_aa.pl") { + eval { require "$form->{path}/custom_aa.pl"; }; +} +if (-f "$form->{path}/$form->{login}_aa.pl") { + eval { require "$form->{path}/$form->{login}_aa.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&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; + + &create_links; + + $form->{focus} = "amount_1"; + &display_form; + +} + + +sub edit { + + $form->{title} = "Edit"; + + &create_links; + &display_form; + +} + + +sub display_form { + + &form_header; + &form_footer; + +} + + +sub create_links { + + $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|