CreditNote: Split table into two tables

This commit is contained in:
2024-01-07 21:47:25 +01:00
parent 3562d304de
commit 60b99bf95b
2 changed files with 10 additions and 5 deletions

View File

@ -78,6 +78,8 @@
}
}
</tbody>
</table>
<table class="credit-sum">
@{
string FormatRow(string name, decimal? value, bool add = false, bool bold = false, bool subCat = false) {
return $"<tr class=\"{(bold ? "large bold" : "")}\">"
@ -89,7 +91,6 @@
+ $"</tr>\n";
}
}
<thead><tr></tr></thead>
<tbody style="break-inside: avoid;">
@{ var sum = Model.Data.Rows.Sum(p => p.Amount); }
@if (Model.Payment == null) {

View File

@ -1,4 +1,8 @@
table.credit {
margin-bottom: 0;
}
table.credit .mod {
padding-left: 5mm;
}
@ -19,12 +23,12 @@ table.credit tr.last td {
padding-bottom: 0;
}
table.credit tr.sum,
table.credit tr .sum {
table.credit-sum tr.sum,
table.credit-sum tr .sum {
font-size: 12pt;
}
table.credit tr.sum td,
table.credit td.sum {
table.credit-sum tr.sum td,
table.credit-sum td.sum {
padding-top: 1mm !important;
}