Bug 5336: (follow-up) don't display deleted orders in late orders search result
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 23 Apr 2013 13:30:11 +0000 (15:30 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 22 Oct 2013 13:27:22 +0000 (13:27 +0000)
Test plan:
Check that deleted orders are not listed in the late orders search
results.

Signed-off-by: Cedric Vita <cedric.vita@dracenie.com>
Signed-off-by: Pierre Angot <tredok.pierre@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Acquisition.pm

index 0244675..aa0f9eb 100644 (file)
@@ -1944,6 +1944,7 @@ sub GetLateOrders {
         $from .= ' AND borrowers.branchcode LIKE ? ';
         push @query_params, C4::Context->userenv->{branch};
     }
+    $from .= " AND orderstatus <> 4 ";
     my $query = "$select $from $having\nORDER BY latesince, basketno, borrowers.branchcode, supplier";
     $debug and print STDERR "GetLateOrders query: $query\nGetLateOrders args: " . join(" ",@query_params);
     my $sth = $dbh->prepare($query);