@model PowderCoating.Application.DTOs.Accounting.ExpenseDto @{ ViewData["Title"] = $"Expense {Model.ExpenseNumber}"; ViewData["PageIcon"] = "bi-receipt"; ViewData["PageHelpTitle"] = "Expense"; ViewData["PageHelpContent"] = "A direct purchase paid at the time of transaction. Expense Account shows what was bought; Paid From shows which bank/cash account was debited. Edit to correct any details. Delete permanently removes the record — there is no Void for expenses."; }
@Model.Date.ToString("MMMM d, yyyy")
Edit
@Html.AntiForgeryToken()
@if (TempData["Success"] != null) {
@TempData["Success"]
}
Expense Details
Date
@Model.Date.ToString("MMMM d, yyyy")
Expense Account
@Model.ExpenseAccountNumber @Model.ExpenseAccountName
Paid From
@Model.PaymentAccountName
Payment Method
@Model.PaymentMethod
@if (!string.IsNullOrEmpty(Model.VendorName)) {
Vendor
@Model.VendorName
} @if (!string.IsNullOrEmpty(Model.JobNumber)) {
Job
@Model.JobNumber
} @if (!string.IsNullOrEmpty(Model.Memo)) {
Memo
@Model.Memo
}
Recorded
@Model.CreatedAt.ToString("MMM d, yyyy h:mm tt")

Amount

@Model.Amount.ToString("C")

Receipt
@if (!string.IsNullOrEmpty(Model.ReceiptFilePath)) {
@Html.AntiForgeryToken()
}
@if (!string.IsNullOrEmpty(Model.ReceiptFilePath)) { var ext = System.IO.Path.GetExtension(Model.ReceiptFilePath).ToLowerInvariant(); if (ext == ".pdf") {

PDF receipt attached

Download PDF
} else { Receipt
} } else {

No receipt attached

Upload Receipt
}
@if (!string.IsNullOrEmpty(Model.ReceiptFilePath) && System.IO.Path.GetExtension(Model.ReceiptFilePath).ToLowerInvariant() != ".pdf") { }