Skip to content

Commit

Permalink
'Buchen auf' in EK/VK Rechnungen auch vorbelegen, wenn in Mandantenko…
Browse files Browse the repository at this point in the history
…nfig leer

Wird dann mit dem ersten Verbindlichkeitskonto/Forderungskonto vorbelegt,
sowie bei der Kreditorenbuchung/Debitorenbuchung auch.
  • Loading branch information
bblessmann committed Oct 16, 2023
1 parent 99d8b7c commit 05082cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/mozilla/ir.pl
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ sub invoice_links {
}
$form->{AP} = $form->{AP_1} unless $form->{id};
my ($chart_accno) = split /--/, $form->{AP};
$form->{AP_chart_id} = $form->{id} ? SL::DB::Manager::Chart->find_by( accno => $chart_accno)->id : $::instance_conf->get_ap_chart_id ;
$form->{AP_chart_id} = $form->{id} ? SL::DB::Manager::Chart->find_by( accno => $chart_accno)->id : $::instance_conf->get_ap_chart_id || $form->{AP_links}->{AP}->[0]->{chart_id};

$form->{locked} =
($form->datetonum($form->{invdate}, \%myconfig) <=
Expand Down
2 changes: 1 addition & 1 deletion bin/mozilla/is.pl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ sub invoice_links {
}
$form->{AR} = $form->{AR_1} unless $form->{id};
my ($chart_accno) = split /--/, $form->{AR};
$form->{AR_chart_id} = $form->{id} ? SL::DB::Manager::Chart->find_by( accno => $chart_accno)->id : $::instance_conf->get_ar_chart_id ;
$form->{AR_chart_id} = $form->{id} ? SL::DB::Manager::Chart->find_by( accno => $chart_accno)->id : $::instance_conf->get_ar_chart_id || $form->{AR_links}->{AR}->[0]->{chart_id};

$form->{locked} = ($form->datetonum($form->{invdate}, \%myconfig)
<= $form->datetonum($form->{closedto}, \%myconfig));
Expand Down

0 comments on commit 05082cf

Please sign in to comment.