Filtering cancelled orders on History Search.
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Thu, 11 Oct 2007 20:52:17 +0000 (15:52 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 11 Oct 2007 20:54:56 +0000 (15:54 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Acquisition.pm

index 743a8a0..22928db 100644 (file)
@@ -1096,6 +1096,7 @@ sub GetHistory {
 
         $query .= " AND creationdate<" . $dbh->quote($to_placed_on)
           if $to_placed_on;
+        $query .= " AND (datecancellationprinted is NULL or datecancellationprinted='0000-00-00')";
 
         if ( C4::Context->preference("IndependantBranches") ) {
             my $userenv = C4::Context->userenv;