DeliveryConfirmation: align weight to bottom

This commit is contained in:
2023-10-16 18:40:19 +02:00
parent f0751499ea
commit 8c49cc8ef2

View File

@ -73,8 +73,12 @@
} else { } else {
<td colspan="2"></td> <td colspan="2"></td>
} }
@if (i == bins.Length - 1) {
<td class="weight">@($"{p.Weight:N0}")</td>
} else {
<td></td>
}
@if (first) { @if (first) {
<td rowspan="@rows" class="weight">@($"{p.Weight:N0}")</td>
<td rowspan="@rows" class="weight"></td> <td rowspan="@rows" class="weight"></td>
first = false; first = false;
} }
@ -84,7 +88,7 @@
} }
<tr class="sum"> <tr class="sum">
<td colspan="8">Gesamt:</td> <td colspan="8">Gesamt:</td>
<td colspan="2" style="text-align: right;">@($"{Model.Deliveries.Sum(p => p.Weight):N0}")</td> <td colspan="2" class="weight">@($"{Model.Deliveries.Sum(p => p.Weight):N0}")</td>
<td></td> <td></td>
</tr> </tr>
</tbody> </tbody>