Class PM_EarningsCode_bus

Properties

LOCAL cMainTable$="PM_EarningsCode"  

[string] Main table name

LOCAL cIsSysDB=isFALSE  

[boolean] Is the main table a system table?

PROPERTY IntegratePR$   * Read Only *

[string] P/M setup option 'Integrate with Payroll'

PROPERTY PermanentEarningsCodes$   * Read Only *

[string] SEP seperated list of predefined earnings codes.

PROPERTY PMDataEntryInProcess   * Read Only *

[boolean] Set to true if production management labor entry is in process

PROPERTY PMEarningsTypes$=earnTypeREGULAR$+earnTypeOVERTIME$+earnTypeTIMEOFF1$+earnTypeTIMEOFF2$+earnTypeMISC$  

[string] Valid earnings types when Production Management is not integrated with Payroll

Methods

FUNCTION ConfirmDelete()  

Verifies earnings code not active and can be deleted

Returns [boolean] true if earnings code can be deleted, false if earnings code is in use
FUNCTION Delete(key$)  
FUNCTION Delete(key$, forceDelete)  

Deletes an earnings code

ParameterDescription
key$ [input, string] earnings code to delete
forceDelete {optional} [input, boolean] if true, delete earnings code ignoring the Integrate Payroll setup option
Returns [boolean] retSUCCESS(1) if earnings code is successfully deleted, retFAILURE(0) if earnings code cannot be deleted
FUNCTION FixPayrollEarningsTypes()  

Changes Payroll earnings types to 'Miscellaneous' in all records (used when Integration with Payroll is turned off)

Returns [boolean] retSUCCESS(1)
FUNCTION PayrollEarningsTypesExist(types$, typeDesc$)  

Checks if earnings types from Payroll exist (used when Integration with Payroll is turned off)

ParameterDescription
types$ [output, string] earnings types found
typeDesc$ [output, string] earnings type descriptions
Returns [boolean] isTRUE(1) or isFALSE(0)
FUNCTION SetCurrentKey(key$)  

Sets key in current record

ParameterDescription
key$ [input, string] earnings code
Returns [boolean] retSUCCESS(1) or retFAILURE(0)
FUNCTION SynchClear()  

Synchronization Function to clear the contents of the earnings code table.

Returns Always returns retSUCCESS(1)
FUNCTION SynchData()  
FUNCTION SynchData(earnCode$)  

Synchronization Function to copy earnings code records from the Payroll Earnings Code table to the Production Management Earnings Code table. param earnCode$ {optional}[string, input] earnings code to copy from payroll

Returns Always returns retSUCCESS(1)
FUNCTION Write()  

Writes record

Returns [boolean] retSUCCESS(1) or retFAILURE(0)

Properties inherited from: PM_Constant

actClassEMPLOYEE$, actClassGENERAL$, actClassMACHINE$, actClassOUTSIDESVC$, capTimeNO$, capTimeNOEDIT$, capTimeYES$, earnTypeALLOCTIPS$, earnTypeEXCLUDETIPCALC$, earnTypeEXEMPTTIPS$, earnTypeFRINGE$, earnTypeMISC$, earnTypeOVERTIME$, earnTypeREGULAR$, earnTypeTAXABLETIPS$, earnTypeTIMEOFF1$, earnTypeTIMEOFF2$, earnTypeTIMEOFF3$, cAllEarningsTypes$, earnMethodADDAMOUNT$, earnMethodFIXED$, earnMethodSTANDARD$, cAllEarnMethods$, lttLABOR$, lttCREW$, lttMISC$, lttINOUT$, lttCOST$, dpcSTANDARD$, dpcAVERAGE$, dpcLAST$, overheadTypeAMOUNT$, overheadTypePERCENT$, prtPickNONE$, prtPickBYWHSE$, prtPickBYTICK$, tcmCodeACTUAL$, tcmCodeBUDGET$, tcmCodeSTANDARD$, tcmCodeLOWER$, tcmDescACTUAL$, tcmDescBUDGET$, tcmDescSTANDARD$, tcmDescLOWER$, trnLABOR$, trnMATERIALS$, trnCLOSE$, trnCOMPLETION$, trcSTATUS$, trcLABOR$, trcINVENTORY$, trcDIRECTCHARGE$, trcINVOICE$, trcCLOSE$, trcSCRAP$, udiSTRING$, udiNUMBER$, udiYESNO$, udiCODE$, udiDATE$, mftCodeSALESORDER$, mftCodeSALESORDERLINE$, mftCodeWORKTICKET$, mftCodeINVENTORY$, mftDescSALESORDER$, mftDescSALESORDERLINE$, mftDescWORKTICKET$, mftDescINVENTORY$, wtsOPEN$, wtsQUOTE$, wtsRELEASED$, wtsCLOSED$, wtsDELETED$, lbrIssMethodAUTOISSUE$, lbrIssMethodBACKFLUSH$, lbrIssMethodMANUAL$, matIssMethodAUTOISSUE$, matIssMethodBACKFLUSH$, matIssMethodMANUAL$, prtWORKTICKET$, prtOPERATIONTICKET$, prtCOMPLETEMISSINGCOST$, prtCOMPLETEVARFROMSTD$, prtCLOSEMISSINGCOST$, prtCLOSEVARFROMSTD$, prtCLOSECOSTLEDGER$, prtPICKSHEET$, drtBACKOUT$, drtADDIN$, drsNEW$, drsUPDATED$, drsCOMPLETED$, schFIXED$, schACTSPERHOUR$, schHOURSPERACT$, scaleNOSCALING$, scalePRODUCTIONRUN$, scalePARENTSPERTEMPLATE$, scaleTEMPLATESPERPARENT$, stepZERO$, dfltClosureWorkCenter$

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$

Methods inherited from: PM_Constant

BuildAlternateIOL$(), BuildMemoryFile(), ConvertCalendarToJulian(), ConvertJulianToCalendar$(), FormatTime$(), HHMMToMinutes(), HHMMToNum(), LoadCustomLabelConstants(), NumToHHMM$(), TimeToHHMM()

Methods inherited from: SY_FunctionHook

PostTableRead(), PreNextRecord(), PreTableWrite()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()