MH: InvoiceCustomerRO geschlechtsneutrale Anrede
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user