salix/modules/invoiceOut/front/index/index.html

110 lines
3.9 KiB
HTML
Raw Normal View History

2019-11-10 10:08:44 +00:00
<vn-auto-search
2020-03-13 19:33:12 +00:00
model="model">
2019-11-10 10:08:44 +00:00
</vn-auto-search>
<vn-data-viewer
model="model"
class="vn-w-lg">
2022-10-24 12:20:09 +00:00
<vn-card class="vn-pa-lg">
<vn-button
disabled="$ctrl.totalChecked == 0"
vn-click-stop="$ctrl.openPdf()"
icon="cloud_download"
title="Download PDF"
vn-tooltip="Download PDF">
</vn-button>
</vn-card>
2019-11-10 10:08:44 +00:00
<vn-card>
<vn-table model="model">
<vn-thead>
<vn-tr>
2022-10-24 12:20:09 +00:00
<vn-th shrink>
<vn-multi-check
model="model">
</vn-multi-check>
</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th field="ref">Reference</vn-th>
<vn-th field="issued" expand>Issued</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th field="amount" number>Amount</vn-th>
<vn-th field="clientFk">Client</vn-th>
<vn-th field="created" expand>Created</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th field="companyFk">Company</vn-th>
<vn-th field="dued" expand>Due date</vn-th>
2019-11-10 10:08:44 +00:00
<vn-th></vn-th>
<vn-th></vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
2020-03-13 19:33:12 +00:00
<a ng-repeat="invoiceOut in model.data"
2019-11-10 10:08:44 +00:00
class="clickable vn-tr search-result"
ui-sref="invoiceOut.card.summary({id: {{::invoiceOut.id}}})">
2022-10-24 12:20:09 +00:00
<vn-td>
<vn-check
ng-model="invoiceOut.checked"
vn-click-stop>
</vn-check>
</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td>{{::invoiceOut.ref | dashIfEmpty}}</vn-td>
2021-02-16 14:40:20 +00:00
<vn-td shrink>{{::invoiceOut.issued | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td number>{{::invoiceOut.amount | currency: 'EUR': 2 | dashIfEmpty}}</vn-td>
<vn-td>
<span
class="link"
2020-04-25 09:50:04 +00:00
vn-click-stop="clientDescriptor.show($event, invoiceOut.clientFk)">
2019-11-10 10:08:44 +00:00
{{::invoiceOut.clientSocialName | dashIfEmpty}}
</span>
</vn-td>
<vn-td expand>{{::invoiceOut.created | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
2019-11-10 10:08:44 +00:00
<vn-td>{{::invoiceOut.companyCode | dashIfEmpty}}</vn-td>
2021-02-16 14:40:20 +00:00
<vn-td shrink>{{::invoiceOut.dued | date:'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
2021-06-18 11:29:59 +00:00
<vn-td shrink>
2019-11-10 10:08:44 +00:00
<vn-icon-button
2020-04-25 09:50:04 +00:00
vn-click-stop="$ctrl.preview(invoiceOut)"
2019-11-10 10:08:44 +00:00
vn-tooltip="Preview"
2020-11-24 07:22:54 +00:00
icon="preview">
2019-11-10 10:08:44 +00:00
</vn-icon-button>
</vn-td>
</a>
</vn-tbody>
</vn-table>
2019-10-18 19:54:13 +00:00
</vn-card>
2019-11-10 10:08:44 +00:00
</vn-data-viewer>
<div fixed-bottom-right>
<vn-vertical style="align-items: center;">
<vn-button class="round sm vn-mb-sm"
2021-08-05 11:39:11 +00:00
icon="add"
ng-click="invoicingOptions.show($event)"
vn-tooltip="Make invoice..."
tooltip-position="left"
vn-acl="invoicing"
vn-acl-action="remove">
</vn-button>
<vn-menu vn-id="invoicingOptions">
<vn-item translate
name="manualInvoice"
ng-click="manualInvoicing.show()">
Manual invoicing
</vn-item>
2021-08-02 11:35:38 +00:00
<vn-item translate
name="globalInvoice"
ng-click="globalInvoicing.show()">
Global invoicing
</vn-item>
</vn-menu>
</vn-vertical>
</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>
<vn-client-descriptor-popover
vn-id="clientDescriptor">
</vn-client-descriptor-popover>
<vn-invoice-out-manual
vn-id="manual-invoicing">
2021-08-02 11:35:38 +00:00
</vn-invoice-out-manual>
<vn-invoice-out-global-invoicing
vn-id="global-invoicing"
company-fk="$ctrl.vnConfig.companyFk">
</vn-invoice-out-global-invoicing>