Add Gesamtlieferung to DeliveryNote
This commit is contained in:
1 parent
75e6c1bd5d
commit
9b84452b86
7 files changed
+130
-13
No files matched your search
@@ -41,7 +41,7 @@ namespace Elwig.Windows {
|
||||
private void PdfButton_Click(object sender, RoutedEventArgs evt) {
|
||||
Utils.RunBackground("PDF Generation", async () => {
|
||||
using var ctx = new AppDbContext();
|
||||
using var doc = new DeliveryNote(ctx.Deliveries.OrderBy(d => d.Parts.Count).ThenBy(d => d.Year).ThenBy(d => d.DId).Last());
|
||||
using var doc = new DeliveryNote(ctx.Deliveries.OrderBy(d => d.Parts.Count).ThenBy(d => d.Year).ThenBy(d => d.DId).Last(), ctx);
|
||||
await doc.Generate();
|
||||
doc.Show();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user