1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Short description/name field for recurring invoices #1314

This commit is contained in:
Hillel Coren 2017-05-16 21:37:26 +03:00
parent b2a2ac6630
commit 8a4889a441
2 changed files with 11 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class RecurringInvoiceDatatable extends EntityDatatable
$frequency = strtolower($model->frequency);
$frequency = preg_replace('/\s/', '_', $frequency);
return link_to("invoices/{$model->public_id}", trans('texts.freq_'.$frequency))->toHtml();
return link_to("recurring_invoices/{$model->public_id}/edit", trans('texts.freq_'.$frequency))->toHtml();
},
],
[
@ -42,18 +42,26 @@ class RecurringInvoiceDatatable extends EntityDatatable
return Utils::fromSqlDate($model->last_sent_date_sql);
},
],
/*
[
'end_date',
function ($model) {
return Utils::fromSqlDate($model->end_date_sql);
},
],
*/
[
'amount',
function ($model) {
return Utils::formatMoney($model->amount, $model->currency_id, $model->country_id);
},
],
[
'private_notes',
function ($model) {
return $model->private_notes;
},
],
[
'status',
function ($model) {

View File

@ -177,7 +177,8 @@ class InvoiceRepository extends BaseRepository
'invoices.due_date',
'invoices.due_date as due_date_sql',
'invoices.is_recurring',
'invoices.quote_invoice_id'
'invoices.quote_invoice_id',
'invoices.private_notes'
);
if ($clientPublicId) {