Fix bills.

This commit is contained in:
James Cole
2022-06-10 17:45:25 +02:00
parent 70ddbd743c
commit e0c9d3627e
6 changed files with 6 additions and 5 deletions

View File

@@ -88,7 +88,8 @@ export default {
if (0.0 === this.paidAmount) {
return 0;
}
const pct = (this.paidAmount / this.unpaidAmount) * 100;
const total = this.paidAmount + this.unpaidAmount;
const pct = (this.paidAmount / total) * 100;
if (pct > 100) {
return 100;
}