BetreuwoWesel: Unterschriftsdatum-Spalte und FK-Support zu QB hinzugefügt

This commit is contained in:
2024-04-26 21:04:23 +02:00
parent f05eddec6a
commit 123b4fb831
3 changed files with 1540 additions and 3983 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,7 @@ namespace BetreuWoWesel
public void SetReportDataSource(ServicesOverviewRO pRO)
{
bool hatGruppen = false;
double minTotal = 0;
double flmTotal = 0;
if (pRO.Services != null)
{
@@ -31,12 +31,27 @@ namespace BetreuWoWesel
if (sd.IsBillable)
{
ServicesOverviewRO.CreateSignatureString(sd);
sd.Notice5 = "E";
if (sd.IsGroup)
{
//sd.Notice5 = String.Format("{0} Teilnehmer", sd.CustomerCount);
sd.Notice5 = "GR";
hatGruppen = true;
}
minTotal += sd.Minutes;
if (sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
{
sd.Notice5 = "F";
}
else
{
flmTotal += sd.Minutes;
}
if (sd.SignatureDate.HasValue && sd.SignatureDate.Value.Date == sd.StartDate.Date)
{
sd.SignatureDate = null;
}
servicesBillable.Add(sd);
}
}
@@ -44,14 +59,14 @@ namespace BetreuWoWesel
pRO.Services = servicesBillable;
}
DateTime dt = DateTime.Now.Date.AddMinutes(minTotal);
DateTime dt = DateTime.Now.Date.AddMinutes(flmTotal);
TimeSpan tspan = dt.Subtract(DateTime.Now.Date);
double d = tspan.TotalHours;
d = Math.Floor(d);
lblHoursMinutesString.Text = String.Format("{0:0.00} Stunden ({1}:{2:00})", minTotal / 60, d, tspan.Minutes);
lblHoursMinutesString.Text = String.Format("{0:0.00} Fachleistungs-Stunden ({1}:{2:00})", flmTotal / 60, d, tspan.Minutes);
if (String.IsNullOrWhiteSpace(pRO.AbsenceTimes))
{

File diff suppressed because one or more lines are too long