Allow to delete parts.

This commit is contained in:
Jan Böhmer 2019-09-02 17:42:13 +02:00
parent 0ff9e3813a
commit 94ed78f66d
4 changed files with 55 additions and 8 deletions

View file

@ -84,7 +84,7 @@ class OrderdetailType extends AbstractType
$orderdetail = $event->getData();
$dummy_pricedetail = new Pricedetail();
if ($orderdetail->getSupplier() !== null) {
if ($orderdetail !== null && $orderdetail->getSupplier() !== null) {
$dummy_pricedetail->setCurrency($orderdetail->getSupplier()->getDefaultCurrency());
}