rp_utils::cancelscheduledservice

This method creates a cancel work order for a specific scheduled service.

o.cancelscheduledservice( tcContract , tddate, tcWO_Type , tcLevel, tccomment, tccomm_type)

Return Value

True or False


Parameters

tcContract
The contract number

tddate
The date of the service to cancel

tcWO_Type
The work order type to use for the created work order

tcLevel
The work order level to use for the created work order

tcComment
If this is passed in then a work order comment is created with the type specified
by the parameter tcComm_Type

tcComm_Type
The comment type to use when creating additional comment


Remarks

This method is used by things such as service booking systems. It allows these systems to
cancel a scheduled service easily. What the method does is create a work order with the specified
parameters. The run number assigned to the work order is calculated by the system as the run
number for the services in the contract as scheduled on the date provided.

Be careful to set the units correctly on the contract as they are the units
that will be carried to the work order

Example

o.CancelScheduledService("OC234234",{07/07/2003},"S","1","Cancelled by ITRDS","G")

The above would;
1.	Create a work order of type "S" and level "1" on the account that contract "OC234234" belongs, for the 07/07/2003
2.	Place the comment "Cancelled by ITRDS" in a work order comment of type "G"
4.	The run number would be whatever is setup on the contract
5.	All Charges,  Comments and Content setup on the contract will be passed to the work order


See also:

Class rp_utils


Last Updated: 23/11/2005