Verbindlichkeits-/Forderungskonto bei Kred-/debitoren mit Standardkonto
authorWerner Hahn <wh@futureworldsearch.net>
Wed, 4 Jul 2018 16:31:31 +0000 (18:31 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Wed, 4 Jul 2018 16:31:31 +0000 (18:31 +0200)
aus Mandantenkonfiguration vorbelegen wenn vorhanden

bin/mozilla/ap.pl
bin/mozilla/ar.pl

index b205841..bfcf468 100644 (file)
@@ -308,6 +308,7 @@ sub create_links {
   $form->{$_}        = $saved{$_} for keys %saved;
   $form->{rowcount}  = 1;
   $form->{AP_chart_id} = $form->{acc_trans} && $form->{acc_trans}->{AP} ? $form->{acc_trans}->{AP}->[0]->{chart_id} : $form->{AP_links}->{AP}->[0]->{chart_id};
+  $form->{AP_chart_id} = $form->{acc_trans} && $form->{acc_trans}->{AP} ? $form->{acc_trans}->{AP}->[0]->{chart_id} : $::instance_conf->get_ap_chart_id || $form->{AP_links}->{AP}->[0]->{chart_id};
 
   # build the popup menus
   $form->{taxincluded} = ($form->{id}) ? $form->{taxincluded} : "checked";
index 562f8aa..0ea557d 100644 (file)
@@ -307,7 +307,7 @@ sub create_links {
 
   $form->{$_}          = $saved{$_} for keys %saved;
   $form->{rowcount}    = 1;
-  $form->{AR_chart_id} = $form->{acc_trans} && $form->{acc_trans}->{AR} ? $form->{acc_trans}->{AR}->[0]->{chart_id} : $form->{AR_links}->{AR}->[0]->{chart_id};
+  $form->{AR_chart_id} = $form->{acc_trans} && $form->{acc_trans}->{AR} ? $form->{acc_trans}->{AR}->[0]->{chart_id} : $::instance_conf->get_ar_chart_id || $form->{AR_links}->{AR}->[0]->{chart_id};
 
   # currencies
   $form->{defaultcurrency} = $form->get_default_currency(\%myconfig);