Fixed wrong type in Test Fixtures.

This commit is contained in:
Jan Böhmer 2020-03-29 15:25:19 +02:00
parent 88580aad79
commit 09683dd8e7

View file

@ -89,16 +89,16 @@ class PartFixtures extends Fixture
$orderdetail = new Orderdetail(); $orderdetail = new Orderdetail();
$orderdetail->setSupplier($manager->find(Supplier::class, 1)); $orderdetail->setSupplier($manager->find(Supplier::class, 1));
$orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(1.0)->setPrice(10)); $orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(1.0)->setPrice("10.0"));
$orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(10.0)->setPrice(15)); $orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(10.0)->setPrice("15.0"));
$part->addOrderdetail($orderdetail); $part->addOrderdetail($orderdetail);
$orderdetail = new Orderdetail(); $orderdetail = new Orderdetail();
$orderdetail->setSupplierpartnr('BC 547'); $orderdetail->setSupplierpartnr('BC 547');
$orderdetail->setObsolete(true); $orderdetail->setObsolete(true);
$orderdetail->setSupplier($manager->find(Supplier::class, 1)); $orderdetail->setSupplier($manager->find(Supplier::class, 1));
$orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(1.0)->setPrice(10)); $orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(1.0)->setPrice("10.0"));
$orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(10.0)->setPrice(15)); $orderdetail->addPricedetail((new Pricedetail())->setPriceRelatedQuantity(10.0)->setPrice("15.1"));
$part->addOrderdetail($orderdetail); $part->addOrderdetail($orderdetail);
$attachment = new PartAttachment(); $attachment = new PartAttachment();