2021-06-14 09:38:57 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="ticketsModel"
|
2021-08-12 11:55:10 +00:00
|
|
|
url="InvoiceOuts/{{$ctrl.invoiceOut.id}}/getTickets"
|
2021-06-14 09:38:57 +00:00
|
|
|
limit="10"
|
2021-07-13 06:59:36 +00:00
|
|
|
data="tickets">
|
2021-06-14 09:38:57 +00:00
|
|
|
</vn-crud-model>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-card class="summary">
|
2020-11-23 12:41:51 +00:00
|
|
|
<h5>
|
|
|
|
<a ng-if="::$ctrl.summary.invoiceOut.id"
|
|
|
|
vn-tooltip="Go to the Invoice Out"
|
|
|
|
ui-sref="invoiceOut.card.summary({id: {{::$ctrl.summary.invoiceOut.id}}})"
|
|
|
|
name="goToSummary">
|
|
|
|
<vn-icon-button icon="launch"></vn-icon-button>
|
|
|
|
</a>
|
|
|
|
<span>{{$ctrl.summary.invoiceOut.ref}} - {{$ctrl.summary.invoiceOut.client.socialName}}</span>
|
2021-11-09 14:10:43 +00:00
|
|
|
<vn-invoice-out-descriptor-menu
|
|
|
|
invoice-out="$ctrl.summary.invoiceOut"
|
|
|
|
parent-reload="$ctrl.reload()"
|
|
|
|
/>
|
2020-11-23 12:41:51 +00:00
|
|
|
</h5>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Date"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.invoiceOut.issued | date: 'dd/MM/yyyy'}}">
|
2019-03-28 10:55:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Due"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.invoiceOut.dued | date: 'dd/MM/yyyy'}}">
|
2019-03-28 10:55:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Created"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.invoiceOut.created | date: 'dd/MM/yyyy'}}">
|
2019-03-28 10:55:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Booked"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.invoiceOut.booked | date: 'dd/MM/yyyy'}}">
|
2019-03-28 10:55:23 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Company"
|
|
|
|
value="{{$ctrl.summary.invoiceOut.company.code | dashIfEmpty}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
2019-04-18 09:47:31 +00:00
|
|
|
<vn-two>
|
2020-02-07 14:42:11 +00:00
|
|
|
<h4 translate>Tax breakdown</h4>
|
2019-04-18 09:47:31 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th>Type</vn-th>
|
|
|
|
<vn-th>Taxable base</vn-th>
|
|
|
|
<vn-th>Rate</vn-th>
|
|
|
|
<vn-th>Fee</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="tax in $ctrl.summary.invoiceOut.taxesBreakdown">
|
|
|
|
<vn-td>{{tax.name}}</vn-td>
|
|
|
|
<vn-td>{{tax.taxableBase | currency: 'EUR': 2}}</vn-td>
|
|
|
|
<vn-td>{{tax.rate}}%</vn-td>
|
|
|
|
<vn-td>{{tax.vat | currency: 'EUR': 2}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-two>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-auto>
|
|
|
|
<h4 translate>Ticket</h4>
|
2021-07-13 06:59:36 +00:00
|
|
|
<vn-table>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Ticket id</vn-th>
|
|
|
|
<vn-th>Alias</vn-th>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th expand>Shipped</vn-th>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-th number>Amount</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2021-06-14 09:38:57 +00:00
|
|
|
<vn-tr ng-repeat="ticket in tickets">
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span
|
2020-04-25 09:50:04 +00:00
|
|
|
ng-click="ticketDescriptor.show($event, ticket.id)"
|
2019-03-28 10:55:23 +00:00
|
|
|
class="link">
|
2019-11-22 06:41:06 +00:00
|
|
|
{{ticket.id}}
|
2019-03-28 10:55:23 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
2020-04-25 09:50:04 +00:00
|
|
|
ng-click="clientDescriptor.show($event, ticket.clientFk)"
|
2019-03-28 10:55:23 +00:00
|
|
|
class="link">
|
|
|
|
{{ticket.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2020-11-24 13:56:10 +00:00
|
|
|
<vn-td expand>{{ticket.shipped | date: 'dd/MM/yyyy' | dashIfEmpty}}</vn-td>
|
2022-11-14 14:16:21 +00:00
|
|
|
<vn-td number expand>{{ticket.totalWithVat | currency: 'EUR': 2}}</vn-td>
|
2019-03-28 10:55:23 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2021-06-14 09:38:57 +00:00
|
|
|
<vn-pagination
|
|
|
|
model="ticketsModel"
|
|
|
|
class="vn-pt-xs">
|
|
|
|
</vn-pagination>
|
2019-03-28 10:55:23 +00:00
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-ticket-descriptor-popover
|
|
|
|
vn-id="ticketDescriptor">
|
|
|
|
</vn-ticket-descriptor-popover>
|
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
|
|
|
</vn-client-descriptor-popover>
|