Class SO_CommonEntryDetail

Properties

LOCAL cDistAutoAdjusted=isFALSE  

[boolean] to store whether or not the distribution of a line was adjusted automatically during validation of quantity field.

LOCAL cItemChanged=isFALSE  
LOCAL cKitChanged=isFALSE  
LOCAL cKitUOMChanged=isFALSE  
LOCAL cKitUpdateUOMOnly=isFALSE  
LOCAL cQtyDigits  
PROPERTY AP_Divisions$   * Read Only *
PROPERTY Balance  
PROPERTY ComponentLine   * Read Only *
PROPERTY CostMask$   * Read Only *
PROPERTY CreateFromRMA  
PROPERTY ItemValuation$   * Read Only *
PROPERTY KitLine   * Read Only *
PROPERTY PriceMask$   * Read Only *
PROPERTY QtyMask$   * Read Only *
PROPERTY UnitOfMeasures$   * Read Only *
PROPERTY ExtensionQtyCol$   * Read Only *
PROPERTY PriceLevelByCustSvc   * Read Only *
PROPERTY coSO_PurchaseControl   * Read Only *
Instantiates SO_PurchaseControl_Svc

Methods

FUNCTION AddIn()  

Allows update of quantities needed for Pricing By Total Quantity calculation

Returns [numeric] Always returns success
FUNCTION AllLinesComplete(key$, rowNo, tmpOrderLineKey$)  
FUNCTION AllLinesComplete(key$, rowNo, tmpOrderLineKey$, tmpDistQtyVar$)  
FUNCTION AssignAccounts(itemType$)  
FUNCTION BackOut()  

Allows update of quantities needed for Pricing By Total Quantity calculation

Returns [numeric] Always returns success
FUNCTION CalculateProfitMargin(discount)  
FUNCTION CalculateQtyAvailable()  
FUNCTION CalculateQtyAvailable(stdQtyAvail)  
FUNCTION CalculateQtyAvailable(stdQtyAvail, stdUM$)  
FUNCTION CheckForMissingJobInfo()  
FUNCTION CheckForPurchaseControlRecords(div$, cust$, State$, source$, status$)  
FUNCTION ClearInvalidPurchaseItems()  
FUNCTION ClearJobInfo()  
FUNCTION ClearSetFiles()  
FUNCTION CurrentQtyToBackOut()  
FUNCTION DefaultPriceLevel$()  
FUNCTION DefaultPriceLevel$(fromPLbyCust)  
FUNCTION DeleteAllLines()  
FUNCTION DeleteComponentLines(kit$)  
FUNCTION DeleteLine(key$)  
FUNCTION DistributionAutoAdjusted()  

Function that returns the value of cDistAutoAdjusted, to be checked only after the validation methods that could auto adjust the distribution of a single lot

Returns [boolean] return True if distribution quantity was automatically adjusted and False if it did not adjust the distribution.
FUNCTION DistributionRequired()  
FUNCTION DistributionRequired(valuation$)  
FUNCTION FindKitCount(kitLine$, row, dir$)  
FUNCTION GetHeaderFields()  
Returns [numeric] Always returns success
FUNCTION GetItemCosts(item$, whse$, whseAvgCost, itmAvgCost, itmStdCost, itmLastCost)  
FUNCTION GetItemCosts(item$, whse$, whseAvgCost, itmAvgCost, itmStdCost, itmLastCost, itmVal$)  
FUNCTION RecalculateLinePricing()  
FUNCTION RemoveJobInfo()  
FUNCTION RemoveJobInfo(oldJob$)  
FUNCTION ResetLine(lineKey$)  
FUNCTION SetDefaultDate(date$)  
FUNCTION SetHeader(header$)  
FUNCTION SetHeaderInfo()  
FUNCTION SetJobInfo(job$)  
FUNCTION SetUnitOfMeasures()  
FUNCTION SkipLineValidation(value)  

Sets the value of the local property cSkipLineValidation, which controls whether the lines are validated when the header is written

ParameterDescription
value [input, boolean] boolean value for the flag to be set too
Returns Always returns retSUCCESS
FUNCTION UpdateJobAccounts(job$)  
FUNCTION UpdateJobAccounts(job$, oldJob$)  
FUNCTION ValidateGroupARSalesTax()  
FUNCTION ValidateGroupBMIntegrated()  
FUNCTION ValidateGroupBMUseRevisions()  
FUNCTION ValidateGroupCCLevel3Dtl()  

Credit Card Level 3 Dtl Group Validation, used to ensure AddCorporateCardLevel3$ isYES$ before allowing value to be set

FUNCTION ValidateGroupIMIntegrated()  
FUNCTION ValidateGroupItemRequired()  
FUNCTION ValidateGroupItemTypes()  
FUNCTION ValidateGroupJCIntegrated()  
FUNCTION ValidateGroupLineDiscount()  
FUNCTION ValidateGroupMultiWarehouse()  
FUNCTION ValidateGroupNotCharge()  
FUNCTION ValidateGroupNotComment()  
FUNCTION ValidateGroupNotComponent()  
FUNCTION ValidateGroupNotNulWarehouseCode()  
FUNCTION ValidateGroupPOSetup()  
FUNCTION ValidateGroupPostJCCosts()  
FUNCTION ValidateGroupRMAOrder()  
FUNCTION ValidateGroupSalespersonReporting()  
FUNCTION ValidateGroupUseOptionBills()  
FUNCTION ValidateGroupVendorDisplay()  
FUNCTION ValidateGroupWarrantyTracking()  
FUNCTION ValidateLines()  
FUNCTION WRITE()  
FUNCTION LOCAL CalculateCost()  
FUNCTION LOCAL CalculatePrice(item$, qty, date$)  
FUNCTION LOCAL CheckDistribution()  
FUNCTION LOCAL CheckForAlias(alias$, item$)  
FUNCTION LOCAL ClassValidateBillOption(col$, val$)  
FUNCTION LOCAL ClearSetFilesAdjustIMForJC()  

This function adjusts committed quantity in inventory when Sales Order is integrated with Job Cost. It is called from ClearSetFiles().

Returns [boolean] return Success
FUNCTION LOCAL ColumnOverrideBillOption1(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption2(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption3(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption4(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption5(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption6(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption7(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption8(colInfo)  
FUNCTION LOCAL ColumnOverrideBillOption9(colInfo)  
FUNCTION LOCAL ColumnOverrideCostCode(colInfo)  
FUNCTION LOCAL ColumnOverrideCostType(colInfo)  
FUNCTION LOCAL ColumnOverrideMasterOriginalQty(colInfo)  
FUNCTION LOCAL ColumnOverrideMasterQtyBalance(colInfo)  
FUNCTION LOCAL ColumnOverrideMasterQtyOrderedToDate(colInfo)  
FUNCTION LOCAL ColumnOverrideQuantityBackOrdered(colInfo)  
FUNCTION LOCAL ColumnOverrideQuantityOrdered(colInfo)  
FUNCTION LOCAL ColumnOverrideQuantityPerBill(colInfo)  
FUNCTION LOCAL ColumnOverrideQuantityShipped(colInfo)  
FUNCTION LOCAL ColumnOverrideRepeatingQtyShippedToDate(colInfo)  
FUNCTION LOCAL ColumnOverrideUnitCost(colInfo)  
FUNCTION LOCAL ColumnOverrideUnitPrice(colInfo)  
FUNCTION LOCAL ColumnOverrideWarrantyCode(colInfo)  
FUNCTION LOCAL CommitRowWrite(inChn)  
FUNCTION LOCAL DeleteComponentLine(compKey$)  
FUNCTION LOCAL FindKitLine(componentKey$, kitKey$)  
FUNCTION LOCAL GenerateFormatMask$(mask$, decimals)  
FUNCTION LOCAL GetAccountsFromJob(cogs$, sales$)  
FUNCTION LOCAL GetPriceRecord()  
FUNCTION LOCAL GetWarehouseQty()  
FUNCTION LOCAL IsJobInfoValid(job$, code$, type$, itemtype$, error$)  
FUNCTION LOCAL LocalizeIOLIST(objHandle)  
FUNCTION LOCAL LocalizeIOLIST(objHandle, recClause$)  
FUNCTION LOCAL PostWriteRec()  
FUNCTION LOCAL ProgressMeter()  
FUNCTION LOCAL ProgressMeter(action$)  
FUNCTION LOCAL ProgressMeter(action$, msg$)  
FUNCTION LOCAL ResetRowAmounts()  
FUNCTION LOCAL RetrieveWeight(item$)  
FUNCTION LOCAL ReturnUDFs(fullIolist$, udfs$)  
FUNCTION LOCAL SaveRowAmounts()  
FUNCTION LOCAL SetCurrentKey(key$)  
FUNCTION LOCAL SetDefaultAccounts(item$, type$)  
FUNCTION LOCAL SetDefaultAccounts(item$, type$, acct$)  
FUNCTION LOCAL SetDefaults()  
FUNCTION LOCAL SetKey(LineKey$, InsertPoint$)  
FUNCTION LOCAL SetKitComponentFromParentColumns(WorkField3, kitRec$)  
FUNCTION LOCAL SetKitComponentLineColumns(kitRec$, itemRec$, qtyPerKit)  
FUNCTION LOCAL UpdateCustomerLastPurchHistory(docType$, date$, qty)  
FUNCTION LOCAL UpdateKitComponentLineColumns(kitRec$)  
FUNCTION LOCAL UpdateKitLines(kitKey$)  

Overridding this function from CI_SalesKit, need to turn off some flags after updating the components.

ParameterDescription
kitkey$ [input, string] key to the parent kit item.
Returns SUCCESS if kit lines updated or FAILURE if the lines were not updated
FUNCTION LOCAL ValidateAPDivisionNo(value$)  
FUNCTION LOCAL ValidateCostCode(value$)  
FUNCTION LOCAL ValidateCostOfGoodsSoldAcctKey(value$)  
FUNCTION LOCAL ValidateCostType(value$)  
FUNCTION LOCAL ValidateDropShip(value$)  
FUNCTION LOCAL ValidateExplodedKitItem$(value$)  
FUNCTION LOCAL ValidateItemCode(value$)  
FUNCTION LOCAL ValidateLineDiscountPercent(value)  
FUNCTION LOCAL ValidatePriceLevel(value$)  
FUNCTION LOCAL ValidatePromiseDate(value$)  
FUNCTION LOCAL ValidateQuantityOrdered(value)  
FUNCTION LOCAL ValidateQuantityShipped(value)  
FUNCTION LOCAL ValidateSalesAcctKey(value$)  
FUNCTION LOCAL ValidateTaxClass(value$)  

Validates Tax Class for all but comment line types

ParameterDescription
value$ [input,string] Value of Tax Class
Returns [boolean] Success or failure. Fails when Tax Class is not on file
FUNCTION LOCAL ValidateUnitCost(value)  
FUNCTION LOCAL ValidateUnitOfMeasure(value$)  
FUNCTION LOCAL ValidateUnitOfMeasure(value$, skipTier)  
FUNCTION LOCAL ValidateUnitPrice(value)  
FUNCTION LOCAL ValidateVendorNo(value$)  
FUNCTION LOCAL ValidateWarehouseCode(value$)  
FUNCTION LOCAL ValidateWarrantyCode(value$)  
FUNCTION LOCAL WriteLineUpdateKitLines()  

This function updates kit component lines when the parent item is written

Returns SUCCESS or FAILURE

Properties inherited from: CI_Constant

itmREGULAR$, itmSPECIAL$, itmCHARGE$, itmCOMMENT$, itmMISC$, valSTANDARD$, valAVERAGE$, valFIFO$, valLIFO$, valLOT$, valSERIAL$, typFINISHEDGOODS$, typRAWMATERIALS$, typDISCONTINUED$, typKIT$, proMAKE$, proBUY$, proSUBCONTRACT$

Properties inherited from: CI_ItemCode_Val

cItemTypes$, cAllowAliasItems, cAliasItemTypes$, cItemCodeDescCol$, cItemTypeCol$, ItemTypes$, AllowAliasItems, AliasItemTypes$, ExtendedDescriptionBusiness, ItemCodeDescCol$, AllowPhantom, AllowEngineering, AllowInactive, InvalidPurchase, IMIntegrated

Properties inherited from: CI_ItemConstant

itmREGULAR$, itmSPECIAL$, itmCHARGE$, itmCOMMENT$, itmMISC$, valSTANDARD$, valAVERAGE$, valFIFO$, valLIFO$, valLOT$, valSERIAL$, lsTransOTHER, lsTransRECEIPT, lsTransSALE, lsTransISSUE, lsTransSHIPPING, lsTransRETURN

Properties inherited from: CI_ItemPrice

cFieldsFromItem$, SO_EnablePriceByTotalQtyBasedOn$, SO_UnitOfMeasureForTotalQty$, SO_ApplyPricingByTotalQtyAuto$, PreventItemPriceByTotQtyCalc, ApplyPriceByTotalQty

Properties inherited from: CI_SalesKit

BM_Integrated$, BM_UseOptionBills$, BillOptionEntryRequired, KitLinesExploded, KitLinesUpdated, KitStartingRow, RefreshAllRows

Properties inherited from: CI_VendorNo_Val

HoldPayment, SeparateCheck

Properties inherited from: SY_LineEntryTierDetail

cDistItemCode$, cDistWarehouseCode$, Distribution, DistributionBalanced, DistributionIOL$, DistributionMessage, ResettingAllLines

Methods inherited from: CI_Account_val

ClassOverrideAccount(), ClassValidateAccount(), ResetAccountIndex()

Methods inherited from: CI_APDivision_val

ClassValidateAPDivision()

Methods inherited from: CI_BillOption_Val

ClassValidateBillOption()

Methods inherited from: CI_CommodityCode_val

ClassValidateCommodityCode()

Methods inherited from: CI_Constant

GetCalendarEndingDate(), GetDefaultExtendedDescriptionKey$()

Methods inherited from: CI_CostCodeFormatter

FormatCostCode()

Methods inherited from: CI_CostCode_Val

SetValidCostTypeForSOCC(), ClassValidateCostCode()

Methods inherited from: CI_ItemCode_Val

Write(), PERFORM CheckForAlias(), PERFORM CheckUseIn(), CheckValidBill(), ClassOverrideDescription(), ClassOverrideItemCode(), ClassValidateDescription(), ClassValidateItemCode(), ItemTypeSetDefaults(), PERFORM ItemTypeSetDefaults(), UpdateGridExtendedDescKey(), ValidateGroupNotCurrentItemType()

Methods inherited from: CI_ItemPrice

AddInItemPriceByQty(), BackOutItemPriceByQty(), CalculateItemPrice(), CalculateOptionsPrice(), RecalcLinePriceByTotQty(), ResetItemPriceByQtyTotals(), SetApplyPriceByTotalQty(), WriteItemPriceByQtyTotals(), LoadPriceByTotQtyWorkTable(), PERFORM ReadItemData(), PERFORM RegularItemPricing(), PERFORM SetPriceByTotQtyVariables(), UpdatePricingByTotalQty(), ValidateGroupItemPriceByTotQty()

Methods inherited from: CI_SalesKit

KitExists(), SeedKitRow(), CheckComponentItemDataSources(), CheckSalesKit(), ExplodeKitLines(), ExplodeKitToWorkTable(), KitExplosionProcessDetail(), PERFORM PopulateWorkFile(), ResetKitLines(), SetKitComponentLineColumns(), UpdateKitComponentLineColumns(), UpdateKitLines()

Methods inherited from: CI_TaxClass_val

ClassValidateTaxClass()

Methods inherited from: CI_UnitOfMeasure_val

ClassValidateUnitOfMeasure()

Methods inherited from: CI_VendorNo_Val

ClassValidateVendorNo()

Methods inherited from: CI_Warehouse_val

SetAllowInactiveRestrictedWhse(), ClassValidateWarehouse(), GetClassName$()

Methods inherited from: CI_WarrantyCode_val

ClassValidateWarrantyCode()

Methods inherited from: SY_LineEntryTierDetail

AddLine(), ClearLine(), ClearSetFiles(), CommitRow(), DeleteLine(), DistributionMissingInfo(), DistributionRequired(), RemoveTiersExpDate(), ResetLine(), SetHeader(), ValidateLines(), WRITE(), ClearLastLine(), DeleteTierLines(), GetMemoryEditKey$(), PostDeleteRec(), PostWriteRec(), ResetRow(), SetCurrentKey(), ValidateAccumulateLines()