Class SO_SalesOrderTierDistribution_bus

Properties

LOCAL cDocument$="SalesOrderNo$"  
LOCAL cErrorMsg$="Sales Order Number"  
LOCAL cMainTable$="SO_SalesOrderTierDistribution"  
LOCAL cOrigQuantity$="old.QuantityOrdered"  
LOCAL cQuantity$="QuantityOrdered"  
LOCAL cCommitQuantityVar$  

Used in AddIn method for updating IM_ItemCost.

LOCAL cOrigCommitQuantityVar$  
Used in BackOut method for updating IM_ItemCost.

Methods

FUNCTION AutoAdjustSOLot(qtyToDist)  

Automatically adjusts a balanced, single-Lot distribution when the detail line Quantity is reduced.

ParameterDescription
qtyToDist [input, integer] New (reduced) distribution Quantity for the Lot.
Returns [boolean] Success or failure. Fails if the new (reduced) distribution Quantity can't be updated for the Lot.
FUNCTION SetViewOnly(option)  

This will toggle the security of the program from View Only to whatever rights the user would normally have option [input, integer] 0 = Restore normal right. 1 = Set to View Only rights

Returns [boolean] always returns retSUCCESS

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$

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