client summary red color on negative balance #1007

This commit is contained in:
Joan Sanchez 2019-01-21 08:16:43 +01:00
parent 6e43b11e16
commit b73c02c595
2 changed files with 7 additions and 5 deletions

View File

@ -168,11 +168,11 @@
<h4 translate>Financial information</h4> <h4 translate>Financial information</h4>
<vn-label-value label="Risk" <vn-label-value label="Risk"
value="{{$ctrl.summary.debt.debt | currency:'€':2}}" value="{{$ctrl.summary.debt.debt | currency:'€':2}}"
ng-class="{bold: $ctrl.summary.debt.debt > $ctrl.summary.credit}"> ng-class="{alert: $ctrl.summary.debt.debt > $ctrl.summary.credit}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Credit" <vn-label-value label="Credit"
value="{{$ctrl.summary.credit | currency:'€':2 }} " value="{{$ctrl.summary.credit | currency:'€':2 }} "
ng-class="{bold: $ctrl.summary.credit > $ctrl.summary.creditInsurance || ng-class="{alert: $ctrl.summary.credit > $ctrl.summary.creditInsurance ||
($ctrl.summary.credit && $ctrl.summary.creditInsurance == null)}"> ($ctrl.summary.credit && $ctrl.summary.creditInsurance == null)}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Secured credit" <vn-label-value label="Secured credit"
@ -183,7 +183,7 @@
</vn-label-value> </vn-label-value>
<vn-label-value label="Balance due" <vn-label-value label="Balance due"
value="{{$ctrl.summary.defaulters[0].amount | currency:'€':2}}" value="{{$ctrl.summary.defaulters[0].amount | currency:'€':2}}"
ng-class="{bold: $ctrl.summary.defaulters[0].amount}"> ng-class="{alert: $ctrl.summary.defaulters[0].amount}">
</vn-label-value> </vn-label-value>
<vn-vertical ng-if="$ctrl.summary.recovery.started"> <vn-vertical ng-if="$ctrl.summary.recovery.started">
<vn-label-value label="Recovery since" <vn-label-value label="Recovery since"

View File

@ -1,5 +1,7 @@
@import 'colors';
vn-client-summary { vn-client-summary {
.bold { .alert span {
font-family: vn-font-bold; color: $alert-01 !important
} }
} }