[Koha-patches] [PATCH] (bug #4207) receive shipment problem

Galen Charlton gmcharlt at gmail.com
Thu Feb 18 16:44:31 CET 2010


Hi,

This patch does not apply against HEAD.  Please fix this and resubmit,
and please ensure that you test your merges first and ensure that the
patches you send apply on HEAD at the time you submit them.

Regards,

Galen

On Wed, Feb 17, 2010 at 9:24 AM, Nahuel ANGELINETTI
<nahuel.angelinetti at biblibre.com> wrote:
> 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
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>



-- 
Galen Charlton
gmcharlt at gmail.com



More information about the Koha-patches mailing list