2019-03-28 10:55:23 +00:00
|
|
|
<vn-card class="summary">
|
|
|
|
<h5>{{$ctrl.summary.invoiceOut.ref}} - {{$ctrl.summary.invoiceOut.client.socialName}}</h5>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Date"
|
|
|
|
value="{{$ctrl.summary.invoiceOut.issued | dateTime: 'dd/MM/yyyy'}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Due"
|
|
|
|
value="{{$ctrl.summary.invoiceOut.dued | dateTime: 'dd/MM/yyyy'}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Created"
|
|
|
|
value="{{$ctrl.summary.invoiceOut.created | dateTime: 'dd/MM/yyyy'}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Booked"
|
|
|
|
value="{{$ctrl.summary.invoiceOut.booked | dateTime: 'dd/MM/yyyy'}}">
|
|
|
|
</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>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<h4 translate>Desglose impositivo</h4>
|
|
|
|
<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>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th number>Ticket id</vn-th>
|
|
|
|
<vn-th>Alias</vn-th>
|
2019-04-18 09:47:31 +00:00
|
|
|
<vn-th>Shipped</vn-th>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-th number>Amount</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="ticket in $ctrl.summary.invoiceOut.tickets">
|
|
|
|
<vn-td number>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showTicketDescriptor($event, ticket.id)"
|
|
|
|
class="link">
|
|
|
|
{{ticket.id | zeroFill:6}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.showClientDescriptor($event, ticket.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{ticket.nickname}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-04-18 09:47:31 +00:00
|
|
|
<vn-td>{{ticket.shipped | dateTime: 'dd/MM/yyyy'}}</vn-td>
|
2019-03-28 10:55:23 +00:00
|
|
|
<vn-td number>{{ticket.total | currency: 'EUR': 2}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</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>
|