Lines 229-234
Link Here
|
229 |
<thead> |
229 |
<thead> |
230 |
<tr> |
230 |
<tr> |
231 |
<th>Date</th> |
231 |
<th>Date</th> |
|
|
232 |
<th>Cashier</th> |
232 |
<th>Amount</th> |
233 |
<th>Amount</th> |
233 |
<th data-class-name="actions">Actions</th> |
234 |
<th data-class-name="actions">Actions</th> |
234 |
</tr> |
235 |
</tr> |
Lines 408-416
Link Here
|
408 |
"ajax": { |
409 |
"ajax": { |
409 |
"url": cashups_table_url |
410 |
"url": cashups_table_url |
410 |
}, |
411 |
}, |
411 |
"order": [[ 1, "asc" ]], |
412 |
"header_filter": true, |
|
|
413 |
"embed": [ |
414 |
"manager" |
415 |
], |
416 |
"order": [[ 0, "asc" ]], |
412 |
"columnDefs": [ { |
417 |
"columnDefs": [ { |
413 |
"targets": [0,1], |
418 |
"targets": [0,1,2], |
414 |
"render": function (data, type, row, meta) { |
419 |
"render": function (data, type, row, meta) { |
415 |
if ( type == 'display' ) { |
420 |
if ( type == 'display' ) { |
416 |
return data.escapeHtml(); |
421 |
return data.escapeHtml(); |
Lines 427-432
Link Here
|
427 |
return $datetime(row.timestamp); |
432 |
return $datetime(row.timestamp); |
428 |
} |
433 |
} |
429 |
}, |
434 |
}, |
|
|
435 |
{ |
436 |
"data": "manager.firstname:manager.surname", |
437 |
"searchable": true, |
438 |
"orderable": true, |
439 |
"render": function(data, type, row, meta) { |
440 |
var fullname = row.manager.firstname + " " + row.manager.surname; |
441 |
return fullname; |
442 |
} |
443 |
}, |
430 |
{ |
444 |
{ |
431 |
"data": "amount", |
445 |
"data": "amount", |
432 |
"searchable": true, |
446 |
"searchable": true, |
433 |
- |
|
|