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/lynx/aa.pl | 1693 +++++++++++++++++++++++++ bin/lynx/admin.pl | 1612 ++++++++++++++++++++++++ bin/lynx/am.pl | 3271 ++++++++++++++++++++++++++++++++++++++++++++++++ bin/lynx/ap.pl | 40 + bin/lynx/ar.pl | 40 + bin/lynx/arap.pl | 918 ++++++++++++++ bin/lynx/arapprn.pl | 591 +++++++++ bin/lynx/bp.pl | 531 ++++++++ bin/lynx/ca.pl | 514 ++++++++ bin/lynx/cp.pl | 1392 +++++++++++++++++++++ bin/lynx/ct.pl | 2478 ++++++++++++++++++++++++++++++++++++ bin/lynx/gl.pl | 1128 +++++++++++++++++ bin/lynx/hr.pl | 1246 ++++++++++++++++++ bin/lynx/ic.pl | 3238 +++++++++++++++++++++++++++++++++++++++++++++++ bin/lynx/io.pl | 1683 +++++++++++++++++++++++++ bin/lynx/ir.pl | 845 +++++++++++++ bin/lynx/is.pl | 952 ++++++++++++++ bin/lynx/jc.pl | 1912 ++++++++++++++++++++++++++++ bin/lynx/login.pl | 350 ++++++ bin/lynx/menu.pl | 153 +++ bin/lynx/oe.pl | 3023 ++++++++++++++++++++++++++++++++++++++++++++ bin/lynx/pe.pl | 2578 ++++++++++++++++++++++++++++++++++++++ bin/lynx/pos.pl | 938 ++++++++++++++ bin/lynx/ps.pl | 45 + bin/lynx/pw.pl | 73 ++ bin/lynx/rc.pl | 502 ++++++++ bin/lynx/rp.pl | 2351 ++++++++++++++++++++++++++++++++++ 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 ++++++++++++++++++++++++++++++++++ 54 files changed, 68027 insertions(+) create mode 100755 bin/lynx/aa.pl create mode 100755 bin/lynx/admin.pl create mode 100755 bin/lynx/am.pl create mode 100755 bin/lynx/ap.pl create mode 100755 bin/lynx/ar.pl create mode 100755 bin/lynx/arap.pl create mode 100755 bin/lynx/arapprn.pl create mode 100755 bin/lynx/bp.pl create mode 100755 bin/lynx/ca.pl create mode 100755 bin/lynx/cp.pl create mode 100755 bin/lynx/ct.pl create mode 100755 bin/lynx/gl.pl create mode 100755 bin/lynx/hr.pl create mode 100755 bin/lynx/ic.pl create mode 100755 bin/lynx/io.pl create mode 100755 bin/lynx/ir.pl create mode 100755 bin/lynx/is.pl create mode 100755 bin/lynx/jc.pl create mode 100755 bin/lynx/login.pl create mode 100755 bin/lynx/menu.pl create mode 100755 bin/lynx/oe.pl create mode 100755 bin/lynx/pe.pl create mode 100755 bin/lynx/pos.pl create mode 100755 bin/lynx/ps.pl create mode 100755 bin/lynx/pw.pl create mode 100755 bin/lynx/rc.pl create mode 100755 bin/lynx/rp.pl 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') diff --git a/bin/lynx/aa.pl b/bin/lynx/aa.pl new file mode 100755 index 00000000..5fbb9c93 --- /dev/null +++ b/bin/lynx/aa.pl @@ -0,0 +1,1693 @@ +#===================================================================== +# LedgerSMB Small Medium Business Accounting +# Copyright (c) 2005 +# +# Author: DWS Systems Inc. +# Web: http://sourceforge.net/projects/ledger-smb/ +# +# Contributors: +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# 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. +#====================================================================== +# +# 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|