/**
  * @return void
  */
 public function install()
 {
     $this->info('This will put the basic invoice-types into the database.');
     $invoiceTypes = $this->invoiceConfig->getInvoiceTypes();
     $existingInvoiceTypes = $this->invoiceReader->getInvoiceTypes();
     foreach ($invoiceTypes as $invoiceType) {
         if (!in_array($invoiceType, $existingInvoiceTypes)) {
             $this->createInvoiceType($invoiceType);
         }
     }
 }
 /**
  * @param \Generated\Shared\Transfer\InvoiceTransfer $invoiceTransfer
  *
  * @return string
  */
 public function createReference(InvoiceTransfer $invoiceTransfer)
 {
     $sequenceNumberSettings = $this->invoiceConfig->getSequenceNumberSettings();
     return $this->facadeSequenceNumber->generate($sequenceNumberSettings);
 }