Lines 720-729
sub GetPendingOrders {
Link Here
|
720 |
LEFT JOIN biblioitems ON biblioitems.biblionumber=biblio.biblionumber |
720 |
LEFT JOIN biblioitems ON biblioitems.biblionumber=biblio.biblionumber |
721 |
WHERE booksellerid=? |
721 |
WHERE booksellerid=? |
722 |
AND (quantity > quantityreceived OR quantityreceived is NULL) |
722 |
AND (quantity > quantityreceived OR quantityreceived is NULL) |
723 |
AND datecancellationprinted IS NULL |
723 |
AND datecancellationprinted IS NULL"; |
724 |
AND (to_days(now())-to_days(closedate) < 180 OR closedate IS NULL) |
|
|
725 |
"; |
726 |
## FIXME Why 180 days ??? |
727 |
my @query_params = ( $supplierid ); |
724 |
my @query_params = ( $supplierid ); |
728 |
my $userenv = C4::Context->userenv; |
725 |
my $userenv = C4::Context->userenv; |
729 |
if ( C4::Context->preference("IndependantBranches") ) { |
726 |
if ( C4::Context->preference("IndependantBranches") ) { |
730 |
- |
|
|