SprungbrettReports: Fehlkontakte Spitzabrechnung

This commit is contained in:
2023-07-28 19:48:50 +02:00
parent c07e4c681c
commit bb8811ee98
3 changed files with 6258 additions and 6269 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,9 @@ using System.ComponentModel;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
using BS.Shared.Extensions;
using System.Text.RegularExpressions;
namespace BeWo.SprungbrettReports
{
public partial class SpitzabrechnungSeite2 : DevExpress.XtraReports.UI.XtraReport //, IBeWoReport<SettlementRO>
@@ -16,8 +18,30 @@ namespace BeWo.SprungbrettReports
}
public void SetReportDataSource(SettlementRO pRO)
{
this.bindingSource1.DataSource = pRO;
{
foreach (var ii in pRO.InvoiceItems)
{
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}: {2:0.00} FLS x {3:c}", ii.ItemPeriodStart,
ii.ItemPeriodEnd, ii.UnitCount, ii.AmountPerUnit);
ii.UnitDescription = "Fachleistungen";
if (!pRO.FehlkontakteString.IsNullOrEmpty() && ii.RateFactor == 0)
{
Zwischensumme.Visible = true;
if (!ii.ItemDescription.IsNullOrEmpty())
{
// quick and dirty, solange LWL und LVR anders rechnen
ii.UnitCount = ii.UnitCount / 80 * 100;
ii.AmountPerUnit = ii.AmountPerUnit * 80 / 100;
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}: {2:0.00} h x {3:c}", ii.ItemPeriodStart,
ii.ItemPeriodEnd, ii.UnitCount, ii.AmountPerUnit);
}
ii.UnitDescription = "Fehlkontakte";
}
}
this.bindingSource1.DataSource = pRO;
}
}
}

File diff suppressed because it is too large Load Diff