DeliveryNote: Make stats changeable in BaseDataWindow
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user