]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DO.pm
weitere Methoden aus aus check_objects ausgelagert
[mfinanz.git] / SL / DO.pm
index 7d3a5e61d902c7c16238a4b8b56b848d10cc0dfc..21f93d8137436342d67f64814456f136512caa47 100644 (file)
--- a/SL/DO.pm
+++ b/SL/DO.pm
@@ -145,6 +145,16 @@ sub transactions {
     push @values, conv_date($form->{transdateto});
   }
 
+  if($form->{reqdatefrom}) {
+    push @where,  qq|dord.reqdate >= ?|;
+    push @values, conv_date($form->{reqdatefrom});
+  }
+
+  if($form->{reqdateto}) {
+    push @where,  qq|dord.reqdate <= ?|;
+    push @values, conv_date($form->{reqdateto});
+  }
+
   if (@where) {
     $query .= " WHERE " . join(" AND ", map { "($_)" } @where);
   }