Class BM_BillOption_bus

Properties

LOCAL cMainTable$="BM_BillOptionHeader"  
LOCAL cIsSysDB=isFALSE  
LOCAL cCopyFromRec$  
LOCAL cCopyFromIOL$=CPL("IOLIST cCopyOptionCategory$, cCopyOptionCategoryDesc$, cCopyBillOption$, "+"cCopyBillOptionDesc$, cCopyEffectiveDate$")  
LOCAL cGetCopyFromIOL$=CPL("IOLIST cCopyBillNo$, cCopyRevision$, cCopyBillDesc$, cCopyOptionCategory$, "+"cCopyOptionCategoryDesc$, cCopyBillOption$, cCopyBillOptionDesc$, cCopyEffectiveDate$")  
LOCAL cSetDefaultsSrcIOL$=CPL("IOLIST BillDesc1$, BillDesc2$, DrawingNo$, DrawingRevision$, DateLastUsed$, "+"MaximumLotSize, YieldPercent")  
LOCAL cSetDefaultsDstIOL$=CPL("IOLIST OptionDesc1$, OptionDesc2$, DrawingNo$, DrawingRevision$, DateLastUsed$, "+"MaximumLotSize, YieldPercent")  
PROPERTY BillOptionFH=cBMBillOptionHeaderWorkFH  
PROPERTY CopyBillOptionFH  
PROPERTY BM_AllowEntryOfNegativeQty$  
PROPERTY BM_AllowPhantomBills$  
PROPERTY BM_AllowScrapYieldPercentFactors$  
PROPERTY BM_AllowDuplicateComponents$=isNO$  
PROPERTY BM_EnableEngineeringChangeControl$  
PROPERTY BM_RequireBillRevisions$  
PROPERTY BM_UseOptionBills$  
PROPERTY CurrentBillType$  
PROPERTY PMIntegrated  

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

PROPERTY PrecisionCost  
PROPERTY PrecisionQty  
PROPERTY PriceMask$   * Read Only *
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 options for the current bill for required work ticket step numbers.

Returns [boolean]

True - One or more bill options are missing a required step number. False - All bill options 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 SetCopyBillOption(tmpBillOption$)  
FUNCTION SetCopyEffectiveDate(tmpEffectiveDate$)  
FUNCTION SetCopyOptionCategory(tmpOptionCategory$)  
FUNCTION SetCopyRevision(tmpRevision$)  
FUNCTION SetStepInfo(setOpt$)  

Function reads through current bill options 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 bill options 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 options. 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: CI_Template_val

ClassValidateTemplate()

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