Version 4
Field preference
mixed
Getting unit for orderline:
$Orderline->amount->getPreference('unit');