diff --git a/app/Ninja/Presenters/InvoiceItemPresenter.php b/app/Ninja/Presenters/InvoiceItemPresenter.php index daa898602610f..0411df7a5b328 100644 --- a/app/Ninja/Presenters/InvoiceItemPresenter.php +++ b/app/Ninja/Presenters/InvoiceItemPresenter.php @@ -2,6 +2,7 @@ namespace App\Ninja\Presenters; +use Str; use stdClass; class InvoiceItemPresenter extends EntityPresenter @@ -16,4 +17,9 @@ class InvoiceItemPresenter extends EntityPresenter return $data; } + + public function notes() + { + return Str::limit($this->entity->notes); + } } diff --git a/app/Ninja/Reports/ProductReport.php b/app/Ninja/Reports/ProductReport.php index f9dd811adc6c3..d0a9c7c96a7ee 100644 --- a/app/Ninja/Reports/ProductReport.php +++ b/app/Ninja/Reports/ProductReport.php @@ -13,6 +13,7 @@ class ProductReport extends AbstractReport 'invoice_number', 'invoice_date', 'product', + 'description', 'qty', 'cost', //'tax_rate1', @@ -45,6 +46,7 @@ class ProductReport extends AbstractReport $this->isExport ? $invoice->invoice_number : $invoice->present()->link, $invoice->present()->invoice_date, $item->product_key, + $this->isExport ? $item->notes : $item->present()->notes, Utils::roundSignificant($item->qty, 0), Utils::roundSignificant($item->cost, 2), ];