diff --git a/Elwig/Documents/CreditNote.cshtml b/Elwig/Documents/CreditNote.cshtml index 834eb10..9cc9f60 100644 --- a/Elwig/Documents/CreditNote.cshtml +++ b/Elwig/Documents/CreditNote.cshtml @@ -78,6 +78,8 @@ } } + + @{ string FormatRow(string name, decimal? value, bool add = false, bool bold = false, bool subCat = false) { return $"" @@ -89,7 +91,6 @@ + $"\n"; } } - @{ var sum = Model.Data.Rows.Sum(p => p.Amount); } @if (Model.Payment == null) { diff --git a/Elwig/Documents/CreditNote.css b/Elwig/Documents/CreditNote.css index 5e9c328..5729ecf 100644 --- a/Elwig/Documents/CreditNote.css +++ b/Elwig/Documents/CreditNote.css @@ -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; }