Class JC_JobBillingDetail_Bus

Properties

LOCAL cIsSysDB=0  

System file identifier

LOCAL cMainTable$  
Table maintained by business object
PROPERTY CostMask$   * Read Only *
Mask for Cost retrieved from CI Options
PROPERTY PriceMask$   * Read Only *
Mask for Price retrieved from CI Options
PROPERTY QtyMask$   * Read Only *
Mask for Quantity retrieved from CI Options
PROPERTY ReturnToField$   * Read Only *
Return to field name for errored out field
PROPERTY Header   * Read Only *
Handle to the header business object, used by sales tax calculation

Methods

FUNCTION AddIn()  

Adds in information from a detail line into the header

Returns [boolean] True if successful, false if failure
FUNCTION AddLine()  

Sets line key for a new line

Returns [boolean] True if successful, false if failure
FUNCTION BackOut()  

Backs out information from a detail line from the header

Returns [boolean] True if successful, false if failure
FUNCTION ClearSetFiles()  

Override of the ClearSetFiles() in SY_MaintSet class. This is overridden to create the mirror memory table with the filtered data. See cSortFH

Returns [boolean]
ValueDescription
retSUCCESS (1) If memory files for use in set mode, and the mirror memory table for this class created correctly.
retFAILURE (0) If files not created properly.
FUNCTION CreateTMLines(Job$)  

Creates billing detail lines for job of time and material billing method

ParameterDescription
Job$ [input, string] Job number
Returns [boolean] True if successful, false if failure
FUNCTION GetBatchTotalVars(vars$)  
FUNCTION GetBatchTotalVars(vars$, reverse)  

Gets batch totals

ParameterDescription
vars$ [output, string] string of total values
reverse {optional} [input, string] true if need to reverse
Returns [boolean] Always returns success
FUNCTION InitWorkTable()  

Initializes work table for grid

Returns [boolean] True if successful, false if failure
FUNCTION InsertLine(insertPoint$)  

Generates a new LineSeqNo and create a new line ready for editting

ParameterDescription
insertPoint$ [input, string] This should contain the key value for the row to have a new key generated BEFORE it.
Returns [boolean] True if successful, false if failure
FUNCTION ResetRow(lineKey$)  

Resets row data from physical file

ParameterDescription
lineKey$ [input, string] row key value
Returns [boolean] Always returns success
FUNCTION SetChildColl()  

Sets up Child Collections for class

Returns [boolean] Always returns success
FUNCTION SetHeader(hdr$)  

Sets header record

ParameterDescription
hdr$ [input, string] header key
Returns [boolean] True if successful, false if failure
FUNCTION ValidateGroupARSalespersonReporting()  

Group validation: ARSalespersonReporting

Returns [boolean] Success if SalespersonCommRpting$ set to isYES$ in A/R Options, otherwise failure
FUNCTION ValidateGroupARSalesTax()  

Group validation: ARSalesTax

Returns [boolean] Success if SalesTaxReporting$ set to isYES$ in A/R Options, otherwise failure
FUNCTION ValidateGroupNotCharge()  

Group validation: NotCharge

Returns [boolean] Success if LineType is not set to lineTypeCharge$ (2), otherwise failure
FUNCTION ValidateGroupNotComment()  

Group validation: NotComment

Returns [boolean] Success if ItemType is not Comment, otherwise failure
FUNCTION ValidateLines()  

Validates all detail lines when committing entries

Returns [boolean] True if successful, false if failure

Methods inherited from: CI_Account_val

ClassOverrideAccount(), ClassValidateAccount(), ResetAccountIndex()

Methods inherited from: JC_CommonEntryDetail

ResetCostCodeType(), RowReset(), ValidateGroupCostCodeRequired(), ValidateGroupCostTypeRequired(), ValidateGroupCostTypeSubcontractor(), ValidateGroupJobNo(), ColumnOverrideAdditionalUnitsCompleted(), ColumnOverrideTransactionUnits(), ColumnOverrideUnbilledCost(), ColumnOverrideUnbilledUnits(), ColumnOverrideUnitCost(), ColumnOverrideUnitPrice(), GenerateFormatMask$(), ProgressMeter(), ReadRec(), SetChildColl(), SetJobInformation(), ValidateAccumulateLines(), ValidateAPDivisionNo(), ValidateCostCode(), ValidateCostType(), ValidateVendorNo()

Methods inherited from: SY_SalesTaxClass_val

ClassValidateTaxClass()