DeliveryNote: Make stats changeable in BaseDataWindow

This commit is contained in:
2023-10-10 19:19:29 +02:00
parent 91a3786cd9
commit 7d8c670ed2
5 changed files with 65 additions and 5 deletions

View File

@ -10,10 +10,10 @@ namespace Elwig.Documents {
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
// 1 - GA only
// 2 - GA only and area commitments of varieties from delivery note
// 3 - full
public int DisplayStats = 2;
public int DisplayStats = App.Client.ModeDeliveryNoteStats;
public DeliveryNote(Delivery d, AppDbContext ctx) : base($"Traubenübernahmeschein Nr. {d.LsNr}", d.Member) {
UseBillingAddress = true;

View File

@ -58,6 +58,11 @@ table.delivery-stats {
break-after: avoid;
}
table.delivery-stats th,
table.delivery-stats td {
padding: 0.125mm 0;
}
table.delivery-stats:not(.expanded) tr.optional {
display: none;
}
@ -66,8 +71,8 @@ table.delivery-stats tr.subheading th {
text-align: left;
}
table.delivery.expanded tr.subheading:not(:has(~ tr)),
table.delivery tr.subheading:not(:has(~ tr:not(.optional))) {
table.delivery-stats.expanded tr.subheading:not(:has(~ tr)),
table.delivery-stats tr.subheading:not(:has(~ tr:not(.optional))) {
display: none;
}