rp_workorders::createforcontract

This method creates a new work order for the passed in contract number and date

o.createforcontract( tcContract , tddate as Date, tcWO_Type , tcLevel, tcComment, tcComm_Type)

Return Value

True or False


Parameters

tcContract
The contract number that holds the charge details to use on the work order

tddate
The date to schedule the work order for

tcWO_Type
The work order type to use

tcLevel
The work order level to create the work order at

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 very useful for applications that need to book services based on a
contract number.

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.CreateforContract("OC234234",{01/07/2003},"S","1","Booked by Automoted telephone booking system","G")

This would;
1.	Create a work order of type "S" and level "1" for the account of contract "OC234234"
2.	The schedule date would be the 01/07/2003
3.	Create a work order comment of type "G" and value "Booked by Automoted telephone booking system"
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_workorders


Last Updated: 23/11/2005