Bug 7254 Show pending orders from baskets with closedate > 180 days
Current code for selecting pending orders does not select orders from baskets with a closedate > 180 days. The code in Acquisition.pm already includes a FIXME for that. IMHO this part of the where clause should just be removed; an order is pending until it is filled. If you do not want to fill it, delete it. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
40bd14e0ea
commit
fd949453e8
|
|
@ -720,10 +720,7 @@ sub GetPendingOrders {
|
|||
LEFT JOIN biblioitems ON biblioitems.biblionumber=biblio.biblionumber
|
||||
WHERE booksellerid=?
|
||||
AND (quantity > quantityreceived OR quantityreceived is NULL)
|
||||
AND datecancellationprinted IS NULL
|
||||
AND (to_days(now())-to_days(closedate) < 180 OR closedate IS NULL)
|
||||
";
|
||||
## FIXME Why 180 days ???
|
||||
AND datecancellationprinted IS NULL";
|
||||
my @query_params = ( $supplierid );
|
||||
my $userenv = C4::Context->userenv;
|
||||
if ( C4::Context->preference("IndependantBranches") ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue