Add Deliveries

This commit is contained in:
2023-04-27 23:34:58 +02:00
parent 15f999869a
commit 77781d227c
14 changed files with 278 additions and 12 deletions

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);
}