From: "Wai" <[email protected]>
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.