src/Invoice/Completor.php
public function convertAmount(array &$array, $key, $conversionRate)
    {
        if (!empty($array[$key]) && !empty($conversionRate)) {
            $array[$key] = (float) $array[$key] / (float) $conversionRate;
            return true;
        }
        return false;
    }
public function convertAmount(array &$array, $key, $conversionRate)
    {
        if (!empty($array[$key]) && !empty($conversionRate)) {
            $array[$key] = (float) $array[$key] / (float) $conversionRate;
            return true;
        }
        return false;
    }
public function convertAmount ( array & $ array , $ key , $ conversionRate ) { if ( ! empty ( $ array [ $ key ] ) && ! empty ( $ conversionRate ) ) { $ array [ $ key ] = ( float ) $ array [ $ key ] / ( float ) $ conversionRate ; return true ; } return false ; }
Helper method to convert an amount field to euros.

@param array $array
@param string $key
@param float $conversionRate

@return bool
Whether the amount was converted.
Helper method to convert an amount field to euros .