Class PM_UnitofMeasure_Svc

Inherits

SY_Service

Properties

LOCAL cMainTable$="PM_UnitOfMeasure"  

main table for class

LOCAL cIsSysDB=isFALSE  

boolean value denoting whether the main table is a system table

Methods

FUNCTION RoundQuantity(roundUOMColumn$, uom$, qtyValue)  

Set values for UOM IOList, and will round passed quantity to nearest integer if required

ParameterDescription
roundUOMColumn$ [input, string] Unit Of Measure column to check if passed in quantity is to be rounded to nearest integer
uom$ [input, string] unit of measure code for passed in quantiy
qtyValue [input, numeric] quantity to be rounded to nearest integer if value of roundUOMColumn is Y
Returns [numeric] returns the qtyValue in it's original format or rounded to nearest integer based on UOM round column, if roundUOMColumn$ or uom$ invalid will return qtyValue in it's orginal format

Properties inherited from: SY_Service

BOF, CurrentBrowseIndex$, CurrentIndex$, EOF, SecurityAccess

Methods inherited from: SY_Service

BindVariable(), CheckMainTable(), Clear(), Find(), FindById(), GetChildHandle(), GetChildKeyReference$(), GetColumns$(), GetDataSources$(), GetDataSourcesAddl$(), GetJson$(), GetKey$(), GetKeyColumns$(), GetKeyPadded$(), GetPartialRecord(), GetRecord(), GetRecordCount(), GetRecordEx(), GetResultSets(), GetTable$(), GetTablePath$(), GetValue(), GetValues(), IsValid(), MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), ReadAdditional(), SetBrowseFilter(), SetBrowseIndex(), SetCacheMode(), SetIndex(), SetKeyValue(), SetParentColumns(), SetParentHandle(), SetUIHandle(), PERFORM ClearEditRcd(), FormatJson$(), GetAddlDataSources(), GetDateColumns$(), InitChildCollection(), MoveFirstLast(), MoveNextPrevious(), OpenMainTable(), ParseKeyDef(), PrepareKeyDef(), ReadRec(), ResolveColumnList$(), SetControls(), SetCurrentKey(), UseKeyColl()