diff --git a/Tasks/PdfBuilder.cs b/Tasks/PdfBuilder.cs
index 9096269..912b9d9 100644
--- a/Tasks/PdfBuilder.cs
+++ b/Tasks/PdfBuilder.cs
@@ -61,7 +61,8 @@ public class PdfBuilder
var owner = Settings._instance.customers.customers.FirstOrDefault(c => c.ID == addressSet.owner_id);
if (owner != null && !string.IsNullOrWhiteSpace(owner.sender_address))
// ensure single line and wrap in a small-font tag
- senderLine = "" + owner.sender_address.Replace("\n", " ").Trim() + "\n";
+ senderLine = "" + owner.sender_address.Replace("\n", " ").Trim();
+
}
catch
{
@@ -73,7 +74,14 @@ public class PdfBuilder
var addr = AddressCreator.CreateFinalMarkdownString(addressSet.KasPersons[i].refsid);
if (string.IsNullOrWhiteSpace(addr.Trim())) continue;
if (!string.IsNullOrEmpty(senderLine))
+ {
+ if (addressSet.KasPersons[i].refsid != null)
+ {
+ senderLine += "\nID: " + addressSet.KasPersons[i].refsid + "\n";
+ }
addresses.Add(senderLine + addr);
+
+ }
else
addresses.Add(addr);
}