From: Moritz Bunkus Date: Tue, 20 Feb 2007 09:14:02 +0000 (+0000) Subject: Kreditorenrechnungsmaske: Buttons richtig anzeigen bzgl. Radierparagraph & "Erneuern... X-Git-Tag: release-2.4.2~75 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5b4da8b54a5b66176d56b2ac574e30d75b29eb31;p=kivitendo-erp.git Kreditorenrechnungsmaske: Buttons richtig anzeigen bzgl. Radierparagraph & "Erneuern" immer anzeigen. --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 0d531cf82..c4c513a34 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -642,9 +642,9 @@ $jsscript |; if ($form->{currency} eq $form->{defaultcurrency}) { - @column_index = qw(datepaid source memo paid AP_paid); + @column_index = qw(datepaid source memo paid AP_paid paid_project_id); } else { - @column_index = qw(datepaid source memo paid exchangerate AP_paid); + @column_index = qw(datepaid source memo paid exchangerate AP_paid paid_project_id); } $column_data{datepaid} = "" . $locale->text('Date') . ""; @@ -653,6 +653,7 @@ $jsscript $column_data{AP_paid} = "" . $locale->text('Account') . ""; $column_data{source} = "" . $locale->text('Source') . ""; $column_data{memo} = "" . $locale->text('Memo') . ""; + $column_data{paid_project_id} = "" . $locale->text('Project Number') . ""; print " @@ -708,6 +709,13 @@ $jsscript qq||; $column_data{"memo_$i"} = qq||; + $column_data{"paid_project_id_$i"} = + qq|| + . NTI($cgi->popup_menu('-name' => "paid_project_id_$i", + '-values' => \@project_values, + '-labels' => \%project_labels, + '-default' => $form->{"paid_project_id_$i"} )) + . qq||; map { print qq|$column_data{"${_}_$i"}\n| } @column_index; @@ -740,6 +748,7 @@ sub form_footer { print qq| + {path}> {login}> @@ -751,34 +760,32 @@ sub form_footer { $transdate = $form->datetonum($form->{transdate}, \%myconfig); $closedto = $form->datetonum($form->{closedto}, \%myconfig); + print qq||; + if ($form->{id}) { # print qq| # |; - if ($form->{radier}) { - print qq| + if ($form->{radier}) { + print qq| |; - } + } - print qq| + print qq| -|; - print qq| |; - } else { - if (($transdate > $closedto) && !$form->{id}) { - print qq| + } elsif (($transdate > $closedto) && !$form->{id}) { + print qq| |; - } + . $locale->text('Post') . qq|">|; } print "