mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 19:34:31 +02:00
Added some tests for important entity methods.
This commit is contained in:
parent
0663a00df8
commit
89258bc102
18 changed files with 480 additions and 160 deletions
|
@ -147,7 +147,7 @@ class PricedetailHelper
|
|||
|
||||
//Find the price for the amount, for the given
|
||||
foreach ($orderdetails as $orderdetail) {
|
||||
$pricedetail = $orderdetail->getPrice($amount);
|
||||
$pricedetail = $orderdetail->findPriceForQty($amount);
|
||||
|
||||
//When we dont have informations about this amount, ignore it
|
||||
if ($pricedetail === null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue