Documents: Change wording in documents

This commit is contained in:
2023-12-23 23:05:11 +01:00
parent 8e71e82efc
commit 6cf5e0d45e
2 changed files with 3 additions and 2 deletions

View File

@ -125,7 +125,7 @@ namespace Elwig.Documents {
<th>Lieferrecht</th> <th>Lieferrecht</th>
{(includeDelivery ? "<th>Unterliefert</th>" : "")} {(includeDelivery ? "<th>Unterliefert</th>" : "")}
{(includeDelivery ? "<th>Noch lieferbar</th>" : "")} {(includeDelivery ? "<th>Noch lieferbar</th>" : "")}
{(includeDelivery ? "<th>Geliefert</th>" : "")} {(includeDelivery ? "<th>Überliefert</th>" : "")}
{(includePayment ? "<th>Zugeteilt</th>" : "")} {(includePayment ? "<th>Zugeteilt</th>" : "")}
{(includeDelivery ? "<th>Geliefert</th>" : "")} {(includeDelivery ? "<th>Geliefert</th>" : "")}
</tr> </tr>

View File

@ -103,12 +103,13 @@
if (Model.Credit == null) { if (Model.Credit == null) {
@Raw(FormatRow("Gesamtbetrag", Model.Payment.Amount, bold: true, halfLine: totalLine)) @Raw(FormatRow("Gesamtbetrag", Model.Payment.Amount, bold: true, halfLine: totalLine))
totalLine = true; totalLine = true;
// TODO Mock VAT
} else { } else {
var hasPrev = Model.Credit.PrevNetAmount != null; var hasPrev = Model.Credit.PrevNetAmount != null;
@Raw(FormatRow(hasPrev ? "Gesamtbetrag" : "Nettobetrag", Model.Credit.NetAmount, bold: true, halfLine: totalLine)) @Raw(FormatRow(hasPrev ? "Gesamtbetrag" : "Nettobetrag", Model.Credit.NetAmount, bold: true, halfLine: totalLine))
totalLine = true; totalLine = true;
if (hasPrev) { if (hasPrev) {
@Raw(FormatRow("Bisher ausgezahlt", -Model.Credit.PrevNetAmount, add: true)) @Raw(FormatRow("Bisher berücksichtigt", -Model.Credit.PrevNetAmount, add: true))
@Raw(FormatRow("Nettobetrag", Model.Credit.NetAmount - (Model.Credit.PrevNetAmount ?? 0))) @Raw(FormatRow("Nettobetrag", Model.Credit.NetAmount - (Model.Credit.PrevNetAmount ?? 0)))
} }
@Raw(FormatRow($"Mehrwertsteuer ({Model.Credit.Vat * 100} %)", Model.Credit.VatAmount, add: true)) @Raw(FormatRow($"Mehrwertsteuer ({Model.Credit.Vat * 100} %)", Model.Credit.VatAmount, add: true))