move currency to config file; change units to their own group in settings
This commit is contained in:
@@ -15,7 +15,7 @@ class Volume extends \PhpUnitsOfMeasure\PhysicalQuantity\Volume implements Array
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
$unit = setting('general.liquid_unit');
|
||||
$unit = setting('units.volume');
|
||||
$value = $this->toUnit($unit);
|
||||
return (string) round($value, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user