Showing results for 
Search instead for 
Do you mean 

Alert Someone When a Contract Has Expired

by ajappel on ‎07-01-2011 06:52 AM

In Application Architect, on the Ticket Details form, add a C# snippet onto the Contract field's OnChange property.


// Placeholder for code.

// This example does not include Contract's Grace Days
Sage.Entity.Interfaces.ITicket curTicket = this.BindingSource.Current as Sage.Entity.Interfaces.ITicket;
       
    if (curTicket.Contract != null)
    {
        if (curTicket.Contract.EndingDate < DateTime.Now)
        {
            DialogService.ShowMessage("The customer's service contract has expired.  Contact the Account Manager");
        }
    }   

Register Read Guidelines Request Partner or Employee Access

What's New in 8.1

Labels