Receipts: Print all receipts values with 2 decimal places

This commit is contained in:
2026-02-03 11:21:21 +01:00
parent f17cdb12c0
commit fceefcc667
3 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ module.exports = {
return acc + entry.amount;
}, 0);
reply = `${message.author.globalName} spent ${additionalSpent}€ / ${(additionalSpent * currentBudget.exchange_rate).toFixed(2)} kr of their budget.\nThey have ${currentBudget.budget_amount - totalSpent}€ / ${((currentBudget.budget_amount - totalSpent) * currentBudget.exchange_rate).toFixed(2)} kr remaining.`;
reply = `${message.author.globalName} spent ${additionalSpent.toFixed(2)}€ / ${(additionalSpent * currentBudget.exchange_rate).toFixed(2)} kr of their budget.\nThey have ${(currentBudget.budget_amount - totalSpent).toFixed(2)}€ / ${((currentBudget.budget_amount - totalSpent) * currentBudget.exchange_rate).toFixed(2)} kr remaining.`;
await message.reply(reply);
}
}