Skip to content

Commit

Permalink
MT6546: FIX iso format date
Browse files Browse the repository at this point in the history
  • Loading branch information
joubu committed May 11, 2011
1 parent 19027be commit 307899f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions C4/Bookseller.pm
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ sub GetBooksellersWithLateOrders {
AND aqorders.quantity - IFNULL(aqorders.quantityreceived,0) <> 0
";
if ( $delay ) {
$strsth .= " AND (closedate < DATE_SUB(CURDATE( ),INTERVAL ? DAY)
AND (datereceived = '' OR datereceived IS NULL))";
$strsth .= " AND (closedate <= DATE_SUB(CURDATE( ),INTERVAL ? DAY) ";
push @query_params, $delay;
}
if ( defined $estimateddeliverydatefrom ) {
Expand Down
2 changes: 1 addition & 1 deletion acqui/lateorders.pl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ =head1 CGI PARAMETERS
push @errors, { delay_digits => 1, bad_delay => $delay };
}

my %supplierlist = GetBooksellersWithLateOrders( $delay, $branch, $estimateddeliverydatefrom, $estimateddeliverydateto );
my %supplierlist = GetBooksellersWithLateOrders( $delay, $branch, C4::Dates->new($estimateddeliverydatefrom)->output("iso"), C4::Dates->new($estimateddeliverydateto)->output("iso") );
my (@sloopy); # supplier loop
foreach ( keys %supplierlist ) {
push @sloopy,
Expand Down

0 comments on commit 307899f

Please sign in to comment.