#===================================================================== # LedgerSMB # Small Medium Business Accounting software # # See COPYRIGHT file for copyright information #====================================================================== # # This file has NOT undergone whitespace cleanup. # #====================================================================== # # payroll module # #====================================================================== use LedgerSMB::HR; use LedgerSMB::User; 1; # end of main sub add { $label = "Add ".ucfirst $form->{db}; $form->{title} = $locale->text($label); $form->{callback} = "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; &{ "$form->{db}_links" }; } sub search { &{ "search_$form->{db}" } }; sub search_employee { $form->{title} = $locale->text('Employees'); @a = (); push @a, qq| |.$locale->text('Pos'); push @a, qq| |.$locale->text('ID'); push @a, qq| |.$locale->text('Employee Number'); push @a, qq| |.$locale->text('Employee Name'); push @a, qq| |.$locale->text('Address'); push @a, qq| |.$locale->text('City'); push @a, qq| |.$locale->text('State/Province'); push @a, qq| |.$locale->text('Zip/Postal Code'); push @a, qq| |.$locale->text('Country'); push @a, qq| |.$locale->text('Work Phone'); push @a, qq| |.$locale->text('Home Phone'); push @a, qq| |.$locale->text('Startdate'); push @a, qq| |.$locale->text('Enddate'); push @a, qq| |.$locale->text('Sales'); push @a, qq| |.$locale->text('Manager'); push @a, qq| |.$locale->text('Role'); push @a, qq| |.$locale->text('Login'); push @a, qq| |.$locale->text('E-mail'); push @a, qq| |.$locale->text('SSN'); push @a, qq| |.$locale->text('DOB'); push @a, qq| |.$locale->text('IBAN'); push @a, qq| |.$locale->text('BIC'); push @a, qq| |.$locale->text('Notes'); $form->header; print qq|
|; if ($form->{menubar}) { require "$form->{path}/menu.pl"; &menubar; } print qq|