firegento / firegento-pdf

Generates nicer and configurable PDF for invoices, creditmemos and shippings in Magento
100 stars 62 forks source link

Move invoice/shipment/creditmemo out of Abstract.php #357

Open Schrank opened 6 years ago

Schrank commented 6 years ago

example: \FireGento_Pdf_Model_Engine_Abstract::insertHeader()

    if ($this->getMode() == 'invoice') {
        $title = 'Invoice';
    } elseif ($this->getMode() == 'shipment') {
        $title = 'Packingslip';
    } else {
        $title = 'Creditmemo';
    }