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

This commit is contained in:
Javi Gallego 2019-06-26 12:18:47 +02:00
parent 13abed3d00
commit b0c34f8e29
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -186,7 +186,7 @@
info="Invoices minus payments"> info="Invoices minus payments">
</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: '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}" ng-class="{alert: $ctrl.summary.defaulters[0].amount}"
info="Deviated invoices minus payments"> info="Deviated invoices minus payments">
</vn-label-value> </vn-label-value>