Commit 0c01bf2d authored by Antoine's avatar Antoine
Browse files

Update account.js

parent 2ebbdbff
......@@ -103,7 +103,7 @@ Account.prototype.computeBalance = async function computeBalance() {
let s = ops
.filter(
op =>
today.isAfter(op.debitDate || op.day, 'day') &&
today.isAfter(op.debitDate || op.date, 'day') &&
(op.type !== 'type.deferred_card' || this.type === 'account-type.card')
)
.reduce((sum, op) => sum + op.amount, this.initialAmount);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment