Clean up long texts

This commit is contained in:
Hillel Coren 2018-02-14 13:11:47 +02:00
parent 18d4f647a8
commit 9e071f58d7
3 changed files with 2 additions and 7 deletions

View File

@ -24,7 +24,7 @@ class ProductDatatable extends EntityDatatable
[
'notes',
function ($model) {
return e(Str::limit($model->notes, 100));
return $this->showWithTooltip($model->notes);
},
],
[

View File

@ -18,11 +18,6 @@ class InvoiceItemPresenter extends EntityPresenter
return $data;
}
public function notes()
{
return Str::limit($this->entity->notes);
}
public function tax1()
{
$item = $this->entity;

View File

@ -67,7 +67,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,
$item->notes,
Utils::roundSignificant($item->qty, 0),
Utils::roundSignificant($item->cost, 2),
];