Fw: Proper use of thruDate

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fw: Proper use of thruDate

Jacques Le Roux
Administrator
Huho, looks like this one needs also a forwarding, really not sure why :/

Jacques

----- Original Message -----
From: "Jacques Le Roux" <[hidden email]>
To: <[hidden email]>
Sent: Friday, July 16, 2010 9:22 AM
Subject: Re: Proper use of thruDate


> From: "Wai" <[hidden email]>
>> Hello,
>> What is the best practice in using the thruDate of an item.
>> I know that when deleting or expiring an item, it is best to just fill in
>> the thruDate.  The reason behind this is to have a record of deleted/expired
>> items.
>>
>> What if an item needs to be reused again.  Is it a matter of emptying out
>> the thruDate or setting it to a future expiry date?  If this is the best
>> practice, how would ofbiz keep track of whether an item has ever been
>> expired?
>
> Sometimes you would want to simply remove the old value. It's done for example for the ProductPrices. In simple-methods
> <remove-value is used for that, Look for delete in services names.
> Most of the time you would want to duplicate the expired item and just set the thruDate to null or a future date. They are
> examples of this in code. Look for expire in services names.
>
> Jacques
>
>> Thanks in advance
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.com/Proper-use-of-thruDate-tp2290914p2290914.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>