mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 10:57:40 +02:00
Allow to delete parts.
This commit is contained in:
parent
0ff9e3813a
commit
94ed78f66d
4 changed files with 55 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue