X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fam.pl;h=4e327fd422e432b35785e9465654f30f7044dc22;hb=8423c7b21bc3b4b2db7d0ffef756919619336e97;hp=c936bc19b771661746f6d4f5b727986f51a5726f;hpb=abc941da2860a2ad1cb3f13c083dcd19fe435883;p=kivitendo-erp.git
diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl
index c936bc19b..4e327fd42 100644
--- a/bin/mozilla/am.pl
+++ b/bin/mozilla/am.pl
@@ -36,8 +36,12 @@ 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 +94,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|
+
+
+
+ |
|;
$form->{selectustva} = "
+
+
+
+
+
+
+