From a04f887b4d96df2c629e4da5c0fd856083c0f06c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Wed, 27 Mar 2024 15:40:14 +0100 Subject: [PATCH] DeliveryNote: Add Name property --- Elwig/Documents/DeliveryNote.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Elwig/Documents/DeliveryNote.cs b/Elwig/Documents/DeliveryNote.cs index 3f9463f..7aace45 100644 --- a/Elwig/Documents/DeliveryNote.cs +++ b/Elwig/Documents/DeliveryNote.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; namespace Elwig.Documents { public class DeliveryNote : BusinessDocument { + public new static string Name => "Traubenübernahmeschein"; + public Delivery Delivery; public string? Text; public Dictionary MemberBuckets; @@ -15,7 +17,7 @@ namespace Elwig.Documents { // 3 - full public int DisplayStats = App.Client.ModeDeliveryNoteStats; - public DeliveryNote(Delivery d, AppDbContext? ctx = null) : base($"Traubenübernahmeschein Nr. {d.LsNr}", d.Member) { + public DeliveryNote(Delivery d, AppDbContext? ctx = null) : base($"{Name} Nr. {d.LsNr}", d.Member) { UseBillingAddress = true; ShowDateAndLocation = true; Delivery = d;