You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacopo Cappellato <ti...@sastau.it> on 2007/10/02 09:31:15 UTC

Adding validity dates to ProductPromoCode

Is it ok if I add a new field to the ProductPromoCode entity: expiryDate

I'd like to use it to set a validity date for the promo code.
Or would it be better to use the standard fromDate/thruDate pattern?

Jacopo


Re: Adding validity dates to ProductPromoCode

Posted by David E Jones <jo...@hotwaxmedia.com>.
Yeah, I think that looks fine Jacopo. We recently discussed doing  
something just like this with a client but it was never green lit. So  
yes, looks good and the option of doing from/thru is better than just  
a thru, so that's cool too.

-David


On Oct 4, 2007, at 10:46 AM, Jacopo Cappellato wrote:

> The solution with fromDate/thruDate  is now implemented in rev. 581961
>
> Jacopo
>
>
> Jacopo Cappellato wrote:
>> Is it ok if I add a new field to the ProductPromoCode entity:  
>> expiryDate
>> I'd like to use it to set a validity date for the promo code.
>> Or would it be better to use the standard fromDate/thruDate pattern?
>> Jacopo
>
>


Re: Adding validity dates to ProductPromoCode

Posted by Jacopo Cappellato <ti...@sastau.it>.
The solution with fromDate/thruDate  is now implemented in rev. 581961

Jacopo


Jacopo Cappellato wrote:
> Is it ok if I add a new field to the ProductPromoCode entity: expiryDate
> 
> I'd like to use it to set a validity date for the promo code.
> Or would it be better to use the standard fromDate/thruDate pattern?
> 
> Jacopo