src/Invoice/Creator.php
public function create($source)
    {
        $this->setInvoiceSource($source);
        $this->setPropertySources();
        $this->invoice = array();
        $this->invoice[Tag::Customer] = $this->getCustomer();
        $this->invoice[Tag::Customer][Tag::Invoice] = $this->getInvoice();
        $this->invoice[Tag::Customer][Tag::Invoice][Tag::Line] = $this->getInvoiceLines();
        $emailAsPdf = $this->getEmailAsPdf(!empty($this->invoice[Tag::Customer][Tag::Email]) ? $this->invoice[Tag::Customer][Tag::Email] : '');
        if (!empty($emailAsPdf)) {
            $this->invoice[Tag::Customer][Tag::Invoice][Tag::EmailAsPdf] = $emailAsPdf;
        }
        return $this->invoice;
    }
public function create($source)
    {
        $this->setInvoiceSource($source);
        $this->setPropertySources();
        $this->invoice = array();
        $this->invoice[Tag::Customer] = $this->getCustomer();
        $this->invoice[Tag::Customer][Tag::Invoice] = $this->getInvoice();
        $this->invoice[Tag::Customer][Tag::Invoice][Tag::Line] = $this->getInvoiceLines();
        $emailAsPdf = $this->getEmailAsPdf(!empty($this->invoice[Tag::Customer][Tag::Email]) ? $this->invoice[Tag::Customer][Tag::Email] : '');
        if (!empty($emailAsPdf)) {
            $this->invoice[Tag::Customer][Tag::Invoice][Tag::EmailAsPdf] = $emailAsPdf;
        }
        return $this->invoice;
    }
public function create ( $ source ) { $ this -> setInvoiceSource ( $ source ) ; $ this -> setPropertySources ( ) ; $ this -> invoice = array ( ) ; $ this -> invoice [ Tag :: Customer ] = $ this -> getCustomer ( ) ; $ this -> invoice [ Tag :: Customer ] [ Tag :: Invoice ] = $ this -> getInvoice ( ) ; $ this -> invoice [ Tag :: Customer ] [ Tag :: Invoice ] [ Tag :: Line ] = $ this -> getInvoiceLines ( ) ; $ emailAsPdf = $ this -> getEmailAsPdf ( ! empty ( $ this -> invoice [ Tag :: Customer ] [ Tag :: Email ] ) ? $ this -> invoice [ Tag :: Customer ] [ Tag :: Email ] : '' ) ; if ( ! empty ( $ emailAsPdf ) ) { $ this -> invoice [ Tag :: Customer ] [ Tag :: Invoice ] [ Tag :: EmailAsPdf ] = $ emailAsPdf ; } return $ this -> invoice ; }
Creates an Acumulus invoice from an order or credit note.

@param Source $source
The web shop order.

@return array
The acumulus invoice for this order.
Creates an Acumulus invoice from an order or credit note .