using Elwig.Helpers;
using Elwig.Models;
using System.Collections.Generic;
namespace Elwig.Documents {
public class DeliveryNote : BusinessDocument {
public Delivery Delivery;
public string? Text;
public IEnumerable<(string, string, int, int, int)> MemberBuckets;
// 0 - none
// 1 - only business shares
// 2 - only business shares and area commitments of varieties from delivery note
// 3 - full
public int DisplayStats = 2;
public DeliveryNote(Delivery d, AppDbContext ctx) : base($"Traubenübernahmeschein Nr. {d.LsNr}", d.Member) {
UseBillingAddress = true;
ShowDateAndLocation = true;
Delivery = d;
Aside = Aside.Replace("", "") +
$"Lieferung