src/Forms/MoneyField.php
protected function getDBMoney()
    {
        return DBMoney::create_field('Money', [
            'Currency' => $this->fieldCurrency->dataValue(),
            'Amount' => $this->fieldAmount->dataValue()
        ])
            ->setLocale($this->getLocale());
    }
protected function getDBMoney()
    {
        return DBMoney::create_field('Money', [
            'Currency' => $this->fieldCurrency->dataValue(),
            'Amount' => $this->fieldAmount->dataValue()
        ])
            ->setLocale($this->getLocale());
    }
protected function getDBMoney ( ) { return DBMoney :: create_field ( 'Money' , [ 'Currency' => $ this -> fieldCurrency -> dataValue ( ) , 'Amount' => $ this -> fieldAmount -> dataValue ( ) ] ) -> setLocale ( $ this -> getLocale ( ) ) ; }
Get value as DBMoney object useful for formatting the number

@return DBMoney
Get value as DBMoney object useful for formatting the number