#1142 order.line total

This commit is contained in:
Carlos Jimenez Ruiz 2019-02-19 17:55:19 +01:00
parent 9108e0af52
commit 7d2bc25c95
3 changed files with 23 additions and 12 deletions

View File

@ -489,7 +489,7 @@ export default {
saveButton: `${components.vnSubmit}`
},
orderLine: {
orderSubtotal: 'vn-order-line > vn-vertical > vn-card > div > vn-vertical > vn-horizontal > div > span',
orderSubtotal: 'vn-order-line vn-horizontal.header p:nth-child(1)',
firstLineDeleteButton: 'vn-order-line vn-tbody > vn-tr:nth-child(1) vn-icon[icon="delete"]',
confirmOrder: 'vn-order-line > vn-vertical > vn-button-bar > vn-button > button',
confirmButton: 'vn-order-line > vn-confirm button[response="ACCEPT"]',

View File

@ -5,17 +5,12 @@
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-horizontal>
<div class="totalBox">
<vn-label translate>Subtotal</vn-label>
<span>{{$ctrl.subtotal | currency: 'EUR':2}}</span>
<p>
<vn-label translate>VAT</vn-label>
<span>{{$ctrl.VAT | currency: 'EUR':2}}</span>
</p>
<vn-label><strong>Total</strong></vn-label>
<strong>{{$ctrl.order.total | currency: 'EUR':2}}</strong>
</div>
<vn-horizontal class="header">
<vn-one class="taxes" ng-if="$ctrl.rows.length > 0">
<p><vn-label translate>Subtotal</vn-label> {{$ctrl.subtotal | currency: 'EUR':2}}</p>
<p><vn-label translate>VAT</vn-label> {{$ctrl.VAT | currency: 'EUR':2}}</p>
<p><vn-label><strong>Total</strong></vn-label> <strong>{{$ctrl.order.total | currency: 'EUR':2}}</strong></p>
</vn-one>
</vn-horizontal>
<vn-table>
<vn-thead>

View File

@ -6,4 +6,20 @@ vn-order-line{
height: 50px;
}
}
.taxes {
max-width: 10em;
border: .1em solid #CCC;
text-align: right;
padding: .5em !important;
& > p {
font-size: 1.2em;
margin: .2em;
}
}
vn-horizontal.header {
justify-content: flex-end;
margin-bottom: 0.5em;
}
}