DeliveryNote: Add Name property

This commit is contained in:
2024-03-27 15:40:14 +01:00
parent 5c42ef8104
commit a04f887b4d

View File

@ -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<string, MemberBucket> 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;