Client invoices
This commit is contained in:
parent
b3037e2db9
commit
e6c44d74eb
|
@ -0,0 +1,30 @@
|
|||
<mg-ajax path="/client/api/Clients/{{index.params.id}}/listAddresses" options="mgIndex"></mg-ajax>
|
||||
<vn-card margin-medium pad-large>
|
||||
<vn-title>Invoices</vn-title>
|
||||
<vn-grid data="invoices">
|
||||
<table>
|
||||
<vn-grid-header>
|
||||
<vn-column-header field="ref" text="Reference" default-order="ASC"></vn-column-header>
|
||||
<vn-column-header field="issued" text="Issue date"></vn-column-header>
|
||||
<vn-column-header field="amount" text="Amount"></vn-column-header>
|
||||
</vn-grid-header>
|
||||
<tbody>
|
||||
<tr ng-if="invoices.length > 0" ng-repeat="invoice in invoices track by id">
|
||||
<td>{{::invoice.ref}}</td>
|
||||
<td>{{::invoice.issued | date:'dd/MM/yyyy'}}</td>
|
||||
<td>{{::invoice.amount | currency:'€':2}} €</td>
|
||||
</tr>
|
||||
<tr ng-if="!invoices || invoices.length == 0">
|
||||
<td colspan="3" translate>No results</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td ng-if="$ctrl.sum > 0">{{total | currency:'€':2}}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<vn-paging margin-large-top index="index" total="index.model.count"></vn-paging>
|
||||
</vn-grid>
|
||||
</vn-card>
|
|
@ -0,0 +1,7 @@
|
|||
import ngModule from '../module';
|
||||
import FilterClientList from '../filter-client-list';
|
||||
|
||||
ngModule.component('vnClientInvoices', {
|
||||
template: require('./invoices.html'),
|
||||
controller: FilterClientList
|
||||
});
|
|
@ -0,0 +1,4 @@
|
|||
Invoices: Facturas
|
||||
Reference: Referencia
|
||||
Issue date: Fecha de emisión
|
||||
Amount: Total
|
Loading…
Reference in New Issue