ePages 7.48.0 - DE_EPAGES/Object/API/Table/UnitOfMeasurement.pm

Package DE_EPAGES::Object::API::Table::UnitOfMeasurement

interface for table UnitOfMeasurement

@EXPORT_OK
GetAllPKeyUnitOfMeasurement
GetAllInfoUnitOfMeasurement
GetInfoUnitOfMeasurement
ExistsUnitOfMeasurement
GetPKeyUnitOfMeasurementByCode
GetInfoUnitOfMeasurementByCode
GetPKeyUnitOfMeasurementByAbbreviation
GetInfoUnitOfMeasurementByAbbreviation

Functions

ExistsUnitOfMeasurement
GetAllInfoUnitOfMeasurement
GetAllPKeyUnitOfMeasurement
GetInfoUnitOfMeasurement
GetInfoUnitOfMeasurementByAbbreviation
GetInfoUnitOfMeasurementByCode
GetPKeyUnitOfMeasurementByAbbreviation
GetPKeyUnitOfMeasurementByCode

ExistsUnitOfMeasurement

Returns true if the UnitOfMeasurement exists.

Syntax
$exists = ExistsUnitOfMeasurement($UnitID);
Input
$UnitID (int)
unit id (primary key)
Return
$exists (boolean)
1/0 the UnitOfMeasurement exists (yes/no)

GetAllInfoUnitOfMeasurement

Returns all objects of unitofmeasurement.

Syntax
$ahUnitOfMeasurement = GetAllInfoUnitOfMeasurement();
Return
$ahUnitOfMeasurement (reference to array of hashes)
with following keys:
  • UnitID - unit id (primary key)- int
  • Type - type of measurement - string
  • Factor - conversion factor to base unit - decimal
  • Abbreviation - representation symbol - char(50)
  • Code - UN/ECE recommendation 20 code - char(3)

GetAllPKeyUnitOfMeasurement

Returns all UnitOfMeasurement identifiers.

Syntax
$ahMoneyCurrencyAttributeIDs = GetAllPKeyUnitOfMeasurement();
Return
$ahUnitOfMeasurementIDs (reference to array of hashes)
with following keys:
  • UnitID - object id (part of primary key)- int

GetInfoUnitOfMeasurement

Returns the UnitOfMeasurement by identifier.

Syntax
$hUnitOfMeasurement = GetInfoUnitOfMeasurement($UnitID);
Input
$UnitID (int)
unit id (primary key)
Return
$hUnitOfMeasurement (reference to hash)
with following keys:
  • UnitID - unit id (primary key)- int
  • Type - type of measurement - string
  • Factor - conversion factor to base unit - decimal
  • Abbreviation - representation symbol - char(50)
  • Code - UN/ECE recommendation 20 code - char(3)

GetInfoUnitOfMeasurementByAbbreviation

Returns objects of UnitOfMeasurement by Abbreviation element.

Syntax
$ahUnitOfMeasurement = GetInfoUnitOfMeasurementByAbbreviation($Abbreviation);
Input
$Abbreviation (string)
abbreviation id
Return
$ahUnitOfMeasurement (reference to array of hashes)
with following keys:
  • UnitID - unit id (primary key)- int
  • Type - type of measurement - string
  • Factor - conversion factor to base unit - decimal
  • Abbreviation - representation symbol - char(50)
  • Code - UN/ECE recommendation 20 code - char(3)

GetInfoUnitOfMeasurementByCode

Returns objects of UnitOfMeasurement by Code element.

Syntax
$ahUnitOfMeasurement = GetInfoUnitOfMeasurementByCode($Code);
Input
$Code (string)
code id
Return
$ahUnitOfMeasurement (reference to array of hashes)
with following keys:
  • UnitID - unit id (primary key)- int
  • Type - type of measurement - string
  • Factor - conversion factor to base unit - decimal
  • Abbreviation - representation symbol - char(50)
  • Code - UN/ECE recommendation 20 code - char(3)

GetPKeyUnitOfMeasurementByAbbreviation

Returns primary key of UnitOfMeasurement by Abbreviation element.

Syntax
$ahKeys = GetPKeyUnitOfMeasurementByAbbreviation($Abbreviation);
Input
$Abbreviation (string)
abbreviation id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • UnitID - unit id (primary key)- int

GetPKeyUnitOfMeasurementByCode

Returns primary key of UnitOfMeasurement by Code element.

Syntax
$ahKeys = GetPKeyUnitOfMeasurementByCode($Code);
Input
$Code (string)
code id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • UnitID - unit id (primary key)- int