X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/476d2c57a3d2a344009ae3a38fb0e5c84f91914d..a9d9ca02abd3a0ff1e43f23888142266174bec55:/SL/DATEV.pm diff --git a/SL/DATEV.pm b/SL/DATEV.pm index 1db417c9a..86cb729bc 100644 --- a/SL/DATEV.pm +++ b/SL/DATEV.pm @@ -543,6 +543,7 @@ sub generate_datev_data { $gl_itime_filter $gl_department_id_filter $gl_imported + AND NOT EXISTS (SELECT gl_id from ap_gl where gl_id = gl.id) $filter ORDER BY trans_id, acc_trans_id|; @@ -835,6 +836,7 @@ sub generate_datev_lines { } if ($transaction->[$i]->{'taxkey'}) { $taxkey = $transaction->[$i]->{'taxkey'}; + # $taxkey = 0 if $taxkey == 94; # taxbookings are in gl } if ($transaction->[$i]->{'charttax'}) { $charttax = $transaction->[$i]->{'charttax'};