From 16d429e9e4f7ee716dbf0afcf666da76e6ac6616 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 19 Dec 2023 22:04:34 +0100 Subject: [PATCH] DeliveryConfirmation: Keep last two tables together on page --- Elwig/Documents/BusinessDocument.cs | 4 ++-- Elwig/Documents/DeliveryConfirmation.css | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Elwig/Documents/BusinessDocument.cs b/Elwig/Documents/BusinessDocument.cs index 5351ae9..04820cc 100644 --- a/Elwig/Documents/BusinessDocument.cs +++ b/Elwig/Documents/BusinessDocument.cs @@ -77,7 +77,7 @@ namespace Elwig.Documents { tbl += "" + string.Join("", totals.Select(v => $"{v:N0}")) + $"{totalDict.Values.Sum():N0}"; - return "" + tbl + "
"; + return "" + tbl + "
"; } private static string FormatRow(int obligation, int right, int delivery, int? payment = null, bool isGa = false, bool showPayment = false) { @@ -154,7 +154,7 @@ namespace Elwig.Documents { } tbl += "\n\n"; - return $"\n" + tbl + "\n
"; + return $"\n" + tbl + "\n
"; } } } diff --git a/Elwig/Documents/DeliveryConfirmation.css b/Elwig/Documents/DeliveryConfirmation.css index 9a6a332..eb356e3 100644 --- a/Elwig/Documents/DeliveryConfirmation.css +++ b/Elwig/Documents/DeliveryConfirmation.css @@ -22,3 +22,11 @@ table.delivery-confirmation tr.sum { table.delivery-confirmation tr.sum td { padding-top: 1mm; } + +table.sortenaufteilung { + break-after: avoid; +} + +table.buckets { + break-before: avoid; +}