@@ -, +, @@ --- C4/Acquisition.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) --- a/C4/Acquisition.pm +++ a/C4/Acquisition.pm @@ -1430,6 +1430,7 @@ sub GetLateOrders { OR datereceived IS NULL OR aqorders.quantityreceived < aqorders.quantity ) + AND (aqorders.datecancellationprinted IS NULL OR aqorders.datecancellationprinted='0000-00-00') "; my $having = ""; if ($dbdriver eq "mysql") { --