ProfEggersStiftung/RechnungPflege - Ansprechpartner angepasst

This commit is contained in:
2024-01-26 14:14:08 +01:00
parent 08c450bc4c
commit c4d4ad9378
3 changed files with 13 additions and 9 deletions

View File

@@ -240,6 +240,8 @@ namespace ProfEggersStiftung
//
// xrTableCell6
//
this.xrTableCell6.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "CreatorName")});
this.xrTableCell6.Name = "xrTableCell6";
this.xrTableCell6.Text = "Katja Waldschmidt";
this.xrTableCell6.Weight = 0.70712667704046073D;
@@ -247,7 +249,7 @@ namespace ProfEggersStiftung
// xrTableCell7
//
this.xrTableCell7.Name = "xrTableCell7";
this.xrTableCell7.Text = "0201/856955-2 verwaltung@eggers-stiftung.de";
this.xrTableCell7.Text = "[SenderContactPersonPhone] verwaltung@eggers-stiftung.de";
this.xrTableCell7.Weight = 1.5230420736256078D;
//
// xrTableCell8

View File

@@ -29,36 +29,40 @@ namespace ProfEggersStiftung
lblMonat.Text = String.Format("Pflegekostenrechnung {0:MMMM yyyy} - {1:MMMM yyyy}", start, end);
}
decimal hourlyRate = 0;
decimal hours = 0;
if (pRO.ServiceInvoicePeriods != null && pRO.ServiceInvoicePeriods.Count > 0)
{
foreach (var p in pRO.ServiceInvoicePeriods)
{
if (p.ServiceInvoiceItems != null && p.ServiceInvoiceItems.Count > 0)
{
foreach (var i in p.ServiceInvoiceItems)
{
if (i.HourlyRate.HasValue)
{
hourlyRate = i.HourlyRate.Value;
}
if (i.Hours.HasValue)
{
hours += i.Hours.Value;
}
}
}
}
}
if (!String.IsNullOrEmpty(pRO.CustomerSalutation) && pRO.CustomerSalutation.ToLower() == "herr")
{
pRO.CustomerSalutation = "Herrn";
}
if (pRO.SenderContactPersonPhone == null)
{
pRO.SenderContactPersonPhone = "0201-8953322";
}
var absencetimes = pRO.InvoiceBase.SupportConceptCostBearerRelDc.SupportConcept.Customer.AbsenceTimes;

View File

@@ -60,9 +60,7 @@ namespace ProfEggersStiftung
if (pRO.SenderContactPersonPhone == null)
{
pRO.SenderContactPersonPhone = "0201-8953322";
}
lblAbrechnungstext.Text = String.Format("{0:0.##} FLS x {1:c} = ", hours, hourlyRate);
this.bindingSource1.DataSource = pRO;