This commit is contained in:
parent
0c27b90c5d
commit
92eef27f37
|
@ -122,7 +122,11 @@
|
|||
<vn-td>{{::ticket.warehouse}}</vn-td>
|
||||
<vn-td>{{::ticket.refFk | dashIfEmpty}}</vn-td>
|
||||
<vn-td shrink>{{::ticket.zoneLanding | dateTime: 'HH:mm'}}</vn-td>
|
||||
<vn-td number>{{::ticket.total | currency: 'EUR': 2}}</vn-td>
|
||||
<vn-td>
|
||||
<span number class="chip {{$ctrl.totalPriceColor(ticket)}}">
|
||||
{{::ticket.total | currency: 'EUR': 2}}
|
||||
</span>
|
||||
</vn-td>
|
||||
<vn-td actions>
|
||||
<vn-icon-button
|
||||
ng-click="$ctrl.goToLines($event, ticket.id)"
|
||||
|
|
|
@ -102,6 +102,11 @@ export default class Controller {
|
|||
return 'alert';
|
||||
}
|
||||
|
||||
totalPriceColor(ticket) {
|
||||
if (parseInt(ticket.total) < 50)
|
||||
return 'warning';
|
||||
}
|
||||
|
||||
showClientDescriptor(event, clientFk) {
|
||||
this.preventDefault(event);
|
||||
this.$.clientDescriptor.clientFk = clientFk;
|
||||
|
|
Loading…
Reference in New Issue