Class SO_InvoiceTierDistribution_bus

Properties

LOCAL cDocument$="InvoiceNo$"  
LOCAL cErrorMsg$="Invoice Number"  
LOCAL cMainTable$="SO_InvoiceTierDistribution"  
LOCAL cQuantity$="QuantityShipped"  
LOCAL cOrigQuantity$="old.QuantityShipped"  
LOCAL cAlreadyCommittedVar$  

Used in Write method when checking QuantityAvailable.

LOCAL cCommitQuantityVar$  
Used in AddIn method for updating IM_ItemCost.
LOCAL cOrigCommitQuantityVar$  
Used in BackOut method for updating IM_ItemCost.

Methods

FUNCTION AccumulateSODistQty(soNo$, soLineKey$, item$, whse$)  

Accumulates the distributed Quantity from Lot/Serial tiers for a Sales Order detail line.

ParameterDescription
soNo$ [input, string] Sales Order Number in the detail line from which Lot/Serial tiers will be read for accumulation.
soLineKey$ [input, string] Sales Order Line Key in the detail line from which Lot/Serial tiers will be read for accumulation.
item$ [input, string] Item Code in the Invoice detail line to match against Item Code in the Sales Order Lot/Serial tier.
whse$ [input, string] Warehouse Code in the Invoice detail line to match against Warehouse Code in the Sales Order Lout/Serial tier.
Returns [numeric] Accumulated distributed Quantity from Lot/Serial tiers for a Sales Order detail line.
FUNCTION AutoAdjustInvLot(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 CheckForCreditMemo()  
FUNCTION CopySOTiersToInvoice(soNo$, soLineKey$)  

Copies Lot/Serial tiers from a Sales Order detail line to an Invoice detail line.

ParameterDescription
soNo$ [input, string] Sales Order Number in the detail line from which Lot/Serial tiers will be copied.
soLineKey$ [input, string] Sales Order Line Key in the detail line from which Lot/Serial tiers will be copied.
Returns [boolean] Success or failure. Fails if Lot/Serial tiers can't be added to the Invoice detail line.
FUNCTION GetContext$(destTable$)  

Gets Contexts for UDF flow.

ParameterDescription
destTable$ [input, string] Destination table for UDF flow.
Returns [string] SEP separated string of Contexts for UDF flow.
FUNCTION GetContextSourceTables$(context$)  

Gets Source tables for UDF flow.

ParameterDescription
context$ [input, string] Context for UDF flow.
Returns [string] SEP separated string of Source tables for UDF flow.
FUNCTION SetCommonInfo(rec$, iol$)  
FUNCTION Write()  

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: SY_Customization

cDummyIol$

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

Methods inherited from: SY_Customization

GetCustomizations(), PostTableRead(), PreNextRecord(), PreTableWrite()