MH: InvoiceCustomerRO geschlechtsneutrale Anrede

This commit is contained in:
2025-04-07 12:21:27 +02:00
parent 27cc7dc9d9
commit ae93e498ca
3 changed files with 40 additions and 31 deletions

View File

@@ -142,16 +142,27 @@ namespace BeWo.Report.ReportObjects
if (p.Sex == Sex.Male)
{
result.RecipientSalutationAddressField = "Herrn";
result.RecipientSalutation = "Sehr geehrter Herr";
result.RecipientSalutation = "Sehr geehrter Herr " + p.LastName+ ",";
}
else
else if (p.Sex == Sex.Female)
{
result.RecipientSalutationAddressField = "Frau";
result.RecipientSalutation = "Sehr geehrte Frau";
result.RecipientSalutation = "Sehr geehrte Frau " + p.LastName + ",";
}
result.RecipientSalutation = String.Format("{0} {1},", result.RecipientSalutation, p.LastName);
else if (p.Sex == Sex.Divers || !p.Sex.HasValue)
{
result.RecipientSalutationAddressField = "";
result.RecipientSalutation = "Guten Tag " + p.FirstName + " " + p.LastName + ",";
}
//}
result.CustomerSalutation = p.Sex == Sex.Male ? "Herr" : "Frau";
if (p.Sex == Sex.Male)
result.CustomerSalutation = "Herr";
else if (p.Sex == Sex.Female)
result.CustomerSalutation = "Frau";
else
result.CustomerSalutation = "";
if (p.Address != null)
{
result.CustomerStreet = p.Address.Street;