LaravelDaily / laravel-invoices

Laravel package to generate PDF invoices from various customizable parameters
GNU General Public License v3.0
1.4k stars 304 forks source link

call to undefined method status & description #130

Closed zidnim5 closed 2 years ago

zidnim5 commented 2 years ago
$items = [
            (new InvoiceItem())
                ->title('Service 1')
                ->description('Your product or service description') // here is the problem
                ->pricePerUnit(47.79)
                ->quantity(2)
                ->discount(10),
        ];
  $invoice = Invoice::make('receipt')
            ->series('BIG')
            ->status(__('invoices::invoice.paid')) // here is the problem
            ->sequence(667)
  1. Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method LaravelDaily\Invoices\Classes\InvoiceItem::description()
  2. Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method LaravelDaily\Invoices\Invoice::status()

package version : 1.3 laravel version : 5.8

PovilasKorop commented 2 years ago

@zidnim5 invoice status was introduced in v2.2 of the package. Description was also added pretty recently.

So please update the package.