I want to create a continuous payperiod for every month . suppose i was insert a payperiod for last jan that is start date : 01-01-2012 12:00:00 enddate : 30:01:2012 11:59:00 Transaction date : 31:01:2012 12:00:00 and status : OPEN . Now i want the below result based on the above entry that is
2. start date : 01-02-2012 12:00:00 enddate : 28:02:2012 11:59:00 Transaction date : 29:02:2012 12:00:00 and status : CLOSED
3. start date : 01-03-2012 12:00:00 enddate : 30:03:2012 11:59:00 Transaction date : 31:03:2012 12:00:00 and status : OPEN
and the first status OPEN changed to CLOSE. This process continuous automatically based on first entry start,end and transaction date please help me to do this…
Try this code below
Call the function using
I hope this helps !!!