4ec55e7290
The HTML entity sweep script had a bug where it wrote empty files for any
view that contained no target Unicode characters, zeroing out 215 view files.
All views restored from the pre-sweep commit (cefdf3e).
Bulk gift certificate feature:
- BulkCreateGiftCertificateDto with Quantity (1-500), Amount, Reason, Expiry, Notes
- GenerateBulkGiftCertificatePdfAsync on IPdfService / PdfService: one Letter page
per cert, reusing the same purple/gold branded ComposeGiftCertificateContent helper
- GiftCertificatesController: BulkCreate GET/POST, BulkResult GET, BulkDownloadPdf POST
- Views: BulkCreate.cshtml (form with live total preview), BulkResult.cshtml (table +
Download All PDF button that POSTs cert IDs to avoid URL length limits)
- gift-certificate-bulk.js: live preview + spinner/disable on submit
- Index.cshtml: Bulk Create button added alongside New Certificate
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
77 lines
3.5 KiB
Plaintext
77 lines
3.5 KiB
Plaintext
@model PowderCoating.Web.ViewModels.Reports.JobStatusAgingViewModel
|
|
@{ ViewData["Title"] = "Job Status Aging"; }
|
|
|
|
<partial name="_ReportHeader" model="Model" />
|
|
|
|
<div class="card">
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<span class="fw-semibold">Active Jobs by Days in Current Status</span>
|
|
<span class="text-muted small">@Model.Items.Count active jobs</span>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-hover mb-0">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>Job #</th>
|
|
<th>Customer</th>
|
|
<th>Status</th>
|
|
<th>Priority</th>
|
|
<th class="text-end">Days in Status</th>
|
|
<th>Due Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Items)
|
|
{
|
|
var rowClass = item.IsOverdue ? "table-danger" : item.DaysInCurrentStatus > 7 ? "table-warning" : "";
|
|
<tr class="@rowClass">
|
|
<td>
|
|
<a asp-controller="Jobs" asp-action="Details" asp-route-id="@item.JobId">
|
|
@item.JobNumber
|
|
</a>
|
|
</td>
|
|
<td>@item.CustomerName</td>
|
|
<td><span class="badge bg-secondary">@item.StatusName</span></td>
|
|
<td>
|
|
@{
|
|
var pBadge = item.PriorityCode switch {
|
|
"RUSH" => "bg-danger",
|
|
"URGENT" => "bg-warning text-dark",
|
|
"HIGH" => "bg-orange text-white",
|
|
"LOW" => "bg-secondary",
|
|
_ => "bg-primary"
|
|
};
|
|
}
|
|
<span class="badge @pBadge">@item.PriorityName</span>
|
|
</td>
|
|
<td class="text-end fw-semibold">
|
|
@item.DaysInCurrentStatus day@(item.DaysInCurrentStatus != 1 ? "s" : "")
|
|
</td>
|
|
<td>
|
|
@if (item.DueDate.HasValue)
|
|
{
|
|
if (item.IsOverdue)
|
|
{
|
|
<span class="text-danger fw-semibold">
|
|
<i class="bi bi-exclamation-triangle me-1"></i>@item.DueDate.Value.ToString("MMM d, yyyy")
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<span>@item.DueDate.Value.ToString("MMM d, yyyy")</span>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<span class="text-muted">—</span>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|