/**
  * change the invoice increment to the order increment id
  * only affects invoices without id (=new invoices)
  *
  * @param \Magento\Framework\Event\Observer $observer
  */
 public function execute(\Magento\Framework\Event\Observer $observer)
 {
     $this->assignIncrement($observer->getInvoice());
 }