@using PowderCoating.Core.Entities @model PowderCoating.Application.DTOs.Invoice.CreateInvoiceDto @{ ViewData["Title"] = "Create Invoice"; ViewData["PageIcon"] = "bi-receipt"; ViewData["PageHelpTitle"] = "Create Invoice"; ViewData["PageHelpContent"] = "Invoices start as Drafts — you can freely edit them until you click Send. Once sent, the invoice is locked and the customer is emailed. Line items are pre-populated from the job's items but you can add, edit, or remove any line before sending. Partial payments are supported after sending."; var jobNumber = ViewBag.JobNumber as string; var customerName = ViewBag.CustomerName as string; var customers = ViewBag.Customers as List; bool hasJob = !string.IsNullOrEmpty(jobNumber); } @section Styles { }
@if (hasJob) {

Job #@jobNumber — @customerName

} else {
} Back to Invoices
@Html.AntiForgeryToken() @if (!ViewData.ModelState.IsValid) { } @if (ViewBag.GuidedActivation != null) {
Optional next step: Create the invoice
This uses the real invoice flow. Review the line items, then save when you want to close the loop with billing.
}
Customer & Job
@if (hasJob) {

@customerName

@if (Model.JobId.HasValue) { @jobNumber } else { Merchandise Sale }

} else {
}
Invoice Details
Line Items
@for (int i = 0; i < Model.InvoiceItems.Count; i++) { var item = Model.InvoiceItems[i]; }
Description Qty Unit Price Total Color
No line items yet. Click "Add Line" to get started.
Notes
These notes appear on the printed/emailed invoice.
Totals
Subtotal $0.00
Tax Amount $0.00

Total $0.00
Cancel
@section Scripts { }