Class IM_Options_bus

Known SubClasses

IM_SetupWizard_bus

Properties

LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="IM_Options"  
PROPERTY JCActivated   * Read Only *
PROPERTY POActivated   * Read Only *
PROPERTY SOActivated   * Read Only *

Stores whether SO is activated

PROPERTY WOActivated   * Read Only *
PROPERTY SkipPostWriteRec  
PROPERTY GLSegmentDesc$   * Read Only *
PROPERTY GLSegmentNo$   * Read Only *
PROPERTY GLFiscalYearsLoad$   * Read Only *
PROPERTY GLPeriodsLoad$   * Read Only *

Methods

FUNCTION Delete(key$)  
FUNCTION SetCurrentPeriod(value$)  
FUNCTION SetCurrentYear(value$)  
FUNCTION Write()  
FUNCTION LOCAL CategoryDescValidation(value$, categoryNo$)  

Item Category Description Validation for CategoryXDesc and not allowing to be blank if used in SO Options

ParameterDescription
value$ [input, string] passes in CategoryXDesc value from UI
categoryNo$ [string] passes in category number
Returns [Boolean] Returns retSUCCESS if category description successfully set, retFAILURE if not set
FUNCTION LOCAL CreateDefaultWarehouse(code$)  

Creates the default warehouse code in IM_Warehouse if it doesn't exist. The address information is defaulted from the SY_Company record

ParameterDescription
code$ [input, string] WarehouseCode to be created
Returns [boolean]
ValueDescription
retSUCCESS(1) If warehouse successfully created or already exists
retFAILURE(0) If warehouse could not be created successfully
FUNCTION LOCAL PostWriteRec()  
FUNCTION LOCAL SetChildColl()  
FUNCTION LOCAL SetCurrentKey(key$)  
FUNCTION LOCAL ValidateBaseInventoryPeriodsOn(value$)  
FUNCTION LOCAL ValidateCalculateCommByItem(value$)  
FUNCTION LOCAL ValidateCalculateExpDateBasedOn(value$)  

Validation for Calculate Expired Date Based On field to reset related fields when value is set to No-Calc

ParameterDescription
value$ [input, string] Data value to validate
Returns retSUCCESS(1)
FUNCTION LOCAL ValidateCalculateReturnsBasedOn(value$)  

Validation for Calculate Returns Based On field to reset related fields when value is set to No-Calc

ParameterDescription
value$ [input, string] Data value to validate
Returns retSUCCESS(1)
FUNCTION LOCAL ValidateCalculateSellByBasedOn(value$)  

Validation for Calculate Sell By Based On field to reset related fields when value is set to No-Calc

ParameterDescription
value$ [input, string] Data value to validate
Returns retSUCCESS(1)
FUNCTION LOCAL ValidateCalculateUseByBasedOn(value$)  

Validation for Calculate Use By Based On field to reset related fields when value is set to No-Calc

ParameterDescription
value$ [input, string] Data value to validate
Returns retSUCCESS(1)
FUNCTION LOCAL ValidateCategory1Desc(value$)  

Validate Item Category 1 Description and not allowing to be blank if used in SO Options

ParameterDescription
value$ [input, string] passes in Category1Desc value from UI
Returns [Boolean] Returns retSUCCESS if category description successfully set, retFAILURE if not set
FUNCTION LOCAL ValidateCategory2Desc(value$)  

Validate Item Category 2 Description and not allowing to be blank if used in SO Options

ParameterDescription
value$ [input, string] passes in Category1Desc value from UI
Returns [Boolean] Returns retSUCCESS if category description successfully set, retFAILURE if not set
FUNCTION LOCAL ValidateCategory3Desc(value$)  

Validate Item Category 3 Description and not allowing to be blank if used in SO Options

ParameterDescription
value$ [input, string] passes in Category1Desc value from UI
Returns [Boolean] Returns retSUCCESS if category description successfully set, retFAILURE if not set
FUNCTION LOCAL ValidateCategory4Desc(value$)  

Validate Item Category 4 Description and not allowing to be blank if used in SO Options.

ParameterDescription
value$ [input, string] passes in Category1Desc value from UI.
Returns [Boolean] Returns retSUCCESS if category description successfully set, retFAILURE if not set
FUNCTION LOCAL ValidateCurrentCalendarYr(value$)  
FUNCTION LOCAL ValidateCurrentFiscalYr(value$)  
FUNCTION LOCAL ValidateCurrentPeriod(value$)  
FUNCTION LOCAL ValidateDefaultWarehouseCode(value$)  
FUNCTION LOCAL ValidateEnableLotSerialExpirationDates(value$)  

Validation for Lot Serial Expiration Dates field to verify subscription is enabled; reset related fields when value is set to No

ParameterDescription
value$ [input, string] Data value to validate
Returns retSUCCESS(1) when subscription is enabled, otherwise retFAILURE(0)
FUNCTION LOCAL ValidateGroupLotSerialExpDateCalc()  

Group Validation: LotSerialExpDateRequired - Check Lot / Serial Expirations Dates Required enabled

Returns retSUCCESS(1) when RequireExpirationDate$ is set to Yes, otherwise retFAILURE(0)
FUNCTION LOCAL ValidateGroupLotSerialExpDateEnable()  

Group Validation: LotSerialExpDateEnable - Check Lot / Serial Expirations Dates enabled

Returns retSUCCESS(1) when EnableLotSerialExpirationDates$ is set to Yes, otherwise retFAILURE(0)
FUNCTION LOCAL ValidateGroupLotSerialExpDateReturns()  

Group Validation: LotSerialExpDateReturns - Check Calculate Returns Based On is set to "Dont't Calc"

Returns retSUCCESS(1) when CalculateReturnsBasedOn$ is set to Yes, otherwise retFAILURE(0)
FUNCTION LOCAL ValidateGroupLotSerialExpDateSellBy()  

Group Validation: LotSerialExpDateSellBy - Check Calculate Sell-By Date Based On is set to "Dont't Calc"

Returns retSUCCESS(1) when CalculateSellByBasedOn$ is set to Yes, otherwise retFAILURE(0)
FUNCTION LOCAL ValidateGroupLotSerialExpDateUseBy()  

Group Validation: LotSerialExpDateUseBy - Check Calculate Use-By Date Based On is set to "Dont't Calc"

Returns retSUCCESS(1) when CalculateUseByBasedOn$ is set to Yes, otherwise retFAILURE(0)
FUNCTION LOCAL ValidateIntegrateGeneralLedger(value$)  
FUNCTION LOCAL ValidateIntegrateJobCost(value$)  
FUNCTION LOCAL ValidateQuantityAvailableToInclude(Value$)  
FUNCTION LOCAL ValidateReorderByWhse(value$)  
FUNCTION LOCAL ValidateRequireExpirationDate(value$)  

Validation for Require Expiration Date field to reset related fields when value is set to No

ParameterDescription
value$ [input, string] Data value to validate
Returns retSUCCESS(1)
FUNCTION LOCAL ValidateRequireMultipleWarehouses(value$)  
FUNCTION LOCAL ValidateSegmentForWhsePostings(value$)  
FUNCTION LOCAL ValidateTrackAdditionsInDetail(value$)  
FUNCTION LOCAL ValidateTrackItemChanges(value$)  

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest

Methods inherited from: CI_Warehouse_val

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

Methods inherited from: SY_Maint

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(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()