Moved receipt line items

This commit is contained in:
AJ
2025-10-04 18:17:50 -04:00
parent 65de073c01
commit 99788a3d2d

View File

@@ -51,9 +51,52 @@
} }
</div> </div>
</div> </div>
<!-- Line Items - Moved here for more space -->
@if (Model.LineItems.Any())
{
<div class="card shadow-sm mb-3">
<div class="card-header">
<strong>Line Items (@Model.LineItems.Count)</strong>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-sm table-hover mb-0">
<thead>
<tr>
<th style="width: 50px;">#</th>
<th>Description</th>
<th class="text-center" style="width: 80px;">Qty</th>
<th class="text-end" style="width: 100px;">Unit Price</th>
<th class="text-end" style="width: 100px;">Total</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.LineItems)
{
<tr>
<td class="text-muted">@item.LineNumber</td>
<td>@item.Description</td>
<td class="text-center">
@(item.Quantity?.ToString("0.##") ?? "-")
</td>
<td class="text-end">
@(item.UnitPrice?.ToString("C") ?? "-")
</td>
<td class="text-end">
<strong>@(item.LineTotal?.ToString("C") ?? "-")</strong>
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
}
</div> </div>
<!-- Right column - Metadata and Line Items --> <!-- Right column - Metadata -->
<div class="col-lg-4"> <div class="col-lg-4">
<!-- Receipt Info --> <!-- Receipt Info -->
<div class="card shadow-sm mb-3"> <div class="card shadow-sm mb-3">
@@ -131,53 +174,6 @@
</div> </div>
</div> </div>
<!-- Line Items -->
@if (Model.LineItems.Any())
{
<div class="card shadow-sm mb-3">
<div class="card-header">
<strong>Line Items (@Model.LineItems.Count)</strong>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-sm table-hover mb-0">
<thead>
<tr>
<th style="width: 50px;">#</th>
<th>Description</th>
<th class="text-center" style="width: 60px;">Qty</th>
<th class="text-end" style="width: 80px;">Price</th>
<th class="text-end" style="width: 80px;">Total</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.LineItems)
{
<tr>
<td class="text-muted">@item.LineNumber</td>
<td>
<div class="text-truncate" style="max-width: 200px;" title="@item.Description">
@item.Description
</div>
</td>
<td class="text-center">
@(item.Quantity?.ToString("0.##") ?? "-")
</td>
<td class="text-end">
@(item.UnitPrice?.ToString("C") ?? "-")
</td>
<td class="text-end">
<strong>@(item.LineTotal?.ToString("C") ?? "-")</strong>
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
}
<!-- Parse Logs --> <!-- Parse Logs -->
@if (Model.ParseLogs.Any()) @if (Model.ParseLogs.Any())
{ {