|
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | 7 | {% if licenses.template|default(false) %} |
8 | | - <th><h6>{{ knp_pagination_sortable(licenses, 'id', 'l.id') }}</h6></th> |
9 | | - <th><h6>{{ knp_pagination_sortable(licenses, 'organisation', 'l.organisationName') }}</h6></th> |
10 | | - <th><h6>{{ knp_pagination_sortable(licenses, 'addon', 'l.addonName') }}</h6></th> |
| 8 | + <th><h6>{{ knp_pagination_sortable(licenses, 'id', 'l.senId') }}</h6></th> |
| 9 | + <th><h6>{{ knp_pagination_sortable(licenses, 'organisation', 'company.company') }}</h6></th> |
| 10 | + <th><h6>{{ knp_pagination_sortable(licenses, 'addon', 'addon.addonName') }}</h6></th> |
11 | 11 | <th><h6>{{ knp_pagination_sortable(licenses, 'type', 'l.licenseType') }}</h6></th> |
12 | | - <th><h6>{{ knp_pagination_sortable(licenses, 'start date', 'l.startDate') }}</h6></th> |
13 | | - <th><h6>{{ knp_pagination_sortable(licenses, 'end date', 'l.endDate') }}</h6></th> |
| 12 | + <th><h6>{{ knp_pagination_sortable(licenses, 'start date', 'l.maintenanceStartDate') }}</h6></th> |
| 13 | + <th><h6>{{ knp_pagination_sortable(licenses, 'end date', 'l.maintenanceEndDate') }}</h6></th> |
14 | 14 | {% else %} |
15 | 15 | <th><h6>id</h6></th> |
16 | 16 | <th><h6>organisation</h6></th> |
|
24 | 24 | <tbody> |
25 | 25 | {% for license in licenses %} |
26 | 26 | <tr> |
27 | | - <td>{{ macro.licenseUrl(license.licenseId) }}</td> |
| 27 | + <td>{{ macro.companyUrl(license.company.senId) }}</td> |
28 | 28 | <td> |
29 | | - {{ license.organisationName }} |
| 29 | + {{ license.company.company }} |
30 | 30 | {% if license.renewalAction == 'AUTO_QUOTE' %} |
31 | 31 | <span class="aui-lozenge aui-lozenge-current">quote</span> |
32 | 32 | {% endif %} |
33 | 33 | </td> |
34 | | - <td>{{ license.addonName }}</td> |
| 34 | + <td>{{ license.addon.addonName }}</td> |
35 | 35 | <td> |
36 | 36 | {{ license.licenseType }} |
37 | | - {% set key = license.licenseId ~ license.addonKey %} |
38 | | - {% if expiringSoonSales[key]|default(false) %} |
39 | | - <span class="aui-lozenge aui-lozenge-success aui-lozenge-subtle">${{ expiringSoonSales[key].vendorAmount }}</span> |
| 37 | + {% set lastTransaction = license.getLastTransaction() %} |
| 38 | + {% if lastTransaction %} |
| 39 | + <span class="aui-lozenge aui-lozenge-success aui-lozenge-subtle">${{ lastTransaction.vendorAmount }}</span> |
40 | 40 | {% endif %} |
41 | 41 | </td> |
42 | | - <td>{{ license.startDate|date('Y-m-d') }}</td> |
43 | | - <td>{{ license.endDate|date('Y-m-d') }}</td> |
| 42 | + <td>{{ license.maintenanceStartDate|date('Y-m-d') }}</td> |
| 43 | + <td>{{ license.maintenanceEndDate|date('Y-m-d') }}</td> |
44 | 44 | </tr> |
45 | 45 | {% endfor %} |
46 | 46 | </tbody> |
|
0 commit comments