client descriptor add risk
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-05-18 11:50:55 +02:00
parent 1f2dee9c12
commit b953fa8773
3 changed files with 12 additions and 1 deletions

View File

@ -32,6 +32,11 @@
<vn-label-value label="Secured credit"
value="{{$ctrl.client.creditInsurance | currency: 'EUR': 2}}">
</vn-label-value>
<vn-label-value label="Risk"
value="{{$ctrl.client.debt | currency: 'EUR':2}}"
ng-class="{alert: $ctrl.client.debt > $ctrl.client.credit}"
info="Invoices minus payments plus orders not yet invoiced">
</vn-label-value>
<vn-label-value label="Sales person"
value="{{$ctrl.client.salesPerson.user.nickname}}">
</vn-label-value>

View File

@ -23,7 +23,6 @@ class Controller extends Component {
set client(value) {
this._client = value;
if (!value) return;
if (this.$params.sendSMS)

View File

@ -0,0 +1,7 @@
@import "variables";
vn-client-descriptor {
.alert span {
color: $color-alert !important
}
}