rp_charges::getnextnservices

This returns the next N services scheduled for this chargeid

o.getnextnservices( tcChargeID , tnServices, tddate, tcCursor)

Return Value

The number of services found


Parameters

tcChargeID
The charge id for which the next N scheduled services are required.

tnServices
The number of scheduled services required

tddate
The date from which to retrieve services

tcCursor
The name of the internal cursor to store the results

Remarks

This function is used to retrieve the next N scheduled services for a particular charge.

The structure of the list returned is as follows;

ChargeID c(10) - Charge ID of scheduled Charge
RouteID c(10) - Route ID of scheduled Charge
route_num c(5) - Route number assigned
cycle c(3) - Cycle of route
date Date - Date of service


Example

o.GetNextNServices("CH234234",12,{01/07/2003},"scheduled")

The above would;
1.	Retrive the next 12 service dates for the charge "CH234234"	as of the 01/07/2003
2.	Place this list in the internal cursor "Scheduled"
3.	Place the list in the collection o.oRows


See also:

Class rp_charges


Last Updated: 23/11/2005