src/Invoice/Creator.php
protected function getInvoiceDate($dateToUse)
    {
        $result = $this->invoiceSource->getInvoiceDate();
        if ($dateToUse != PluginConfig::InvoiceDate_OrderCreate || empty($result)) {
            $result = $this->invoiceSource->getDate();
        }
        return $result;
    }
protected function getInvoiceDate($dateToUse)
    {
        $result = $this->invoiceSource->getInvoiceDate();
        if ($dateToUse != PluginConfig::InvoiceDate_OrderCreate || empty($result)) {
            $result = $this->invoiceSource->getDate();
        }
        return $result;
    }
protected function getInvoiceDate ( $ dateToUse ) { $ result = $ this -> invoiceSource -> getInvoiceDate ( ) ; if ( $ dateToUse != PluginConfig :: InvoiceDate_OrderCreate || empty ( $ result ) ) { $ result = $ this -> invoiceSource -> getDate ( ) ; } return $ result ; }
Returns the date to use as invoice date.

@param int $dateToUse
\Siel\Acumulus\PluginConfig::InvoiceDate_InvoiceCreate or
\Siel\Acumulus\PluginConfig::InvoiceDate_OrderCreate

@return string
Date to use as invoice date on the Acumulus invoice: yyyy-mm-dd.
Returns the date to use as invoice date .