| LOCAL cIsSysDB=isFALSE |
| LOCAL tierFIFO$="1" |
| LOCAL tierLIFO$="2" |
| LOCAL tierLOT$="3" |
| LOCAL tierSERIAL$="4" |
| PROPERTY Available * Read Only * |
[numeric] Current quantity available for the Lot or SerialNo selected. Comes from IM_ItemCost |
| PROPERTY Balance * Read Only * |
[numeric] Current balance remaining to be distributed. This is used by the UI for display purposes. |
| PROPERTY CommitTierQty |
[boolean] Equivalent to UpdateIMItemCost. Defaults to on, whether to commit quantities to Item Cost table |
| PROPERTY DistReverseQty |
[boolean] To be used instead of DocumentType to determine whether negative quantities should be reflected as positive. |
| PROPERTY DocumentNo$ * Read Only * |
[string] Used to store the value of the document number. This should be equivalent to the line entry detail HeaderKy$ property + current lineKey$ |
| PROPERTY DocumentType$ |
[string] Not to be used in new metaphor. Should use new properties 'DistReverseQuantity' |
| PROPERTY FileHasItemWhse * Read Only * |
[boolean] Flag indicating whether the Tier distribution table has the new Item & Warehouse fields added |
| PROPERTY FileHasUOMConvFactor * Read Only * |
| PROPERTY LineFileChanged * Read Only * |
| PROPERTY ItemCode$ * Read Only * |
[string] Not to be used in new metaphor. ItemCode and WarehouseCode should be in the appropriate data files now. |
| PROPERTY RequireExpirationDate * Read Only * |
[boolean] Flag to indicate the current item requires a lot/serial expiration date to be entered |
| PROPERTY TierOnFile * Read Only * |
[boolean] Flag to indicate that the tier being used exists in the IM_ItemCost table, this is set during the validation of the Lot/Serial No |
| PROPERTY TotalToDistribute * Read Only * |
[numeric] Total quantity to distribute. This will be set by parent class |
| PROPERTY TrackLotSerialExpiration * Read Only * |
[boolean] Flag to indicate the lot/serial expiration dates are being tracked for the current item |
| PROPERTY UnitOfMeasure$ * Read Only * |
[string] Should not have to use these values as properties. |
| PROPERTY UnitOfMeasureConvFactor * Read Only * |
| PROPERTY UpdateIMItemCost * Read Only * |
[boolean] Not to be used in new metaphor. To be replaced by 'CommitTierQty' |
| PROPERTY WarehouseCode$ * Read Only * |
[string] Not to be used in new metaphor. ItemCode and WarehouseCode should be in the appropriate data files now. |
| PROPERTY QtyColumn$ * Read Only * |
[string] Returns the quantity column name. Used by VI in conjunction with SY_LineEntryTierDetail'DistributionIOL$ to allow for the proper loading of tier distribution columns on the Data folder. |
| FUNCTION AccumulateDistQty(tmpDocVar$, tmpLineKey$, tmpQtyVar$) | ||||||||||||
Accumulates the distributed Quantity from tiers for an entry detail line. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION AddDistributionLine(lotSerial$) | ||||||||||||
| FUNCTION AddDistributionLine(lotSerial$, line$) | ||||||||||||
Used to add a new distribution line. This method will do SetKeyValue() with the parts of the key to this table that it knows (Document segments) + LineKey. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION Addin() | ||||||||||||
| FUNCTION BackOut() | ||||||||||||
| FUNCTION CalcLotSerialDate(out.Date$) | ||||||||||||
| FUNCTION CalcLotSerialDate(out.Date$, item$, dateType$, refDate$) | ||||||||||||
Function to calculate Sell-By, Use-By, Return-by display date or to calculate Expiration date for receipt type functions | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION CancelDistribution() | ||||||||||||
| FUNCTION CancelDistribution(retainMemFile) | ||||||||||||
| FUNCTION CheckDistributedQuantity(doc$, lkey$, qty) | ||||||||||||
| FUNCTION CheckForDuplicateSerialNumbers() | ||||||||||||
| FUNCTION CheckForMissingExpirationDates(firstMissing$) | ||||||||||||
Checks through current line distribution for any tiers for an expiration date that is missing that also has a distribution qty. Only returns values if TrackLotSerExpiration is turned on and is required. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION CheckLotSerDates(expDate$, compareDate$, lotSerNo$) | ||||||||||||
Calculates sell-by, use-by, return-by date, using the expiration date and options set for the item. If not using those dates, will use the expiration date of the lot/serial item. It then checks transaction date versus potential sell-by, use-by and return by dates. @prarm expDate$ [input, date] Lot Serial Expiration date to be used in calculation and comparisons | ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION CheckQuantity(doc$, lkey$, qty) | ||||||||||||
| FUNCTION CheckTiersForClearExpDate(linesToClear$) | ||||||||||||
Function determines if there are tiers that exist that need to be cleared in the event the document date has changed. It also returns the line keys that need to be removed. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION CheckTiersForRecalcExpDate() | ||||||||||||
Function will scan through tier distribution work file and determine if there are any expiration dates that were calculated that need to be recalulated due to a document date change. This function will only return whether there are tiers that fit the criteria. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION CleanUpLine() | ||||||||||||
| FUNCTION ClearLine() | ||||||||||||
| FUNCTION ClearSetFiles() | ||||||||||||
| FUNCTION CommitDistributionRows() | ||||||||||||
| FUNCTION CommitLineDistribution() | ||||||||||||
| FUNCTION CommitRow() | ||||||||||||
| FUNCTION DeleteTierLines(value$) | ||||||||||||
| FUNCTION DistributeNextLot(expDate$) | ||||||||||||
Creates distribution record with the next lot number. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION EditDistributionLine(lotSerial$) | ||||||||||||
| FUNCTION EditDistributionLine(lotSerial$, line$) | ||||||||||||
| FUNCTION FromCancel(value) | ||||||||||||
| FUNCTION FromDelete(value) | ||||||||||||
| FUNCTION FromTierDistributionCancel(value) | ||||||||||||
| FUNCTION GenerateFormatMask$(mask$, decimals) | ||||||||||||
| FUNCTION GetColumnLengths(itmLen, whseLen, lotSerLen, docLen, lkLen) | ||||||||||||
| FUNCTION GetCurrentExpSettings(lotSerRefDate$, lotSerRefDateDesc$, lotSerUserAllowChangeDate, lotSerUserAllowOverrideDate) | ||||||||||||
Retrieves current settings for current item and user for lot/serial expiration dates. This public function primarily used by the UI | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION GetOrderLineKey(value$) | ||||||||||||
| FUNCTION GetSerialRecords(startingSerialNo$) | ||||||||||||
| FUNCTION GetSerialRecords(startingSerialNo$, nextSerialNo$) | ||||||||||||
| FUNCTION GetSerialRecords(startingSerialNo$, nextSerialNo$, expDate$) | ||||||||||||
| FUNCTION IgnoreRequiredExpDate(value) | ||||||||||||
Sets internal flag cIgnoreRequiredExpDate for purposes of writing records from a list of records that may be missing this date. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION IsSerialUsed(item$, whse$, serial$, doc$, line$) | ||||||||||||
Checks to see if serial number is currently used else where within the current data entry | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION LoadLots() | ||||||||||||
Loads Lot Tiers from the IM_ItemCost table into the tier memory table with zero for quantity distributed. These will only be lots that have not expired if using lot/serial expiration date feature. | ||||||||||||
| ||||||||||||
| FUNCTION RecalcBalance(value) | ||||||||||||
| FUNCTION RecalcExpDates(newDate$) | ||||||||||||
Function will recalculate any expiration dates based on the new document reference date given. This function to be used in conjunction with the CheckTiersForRecalcExpDate() function. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION RemoveTierLines(document$, line$) | ||||||||||||
| FUNCTION RemoveZeroLots() | ||||||||||||
| FUNCTION ResetBalance() | ||||||||||||
| FUNCTION ResetDistributionLine(line$) | ||||||||||||
| FUNCTION ResetLotSerialDates(resetDate$) | ||||||||||||
This function will reset the LotSerialExpirationDate and Reference Date (Sell-by, Use-by) back to the given date. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION RestoreDefaults() | ||||||||||||
Restores values for ItemCode and WarehouseCode that are potentially obliterated by reading a blank file. This will use the cItemCode/cWarehouseCode values | ||||||||||||
| ||||||||||||
| FUNCTION RowResetAllFromMemFile() | ||||||||||||
| FUNCTION RowResetFromMemFile(key$) | ||||||||||||
| FUNCTION RowResetFromPhysicalFile() | ||||||||||||
| FUNCTION RowResetFromPhysicalFile(key$) | ||||||||||||
| FUNCTION SetCommonInfo(rec$, iol$) | ||||||||||||
| FUNCTION SetDistributionFilter() | ||||||||||||
| FUNCTION SetFilterValues(key$, item$, whse$) | ||||||||||||
| FUNCTION SetUIHandle(uiHandle) | ||||||||||||
Sets the UI handle into the business object for use in updating values back into the UI. This is overridden from SY_Service. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION ValidateGroupExpUseRefDate() | ||||||||||||
Validation group method to test whether reference date is to be used. | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION ValidateGroupTrackExpiration() | ||||||||||||
Validation group method to test whether expiration dates are being tracked for this item or at all for the system | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION Write() | ||||||||||||
| FUNCTION LOCAL PostDeleteRec() | ||||||||||||
| FUNCTION LOCAL PostWriteRec() | ||||||||||||
| FUNCTION LOCAL ResolveTierKeyLength(docKey$) | ||||||||||||
| FUNCTION LOCAL SetCurrentKey(key$) | ||||||||||||
| FUNCTION LOCAL SetDefaults() | ||||||||||||
| FUNCTION LOCAL SetDistSecurity() | ||||||||||||
| FUNCTION LOCAL ValidateDistributionQty(value) | ||||||||||||
| FUNCTION LOCAL ValidateItemCode(value$) | ||||||||||||
| FUNCTION LOCAL ValidateLineKey(value$) | ||||||||||||
| FUNCTION LOCAL ValidateLotSerialExpirationDate(value$) | ||||||||||||
Function to valdiate the lot/serial expiration date. This will fail if Tracking for expiration dates is turned off, as well as invalid dates, or required dates missing | ||||||||||||
| ||||||||||||
| ||||||||||||
| FUNCTION LOCAL ValidateLotSerialNo(value$) | ||||||||||||
| FUNCTION LOCAL ValidateWarehouseCode(value$) |
|
cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$ |
|
FileChanged |
|
FormatLotSerialNo$(), IncrementSerialNo(), NextNumber(), FindPrefix(), GetColumnInfo(), IncrementNumber() |
|
ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule() |
|
ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode() |
|