[Koha-patches] [PATCH] (bug #4207) receive shipment problem
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Wed Feb 17 15:24:17 CET 2010
this change the way to get pending orders during shipment receive.
---
C4/Acquisition.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index f84ac7e..3e274fe 100644
--- a/C4/Acquisition.pm
+++ b/C4/Acquisition.pm
@@ -207,12 +207,13 @@ sub GetPendingOrders {
LEFT JOIN borrowers ON aqbasket.authorisedby=borrowers.borrowernumber
WHERE booksellerid=?
AND datecancellationprinted IS NULL
- AND (to_days(now())-to_days(closedate) < 180 OR closedate IS NULL)
";
if($closed){
$strsth .= "
AND (quantity > quantityreceived OR quantityreceived is NULL)
AND closedate IS NOT NULL ";
+ }else{
+ $strsth .= "AND (to_days(now())-to_days(closedate) < 180 OR closedate IS NULL)";
}
## FIXME Why 180 days ???
my @query_params = ( $supplierid );
--
1.6.3.3
More information about the Koha-patches
mailing list