Class JC_Job_svc

Inherits

SY_Service

Properties

LOCAL cMainTable$="JC_Job"  

Table maintained by business object

LOCAL cIsSysDB=isFALSE  
System file identifier
PROPERTY CheckCustomerMatch  
Flag for checking customer match
PROPERTY CurrentCustomerNo$  
Current customer number

Methods

FUNCTION CheckContractorUsed(tmpContractorNo$)  

Logic to check if a contractor is used as either prime contactor or awarding contractor on a job

ParameterDescription
acctmethod$ {optional} [input, string] accounting method
Returns [boolean] True if contractor is used, false if contractor not used
FUNCTION GetJobTypeAccts(job$, rev$, defRev$)  
FUNCTION GetJobTypeAccts(job$, rev$, defRev$, costType$, wip$, cos$)  
FUNCTION GetJobTypeAccts(job$, rev$, defRev$, costType$, wip$, cos$, jtype$, acctMethod$)  
FUNCTION GetJobTypeAccts(job$, rev$, defRev$, costType$, wip$, cos$, jtype$, acctMethod$, billMethod$)  

Logic to get accounts from job type set up

ParameterDescription
job$ [input, string] value of job nubmer
rev$ [output, string] revenue account
defRev$ [output, string] deferred revenue account
costType$ {optional} [input, string] cost type
wip$ {optional} [output, string] work in process account for the cost type
cos$ {optional} [output, string] cost of goods sold account for the cost type
jtype$ {optional} [input, string] job type passed in
acctMethod$ {optional} [output, string] when null submitted, returns job type accounting method to use defaulting accounts when Job OTF applies
billMethod$ {optional} [output, string] when null submitted, returns job type billing method to use defaulting accounts when Job OTF applies
Returns [boolean] True if successful, false if not successful
FUNCTION ResetJobNo()  

Sets job number to null

Returns [boolean] always true
FUNCTION ValidateJobCustomer()  

Logic to validate current customer with job customer

Returns [boolean] True if successful, false if not successful

Properties inherited from: SY_Service

BOF, CurrentBrowseIndex$, CurrentIndex$, EOF, SecurityAccess

Methods inherited from: SY_Service

BindVariable(), CheckMainTable(), Clear(), Find(), FindById(), GetChildHandle(), GetChildKeyReference$(), GetColumns$(), GetDataSources$(), GetDataSourcesAddl$(), GetJson$(), GetKey$(), GetKeyColumns$(), GetKeyPadded$(), GetPartialRecord(), GetRecord(), GetRecordCount(), GetRecordEx(), GetResultSets(), GetTable$(), GetTablePath$(), GetValue(), GetValues(), IsValid(), MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), ReadAdditional(), SetBrowseFilter(), SetBrowseIndex(), SetCacheMode(), SetIndex(), SetKeyValue(), SetParentColumns(), SetParentHandle(), SetUIHandle(), PERFORM ClearEditRcd(), FormatJson$(), GetAddlDataSources(), GetDateColumns$(), InitChildCollection(), MoveFirstLast(), MoveNextPrevious(), OpenMainTable(), ParseKeyDef(), PrepareKeyDef(), ReadRec(), ResolveColumnList$(), SetControls(), SetCurrentKey(), UseKeyColl()