DeliveryConfirmation: Add user editable Text

This commit is contained in:
2023-10-16 18:24:17 +02:00
parent d4dd84394b
commit f0751499ea
6 changed files with 27 additions and 3 deletions

View File

@ -9,12 +9,14 @@ namespace Elwig.Documents {
public int Year;
public IEnumerable<DeliveryPart> Deliveries;
public string? Text = App.Client.TextDeliveryConfirmation;
public DeliveryConfirmation(AppDbContext ctx, int year, Member m) :
base($"Anlieferungsbestätigung {year} {((IAddress?)m.BillingAddress ?? m).Name}", m) {
Year = year;
ShowDateAndLocation = true;
UseBillingAddress = true;
IncludeSender = true;
// FIXME footer in merged documents
//DocumentId = $"Anl.-Best. {Year}/{m.MgNr}";
Deliveries = ctx.DeliveryParts.FromSqlRaw($"""