This returns the next N dates which it is possible to schedule a service for the specified contract. This does not exclude dates for which a service is already scheduled
o.getnextnpossibleservicesbycontract( tcContract , tnServices , tddate, tcCursor)
Return Value
The number of services found. Usually the same as tnservices but less if less are scheduled
Parameters
tcContract
The number of the contract which holds the services for which the next possible services
are required
tnServices
The number of next possible services required
tddate
The date from which the method starts looking for the next possible services
tcCursor
The name of the internal cursor used to store the results
Remarks
This function can be used to determine when a service can be booked for a customer for the
services held in a particular contract. Esesentially it retrieves the next service dates for the
run number that the charge in the contract is assigned to. It assumes that there
is only one charge per contract.
The structure of the list returned is as follows;
ChargeID c(10)
route_num c(5)
date Date
Example
o.GetNextNPossibleServicesbyContract("OC234234",12,{01/07/2003},"Possible")
The above would;
1. Retrieve the next 12 dates for the run assigned to the charge in contract "OC234234"
as of the 01/07/2003
2. Place this list in the internal cursor "Possible"
3. Place the list in the collection o.oRows
See also:
Class rp_utils