From 9f686c9016b912ca3241f5c153b3b9bd9317ef26 Mon Sep 17 00:00:00 2001 From: christopherm Date: Tue, 12 Sep 2006 14:31:43 +0000 Subject: lynx/pe.pl had an old SL version of the file, updating to use require to mozilla/pe.pl git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@73 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/lynx/pe.pl | 2595 +------------------------------------------------------- 1 file changed, 2 insertions(+), 2593 deletions(-) diff --git a/bin/lynx/pe.pl b/bin/lynx/pe.pl index daf26fc4..f461e19e 100755 --- a/bin/lynx/pe.pl +++ b/bin/lynx/pe.pl @@ -1,2595 +1,4 @@ -#===================================================================== -# LedgerSMB Small Medium Business Accounting - -# 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) 2002 -# -# Author: DWS Systems Inc. -# Web: http://www.sql-ledger.org -# -# -# -# Author: DWS Systems Inc. -# Web: http://sourceforge.net/projects/ledger-smb/ -# -# -# 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. -#====================================================================== -# -# project/job administration -# partsgroup administration -# translation maintainance -# -#====================================================================== - - -use SL::PE; -use SL::AA; -use SL::OE; - -1; -# end of main - - - -sub add { - - # construct callback - $form->{callback} = "$form->{script}?action=add&type=$form->{type}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; - - &{ "prepare_$form->{type}" }; - - $form->{orphaned} = 1; - &display_form; - -} - - -sub edit { - - &{ "prepare_$form->{type}" }; - &display_form; - -} - - -sub prepare_partsgroup { PE->get_partsgroup(\%myconfig, \%$form) if $form->{id} } -sub prepare_pricegroup { PE->get_pricegroup(\%myconfig, \%$form) if $form->{id} } - -sub prepare_job { - -# $locale->text('Add Job') -# $locale->text('Edit Job') - - $form->{vc} = 'customer'; - - PE->get_job(\%myconfig, \%$form); - - $form->{taxaccounts} = ""; - for (keys %{ $form->{IC_links} }) { - - $form->{"select$_"} = ""; - foreach $ref (@{ $form->{IC_links}{$_} }) { - if (/IC_tax/) { - if (/taxpart/) { - $form->{taxaccounts} .= "$ref->{accno} "; - $form->{"IC_tax_$ref->{accno}_description"} = "$ref->{accno}--$ref->{description}"; - if ($form->{id}) { - if ($form->{amount}{$ref->{accno}}) { - $form->{"IC_tax_$ref->{accno}"} = "checked"; - } - } else { - $form->{"IC_tax_$ref->{accno}"} = "checked"; - } - } - } else { - $form->{"select$_"} .= "