diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-02-24 03:20:25 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-02-24 03:20:25 +0000 |
commit | b50bfbdd81b92e2e32b47b385d851aa27e658dcb (patch) | |
tree | 5bd786de4606ee33d4aab55048684674fbe57ac2 /bin | |
parent | a8c675b5c7481a9f8a26462961e863bffde2cdeb (diff) |
Undoing mistaken commit of customizations
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@2080 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/hr.pl | 26 | ||||
-rwxr-xr-x | bin/ir.pl | 7 | ||||
-rwxr-xr-x | bin/is.pl | 4 | ||||
-rwxr-xr-x | bin/oe.pl | 6 |
4 files changed, 7 insertions, 36 deletions
@@ -528,16 +528,6 @@ sub employee_links { for ( keys %$form ) { $form->{$_} = $form->quote( $form->{$_} ) } - $form->all_departments; - if ( @{ $form->{all_department} } ) { - $form->{selectdepartment} = "<option>\n"; - - for ( @{ $form->{all_department} } ) { - $form->{selectdepartment} .= -qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|; - } - } - $form->{selectdepartment} =~ s/("$form->{department}")/$1 selected/; if ( @{ $form->{all_deduction} } ) { $form->{selectdeduction} = "<option>\n"; for ( @{ $form->{all_deduction} } ) { @@ -741,11 +731,6 @@ sub employee_header { <th align=right nowrap>| . $locale->text('BIC') . qq|</th> <td><input name=bic size=11 maxlength=11 value="$form->{bic}"></td> </tr> - <tr> - <th align=right nowrap>| . $locale->text('Department') . qq|</th> - <td><select name="department"> - $form->{selectdepartment} - </select> </table> </td> </tr> @@ -1426,17 +1411,6 @@ sub update_employee { @flds = qw(before after); $count = 0; @a = (); - $form->all_departments; - if ( @{ $form->{all_department} } ) { - $form->{selectdepartment} = "<option>\n"; - - for ( @{ $form->{all_department} } ) { - $form->{selectdepartment} .= -qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|; - } - } - $form->{selectdepartment} =~ s/ selected//; - $form->{selectdepartment} =~ s/("$form->{department}")/$1 selected/; for $i ( 1 .. $form->{deduction_rows} ) { for (@flds) { $form->{"${_}_$i"} = @@ -139,15 +139,14 @@ qq|<option value="$_->{projectnumber}--$_->{id}">$_->{projectnumber}\n|; # departments if ( @{ $form->{all_department} } ) { $form->{selectdepartment} = "<option>\n"; + $form->{department} = "$form->{department}--$form->{department_id}" + if $form->{department_id}; for ( @{ $form->{all_department} } ) { $form->{selectdepartment} .= qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|; } } - $form->{department} = "$form->{department}--$myconfig{department_id}" - if $myconfig{department_id}; - if ( @{ $form->{all_language} } ) { $form->{selectlanguage} = "<option>\n"; @@ -274,7 +273,7 @@ sub form_header { for (qw(vendor department)) { $form->{"select$_"} = $form->unescape( $form->{"select$_"} ); $form->{"select$_"} =~ s/ selected//; - $form->{"select$_"} =~ s/(<option value="[^"]*\Q$form->{$_}\E")/$1 selected/; + $form->{"select$_"} =~ s/(<option value="\Q$form->{$_}\E")/$1 selected/; } if ( $form->{selectlanguage} ) { @@ -153,8 +153,6 @@ qq|<option value="$_->{projectnumber}--$_->{id}">$_->{projectnumber}\n|; qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|; } } - $form->{department} = "$form->{department}--$myconfig{department_id}" - if $myconfig{department_id}; $form->{employee} = "$form->{employee}--$form->{employee_id}"; @@ -308,7 +306,7 @@ sub form_header { for (qw(customer department employee)) { $form->{"select$_"} = $form->unescape( $form->{"select$_"} ); $form->{"select$_"} =~ s/ selected//; - $form->{"select$_"} =~ s/(<option value="[^"]*\Q$form->{$_}\E")/$1 selected/; + $form->{"select$_"} =~ s/(<option value="\Q$form->{$_}\E")/$1 selected/; } $form->{exchangerate} = @@ -192,6 +192,8 @@ qq|<option value="$_->{projectnumber}--$_->{id}">$_->{projectnumber}\n|; # departments if ( @{ $form->{all_department} } ) { $form->{selectdepartment} = "<option>\n"; + $form->{department} = "$form->{department}--$form->{department_id}" + if $form->{department_id}; for ( @{ $form->{all_department} } ) { $form->{selectdepartment} .= @@ -371,7 +373,7 @@ sub form_header { for ( "$form->{vc}", "department", "employee" ) { $form->{"select$_"} = $form->unescape( $form->{"select$_"} ); $form->{"select$_"} =~ s/ selected//; - $form->{"select$_"} =~ s/(<option value="[^"]*\Q$form->{$_}\E")/$1 selected/; + $form->{"select$_"} =~ s/(<option value="\Q$form->{$_}\E")/$1 selected/; } $form->{exchangerate} = @@ -1511,8 +1513,6 @@ sub transactions { # split vendor / customer ( $form->{ $form->{vc} }, $form->{"$form->{vc}_id"} ) = split( /--/, $form->{ $form->{vc} } ); - $form->{department} = "$form->{department}--$myconfig{department_id}" - if $myconfig{department_id}; OE->transactions( \%myconfig, \%$form ); |