salix/modules/invoiceIn/front/index/index.html

107 lines
4.0 KiB
HTML
Raw Normal View History

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>
2021-04-12 10:43:17 +00:00
<a
ng-repeat="invoiceIn in model.data"
class="clickable vn-tr search-result"
ui-sref="invoiceIn.card.summary({id: {{::invoiceIn.id}}})">
2021-02-10 14:03:11 +00:00
<vn-td>{{::invoiceIn.id}}</vn-td>
<vn-td>
<span
2021-04-12 10:43:17 +00:00
class="link"
2021-02-10 14:03:11 +00:00
vn-click-stop="supplierDescriptor.show($event, invoiceIn.supplierFk)">
{{::invoiceIn.supplierName}}
</span>
2021-04-12 10:43:17 +00:00
</vn-td>
2021-02-10 14:03:11 +00:00
<vn-td>{{::invoiceIn.supplierRef | dashIfEmpty}}</vn-td>
2021-04-12 10:43:17 +00:00
<vn-td>{{::invoiceIn.serialNumber}}</vn-td>
<vn-td>{{::invoiceIn.serial}}</vn-td>
<vn-td>{{::invoiceIn.account}}</vn-td>
2021-02-10 14:03:11 +00:00
<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>
2021-04-12 10:43:17 +00:00
</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>
2021-04-01 12:00:34 +00:00
</vn-td>
<vn-td shrink>
2021-03-02 13:59:02 +00:00
<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>
2021-04-12 10:43:17 +00:00
<!-- <vn-supplier-descriptor-popover
2021-02-10 14:03:11 +00:00
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>
2021-04-12 10:43:17 +00:00
</vn-contextmenu> -->