'onDeliveryNoteCreate' ]; } public function onDeliveryNoteCreate(DeliveryNoteCreateEvent $event) { $producerModule = ProducerModule::getInstance(); $documentModule = DocumentModule::getInstance(); if($producerModule->getSolver()->getConfig('delivery_note_automatic_validation')) { $documentModule->getManager()->validateDocument($event->deliveryNote); } } }