#1564 client.summary defaulting cantidad
gitea/salix/test This commit looks good Details

This commit is contained in:
Javi Gallego 2019-06-26 12:18:47 +02:00 committed by Joan Sanchez
parent a15f6e2573
commit f79b638e49
2 changed files with 2 additions and 3 deletions

View File

@ -27,6 +27,5 @@
"model": "Client",
"foreignKey": "clientFk"
}
},
"scope" : {"where": {"amount": {"gt": 0}}}
}
}

View File

@ -186,7 +186,7 @@
info="Invoices minus payments">
</vn-label-value>
<vn-label-value label="Balance due"
value="{{$ctrl.summary.defaulters[0].amount | currency: 'EUR':2}}"
value="{{($ctrl.summary.defaulters[0].amount >= 0 ? $ctrl.summary.defaulters[0].amount : '-') | currency: 'EUR':2}}"
ng-class="{alert: $ctrl.summary.defaulters[0].amount}"
info="Deviated invoices minus payments">
</vn-label-value>