Added last sent date to recurring invoices list

This commit is contained in:
Hillel Coren 2017-01-22 22:43:17 +02:00
parent 9aaf7bf05a
commit 258beba895
2 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,12 @@ class RecurringInvoiceDatatable extends EntityDatatable
return Utils::fromSqlDate($model->start_date); return Utils::fromSqlDate($model->start_date);
} }
], ],
[
'last_sent',
function ($model) {
return Utils::fromSqlDate($model->last_sent_date);
}
],
[ [
'end_date', 'end_date',
function ($model) { function ($model) {

View File

@ -143,6 +143,7 @@ class InvoiceRepository extends BaseRepository
'frequencies.name as frequency', 'frequencies.name as frequency',
'invoices.start_date', 'invoices.start_date',
'invoices.end_date', 'invoices.end_date',
'invoices.last_sent_date',
'contacts.first_name', 'contacts.first_name',
'contacts.last_name', 'contacts.last_name',
'contacts.email', 'contacts.email',