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) {