MH: BeWoFuerDich QB auf Standard umgestellt

This commit is contained in:
2023-05-03 10:59:38 +02:00
parent 5f5acab9a5
commit 4aacff5f49
2 changed files with 33 additions and 51 deletions

View File

@@ -50,6 +50,7 @@
<ItemGroup>
<Compile Include="CustomMitarbeiterstundenkontoBerechnung.cs" />
<Compile Include="CustomMitarbeiterstundenkontoBerechnungMonate.cs" />
<Compile Include="CustomReportCreator.cs" />
<Compile Include="InvoiceCustomerReport.cs">
<SubType>Component</SubType>
</Compile>
@@ -81,25 +82,12 @@
<Compile Include="LeistungsnachweisJugendamt.Designer.cs">
<DependentUpon>LeistungsnachweisJugendamt.cs</DependentUpon>
</Compile>
<Compile Include="CustomReportCreator.cs" />
<Compile Include="ServiceInvoiceReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ServiceInvoiceReport.Designer.cs">
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
</Compile>
<Compile Include="QuittierungsbelegMitFehlkontakten.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="QuittierungsbelegMitFehlkontakten.Designer.cs">
<DependentUpon>QuittierungsbelegMitFehlkontakten.cs</DependentUpon>
</Compile>
<Compile Include="ServicesOverviewReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ServicesOverviewReport.Designer.cs">
<DependentUpon>ServicesOverviewReport.cs</DependentUpon>
</Compile>
<Compile Include="SettlementReport2.cs">
<SubType>Component</SubType>
</Compile>
@@ -141,12 +129,6 @@
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="QuittierungsbelegMitFehlkontakten.resx">
<DependentUpon>QuittierungsbelegMitFehlkontakten.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ServicesOverviewReport.resx">
<DependentUpon>ServicesOverviewReport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SettlementReport2.resx">
<DependentUpon>SettlementReport2.cs</DependentUpon>
<SubType>Designer</SubType>

View File

@@ -48,12 +48,12 @@ namespace BeWoFuerDich
{
XtraReport report = null;
ServicesOverviewRO fehlkontaktRO = ServicesOverviewRO.CopyFromRO(ro);
fehlkontaktRO.TotalFLMBillable = 0;
fehlkontaktRO.TotalFLS = 0;
ServicesOverviewRO keineFehlkontakteRO = ServicesOverviewRO.CopyFromRO(ro);
keineFehlkontakteRO.TotalFLMBillable = 0;
keineFehlkontakteRO.TotalFLS = 0;
//ServicesOverviewRO fehlkontaktRO = ServicesOverviewRO.CopyFromRO(ro);
//fehlkontaktRO.TotalFLMBillable = 0;
//fehlkontaktRO.TotalFLS = 0;
//ServicesOverviewRO keineFehlkontakteRO = ServicesOverviewRO.CopyFromRO(ro);
//keineFehlkontakteRO.TotalFLMBillable = 0;
//keineFehlkontakteRO.TotalFLS = 0;
if (ro.Services != null)
{
@@ -61,37 +61,37 @@ namespace BeWoFuerDich
{
report = AddReportToReport<LeistungsnachweisJugendamt>(report, ro);
}
else
{
foreach (ServicesOverviewRO.ServiceDetail s in ro.Services)
{
if (s.ServiceDescription.ToLower().Contains("fehlkontakt"))
{
fehlkontaktRO.Services.Add(s);
fehlkontaktRO.TotalFLMBillable += s.Minutes;
fehlkontaktRO.TotalFLS += s.Minutes / 60;
}
else
{
keineFehlkontakteRO.Services.Add(s);
keineFehlkontakteRO.TotalFLMBillable += s.Minutes;
keineFehlkontakteRO.TotalFLS += s.Minutes / 60;
}
}
}
//else
//{
// foreach (ServicesOverviewRO.ServiceDetail s in ro.Services)
// {
// if (s.ServiceDescription.ToLower().Contains("fehlkontakt"))
// {
// fehlkontaktRO.Services.Add(s);
// fehlkontaktRO.TotalFLMBillable += s.Minutes;
// fehlkontaktRO.TotalFLS += s.Minutes / 60;
// }
// else
// {
// keineFehlkontakteRO.Services.Add(s);
// keineFehlkontakteRO.TotalFLMBillable += s.Minutes;
// keineFehlkontakteRO.TotalFLS += s.Minutes / 60;
// }
// }
//}
}
if (report == null)
report = AddReportToReport<Stundenzettel>(report, keineFehlkontakteRO);
if (fehlkontaktRO.Services.Count > 0)
{
report = AddReportToReport<QuittierungsbelegMitFehlkontakten>(report, fehlkontaktRO);
}
if (report == null)
report = AddReportToReport<BeWo.Report.DefaultReports.Quittierungsbeleg>(report, ro);
// if (fehlkontaktRO.Services.Count > 0)
// {
// report = AddReportToReport<QuittierungsbelegMitFehlkontakten>(report, fehlkontaktRO);
// }
return report;