Bisher hat der DATEV-Check nach Erstellung einer Buchung immer den
ganzen Tag geprüft. Jetzt wird nur noch die Buchung selbst auf
DATEV-Kompatibilität geprüft.
dbh => $dbh,
from => $transdate,
to => $transdate,
dbh => $dbh,
from => $transdate,
to => $transdate,
+ trans_id => $form->{id},
dbh => $dbh,
from => $transdate,
to => $transdate,
dbh => $dbh,
from => $transdate,
to => $transdate,
+ trans_id => $form->{id},
+sub trans_id {
+ my $self = shift;
+
+ if (@_) {
+ $self->{trans_id} = $_[0];
+ }
+
+ return $self->{trans_id};
+}
+
sub accnofrom {
my $self = shift;
sub accnofrom {
my $self = shift;
+ my $trans_id_filter = '';
+
+ $trans_id_filter = 'AND ac.trans_id = ' . $self->trans_id if $self->trans_id;
+
my ($notsplitindex);
$fromto =~ s/transdate/ac\.transdate/g;
my ($notsplitindex);
$fromto =~ s/transdate/ac\.transdate/g;
LEFT JOIN chart c ON (ac.chart_id = c.id)
WHERE (ar.id IS NOT NULL)
AND $fromto
LEFT JOIN chart c ON (ac.chart_id = c.id)
WHERE (ar.id IS NOT NULL)
AND $fromto
LEFT JOIN chart c ON (ac.chart_id = c.id)
WHERE (ap.id IS NOT NULL)
AND $fromto
LEFT JOIN chart c ON (ac.chart_id = c.id)
WHERE (ap.id IS NOT NULL)
AND $fromto
LEFT JOIN chart c ON (ac.chart_id = c.id)
WHERE (gl.id IS NOT NULL)
AND $fromto
LEFT JOIN chart c ON (ac.chart_id = c.id)
WHERE (gl.id IS NOT NULL)
AND $fromto
$filter
ORDER BY trans_id, acc_trans_id|;
$filter
ORDER BY trans_id, acc_trans_id|;
dbh => $dbh,
from => $transdate,
to => $transdate,
dbh => $dbh,
from => $transdate,
to => $transdate,
+ trans_id => $form->{id},
dbh => $dbh,
from => $transdate,
to => $transdate,
dbh => $dbh,
from => $transdate,
to => $transdate,
+ trans_id => $form->{id},
dbh => $dbh,
from => $transdate,
to => $transdate,
dbh => $dbh,
from => $transdate,
to => $transdate,
+ trans_id => $form->{id},