Class PM_WorkTicketTierDistribution_bus

Properties

LOCAL cDocument$="WorkTicketKey$"  

[string] Document key vaLue

LOCAL cErrorMsg$=lblWTDESC$+" Key"  

[string] Error message using Custom Field Label Constants

LOCAL cMainTable$="PM_WorkTicketTierDistribution"  

[string] Table name being maintained by this business object.

LOCAL cOrigQuantity$="old.QuantityIssued"  

[string] Variable that contains the original quantity issued variable

LOCAL cQuantity$="QuantityIssued"  

[string] Variable that contains the quantity issued variable

LOCAL cAlreadyCommittedVar$="QuantityIssued"  
PROPERTY Available  

[numeric] Quantity Available

PROPERTY DetailBus  

[object handle] Object handle to the work ticket detail business object

PROPERTY DistQtyUpdated   * Read Only *

[numeric] Distribution Quantity Updated

PROPERTY PM_DynamicMaterials$   * Read Only *

[string] Yes/No flag for Dynamic Materials. Source is PM_Options.

Methods

FUNCTION AddDistributionLine(lotSerial$)  

Overrides base class function from CI_CommonTierDistribution. This is done to add logic to handle purchase order integration

Returns [boolean] True if successful, False if method fails
FUNCTION AddIn()  

Overrides base class function from CI_CommonTierDistribution. This is done to add logic to handle dynamic materials

Returns [boolean] True if successful, False if method fails
FUNCTION BackOut()  

Overrides base class function from CI_CommonTierDistribution. This is done to add logic to handle dynamic materials

Returns [boolean] True if successful, False if method fails
FUNCTION CanExit()  

Method to determine if the tier distribution can be exited

Returns [boolean] True if the distribution can be exited, False if not
FUNCTION CommitRow()  

Commits changes from memory table to physical table

Returns [boolean] rue if successful, False if method fails
FUNCTION GetSerialRecords(startingSerialNo$)  
FUNCTION GetSerialRecords(startingSerialNo$, nextSerialNo$)  
FUNCTION GetSerialRecords(startingSerialNo$, nextSerialNo$, expDate$)  

Overrides base class function from CI_CommonTierDistribution. This is done to add logic to handle dynamic inventory in P/M

ParameterDescription
startingSerialNo$ [input, string] Starting serial number to get
nextSerialNo$ {optional} [output, string] Next serial number after all serial numbers have been assigned
expDate$ {optional} [input, string] Expiration Date to assign to serial numbers
Returns [boolean] True, always returns success
FUNCTION SetCommonInfo(rec$, iol$)  

Sets various local properties based in transaction type.

Returns [boolean] True if successful, False if method fails
FUNCTION SetViewOnly(option)  

Sets security access mode.

Returns [boolean] True, always returns success

Properties inherited from: CI_CommonTierDistribution

cIsSysDB, tierFIFO$, tierLIFO$, tierLOT$, tierSERIAL$, Available, Balance, CommitTierQty, DistReverseQty, DocumentNo$, DocumentType$, FileHasItemWhse, FileHasUOMConvFactor, LineFileChanged, ItemCode$, RequireExpirationDate, TierOnFile, TotalToDistribute, TrackLotSerialExpiration, UnitOfMeasure$, UnitOfMeasureConvFactor, UpdateIMItemCost, WarehouseCode$, QtyColumn$

Properties inherited from: PM_Constant

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$

Methods inherited from: CI_CommonTierDistribution

AccumulateDistQty(), AddDistributionLine(), Addin(), BackOut(), CalcLotSerialDate(), CancelDistribution(), CheckDistributedQuantity(), CheckForDuplicateSerialNumbers(), CheckForMissingExpirationDates(), CheckLotSerDates(), CheckQuantity(), CheckTiersForClearExpDate(), CheckTiersForRecalcExpDate(), CleanUpLine(), ClearLine(), ClearSetFiles(), CommitDistributionRows(), CommitLineDistribution(), CommitRow(), DeleteTierLines(), DistributeNextLot(), EditDistributionLine(), FromCancel(), FromDelete(), FromTierDistributionCancel(), GenerateFormatMask$(), GetColumnLengths(), GetCurrentExpSettings(), GetOrderLineKey(), GetSerialRecords(), IgnoreRequiredExpDate(), IsSerialUsed(), LoadLots(), RecalcBalance(), RecalcExpDates(), RemoveTierLines(), RemoveZeroLots(), ResetBalance(), ResetDistributionLine(), ResetLotSerialDates(), RestoreDefaults(), RowResetAllFromMemFile(), RowResetFromMemFile(), RowResetFromPhysicalFile(), SetCommonInfo(), SetDistributionFilter(), SetFilterValues(), SetUIHandle(), ValidateGroupExpUseRefDate(), ValidateGroupTrackExpiration(), Write(), PostDeleteRec(), PostWriteRec(), ResolveTierKeyLength(), SetCurrentKey(), SetDefaults(), SetDistSecurity(), ValidateDistributionQty(), ValidateItemCode(), ValidateLineKey(), ValidateLotSerialExpirationDate(), ValidateLotSerialNo(), ValidateWarehouseCode()

Methods inherited from: PM_Constant

BuildAlternateIOL$(), BuildMemoryFile(), ConvertCalendarToJulian(), ConvertJulianToCalendar$(), FormatTime$(), HHMMToMinutes(), HHMMToNum(), LoadCustomLabelConstants(), NumToHHMM$(), TimeToHHMM()