ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Vijaywargiya <ashish.vijaywarg...@hotwaxmedia.com>
Subject Re: How to disable Product
Date Wed, 18 Feb 2009 08:22:11 GMT
FYI "supportDiscontinuationDate" field play important role while 
Returning an Order Item (aka product)

For reference take a look on the below code snippet taken from 
OrderReturnServices.java file:
Line # 327 - 333.

  // next check support discontinuation
        if (product != null && product.get("supportDiscontinuationDate") 
!= null &&
                
!UtilDateTime.nowTimestamp().before(product.getTimestamp("supportDiscontinuationDate"))) 
{
            // support discontinued either now or in the past
            returnable = false;
        }

Thanks !

--
Ashish

Abhishake Agarwal wrote:
> Hi,
>
> I want to disable some product. I tried with putting past date in
> *supportDiscontinuationDate
> *and it was not working.
>  Please let me know the process.
>
> Regards,
> Abhishake
>
>   

Mime
View raw message