2019-01-20 15:47:04 +00:00
|
|
|
<vn-card class="summary">
|
2020-11-11 11:45:45 +00:00
|
|
|
<h5>
|
|
|
|
<span>
|
|
|
|
Ticket #{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}}
|
|
|
|
({{$ctrl.summary.client.salesPersonFk}})
|
|
|
|
</span>
|
2020-06-30 06:32:04 +00:00
|
|
|
<vn-button
|
|
|
|
disabled="$ctrl.order.isConfirmed"
|
|
|
|
class="flat"
|
|
|
|
style="color: inherit;"
|
|
|
|
label="Confirm"
|
|
|
|
ng-click="$ctrl.save()"
|
|
|
|
vn-tooltip="Confirm lines">
|
|
|
|
</vn-button>
|
|
|
|
</h5>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-horizontal class="ticketSummary__data">
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Id"
|
|
|
|
value="{{$ctrl.summary.id}}">
|
|
|
|
</vn-label-value>
|
2020-11-11 11:45:45 +00:00
|
|
|
<vn-label-value label="Nickname">
|
|
|
|
<span
|
|
|
|
ng-click="clientDescriptor.show($event, $ctrl.summary.clientFk)"
|
|
|
|
class="link">
|
|
|
|
{{$ctrl.summary.address.nickname}}
|
|
|
|
</span>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
2019-05-14 06:13:04 +00:00
|
|
|
<vn-check label="Confirmed" disabled="true"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.summary.isConfirmed">
|
2019-05-14 06:13:04 +00:00
|
|
|
</vn-check>
|
2020-06-17 11:25:12 +00:00
|
|
|
<vn-label-value label="Company"
|
|
|
|
value="{{$ctrl.summary.address.companyFk}}">
|
|
|
|
</vn-label-value>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="Created"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.created | date: 'dd/MM/yyyy HH:mm'}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Confirmed"
|
2019-10-18 23:18:25 +00:00
|
|
|
value="{{$ctrl.summary.confirmed | date: 'dd/MM/yyyy HH:mm'}}">
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value label="Address"
|
|
|
|
value="{{$ctrl.formattedAddress}}">
|
2020-06-17 11:25:12 +00:00
|
|
|
</vn-label-value>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-label-value label="Phone"
|
|
|
|
value="{{$ctrl.summary.address.phone}}">
|
|
|
|
</vn-label-value>
|
2019-10-07 08:35:34 +00:00
|
|
|
<vn-label-value label="Created from"
|
|
|
|
value="{{$ctrl.summary.sourceApp}}">
|
|
|
|
</vn-label-value>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<vn-label-value label="{{'Notes'}}"
|
|
|
|
value="{{$ctrl.summary.note}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one class="taxes">
|
2019-01-31 10:44:03 +00:00
|
|
|
<p><vn-label translate>Subtotal</vn-label> {{$ctrl.summary.subTotal | currency: 'EUR':2}}</p>
|
|
|
|
<p><vn-label translate>VAT</vn-label> {{$ctrl.summary.VAT | currency: 'EUR':2}}</p>
|
|
|
|
<p><vn-label><strong>Total</strong></vn-label> <strong>{{$ctrl.summary.total | currency: 'EUR':2}}</strong></p>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-one>
|
2018-10-10 10:55:04 +00:00
|
|
|
<vn-auto>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-table>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-03-22 10:56:21 +00:00
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink>Item</vn-th>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-th>Description</vn-th>
|
|
|
|
<vn-th number>Quantity</vn-th>
|
|
|
|
<vn-th number>Price</vn-th>
|
|
|
|
<vn-th number>Amount</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="row in $ctrl.summary.rows track by row.id">
|
2019-03-22 10:56:21 +00:00
|
|
|
<vn-td shrink>
|
2018-10-10 10:55:04 +00:00
|
|
|
<vn-icon
|
|
|
|
ng-show="row.visible || row.available"
|
2019-02-08 16:49:51 +00:00
|
|
|
color-main
|
2018-10-10 10:55:04 +00:00
|
|
|
icon="warning"
|
|
|
|
vn-tooltip="Visible: {{::row.visible || 0}} <br> {{::$ctrl.translate.instant('Available')}} {{::row.available || 0}}">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon ng-show="row.reserved" icon="icon-reserva"></vn-icon>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-td>
|
2019-03-22 10:56:21 +00:00
|
|
|
<vn-td shrink>
|
2018-10-10 10:55:04 +00:00
|
|
|
<span
|
2020-04-28 12:26:02 +00:00
|
|
|
ng-click="descriptor.show($event, row.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
2019-02-20 11:12:16 +00:00
|
|
|
{{::row.itemFk | zeroFill:6}}
|
2018-10-10 10:55:04 +00:00
|
|
|
</span>
|
2019-02-10 21:52:35 +00:00
|
|
|
</vn-td>
|
2019-02-20 11:12:16 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<vn-fetched-tags
|
2019-03-22 14:05:15 +00:00
|
|
|
max-length="6"
|
|
|
|
item="::row.item"
|
2019-07-02 10:12:15 +00:00
|
|
|
name="::row.item.name"
|
2019-03-22 14:05:15 +00:00
|
|
|
sub-name="::row.item.subName">
|
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
2019-02-10 21:52:35 +00:00
|
|
|
<vn-td number>{{::row.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::row.price | currency: 'EUR':2}}</vn-td>
|
|
|
|
<vn-td number>{{::row.quantity * row.price | currency: 'EUR':2}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
2018-10-10 10:55:04 +00:00
|
|
|
</table>
|
2019-01-20 15:47:04 +00:00
|
|
|
</vn-auto>
|
|
|
|
</vn-horizontal>
|
2018-10-10 10:55:04 +00:00
|
|
|
</vn-card>
|
2019-01-20 15:47:04 +00:00
|
|
|
<vn-item-descriptor-popover
|
2019-05-07 09:32:35 +00:00
|
|
|
vn-id="descriptor">
|
2018-10-10 10:55:04 +00:00
|
|
|
</vn-item-descriptor-popover>
|
2020-11-11 11:45:45 +00:00
|
|
|
<vn-client-descriptor-popover
|
|
|
|
vn-id="clientDescriptor">
|
|
|
|
</vn-client-descriptor-popover>
|