Receipts: Print all receipts values with 2 decimal places

This commit is contained in:
Minz committed 2026-02-03 11:21:21 +01:00
1 parent f17cdb12c0
commit fceefcc667
3 files changed
+4 -4

No files matched your search

+1 -1
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);
}
}