Class BM_Bill_bus

Properties

LOCAL cMainTable$="BM_BillHeader"  
LOCAL cIsSysDB=isFALSE  
LOCAL cOptionInteractionKeyIOL$=CPL("IOLIST BillOption1$, BillOption2$, BillOption3$, BillOption4$, "+"BillOption5$, BillOption6$, BillOption7$, BillOption8$, BillOption9$")  
LOCAL cCopyFromRec$  
LOCAL cCopyFromIOL$=CPL("IOLIST cCopyBillNo$, cCopyRevision$, cCopyBillDesc$, "+"cCopyAllOptionCategories$, cCopyOptionCategory$, cCopyOptionCategoryDesc$, "+"cCopyAllBillOptions$, cCopyBillOption$, cCopyBillOptionDesc$, cCopyEffectiveDate$")  
PROPERTY BillNoNOF   * Read Only *
PROPERTY BillOptionBusObj   * Read Only *
PROPERTY BillWhereUsedBusObj   * Read Only *
PROPERTY BM_RequireBillRevisions$   * Read Only *
PROPERTY BM_UseOptionBills$   * Read Only *
PROPERTY BM_EnableEngineeringChangeControl$   * Read Only *
PROPERTY BM_AllowKitBills$   * Read Only *
PROPERTY BM_AllowEntryOfNegativeQty$   * Read Only *
PROPERTY BM_AllowPhantomBills$   * Read Only *
PROPERTY BM_AllowScrapYieldPercentFactors$   * Read Only *
PROPERTY BM_AllowDuplicateComponents$   * Read Only *
PROPERTY CurrentRevision$=cCurrentBillRevision$  
PROPERTY CurrentBillType$=BillType$  
PROPERTY ItemCodeNOF  
PROPERTY ItemProductType$   * Read Only *
PROPERTY MultipleRevisionsExist   * Read Only *
PROPERTY OptionCategoryBusObj   * Read Only *
PROPERTY OldBillType$=cCurrentBillType$  
PROPERTY OptionIntBusObj   * Read Only *
PROPERTY OptionInteractionsExist  
PROPERTY PMIntegrated   * Read Only *

[boolean] Flag to indicate that Production Management is Integrated with Bill of Materials.

PROPERTY PrecisionCost   * Read Only *
PROPERTY PrecisionQty   * Read Only *
PROPERTY RecordChanged   * Read Only *
PROPERTY ValidBillTypes$  
PROPERTY WOIntegrated   * Read Only *
PROPERTY SyncItemDescription  

When true, following a successful Write() in WriteRec() changes made to bill description will be sync'd to IM item code description, if before the change the item description was the same as bill description.

PROPERTY PostWriteError$   * Read Only *

Stores LastErrorMsg$ set when a post write exception has occurred following a successful write of the main record.

Methods

FUNCTION BillOptionsExist()  
FUNCTION BillOptionsExist(tmpOptionCategory$)  
FUNCTION BillOptionsExist(tmpOptionCategory$, tmpBillOption$)  
FUNCTION CLEAR()  
FUNCTION ClearCopyFrom()  
FUNCTION ConfirmDelete()  
FUNCTION ConfirmDelete(fromUtil)  
FUNCTION ConfirmDelete(fromUtil, bill$)  
FUNCTION CopyFrom()  
FUNCTION Delete(key$)  
FUNCTION Delete(key$, fromUtil)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetCopyFrom(tmpRec$)  
FUNCTION IsMissingSteps()  

Function will check for required work ticket steps in detail component lines, option records, and option interaction records.

Returns [boolean]
ValueDescription
True - Step records are missing from either detail lines, option records, or option interaction records. See LastErrorMsg$ for more info.
False - All required step records are entered.
FUNCTION SetCopyAllBillOptions(tmpAllBillOptions$)  
FUNCTION SetCopyAllOptionCategories(tmpAllOptionCategories$)  
FUNCTION SetCopyBillNo(tmpBillNo$, tmpBillHasOptions$)  
FUNCTION SetCopyBillOption(tmpBillOption$)  
FUNCTION SetCopyEffectiveDate(tmpEffectiveDate$)  
FUNCTION SetCopyOptionCategory(tmpOptionCategory$)  
FUNCTION SetCopyRevision(tmpRevision$, tmpBillHasOptions$)  
FUNCTION SetStepInfo(setOpt$)  

Function will set step information on the component lines, option header, and option interaction header records associated with the current bill. If set option="D" then the default step 000000 will be set for all component lines, options, and option interactions . This is used when a template is cleared in the head of the bill or if that template is changed to a new value.

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.
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_Bill_val

ValidBillTypes$, RequireItemOnFile

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_Bill_val

ClassValidateBillNo(), ClassValidateRevision(), PERFORM SetValidBillTypesMessage()

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