Use BigDecimal for Pricedetail price field.

This commit is contained in:
Jan Böhmer 2020-05-20 22:02:07 +02:00
parent db4d7dc5fc
commit b1db89e3b4
8 changed files with 116 additions and 49 deletions

View file

@ -59,6 +59,6 @@ class CurrencyTest extends TestCase
$this->assertNull($currency->getInverseExchangeRate());
$currency->setExchangeRate(BigDecimal::of('1.45643'));
$this->assertSame(BigDecimal::of('0.68661'), $currency->getInverseExchangeRate());
$this->assertSame((string) BigDecimal::of('0.68661'), (string) $currency->getInverseExchangeRate());
}
}