Class BM_BillDetail_bus

Properties

LOCAL cMainTable$="BM_BillDetail"  
LOCAL cIsSysDB=isFALSE  

Methods

FUNCTION CanEnterSteps(template$, templateRev$)  

Function to determine whether steps are allowed to be entered for the given template & revision

ParameterDescription
template$ [input, string] Template number to use to determine if steps are allowed.to be entered.
templateRev$ [input, string] Template Revision number to use to determine if steps are allowed to be entered.
Returns [return boolean]
ValueDescription
isTRUE if the work ticket class associated with the template/revision has the allow entry of steps checked.
isFALSE if the work ticket class associated with the template/rivision does not allow entry of steps or invalid template/revision
FUNCTION IsMissingSteps(lineErrorText$)  

Function will check all lines to see if any required steps are missing. If missing any steps, then the method will return True, and an error message returned in the lineErrorText$ argument.

ParameterDescription
lineErrorText$ [output, string] If any line or lines are missing required steps, an error message will be returned in this argument.
Returns [boolean]
ValueDescription
True - if any lines are missing a work ticket step number, where it is required
False - if all lines have the required steps
FUNCTION MissingWorkTicketSteps(action$)  

Function takes action on the local propert cPMWorkTicketStepsMissing. If action = CHECK then the value of the cPMWorkTicketStepsMissing will be returned. If action = RESET then the cPMWorkTicktStepsMissing flag will be reset to False.

ParameterDescription
action$ [string, input] action to perform. Valid values are CHECK and RESET. CHECK, will return cPMWorkTicketStepsMissing
Returns [numeric]
ValueDescription
1 Is returned if action=RESET, meaning flag was reset. 1 is also returned if action=CHECK and there were missing steps
0 Is returned if action=CHECK and there were no missing steps
-1 Is returned if action is not a valid value.
FUNCTION RemoveMiscDetail()  
FUNCTION SetStepInfo(setOpt$)  

Function reads through current detail memory table and sets the work ticket step number based on the set option. If set option="X" then step will be cleared if set option="D" then the default step 000000 will be set for all lines. If set option="R" then will only replace the work ticket steps that are blank with the default step 000000. This is used when a template is changed or cleared.

ParameterDescription
setOpt$ [input, string] One character flag to indicate to set step zero as a default (D) or clear the step value (X) for the component. lines. (R) is used to replace only missing steps the the default 000000 step. The defaulting will only take place if the Main Bill has a new template number.
Returns Always returns retSUCCESS(1)
FUNCTION ValidateGroupPMIntegrated()  

Function used by grid logic to hide/show the production management fields in the PMIntegrated group. These columns will be hidden if the coHeader'PMIntegrated flag is false

Returns [boolean]
ValueDescription
TRUE if Production Management is integrated with Bill of Materials
FALSE if Production Management is not integrated with B/M or not setup for the current company.

Properties inherited from: BM_BillCommonDetail

cMiscItemSrcIOL$, cMiscItemDstIOL$, cItemTypes$, cAllowPhantom, cAllowEngineering, cAllowInactive, cAllowAliasItems, ExtendedDescriptionKey$, ItemCodeNOF

Methods inherited from: BM_BillCommonDetail

CheckForExtendedDescription(), GetContext$(), GetContextSourceTables$(), GetExtendedDescription(), InitWorkTable(), ItemCodeCollectionAdd(), ItemCodeCollectionDelete(), ItemCodeCollectionFind(), SetHeader(), SetHeaderInfo(), UpdateEngineeringChange(), ValidateGroupBillRevisions(), ValidateGroupEngineeringChangeControl(), ValidateGroupScrapYield(), AddIn(), BackOut(), ColumnOverrideQuantityPerBill(), ColumnOverrideStandardUnitCost(), GenerateFormatMask$(), PERFORM GetBillInfo(), PERFORM GetComponentItemCodeInfo(), SetCurrentKey(), ValidateBillNo(), ValidateComponentItemCode(), ValidateComponentRevision(), ValidateEngineeringDrawingFindNo(), ValidateGroupItemRequired(), ValidateGroupNotCharge(), ValidateGroupNotComment(), ValidateGroupNotItem(), ValidateMiscChargeGLAcctKey(), ValidateQuantityPerBill(), ValidateRevision(), ValidateScrapPercent(), WriteWorkTable()