X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fam.pl;h=d8eb1a2177a1a112cdddeb492ae960ac67e4d187;hb=c046c42244acda83029d00cb06ff636063765fb2;hp=ced3b081494271f6224489b1e3fedc19ea9aeb13;hpb=9a22f14c16b2ba3ee47bc2ea0c97078260e3c167;p=kivitendo-erp.git diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index ced3b0814..d8eb1a217 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,13 @@ 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| | ++ |
---|