Add Deliveries

This commit is contained in:
lorenz.stechauner committed 2023-04-27 23:34:58 +02:00
1 parent 15f999869a
commit 77781d227c
14 files changed
+278 -12

No files matched your search

+3 -1
View File
@@ -43,8 +43,10 @@ namespace Elwig.Documents {
string name;
if (this is BusinessLetter) {
name = "BusinessLetter";
} else if (this is DeliveryNote) {
name = "DeliveryNote";
} else {
throw new InvalidOperationException();
throw new InvalidOperationException("Invalid document object");
}
return await Html.CompileRenderAsync(name, this);
}