|
CI_APDivision_val, CI_Constant, CI_ItemCode_val, CI_ItemWarehouse, CI_UnitOfMeasure_val, CI_VendorNo_val, CI_Warehouse_val, PM_Constant, SY_Customization, SY_LineEntryTierDetail |
| LOCAL cMainTable$="PM_WorkTicketDetail" |
[string] Main table for class |
| LOCAL cIsSysDB=isFALSE |
[boolean] True/False flag denoting whether the main table is a system table |
| LOCAL cNoUpdateUI=-1 |
[integer] Flag to not update into UI record when setting a partial record in the copy from process |
| LOCAL billCATEGORYNUM=9 |
[integer] Constant value indicating the maximum number of bill option categories |
| LOCAL cImportFieldDelim$=", " |
[string] Import Field Delimiter |
| LOCAL cDistDstIOList$=CPL("IOLIST WorkTicketKey$, LineKey$, ItemCode$, WarehouseCode$, Valuation$, UnitOfMeasureConvFactor, QuantityRequired, DetailBus, cLotSerRefDate$, cLotSerTransType") |
| LOCAL cDistSrcIOList$=CPL("IOLIST WorkTicketKey$, LineKey$, ItemCode$, WarehouseCode$, Valuation$, UnitOfMeasureConvFactor, QuantityRequired, _OBJ, cLotSerRefDate$, cLotSerTransType") |
| LOCAL cDistObject$="PM_WorkTicketTierDistribution_bus" |
| LOCAL cDistQtyVar$="QuantityIssued" |
| LOCAL cLotSerTransType |
| LOCAL cPerformVendorStatusChecking |
| PROPERTY InAutoIssue |
[boolean] True/False flag for whether processing is being done as part of auto issue of materials |
| PROPERTY InScaling |
[boolean] True/False flag for whether processing is being done as part of scaling the materials. When changes are made to QuantityRequired/BaseQuantity the QuantityPerParent will not be changed. |
| PROPERTY ItemValuation$ * Read Only * |
[string] Item Valuation of current item code |
| PROPERTY MaterialsListFH * Read Only * |
[filehandle] File handle to a *memory* table that contains a list of materials for current work ticket |
| PROPERTY BudgetCost * Read Only * |
[numeric] Budget Cost of materials |
| PROPERTY SourceQuantity |
[numeric] Source Quantity from work ticket being copied from |
| PROPERTY UseActualQuantityIssued |
[boolean] True/False Use Actual Quantity Issued when copying materials |
| PROPERTY ExtensionQtyCol$="ExtensionAmt" |
[string] List of Extension Quantity Columns used by Item Code UI validation logic |
| FUNCTION AddInMaterial(stepLineKey$, data$, IOList$) | ||||||||||||||||||
Add In Material information for calculating totals | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CalculateCost() | ||||||||||||||||||
Calculate Cost for item code | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CalculateQtyAvailable() | ||||||||||||||||||
| FUNCTION CalculateQtyAvailable(stdQtyAvail) | ||||||||||||||||||
| FUNCTION CalculateQtyAvailable(stdQtyAvail, stdUM$) | ||||||||||||||||||
Calculate Quantity Available | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CommitRow() | ||||||||||||||||||
Overrides base class function from SY_LineEntryTierDetail. This is done to add logic to handle dynamic inventory | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CopyBillDetail(tmpBillNo$, tmpBillRevNo$, tmpBillOptions$, tmpExplodeSubassemblies$) | ||||||||||||||||||
| FUNCTION CopyBillDetail(tmpBillNo$, tmpBillRevNo$, tmpBillOptions$, tmpExplodeSubassemblies$, destStepLineKey$, qtyBasis) | ||||||||||||||||||
Copy Bill Detail. Arguments for this method should match the current values of the fields in the work ticket header. | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CopyTemplateMaterials(tempNo$, tempRevNo$, tempStepNo$, pmMaterialsScale, templateScalingMethod$, templateScale$, templateBudgetCalc$, destStepLineKey$) | ||||||||||||||||||
Copy Template Materials | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CopyWorkTicketHistoryMaterials(srcWorkTicketKey$, stepLKey$, copyToStepLineKey$) | ||||||||||||||||||
| FUNCTION CopyWorkTicketHistoryMaterials(srcWorkTicketKey$, stepLKey$, copyToStepLineKey$, qtyBasis) | ||||||||||||||||||
Copy Work Ticket Materials from a source work ticket and step in history into current work ticket | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION CopyWorkTicketMaterials(srcWorkTicketKey$, stepLKey$, copyToStepLineKey$) | ||||||||||||||||||
| FUNCTION CopyWorkTicketMaterials(srcWorkTicketKey$, stepLKey$, copyToStepLineKey$, qtyBasis) | ||||||||||||||||||
Copy Work Ticket Materials from a source work ticket and step into current work ticket | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION DeleteLine(key$) | ||||||||||||||||||
Delete Line | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION GetContext$(destTable$) | ||||||||||||||||||
Get the contexts available for a table | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION GetContextSourceTables$(context$) | ||||||||||||||||||
Get the source table for a context | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION GetHeaderFields() | ||||||||||||||||||
Get Work Ticket header information for current work ticket | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION ImportFile(file$, destStepLineKey$, qtyBasis) | ||||||||||||||||||
Import Materials from an external file | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION IssuedMaterialsExist() | ||||||||||||||||||
Method to determine if issued materials exist for detail line | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION PrepareMaterialsList() | ||||||||||||||||||
Prepare list of materials for the current work ticket. Property MaterialsListFH is a filehandle to a *memory* table containing records. | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION RecalcMaterialsCost(stepLineKeyFilter$) | ||||||||||||||||||
Recalculate Materials Cost for a step | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION ReleaseLines() | ||||||||||||||||||
Release Lines, committing quantities required for each item and warehouse on the work ticket | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION RemoveMaterialsFromStep(stepLineKey$, newStepLKey$) | ||||||||||||||||||
Remove Materials From Step, when deleting a step remove all detail lines assigned to that step | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION ResetLine(lineKey$) | ||||||||||||||||||
Function overridden from SY_LineEntryDetail_bus, overridden to delete dynamic materials work file records when a row is reset | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION ResetMaterialsForSteps(tmpOldSteps$, tmpNewSteps$) | ||||||||||||||||||
Reset Materials For Steps, when resetting all rows on the Steps folder this method resets the material detail assigned to those steps For deleted steps, the assigned materials will be removed. For deleted steps that were restored by a Reset All, the assigned materials will be restored. | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION SetHeader(header$) | ||||||||||||||||||
Set current header information in the step business object | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION SortLines(stepLineKeyFilter$) | ||||||||||||||||||
Sort Material Lines | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION SummarizeMaterials() | ||||||||||||||||||
Summarize Material Lines by Step by Item Code. Used during the initial creation of step and material detail. | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION UnreleaseLines() | ||||||||||||||||||
Unrelease Lines, backing out quantities required for each item and warehouse on the work ticket | ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION UpdateStepPromiseDate(stepNo$, newPromiseDate$) | ||||||||||||||||||
Update the Step Promise Date on all material records assigned to a specific step | ||||||||||||||||||
| ||||||||||||||||||
| ||||||||||||||||||
| FUNCTION ValidateGroupItemRequired() | ||||||||||||||||||
Validation Group, Is the Item Code field set? returns [boolean] True if integrated, False if not | ||||||||||||||||||
| FUNCTION ValidateGroupItemTypes() | ||||||||||||||||||
Validation Group, Is the item type either regular, special or miscellaneous item? returns [boolean] True if integrated, False if not | ||||||||||||||||||
| FUNCTION ValidateGroupNotComment() | ||||||||||||||||||
Validation Group, Is the item type not a comment? returns [boolean] True if integrated, False if not | ||||||||||||||||||
| FUNCTION ValidateGroupNotNulWarehouseCode() | ||||||||||||||||||
Validation Group, For regular inventory item codes is the warehouse code set? returns [boolean] True if a regular item and the warehouse code is set, False if not | ||||||||||||||||||
| FUNCTION ValidateGroupPurchaseOrder() | ||||||||||||||||||
Validation Group, Is the Purchase Order module integrated with Production Management? returns [boolean] True if integrated, False if not | ||||||||||||||||||
| FUNCTION ValidateLines() | ||||||||||||||||||
Overrides base class method to skip validation in update returns [boolean] True if successful, False if method fails | ||||||||||||||||||
| FUNCTION VerifyPOLinks() | ||||||||||||||||||
Function will scan work ticket detail records for any links to purchase orders and then validate it against the referenced purchase order. If links have been removed or are different on the purchase order side the link references will be removed from the work ticket material line. | ||||||||||||||||||
|
|
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$ |
|
cItemTypes$, cAllowAliasItems, cAliasItemTypes$, cItemCodeDescCol$, cItemTypeCol$, cExtDescKeyCol$, ItemTypes$, AllowAliasItems, AliasItemTypes$, ExtendedDescriptionBusiness, ItemCodeDescCol$, AllowPhantom, AllowEngineering, AllowInactive, InvalidPurchase, IMIntegrated |
|
cPrecisionQty, IM_IsSetup |
|
HoldPayment, SeparateCheck |
|
actClassEMPLOYEE$, actClassGENERAL$, actClassMACHINE$, actClassOUTSIDESVC$, capTimeNO$, capTimeNOEDIT$, capTimeYES$, earnTypeALLOCTIPS$, earnTypeEXCLUDETIPCALC$, earnTypeEXEMPTTIPS$, earnTypeFRINGE$, earnTypeMISC$, earnTypeOVERTIME$, earnTypeREGULAR$, earnTypeTAXABLETIPS$, earnTypeTIMEOFF1$, earnTypeTIMEOFF2$, earnTypeTIMEOFF3$, cAllEarningsTypes$, earnMethodADDAMOUNT$, earnMethodFIXED$, earnMethodSTANDARD$, cAllEarnMethods$, lttLABOR$, lttCREW$, lttMISC$, lttINOUT$, lttCOST$, dpcSTANDARD$, dpcAVERAGE$, dpcLAST$, overheadTypeAMOUNT$, overheadTypePERCENT$, prtPickNONE$, prtPickBYWHSE$, prtPickBYTICK$, tcmCodeACTUAL$, tcmCodeBUDGET$, tcmCodeSTANDARD$, tcmCodeLOWER$, tcmDescACTUAL$, tcmDescBUDGET$, tcmDescSTANDARD$, tcmDescLOWER$, trnLABOR$, trnMATERIALS$, trnCLOSE$, trnCOMPLETION$, trcSTATUS$, trcLABOR$, trcINVENTORY$, trcDIRECTCHARGE$, trcINVOICE$, trcCLOSE$, trcSCRAP$, udiSTRING$, udiNUMBER$, udiYESNO$, udiCODE$, udiDATE$, mftCodeSALESORDER$, mftCodeSALESORDERLINE$, mftCodeWORKTICKET$, mftCodeINVENTORY$, mftDescSALESORDER$, mftDescSALESORDERLINE$, mftDescWORKTICKET$, mftDescINVENTORY$, wtsOPEN$, wtsQUOTE$, wtsRELEASED$, wtsCLOSED$, wtsDELETED$, lbrIssMethodAUTOISSUE$, lbrIssMethodBACKFLUSH$, lbrIssMethodMANUAL$, matIssMethodAUTOISSUE$, matIssMethodBACKFLUSH$, matIssMethodMANUAL$, prtWORKTICKET$, prtOPERATIONTICKET$, prtCOMPLETEMISSINGCOST$, prtCOMPLETEVARFROMSTD$, prtCLOSEMISSINGCOST$, prtCLOSEVARFROMSTD$, prtCLOSECOSTLEDGER$, prtPICKSHEET$, drtBACKOUT$, drtADDIN$, drsNEW$, drsUPDATED$, drsCOMPLETED$, schFIXED$, schACTSPERHOUR$, schHOURSPERACT$, scaleNOSCALING$, scalePRODUCTIONRUN$, scalePARENTSPERTEMPLATE$, scaleTEMPLATESPERPARENT$, stepZERO$, dfltClosureWorkCenter$ |
|
cDummyIol$ |
|
cDistItemCode$, cDistWarehouseCode$, Distribution, DistributionBalanced, DistributionIOL$, DistributionMessage, ResettingAllLines |
|
ClassValidateAPDivision() |
|
GetCalendarEndingDate(), GetDefaultExtendedDescriptionKey$(), UPCEANCheckDigit(), UPCEANFetch(), UPCEANUpdate() |
|
Write(), PERFORM CheckForAlias(), PERFORM CheckUseIn(), CheckValidBill(), ClassOverrideDescription(), ClassOverrideItemCode(), ClassValidateDescription(), ClassValidateItemCode(), ItemTypeSetDefaults(), PERFORM ItemTypeSetDefaults(), UpdateGridExtendedDescKey(), ValidateGroupNotCurrentItemType() |
|
CommitQuantity() |
|
ClassValidateUnitOfMeasure() |
|
ClassValidateVendorNo() |
|
SetAllowInactiveRestrictedWhse(), ClassValidateWarehouse(), GetClassName$() |
|
BuildAlternateIOL$(), BuildMemoryFile(), ConvertCalendarToJulian(), ConvertJulianToCalendar$(), FormatTime$(), HHMMToMinutes(), HHMMToNum(), LoadCustomLabelConstants(), NumToHHMM$(), TimeToHHMM() |
|
GetCustomizations(), PostTableRead(), PreNextRecord(), PreTableWrite() |
|
AddLine(), ClearLine(), ClearSetFiles(), CommitRow(), DeleteLine(), DistributionMissingInfo(), DistributionRequired(), RemoveTiersExpDate(), ResetLine(), SetHeader(), ValidateLines(), WRITE(), ClearLastLine(), DeleteTierLines(), GetMemoryEditKey$(), PostDeleteRec(), PostWriteRec(), ResetRow(), SetCurrentKey(), ValidateAccumulateLines() |
|