src/Shop/InvoiceManager.php
public function invoiceCreate(Source $invoiceSource)
    {
        $result = $this->getInvoiceResult('InvoiceManager::invoiceCreate()');
        $shopEventSettings = $this->getConfig()->getShopEventSettings();
        if ($shopEventSettings['triggerInvoiceEvent'] == PluginConfig::TriggerInvoiceEvent_Create) {
            $result = $this->createAndSend($invoiceSource, $result);
        } else {
            $result->setSendStatus(Result::NotSent_TriggerInvoiceCreateNotEnabled);
        }
        $this->getLog()->notice($this->getSendResultLogText($invoiceSource, $result));
        return $result;
    }
public function invoiceCreate(Source $invoiceSource)
    {
        $result = $this->getInvoiceResult('InvoiceManager::invoiceCreate()');
        $shopEventSettings = $this->getConfig()->getShopEventSettings();
        if ($shopEventSettings['triggerInvoiceEvent'] == PluginConfig::TriggerInvoiceEvent_Create) {
            $result = $this->createAndSend($invoiceSource, $result);
        } else {
            $result->setSendStatus(Result::NotSent_TriggerInvoiceCreateNotEnabled);
        }
        $this->getLog()->notice($this->getSendResultLogText($invoiceSource, $result));
        return $result;
    }
public function invoiceCreate ( Source $ invoiceSource ) { $ result = $ this -> getInvoiceResult ( 'InvoiceManager::invoiceCreate()' ) ; $ shopEventSettings = $ this -> getConfig ( ) -> getShopEventSettings ( ) ; if ( $ shopEventSettings [ 'triggerInvoiceEvent' ] == PluginConfig :: TriggerInvoiceEvent_Create ) { $ result = $ this -> createAndSend ( $ invoiceSource , $ result ) ; } else { $ result -> setSendStatus ( Result :: NotSent_TriggerInvoiceCreateNotEnabled ) ; } $ this -> getLog ( ) -> notice ( $ this -> getSendResultLogText ( $ invoiceSource , $ result ) ) ; return $ result ; }
Processes an invoice create event.

@param \Siel\Acumulus\Invoice\Source $invoiceSource
The source for which a shop invoice was created.

@return \Siel\Acumulus\Invoice\Result
The result of sending (or not sending) the invoice.
Processes an invoice create event .