diff --git a/Elwig/Documents/CreditNote.cshtml b/Elwig/Documents/CreditNote.cshtml index 1a89c02..6d3339a 100644 --- a/Elwig/Documents/CreditNote.cshtml +++ b/Elwig/Documents/CreditNote.cshtml @@ -88,7 +88,7 @@ @{ string FormatRow(string name, decimal? value, bool add = false, bool bold = false, bool subCat = false, bool noTopBorder = false) { - return $"" + return $"" + $"" + $"" + $"
{name}:{(value < 0 ? "–" : (add ? "+" : ""))}" @@ -101,12 +101,14 @@ @if (Model.Payment == null) { @Raw(FormatRow("Gesamt", sum, bold: true, noTopBorder: true)) } else { + var noBorder = true; if (Model.Payment.NetAmount != Model.Payment.Amount) { - @Raw(FormatRow("Zwischensumme", Model.Payment.NetAmount, noTopBorder: true)) + @Raw(FormatRow("Zwischensumme", Model.Payment.NetAmount, noTopBorder: noBorder)) + noBorder = false; @Raw(FormatRow(Model.MemberModifier, Model.Payment.Amount - Model.Payment.NetAmount, add: true)) } if (Model.Credit == null) { - @Raw(FormatRow("Gesamtbetrag", Model.Payment.Amount, bold: true)) + @Raw(FormatRow("Gesamtbetrag", Model.Payment.Amount, bold: true, noTopBorder: noBorder)) // TODO Mock VAT } else { var hasPrev = Model.Credit.PrevNetAmount != null; diff --git a/Elwig/Documents/CreditNote.css b/Elwig/Documents/CreditNote.css index 6ab6fff..3a2ddbf 100644 --- a/Elwig/Documents/CreditNote.css +++ b/Elwig/Documents/CreditNote.css @@ -42,6 +42,7 @@ table.credit-sum td.sum { font-style: italic; font-size: 8pt; width: 74mm; - float: left; + position: absolute; + left: 0; margin: 2mm 4mm; }