Class BM_OptionInteraction_bus

Properties

LOCAL cMainTable$="BM_OptionInteractionHeader"  
LOCAL cIsSysDB=isFALSE  
LOCAL cCopyFromIOL$=CPL("IOLIST cCopyBillOption1$, cCopyBillOption2$, cCopyBillOption3$, cCopyBillOption4$, "+"cCopyBillOption5$, cCopyBillOption6$, cCopyBillOption7$, cCopyBillOption8$, cCopyBillOption9$")  
LOCAL cGetCopyFromIOL$=CPL("IOLIST cCopyBillNo$, cCopyRevision$, cCopyBillDesc$, tmpCopyOptionCodes$")  
PROPERTY CopyBillOptionFH  
PROPERTY BM_AllowDuplicateComponents$=isNO$  
PROPERTY BM_AllowEntryOfNegativeQty$=isYES$  
PROPERTY BM_AllowPhantomBills$=isNO$  
PROPERTY BM_AllowScrapYieldPercentFactors$  
PROPERTY BM_EnableEngineeringChangeControl$  
PROPERTY BM_RequireBillRevisions$  
PROPERTY CurrentBillType$  
PROPERTY PMIntegrated  

[boolean] Flag to indicate that production management is installed and integrated with bill of materials

PROPERTY PrecisionCost  
PROPERTY PrecisionQty  
PROPERTY RecordsChanged  
PROPERTY WOIntegrated  

Methods

FUNCTION ClearCopyFrom()  
FUNCTION CopyFrom()  
FUNCTION Delete(key$)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetCopyFrom(tmpRec$)  
FUNCTION IsMissingSteps()  

Function will test all option interactions for the current bill for required work ticket step numbers.

Returns [boolean]

True - One or more bill option interactions are missing a required step number. False - All bill options interactions have the required step numbers.

FUNCTION SetBillHeaderInfo(bill$, billRev$, routing$)  
FUNCTION SetBillHeaderInfo(bill$, billRev$, routing$, template$, templateRev$)  

Function used to push bill header information into the options business object.

ParameterDescription
bill$ [input, string] Current bill number from header
billRev$ [input, string] Current bill revision number from header
routing$ [input, string] Current bill routing number from header
template$ [input, string] {optional} Current bill template number from header (Production Management)
templateRev$ [input, string] {optional} Current bill template revision number from header (Production Management)
Returns Always returns retSUCCESS(1)
FUNCTION SetCopyBillNo(tmpBillNo$)  
FUNCTION SetCopyOptionCodes(tmpOptionCodes$)  
FUNCTION SetCopyRevision(tmpRevision$)  
FUNCTION SetStepInfo(setOpt$)  

Function reads through current option interaction 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 option interactions associated with the current bill. Option="R" will only replace the work ticket steps that are blank with the default step 000000. This is used when a template is cleared or changed from the header.

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

Properties inherited from: BM_Constant

billTypeSTANDARD$, billTypeKIT$, billTypeINACTIVE$, billTypePHANTOM$, billTypeENGINEERING$, billTypeMRP$, disTypePRODUCED$, disTypePURCHASED$, disTypeREVERSAL$, billCATEGORYNUM

Properties inherited from: CI_Constant

itmREGULAR$, itmSPECIAL$, itmCHARGE$, itmCOMMENT$, itmMISC$, valSTANDARD$, valAVERAGE$, valFIFO$, valLIFO$, valLOT$, valSERIAL$, typFINISHEDGOODS$, typRAWMATERIALS$, typDISCONTINUED$, typKIT$, proMAKE$, proBUY$, proSUBCONTRACT$, proMAKETOORDER$, proBUYTOORDER$, tierFIFO$, tierLIFO$, tierLOT$, tierSERIAL$, upceanTYPENONE$, upceanTYPEOTHER$

Properties inherited from: SY_Customization

cDummyIol$

Properties inherited from: SY_LineEntryHeader_bus

BatchEnabled, Lines, ScriptPreTotalsDone

Methods inherited from: CI_Constant

GetCalendarEndingDate(), GetDefaultExtendedDescriptionKey$(), UPCEANCheckDigit(), UPCEANFetch(), UPCEANUpdate()

Methods inherited from: SY_Customization

GetCustomizations(), PostTableRead(), PreNextRecord(), PreTableWrite()

Methods inherited from: SY_LineEntryHeader_bus

ActivityLogOverride(), ActivityLogPrepare(), AddLine(), AFMapTotalColumns(), CLEAR(), CommitLines(), DELETE(), Delete(), DeleteLine(), EditLine(), InsertLine(), MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), ResetLine(), ScriptPreTotals(), SetCurrentKey(), SetHeader(), Write(), WriteLine(), ActivityLogCreateFile(), ActivityLogWasLineRenumbered(), ClearLastRecord()