mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 10:18:56 +02:00
Use BigDecimal for Pricedetail price field.
This commit is contained in:
parent
db4d7dc5fc
commit
b1db89e3b4
8 changed files with 116 additions and 49 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue