src/Invoice/Creator.php
protected function getInvoiceNumber($invoiceNumberSource)
    {
        $result = $invoiceNumberSource === PluginConfig::InvoiceNrSource_ShopInvoice ? $this->invoiceSource->getInvoiceReference() : null;
        if (empty($result)) {
            $result = $this->invoiceSource->getReference();
        }
        return $result;
    }
protected function getInvoiceNumber($invoiceNumberSource)
    {
        $result = $invoiceNumberSource === PluginConfig::InvoiceNrSource_ShopInvoice ? $this->invoiceSource->getInvoiceReference() : null;
        if (empty($result)) {
            $result = $this->invoiceSource->getReference();
        }
        return $result;
    }
protected function getInvoiceNumber ( $ invoiceNumberSource ) { $ result = $ invoiceNumberSource === PluginConfig :: InvoiceNrSource_ShopInvoice ? $ this -> invoiceSource -> getInvoiceReference ( ) : null ; if ( empty ( $ result ) ) { $ result = $ this -> invoiceSource -> getReference ( ) ; } return $ result ; }
Returns the number to use as invoice number.

@param int $invoiceNumberSource
\Siel\Acumulus\PluginConfig::InvoiceNrSource_ShopInvoice or
\Siel\Acumulus\PluginConfig::InvoiceNrSource_ShopOrder.

@return int
The number to use as invoice "number" on the Acumulus invoice. Note
that Acumulus expects a number and does not accept string prefixes or
such.
Returns the number to use as invoice number .