Class JC_CostCode_svc

Inherits

SY_Service

Properties

LOCAL cMainTable$="JC_CostCode"  

Table maintained by business object

LOCAL cIsSysDB=isFALSE  
System file identifier

Methods

FUNCTION GetCostTypeAccts(costCode$, costType$, expAcct$)  

Gets expense account from cost code detail table

ParameterDescription
costCode$ [input, string] cost code value
costType$ [input, string] cost type value
expAcct$ [output, string] expense account key
Returns [boolean] True for success, False for failure
FUNCTION GetValidCostTypes$(CostCode$)  

Gets valid cost types for specified cost code

ParameterDescription
costCode$ [input, string] Cost Code to lookup
Returns [string] returns valid cost types for costCode$
FUNCTION IsActiveCostCode(job$, costCode$)  

Checks if cost code is active for the job based on option set in J/C options

ParameterDescription
job$ [input, string] job number
costCode$ [input, string] cost code
Returns [boolean] true for active, false for not active

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()