User Tools

Site Tools


adding_an_expiry_date_service_rule

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
adding_an_expiry_date_service_rule [2014/11/07 18:38]
Jaco van Wyk [Activate the rule on your account]
adding_an_expiry_date_service_rule [2014/11/07 18:40] (current)
Jaco van Wyk [After adding the custom field, you now need to adjust the rule:]
Line 22: Line 22:
 It should read as below: It should read as below:
  
-{{:​snapbill_expiry-date-rule.png?600|}}+<​code>​ 
 +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. 
 +</​code>​
  
 You have now enabled the expiry date feature on this particular service. You have now enabled the expiry date feature on this particular service.
adding_an_expiry_date_service_rule.txt · Last modified: 2014/11/07 18:40 by Jaco van Wyk