Users are able to to set expiry dates to services/packages. This is convenient for contract based packages i.e mobile phone contracts/rental agreements or even a debt with a certain lifespan i.e loans.
We strongly recommend that you contact us for assistance as the rules system can become complex if it is done incorrectly.
To do this, you will need to ensure that the rule app is enabled under Setup > Apps > Rules
It should read as below:
Run the code on the condition that the custom field $service->data-expiry_date is set If $today is after as $service->data-expiry_date Set the state of the service to suspended End execution of this rule at this point.
You have now enabled the expiry date feature on this particular service.
When adding a service or package to a client you will find the option to insert a expiry date.
See Also: Service Invoice Rules; Rules App