From edacf95ad24fca3c4ae08b44ffdfe4be5c68fdc1 Mon Sep 17 00:00:00 2001 From: christopherm Date: Fri, 13 Oct 2006 16:28:21 +0000 Subject: removing bin/lynx and bin/mozilla folders. All scripts are now at bin/ with bin/custom for custom scripts (user specific or otherwise) git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@208 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/aa.pl | 1652 ++++++++++++++++++++++++ bin/admin.pl | 1477 ++++++++++++++++++++++ bin/am.pl | 3293 ++++++++++++++++++++++++++++++++++++++++++++++++ bin/ap.pl | 60 + bin/ar.pl | 55 + bin/arap.pl | 933 ++++++++++++++ bin/arapprn.pl | 685 ++++++++++ bin/bp.pl | 546 ++++++++ bin/ca.pl | 534 ++++++++ bin/cp.pl | 1418 +++++++++++++++++++++ bin/ct.pl | 2494 ++++++++++++++++++++++++++++++++++++ bin/gl.pl | 1167 +++++++++++++++++ bin/hr.pl | 1261 ++++++++++++++++++ bin/ic.pl | 3256 +++++++++++++++++++++++++++++++++++++++++++++++ bin/io.pl | 1702 +++++++++++++++++++++++++ bin/ir.pl | 932 ++++++++++++++ bin/is.pl | 973 ++++++++++++++ bin/jc.pl | 1927 ++++++++++++++++++++++++++++ bin/login.pl | 347 +++++ bin/lynx/aa.pl | 7 - bin/lynx/admin.pl | 3 - bin/lynx/am.pl | 4 - bin/lynx/ap.pl | 3 - bin/lynx/ar.pl | 3 - bin/lynx/arap.pl | 3 - bin/lynx/arapprn.pl | 3 - bin/lynx/bp.pl | 3 - bin/lynx/ca.pl | 3 - bin/lynx/cp.pl | 3 - bin/lynx/ct.pl | 3 - bin/lynx/gl.pl | 3 - bin/lynx/hr.pl | 3 - bin/lynx/ic.pl | 3 - bin/lynx/io.pl | 3 - bin/lynx/ir.pl | 3 - bin/lynx/is.pl | 3 - bin/lynx/jc.pl | 3 - bin/lynx/login.pl | 3 - bin/lynx/menu.pl | 174 --- bin/lynx/oe.pl | 3 - bin/lynx/pe.pl | 4 - bin/lynx/pos.pl | 3 - bin/lynx/ps.pl | 3 - bin/lynx/pw.pl | 3 - bin/lynx/rc.pl | 3 - bin/lynx/rp.pl | 3 - bin/menu.pl | 351 ++++++ bin/mozilla/aa.pl | 1652 ------------------------ bin/mozilla/admin.pl | 1477 ---------------------- bin/mozilla/am.pl | 3293 ------------------------------------------------ bin/mozilla/ap.pl | 60 - bin/mozilla/ar.pl | 55 - bin/mozilla/arap.pl | 933 -------------- bin/mozilla/arapprn.pl | 685 ---------- bin/mozilla/bp.pl | 546 -------- bin/mozilla/ca.pl | 534 -------- bin/mozilla/cp.pl | 1418 --------------------- bin/mozilla/ct.pl | 2494 ------------------------------------ bin/mozilla/gl.pl | 1167 ----------------- bin/mozilla/hr.pl | 1261 ------------------ bin/mozilla/ic.pl | 3256 ----------------------------------------------- bin/mozilla/io.pl | 1702 ------------------------- bin/mozilla/ir.pl | 932 -------------- bin/mozilla/is.pl | 973 -------------- bin/mozilla/jc.pl | 1927 ---------------------------- bin/mozilla/login.pl | 347 ----- bin/mozilla/menu.pl | 245 ---- bin/mozilla/oe.pl | 3041 -------------------------------------------- bin/mozilla/pe.pl | 2569 ------------------------------------- bin/mozilla/pos.pl | 1059 ---------------- bin/mozilla/ps.pl | 64 - bin/mozilla/pw.pl | 87 -- bin/mozilla/rc.pl | 800 ------------ bin/mozilla/rp.pl | 2544 ------------------------------------- bin/oe.pl | 3041 ++++++++++++++++++++++++++++++++++++++++++++ bin/pe.pl | 2569 +++++++++++++++++++++++++++++++++++++ bin/pos.pl | 1059 ++++++++++++++++ bin/ps.pl | 64 + bin/pw.pl | 87 ++ bin/rc.pl | 849 +++++++++++++ bin/rp.pl | 2544 +++++++++++++++++++++++++++++++++++++ 81 files changed, 35276 insertions(+), 35379 deletions(-) create mode 100755 bin/aa.pl create mode 100755 bin/admin.pl create mode 100755 bin/am.pl create mode 100755 bin/ap.pl create mode 100755 bin/ar.pl create mode 100755 bin/arap.pl create mode 100755 bin/arapprn.pl create mode 100755 bin/bp.pl create mode 100755 bin/ca.pl create mode 100755 bin/cp.pl create mode 100755 bin/ct.pl create mode 100755 bin/gl.pl create mode 100755 bin/hr.pl create mode 100755 bin/ic.pl create mode 100755 bin/io.pl create mode 100755 bin/ir.pl create mode 100755 bin/is.pl create mode 100755 bin/jc.pl create mode 100755 bin/login.pl delete mode 100755 bin/lynx/aa.pl delete mode 100755 bin/lynx/admin.pl delete mode 100755 bin/lynx/am.pl delete mode 100755 bin/lynx/ap.pl delete mode 100755 bin/lynx/ar.pl delete mode 100755 bin/lynx/arap.pl delete mode 100755 bin/lynx/arapprn.pl delete mode 100755 bin/lynx/bp.pl delete mode 100755 bin/lynx/ca.pl delete mode 100755 bin/lynx/cp.pl delete mode 100755 bin/lynx/ct.pl delete mode 100755 bin/lynx/gl.pl delete mode 100755 bin/lynx/hr.pl delete mode 100755 bin/lynx/ic.pl delete mode 100755 bin/lynx/io.pl delete mode 100755 bin/lynx/ir.pl delete mode 100755 bin/lynx/is.pl delete mode 100755 bin/lynx/jc.pl delete mode 100755 bin/lynx/login.pl delete mode 100755 bin/lynx/menu.pl delete mode 100755 bin/lynx/oe.pl delete mode 100755 bin/lynx/pe.pl delete mode 100755 bin/lynx/pos.pl delete mode 100755 bin/lynx/ps.pl delete mode 100755 bin/lynx/pw.pl delete mode 100755 bin/lynx/rc.pl delete mode 100755 bin/lynx/rp.pl create mode 100755 bin/menu.pl delete mode 100755 bin/mozilla/aa.pl delete mode 100755 bin/mozilla/admin.pl delete mode 100755 bin/mozilla/am.pl delete mode 100755 bin/mozilla/ap.pl delete mode 100755 bin/mozilla/ar.pl delete mode 100755 bin/mozilla/arap.pl delete mode 100755 bin/mozilla/arapprn.pl delete mode 100755 bin/mozilla/bp.pl delete mode 100755 bin/mozilla/ca.pl delete mode 100755 bin/mozilla/cp.pl delete mode 100755 bin/mozilla/ct.pl delete mode 100755 bin/mozilla/gl.pl delete mode 100755 bin/mozilla/hr.pl delete mode 100755 bin/mozilla/ic.pl delete mode 100755 bin/mozilla/io.pl delete mode 100755 bin/mozilla/ir.pl delete mode 100755 bin/mozilla/is.pl delete mode 100755 bin/mozilla/jc.pl delete mode 100755 bin/mozilla/login.pl delete mode 100755 bin/mozilla/menu.pl delete mode 100755 bin/mozilla/oe.pl delete mode 100755 bin/mozilla/pe.pl delete mode 100755 bin/mozilla/pos.pl delete mode 100755 bin/mozilla/ps.pl delete mode 100755 bin/mozilla/pw.pl delete mode 100755 bin/mozilla/rc.pl delete mode 100755 bin/mozilla/rp.pl create mode 100755 bin/oe.pl create mode 100755 bin/pe.pl create mode 100755 bin/pos.pl create mode 100755 bin/ps.pl create mode 100755 bin/pw.pl create mode 100755 bin/rc.pl create mode 100755 bin/rp.pl (limited to 'bin') diff --git a/bin/aa.pl b/bin/aa.pl new file mode 100755 index 00000000..5f8edb83 --- /dev/null +++ b/bin/aa.pl @@ -0,0 +1,1652 @@ +#===================================================================== +# LedgerSMB Small Medium Business Accounting +# http://www.ledgersmb.org/ +# +# Copyright (C) 2006 +# This work contains copyrighted information from a number of sources all used +# 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, +# maintainers, and copyright holders, see the CONTRIBUTORS file. +# +# Original Copyright Notice from SQL-Ledger 2.6.17 (before the fork): +# Copyright (c) 2005 +# +# Author: DWS Systems Inc. +# Web: http://www.sql-ledger.org +# +# Contributors: +# +# +# Author: DWS Systems Inc. +# Web: http://www.ledgersmb.org/ +# +# 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 +# +#====================================================================== + +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/$form->{login}_aa.pl") { + eval { require "bin/custom/$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|