2019-03-13 13:10:45 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="InvoiceOuts/filter"
|
2019-03-13 13:10:45 +00:00
|
|
|
limit="20"
|
2019-04-25 06:28:08 +00:00
|
|
|
data="invoiceOuts"
|
|
|
|
order="issued DESC">
|
2019-03-13 13:10:45 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<div class="content-block">
|
2019-10-18 19:54:13 +00:00
|
|
|
<vn-card class="vn-pa-md vn-w-sm">
|
|
|
|
<vn-searchbar
|
|
|
|
panel="vn-invoice-search-panel"
|
|
|
|
on-search="$ctrl.onSearch($params)"
|
|
|
|
info="Search invoices by reference"
|
|
|
|
vn-focus>
|
|
|
|
</vn-searchbar>
|
|
|
|
</vn-card>
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-w-md vn-my-md">
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
2019-03-13 13:10:45 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="ref">Reference</vn-th>
|
|
|
|
<vn-th field="issued">Issued</vn-th>
|
|
|
|
<vn-th field="amount" number>Amount</vn-th>
|
|
|
|
<vn-th field="clientFk">Client</vn-th>
|
|
|
|
<vn-th field="created">Created</vn-th>
|
|
|
|
<vn-th field="companyFk">Company</vn-th>
|
|
|
|
<vn-th field="dued">Due date</vn-th>
|
|
|
|
<vn-th></vn-th>
|
2019-04-02 10:32:15 +00:00
|
|
|
<vn-th></vn-th>
|
2019-03-13 13:10:45 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2019-04-25 06:28:08 +00:00
|
|
|
<a ng-repeat="invoiceOut in invoiceOuts"
|
2019-03-13 13:10:45 +00:00
|
|
|
class="clickable vn-tr searchResult"
|
2019-03-28 10:55:23 +00:00
|
|
|
ui-sref="invoiceOut.card.summary({id: {{::invoiceOut.id}}})">
|
|
|
|
<vn-td>{{::invoiceOut.ref | dashIfEmpty}}</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td>{{::invoiceOut.issued | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-td number>{{::invoiceOut.amount | currency: 'EUR': 2 | dashIfEmpty}}</vn-td>
|
2019-03-13 13:10:45 +00:00
|
|
|
<vn-td>
|
2019-04-02 10:32:15 +00:00
|
|
|
<span
|
2019-03-13 13:10:45 +00:00
|
|
|
class="link"
|
2019-03-28 10:55:23 +00:00
|
|
|
ng-click="$ctrl.showClientDescriptor($event, invoiceOut.clientFk)">
|
2019-04-25 06:28:08 +00:00
|
|
|
{{::invoiceOut.clientSocialName | dashIfEmpty}}
|
2019-03-13 13:10:45 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td>{{::invoiceOut.created | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
|
2019-04-25 06:28:08 +00:00
|
|
|
<vn-td>{{::invoiceOut.companyCode | dashIfEmpty}}</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td>{{::invoiceOut.dued | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
|
2019-03-13 13:10:45 +00:00
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
2019-03-28 10:55:23 +00:00
|
|
|
ng-show="invoiceOut.hasPdf"
|
|
|
|
ng-click="$ctrl.openPdf(invoiceOut.id, $event)"
|
2019-03-13 13:10:45 +00:00
|
|
|
icon="cloud_download"
|
|
|
|
title="Download PDF"
|
|
|
|
vn-tooltip="Download PDF">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
2019-04-02 10:32:15 +00:00
|
|
|
<vn-td>
|
2019-03-13 13:10:45 +00:00
|
|
|
<vn-icon-button
|
2019-03-28 10:55:23 +00:00
|
|
|
ng-click="$ctrl.preview($event, invoiceOut)"
|
2019-03-13 13:10:45 +00:00
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
2019-04-02 10:32:15 +00:00
|
|
|
</vn-td>
|
2019-03-13 13:10:45 +00:00
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2019-10-02 19:02:49 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
2019-03-13 13:10:45 +00:00
|
|
|
</div>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-invoice-out-summary
|
|
|
|
invoice-out="$ctrl.selectedInvoiceOut">
|
|
|
|
</vn-invoice-out-summary>
|
|
|
|
</vn-popup>
|
2019-10-02 19:02:49 +00:00
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
|
|
|
</vn-client-descriptor-popover>
|
2019-09-05 11:06:40 +00:00
|
|
|
<vn-scroll-up></vn-scroll-up>
|