#===================================================================== # 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} = "