Mobile layout fix for Job Details items; coat color on invoice line items
- Job Details: hide desktop item tables on mobile (d-none d-lg-block) so only the existing mobile-card layout shows on small screens — prevents 20-line rows on a narrow phone display - Invoices Create (ForJob path): load job item coats and derive ColorName from coat colors when the item itself has no explicit color set; multiple coats join as 'Color1 / Color2' — lets customers distinguish repeated items (e.g. multiple caliper sets) on the invoice Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -324,6 +324,7 @@
|
||||
@* -- Catalog Products -- *@
|
||||
@if (catalogItems.Any())
|
||||
{
|
||||
<div class="d-none d-lg-block">
|
||||
<h6 class="text-primary mb-3"><i class="bi bi-bag-check me-2"></i>Catalog Products</h6>
|
||||
<div class="table-responsive mb-4">
|
||||
<table class="table table-hover table-sm">
|
||||
@@ -412,11 +413,13 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@* -- Custom Work -- *@
|
||||
@if (customItems.Any())
|
||||
{
|
||||
<div class="d-none d-lg-block">
|
||||
<h6 class="text-success mb-3"><i class="bi bi-calculator me-2"></i>Custom Work</h6>
|
||||
<div class="table-responsive mb-4">
|
||||
<table class="table table-hover table-sm">
|
||||
@@ -563,11 +566,13 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@* -- Labor -- *@
|
||||
@if (laborItems.Any())
|
||||
{
|
||||
<div class="d-none d-lg-block">
|
||||
<h6 class="text-warning mb-3"><i class="bi bi-person-gear me-2"></i>Labor</h6>
|
||||
<div class="table-responsive mb-4">
|
||||
<table class="table table-hover table-sm">
|
||||
@@ -614,6 +619,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@* -- Mobile cards -- *@
|
||||
|
||||
Reference in New Issue
Block a user