Wenn ein Enddatum angegeben wird, dann muss das auch berücksichtigt werden. Fix für...
[kivitendo-erp.git] / SL / CA.pm
index 4453a9f..28ffc2e 100644 (file)
--- a/SL/CA.pm
+++ b/SL/CA.pm
@@ -141,6 +141,7 @@ sub all_transactions {
   if ($form->{todate}) {
     $fromto   .= " AND ac.transdate <= '$form->{todate}'";
     $subwhere .= " AND transdate <= '$form->{todate}'";
+    $glwhere .= " AND ac.transdate <= '$form->{todate}'";
   }
 
   if ($form->{eur}) {