X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fam.pl;h=276a2dafecc43c06eadb013e97f5daa20427aca2;hb=948670d8301d5c6285f454baf11dd344c8762c5b;hp=20f1ad8d37cfa67c1dce7cb70425b3ee68f6e4a1;hpb=0576299f2aa98125991c4ffcd2f75073ea583d7d;p=kivitendo-erp.git diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 20f1ad8d3..276a2dafe 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -36,8 +36,14 @@ use SL::CA; use SL::Form; use SL::User; +use Data::Dumper; + 1; + + +require "$form->{path}/common.pl"; + # end of main sub add { &{"add_$form->{type}"} } @@ -90,14 +96,16 @@ sub account_header { $form->{description} =~ s/\"/"/g; if (@{ $form->{TAXKEY} }) { - $form->{selecttaxkey} = ""; + } + foreach $item (@{ $form->{NEWACCOUNT} }) { + if ($item->{id} == $form->{new_chart_id}) { + $form->{selectnewaccount} .= + ""; + } elsif (!$form->{new_chart_valid}) { + $form->{selectnewaccount} .= + ""; + } + + } + } + + $newaccount = qq| + + + + + + + + + +
| . $locale->text('Folgekonto') . qq|| . $locale->text('Gültig ab') . qq|
+ |; $form->{selectustva} = "