Add optional Project Name field to quotes, jobs, and printed documents
- Add ProjectName (nvarchar 100, nullable) to Quote and Job entities; migration AddProjectNameToQuotesAndJobs applied - Add ProjectName to all relevant DTOs: QuoteDto/Create/Update, JobDto/List/Create/Update, InvoiceDto (mapped from Job.ProjectName via AutoMapper so the invoice PDF picks it up without a separate column) - Form field added after Customer PO in Quote Create/Edit and Job Create/Edit - CreateJobFromQuote copies ProjectName from quote to job automatically - Details views (Quote and Job) display Project when set - Printable quote PDF: Project row in the quote details block - Work order: Project row in customer/job info section - Invoice PDF: Project shown in the Job Reference block alongside Job # and PO # Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -357,6 +357,13 @@
|
||||
<div class="info-value">@Model.CustomerPO</div>
|
||||
</div>
|
||||
}
|
||||
@if (!string.IsNullOrWhiteSpace(Model.ProjectName))
|
||||
{
|
||||
<div class="info-row">
|
||||
<div class="info-label">Project</div>
|
||||
<div class="info-value">@Model.ProjectName</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="section-title">
|
||||
|
||||
Reference in New Issue
Block a user