% content_for :title, "Expense Report" %>
| Title | Amount | Date | Description |
|---|---|---|---|
| <%= expense.title %> | <%= number_to_currency(expense.amount, unit: "₹") %> | <%= expense.date.strftime("%d %b %Y") %> | <%= expense.description %> |
| No expense for today. | |||
| Total | <%= number_to_currency(@daily_expense || 0, unit: "₹") %> | ||
| Title | Amount | Date | Description |
|---|---|---|---|
| <%= expense.title %> | <%= number_to_currency(expense.amount, unit: "₹") %> | <%= expense.date.strftime("%d %b %Y") %> | <%= expense.description %> |
| No expense for this week. | |||
| Total | <%= number_to_currency(@weekly_expense || 0, unit: "₹") %> | ||
| Title | Amount | Date | Description |
|---|---|---|---|
| <%= expense.title %> | <%= number_to_currency(expense.amount, unit: "₹") %> | <%= expense.date.strftime("%d %b %Y") %> | <%= expense.description %> |
| No expense for this month. | |||
| Total | <%= number_to_currency(@monthly_expense || 0, unit: "₹") %> | ||