Appendix A - Key data

This section covers key data elements used by enfore. Most of those are reused for multiple data structures.

Country

We use ISO 3166 Alpha-2 codes for denoting countries. We support all currently defined countries.

Currency

We use ISO 4217 codes for denoting currencies. We currently can store the following currencies:

CodeName
AUDAustralian Dollar
BRLBrazil Real
CADCanada Dollar
CHFSchweizer Franken
CNYChina Yuan Renminbi
DKKDanmark Øre
EUREuro
GBPUnited Kingdom Pound
HKDHongkong Dollar
IDRIndonesia Rupiah
INRIndien Rupie
JPYJapan Yen
KRWRepublic (South) Korea Won
MXNMexico Peso
MYRMalaysia Ringgit
NOKNorwegen Øre
NZDNew Zealand Dollar
PHPPhilippinen Peso
RUBRussia Ruble
SEKSweden Krone
SGDSingapur Dollar
TRYTurkey Lira
TWDRepublik China (Taiwan) Dollar
USDUnited States Dollar
ZARSouth Afrika Rand

TaxCategory

We assign a single "tax category" to each sales item to control how sales of that item are taxed. The tax categories are locale independent and do not represent an actual tax rate directly. Rather, this is handled by "tax rules" that are configured in the platform. A "tax rule" defines conditions and references an actual "tax". The "tax" objects are the actual locale-specific taxes with their rate.

The platform currently defines the following tax categories:

KeyNameInternal enfore-ID
REDUCEDReduzierte Steuer58b1978e9ffc03bb333dee00
REDUCED_TAKE_AWAYReduzierte Steuer (außer Haus)58b1978e9ffc03bb333dee04
REDUCED_SPECIALReduzierte Steuer (speziell)58b1978e9ffc03bb333dee02
STANDARDStandardsteuer58b1978e9ffc03bb333dee03
NO_TAXKeine Steuer58b1978e9ffc03bb333dee01

TaxExemptionReason

For product where no VAT/sales tax is to be applied on a sale, a tax exemption reason must be given.

KeyUsed for
UNIVERSAL_POSTAL_SERVICE_DEExemption for universal postal services; in Germany following §4 11b UStG. Some conditions need to be fulfilled to be able to claim that tax exemption.
INTRA_COMMUNITY_TRADE_EUDelivery of tangible goods shipped from one country to another country of the EU. These deliveries are exempt from VAT in the country of departure of the goods if some conditions are met.
THIRD_PARTY_COUNTRY_DELIVERY_EUDelivery of tangible goods shipped from one country to another country outside of the EU. These deliveries are exempt from VAT in the country of departure of the goods.
REVERSE_CHARGE_EUWhen you buy goods or services from suppliers in other EU countries, the Reverse Charge moves the responsibility for the recording of a VAT transaction from the seller to the buyer for that good or service.

UnitOfMeasure

For denoting the unit of measure for a Quantity value, we use a fixed set units split by type (e.g., length, mass, volume). We currently support the following units of measure:

Digital information

TypeUnit
DIGITALINFORMATIONBYTES
DIGITALINFORMATIONKILOBYTES
DIGITALINFORMATIONKIBIBYTES
DIGITALINFORMATIONMEGABYTES
DIGITALINFORMATIONMEBIBYTES
DIGITALINFORMATIONGIGABYTES
DIGITALINFORMATIONGIBIBYTES
DIGITALINFORMATIONTERABYTES
DIGITALINFORMATIONTEBIBYTES
DIGITALINFORMATIONPETABYTES
DIGITALINFORMATIONPEBIBYTES

Energy

TypeUnit
ENERGYJOULES
ENERGYGIGAJOULES
ENERGYMEGAJOULES
ENERGYKILOJOULES
ENERGYCENTIJOULES
ENERGYMILLIJOULES
ENERGYMICROJOULES
ENERGYCALORIES
ENERGYKILOCALORIES
ENERGYWATTHOURS
ENERGYGIGAWATTHOURS
ENERGYMEGAWATTHOURS
ENERGYKILOWATTHOURS
ENERGYCENTIWATTHOURS
ENERGYMILLIWATTHOURS
ENERGYMICROWATTHOURS

Length

TypeUnit
LENGTHKILOMETERS
LENGTHMETERS
LENGTHDECIMETERS
LENGTHCENTIMETERS
LENGTHMILLIMETERS
LENGTHPOINTS
LENGTHINCHES
LENGTHFEET
LENGTHYARDS

Mass

TypeUnit
MASSTONS
MASSKILOGRAMS
MASSGRAMS
MASSMILLIGRAMS
MASSPOUNDS

Quantity

TypeUnit
QUANTITYPIECES

Time

TypeUnit
TIMESECONDS
TIMEMINUTES
TIMEHOURS
TIMEDAYS
TIMEWEEKS
TIMEMONTHS
TIMEYEARS

Volume

TypeUnit
VOLUMECUBIC_MILLIMETERS
VOLUMECUBIC_CENTIMETERS
VOLUMECUBIC_DECIMETERS
VOLUMECUBIC_METERS
VOLUMEMILLILITERS
VOLUMECENTILITERS
VOLUMEDECILITERS
VOLUMELITERS
VOLUMEHECTOLITERS
VOLUMEFLUID_OUNCES
VOLUMEPINTS
VOLUMEQUARTS
VOLUMEGALLONS
VOLUMEBARRELS