CreditNote: Split table into two tables
This commit is contained in:
@ -78,6 +78,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<table class="credit-sum">
|
||||||
@{
|
@{
|
||||||
string FormatRow(string name, decimal? value, bool add = false, bool bold = false, bool subCat = false) {
|
string FormatRow(string name, decimal? value, bool add = false, bool bold = false, bool subCat = false) {
|
||||||
return $"<tr class=\"{(bold ? "large bold" : "")}\">"
|
return $"<tr class=\"{(bold ? "large bold" : "")}\">"
|
||||||
@ -89,7 +91,6 @@
|
|||||||
+ $"</tr>\n";
|
+ $"</tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<thead><tr></tr></thead>
|
|
||||||
<tbody style="break-inside: avoid;">
|
<tbody style="break-inside: avoid;">
|
||||||
@{ var sum = Model.Data.Rows.Sum(p => p.Amount); }
|
@{ var sum = Model.Data.Rows.Sum(p => p.Amount); }
|
||||||
@if (Model.Payment == null) {
|
@if (Model.Payment == null) {
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
table.credit {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
table.credit .mod {
|
table.credit .mod {
|
||||||
padding-left: 5mm;
|
padding-left: 5mm;
|
||||||
}
|
}
|
||||||
@ -19,12 +23,12 @@ table.credit tr.last td {
|
|||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.credit tr.sum,
|
table.credit-sum tr.sum,
|
||||||
table.credit tr .sum {
|
table.credit-sum tr .sum {
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.credit tr.sum td,
|
table.credit-sum tr.sum td,
|
||||||
table.credit td.sum {
|
table.credit-sum td.sum {
|
||||||
padding-top: 1mm !important;
|
padding-top: 1mm !important;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user