@model List @{ ViewData["Title"] = "Expenses"; ViewData["PageIcon"] = "bi-receipt"; ViewData["PageHelpTitle"] = "Expenses"; ViewData["PageHelpContent"] = "Expenses are direct purchases paid immediately (credit card, cash, debit). Use Bills instead when you receive a vendor invoice now but pay later. Each expense posts to an expense account and reduces a payment account. Optionally link to a Vendor and Job for detailed cost tracking."; }
New Expense
@if (TempData["Success"] != null) {
@TempData["Success"]
} @if ((decimal)ViewBag.TotalAmount > 0) {
Total shown: @(((decimal)ViewBag.TotalAmount).ToString("C"))
}
Clear
@if (Model.Any()) {
@foreach (var exp in Model) { }
Expense # Date Vendor Account Paid From Method Job Memo Amount
@exp.ExpenseNumber @exp.Date.ToString("MMM d, yyyy") @exp.VendorName @exp.ExpenseAccountNumber @exp.ExpenseAccountName @exp.PaymentAccountName @exp.PaymentMethod @exp.JobNumber @exp.Memo @exp.Amount.ToString("C")
} else {

No expenses found. Record your first expense to get started.

New Expense
}