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/jc.pl | 1901 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1901 insertions(+) create mode 100755 bin/mozilla/jc.pl (limited to 'bin/mozilla/jc.pl') diff --git a/bin/mozilla/jc.pl b/bin/mozilla/jc.pl new file mode 100755 index 00000000..c4205333 --- /dev/null +++ b/bin/mozilla/jc.pl @@ -0,0 +1,1901 @@ +#===================================================================== +# LedgerSMB +# Small Medium Business Accounting software +# +# See COPYRIGHT file for copyright information +#====================================================================== +# +# This file has NOT undergone whitespace cleanup. +# +#====================================================================== +# +# Job Costing module +# +#====================================================================== + +use LedgerSMB::JC; + +1; +# end of main + + + +sub add { + + if ($form->{type} eq 'timecard') { + $form->{title} = $locale->text('Add Time Card'); + } + if ($form->{type} eq 'storescard') { + $form->{title} = $locale->text('Add Stores Card'); + } + + $form->{callback} = "$form->{script}?action=add&type=$form->{type}&login=$form->{login}&path=$form->{path}&sessionid=$form->{sessionid}&project=$form->{project}" unless $form->{callback}; + + &{ "prepare_$form->{type}" }; + + $form->{orphaned} = 1; + &display_form; + +} + + +sub edit { + + if ($form->{type} eq 'timecard') { + $form->{title} = $locale->text('Edit Time Card'); + } + if ($form->{type} eq 'storescard') { + $form->{title} = $locale->text('Add Stores Card'); + } + + &{ "prepare_$form->{type}" }; + + &display_form; + +} + + +sub jcitems_links { + + if (@{ $form->{all_project} }) { + $form->{selectprojectnumber} = "