Documents: Make business documents more compact

This commit is contained in:
2023-09-14 20:44:48 +02:00
parent 470f092482
commit ba691f4d17
10 changed files with 36 additions and 16 deletions

View File

@ -9,6 +9,7 @@ namespace Elwig.Documents {
private TempFile? PdfFile = null;
public bool ShowFoldMarks = App.Config.Debug;
public string DataPath;
public int CurrentNextSeason;
public string? DocumentId;
@ -23,8 +24,8 @@ namespace Elwig.Documents {
DataPath = App.DataPath;
CurrentNextSeason = Utils.CurrentNextSeason;
Title = title;
Author = App.Client.NameFull;
Header = $"<h1>{c.Name}</h1>";
Author = c.NameFull;
Header = $"<div class='name'>{c.Name}</div><div class='suffix'>{c.NameSuffix}</div>";
Footer = Utils.GenerateFooter("<br/>", " \u00b7 ")
.Item(c.NameFull).NextLine()
.Item(c.Address).Item($"{c.Plz} {c.Ort}").Item("Österreich").Item("Tel.", c.PhoneNr).Item("Fax", c.FaxNr).NextLine()