2021-02-10 14:03:11 +00:00
|
|
|
<vn-auto-search
|
|
|
|
model="model">
|
|
|
|
</vn-auto-search>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-lg">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id">ID</vn-th>
|
|
|
|
<vn-th field="supplierFk">Supplier</vn-th>
|
|
|
|
<vn-th field="supplierRef">Supplier ref.</vn-th>
|
|
|
|
<vn-th field="serialNumber">Serial number</vn-th>
|
|
|
|
<vn-th field="serial">Serial</vn-th>
|
|
|
|
<vn-th field="account">Account</vn-th>
|
|
|
|
<vn-th field="issued" expand>Issued</vn-th>
|
|
|
|
<vn-th field="isBooked" center>Is booked</vn-th>
|
2021-03-02 13:59:02 +00:00
|
|
|
<vn-th field="awbCode" vn-tooltip="Air Waybill">AWB</vn-th>
|
2021-02-11 14:06:41 +00:00
|
|
|
<vn-th field="amount" filter-enabled="false">Amount</vn-th>
|
2021-02-10 14:03:11 +00:00
|
|
|
<vn-th></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<a ng-repeat="invoiceIn in model.data"
|
2021-03-08 06:53:00 +00:00
|
|
|
class="clickable vn-tr search-result">
|
2021-02-10 14:03:11 +00:00
|
|
|
<vn-td>{{::invoiceIn.id}}</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
vn-click-stop="supplierDescriptor.show($event, invoiceIn.supplierFk)">
|
|
|
|
{{::invoiceIn.supplierName}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::invoiceIn.supplierRef | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td>{{::invoiceIn.serialNumber}}</vn-td>
|
|
|
|
<vn-td>{{::invoiceIn.serial}}</vn-td>
|
|
|
|
<vn-td>{{::invoiceIn.account}}</vn-td>
|
|
|
|
<vn-td expand>{{::invoiceIn.issued | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
|
|
|
|
<vn-td center>
|
|
|
|
<vn-check disabled="true"
|
|
|
|
ng-model="invoiceIn.isBooked">
|
|
|
|
</vn-check>
|
|
|
|
</vn-td>
|
2021-03-02 13:59:02 +00:00
|
|
|
<vn-td>{{::invoiceIn.awbCode}}</vn-td>
|
2021-02-10 14:03:11 +00:00
|
|
|
<vn-td>{{::invoiceIn.amount | currency:'EUR'}}</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
2021-03-02 13:59:02 +00:00
|
|
|
vn-click-stop="$ctrl.preview(invoiceIn)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="preview">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-show="invoiceIn.dmsFk"
|
|
|
|
vn-click-stop="$ctrl.openPdf(invoiceIn.dmsFk)"
|
2021-02-10 14:03:11 +00:00
|
|
|
icon="cloud_download"
|
|
|
|
title="Download PDF"
|
|
|
|
vn-tooltip="Download PDF">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-invoice-in-summary
|
|
|
|
invoice-in="$ctrl.selectedinvoiceIn">
|
|
|
|
</vn-invoice-in-summary>
|
|
|
|
</vn-popup>
|
|
|
|
<vn-supplier-descriptor-popover
|
|
|
|
vn-id="supplierDescriptor">
|
|
|
|
</vn-supplier-descriptor-popover>
|
|
|
|
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model"
|
|
|
|
expr-builder="$ctrl.exprBuilder(param, value)">
|
|
|
|
<slot-menu>
|
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.filterBySelection()">
|
2021-02-10 14:03:11 +00:00
|
|
|
Filter by selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.excludeSelection()">
|
2021-02-10 14:03:11 +00:00
|
|
|
Exclude selection
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-if="contextmenu.isFilterAllowed()"
|
|
|
|
ng-click="contextmenu.removeFilter()">
|
2021-02-10 14:03:11 +00:00
|
|
|
Remove filter
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-click="contextmenu.removeAllFilters()">
|
2021-02-10 14:03:11 +00:00
|
|
|
Remove all filters
|
|
|
|
</vn-item>
|
|
|
|
<vn-item translate
|
2021-03-03 11:21:04 +00:00
|
|
|
ng-if="contextmenu.isActionAllowed()"
|
|
|
|
ng-click="contextmenu.copyValue()">
|
2021-02-10 14:03:11 +00:00
|
|
|
Copy value
|
|
|
|
</vn-item>
|
|
|
|
</slot-menu>
|
|
|
|
</vn-contextmenu>
|