Re: Subscription functionality

Posted by Pierre Smits on
URL: http://ofbiz.116.s1.nabble.com/Subscription-functionality-tp4643745p4643904.html

That depends on the legal setup of each country regarding protection of
customers.

In a country it might be so that subscriptions must automatically end when
the period reaches the thru date and no confirmation has been given, and in
others it can be so that subscriptions automatically extend unless a
cancelation has been received.

The solution should cater for both.


Pierre Smits

*ORRTIZ.COM <http://www.orrtiz.com>*
Services & Solutions for Cloud-
Based Manufacturing, Professional
Services and Retail & Trade
http://www.orrtiz.com


On Fri, Sep 13, 2013 at 4:07 AM, Hans Bakker
<[hidden email]>wrote:

> Isn't it so that it works the other way around?
>
> all subscriptions have an expiry date, and need to be extended?
> When not extended will expire using that date?
>
> i think there was some extending service which is run regularly....
>
> Regards,
> Hans
>
>
> On 09/12/2013 06:54 PM, Jacques Le Roux wrote:
>
>> You will have to write your own. Be sure to check what is already in
>> SubscriptionServices.java
>>
>> Jacques
>>
>> Ramkrishna Swamy wrote:
>>
>>> Hello Jacques,
>>>
>>> The mentioned tables I know but I have not come across any code or
>>> service
>>> which would expire the subscription. I have seen one scheduled service
>>> "runSubscriptionAutoReorders" which checks for expiration of the
>>> subscription by comparing current date and subscription's thruDate; but
>>> it
>>> doesn't expire the subscription only simple check is there. So has there
>>> been any other code/service already written which performs task of
>>> expiration of the subscription or I will have to write my own custom
>>> service to perform the task. Please suggest.
>>>
>>>
>>>  You got one possibilty (the simplest one and most used I guess). A
>>>> little
>>>> explanation of the data model is at
>>>> https://cwiki.apache.org/**confluence/display/OFBIZ/**Subscription<https://cwiki.apache.org/confluence/display/OFBIZ/Subscription>
>>>>
>>>> Jacques
>>>>
>>>> Ramkrishna Swamy wrote:
>>>>
>>>>> Hello list,
>>>>>
>>>>> I have gone through link of subscription
>>>>> http://www.amicontech.com/**blog/subscriptions-in-ofbiz-**
>>>>> and-opentaps/<http://www.amicontech.com/blog/subscriptions-in-ofbiz-and-opentaps/>,
>>>>> in
>>>>> this link I did not find how subscription expires. I tried to find a
>>>>> service which should be called on expiration of subscription but I
>>>>> couldn't
>>>>> find. As per the given link we need to customize a service in order to
>>>>> serve subscription to the user, so I created a simple java service in
>>>>> order
>>>>> to see how it's called. It is called once, at the time of placing an
>>>>> order.
>>>>> So it will create subscription in the system now if I set thruDate to
>>>>> expire the subscription it expires in the system. Is there any service
>>>>> which is called to expire the subscription.
>>>>> If anyone has any idea how it works then please let me know.
>>>>>
>>>>
>