Don't ignore the decimal part when editing a stock entry (fixes #616)

This commit is contained in:
Bernd Bestel
2020-04-12 15:22:36 +02:00
parent 1d4b6a0a24
commit 86ef36d76a
2 changed files with 2 additions and 1 deletions

View File

@@ -598,7 +598,7 @@ class StockService extends BaseService
return $this->getDatabase()->lastInsertId();
}
public function EditStockEntry(int $stockRowId, int $amount, $bestBeforeDate, $locationId, $shoppingLocationId, $price, $open, $purchasedDate)
public function EditStockEntry(int $stockRowId, float $amount, $bestBeforeDate, $locationId, $shoppingLocationId, $price, $open, $purchasedDate)
{
$stockRow = $this->getDatabase()->stock()->where('id = :1', $stockRowId)->fetch();