Closed nheeren closed 5 years ago
To manage the diversity of possible units, they are split into nominator and denominator. E.g., when someone wants to enter data in 'km/yr', they don't have to define a new unit, instead, they point to 'km' for the nominator and 'yr' for the denominator. If the unit is simple, like 'Mt' for a stock, the denominator is simply set to 1. Since the data type is VARCHAR, this turns into '1' in the DB. So just look for '1' when unit nominator or denominator is integer 1.
I suppose it needs to be added to the unit table though
implemented lookup on multiple columns. unit table now contains 1 and p for piece
The following files may have have errors and require discussion:
unit_denominator
is 1. What does that mean? This unit does not exist in the DB.List not final yet.