Receipts: Print all receipts values with 2 decimal places
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user