Class IM_CountCardDetail_bus

Properties

LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="IM_CountCardDetail"  
LOCAL cItemTypes$  
PROPERTY AddedLotSerial$  
PROPERTY CheckForLotSerial$  
PROPERTY CheckLotSerialNo  
PROPERTY CheckProductType  
PROPERTY DefaultIncludeLotSerialNumbers$   * Read Only *
PROPERTY DefaultWarehouseCode$   * Read Only *

Default Warehouse Code

PROPERTY DefaultWhseRestrictEndDate$   * Read Only *
Restriction End Date, if default warehouse is restricted
PROPERTY DefaultWarehouseStatus$   * Read Only *
Status of the default warehouse (I, R, A)
PROPERTY IsValidItemWarehouse   * Read Only *
PROPERTY RequireMultipleWarehouses$   * Read Only *
PROPERTY LotSerUserAllowChangeDate   * Read Only *
[boolean] Flag for corresponding security event to allow the modification to Lot/Serial Expiration Date
PROPERTY RequireExpirationDate   * Read Only *
[boolean] Flag to indicate the current item requires a lot/serial expiration date to be entered
PROPERTY TrackLotSerialExpiration   * Read Only *
[boolean] Flag to indicate the lot/serial expiration dates are being tracked for the current item
PROPERTY Valuation$   * Read Only *

Methods

FUNCTION ChangeDefaults(rec$, iol$)  
FUNCTION CheckForLotSerialNo(whse$, item$)  
FUNCTION CheckForMissingExpirationDates(firstMissing$)  

Checks through current line detail memory file for an expiration date that is missing if TrackLotSerExpiration is turned on and is required for item

ParameterDescription
firstMissing$ [output, string] key of the first row that is missing a date
Returns [integer] count of the number of rows missing dates, to be used for messaging
FUNCTION CheckLotSerDates(expDate$, lotSerNo$)  

Check Lot/Serial Expiration Date @prarm expDate$ [input, date] Lot Serial Expiration date to be used in calculation and comparisons

ParameterDescription
lotSerNo$ [input, string] Lot Serial Number being tested. This is used only in messaging
Returns [boolean]
ValueDescription
retWARNING(-1) If date is outside the range and the user HAS rights to override
retSUCCESS If there are no dates to check against or date is in acceptable range.
FUNCTION CheckTrackLotSerialExpiration(item$)  

Check TrackLotSerialExpiration for specified item code

ParameterDescription
item$ Item code to check
Returns [boolean] -> returns retSUCCESS if TrackLotSerialExpiration or retFAILURE if NOT TrackLotSerialExpiration
FUNCTION ResetLotSerialDates(resetDate$)  

This function will reset the LotSerialExpirationDate back to the given date.

ParameterDescription
resetDate$ [input, date] Date to reset the LotSerialExpirationDate back to
Returns Always returns retSUCCESS(1)
FUNCTION SetInsertPoint(insertPoint$)  

Function to set value of cInsertPoint$ for use with adding lot/serial #'s in the CheckForLotSerialNo() method.

ParameterDescription
[input, string] key value to insert after
Returns Always returns retSUCCESS(1)
FUNCTION ValidateGroupTrackExpiration()  

Validation group method to test whether expiration dates are being tracked for this item or at all for the system

Returns [boolean]
ValueDescription
retSUCCESS(1) If item is tracking expiration dates for lot/serial items
retFAILURE(0) If item is not tracking expiration dates or option is turned off in IM_Options
FUNCTION ValidateLines()  
FUNCTION Write()  

Properties inherited from: CI_ItemCode_Val

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

Properties inherited from: SY_LineEntryDetail_Bus

cActivityLogDelete$, cActivityLogDtlLevel$, HeaderKy$, HeaderHasLines, ReloadGrid, ValidHeader, NumberOfLines

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_Warehouse_val

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

Methods inherited from: SY_LineEntryDetail_Bus

AccumulateBatchTotals(), AddIn(), AddLine(), AddPrimarySrc(), BackOut(), ClearBindings(), ClearLine(), ClearSetFiles(), CommitRow(), DeleteLine(), EditLine(), GetBatchTotalVars(), GetEditKey$(), GetInsertSeq$(), GetSequenceLengths(), InitWorkTable(), InsertLine(), QuickRowLoad(), RemovePrimarySrc(), ResequenceLine(), ResetLine(), ResetRow(), SetBatchTotalVars(), SetHeader(), SetKey(), SwapLines(), ValidateLines(), Write(), ClearSetFileDeleteWorkTable(), ClearSetFileWorkTable(), CommitRowRemove(), CommitRowWrite(), PostDeleteRec(), PostWriteRec(), RenumberSequence(), WriteWorkTable()