hi all,
i have the following fields:
date filed {Prescription Date}
date filed {Annual Treatment End}
date filed {End Date}
integer{plan id] (values 0,1) 0 for Seasonal and 1 for yearly.
i want to get the following
if the plan = 0 then
{Annual Treatment End}= 31-7- Current year from Prescription Date.
{End Date}= 31-7-3Years from Current year from Prescription Date.
else
{Annual Treatment End} = 1 year added to Prescription Date
{End Date}= 1 year added to Prescription Date
example,
Prescription Date: 25/1/2015
if the plan 0 then
Annual Treatment End : 31/07/2015
End Date : 31/07/2018
Else
Annual Treatment End : 25/01/2016
End Date : 25/01/2018
Thanks in advanced for help