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:
@@ -47,6 +47,7 @@ public class Job : BaseEntity
|
||||
|
||||
// Additional Information
|
||||
public string? CustomerPO { get; set; }
|
||||
public string? ProjectName { get; set; }
|
||||
public string? SpecialInstructions { get; set; }
|
||||
public string? InternalNotes { get; set; } // Internal notes from quote
|
||||
public string? Tags { get; set; }
|
||||
|
||||
@@ -88,6 +88,7 @@ public class Quote : BaseEntity
|
||||
public string? Terms { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
public string? CustomerPO { get; set; }
|
||||
public string? ProjectName { get; set; }
|
||||
public string? Tags { get; set; }
|
||||
|
||||
// Conversion tracking
|
||||
|
||||
Reference in New Issue
Block a user