SprungbrettReports: Fehlkontakte Budgetnachweis
This commit is contained in:
1333
ReportImp/SprungbrettReports/Budgetnachweis.Designer.cs
generated
1333
ReportImp/SprungbrettReports/Budgetnachweis.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,8 @@ using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BS.Shared.DataContracts;
|
||||
using System.Text;
|
||||
|
||||
using BS.Shared.Extensions;
|
||||
|
||||
namespace BeWo.SprungbrettReports
|
||||
{
|
||||
public partial class Budgetnachweis : DevExpress.XtraReports.UI.XtraReport//, IBeWoReport<SettlementRO>
|
||||
@@ -84,6 +85,10 @@ namespace BeWo.SprungbrettReports
|
||||
{
|
||||
XRTableRow newRow = null;
|
||||
int rowIndex = 2;
|
||||
|
||||
decimal? sumFls = 0;
|
||||
decimal? sumFk = 0;
|
||||
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
if (rowIndex > 2)
|
||||
@@ -92,10 +97,24 @@ namespace BeWo.SprungbrettReports
|
||||
newRow = tableRechnungspositionen.Rows[rowIndex];
|
||||
newRow.Cells[0].Text = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodStart);
|
||||
newRow.Cells[1].Text = String.Format("{0:dd.MM.yyyy}", ii.ItemPeriodEnd);
|
||||
newRow.Cells[2].Text = String.Format("{0:0.00}", ii.AmountPerUnit);
|
||||
newRow.Cells[3].Text = String.Format("{0:0.00}", ii.UnitCount);
|
||||
if (pRO.FehlkontakteString.IsNullOrEmpty() && ii.RateFactor == 0)
|
||||
{
|
||||
// quick and dirty: Vergütung und Anzahl anpassen, solange LWL und LVR anders rechnen
|
||||
newRow.Cells[2].Text = String.Format("{0:0.00}", ii.AmountPerUnit * 80 / 100);
|
||||
newRow.Cells[4].Text = String.Format("{0:0.00}", ii.UnitCount / 80 * 100);
|
||||
sumFk += ii.UnitCount / 80 * 100;
|
||||
}
|
||||
else
|
||||
{
|
||||
newRow.Cells[2].Text = String.Format("{0:0.00}", ii.AmountPerUnit);
|
||||
newRow.Cells[3].Text = String.Format("{0:0.00}", ii.UnitCount);
|
||||
sumFls += ii.UnitCount;
|
||||
}
|
||||
rowIndex += 1;
|
||||
}
|
||||
|
||||
lblSumFls.Text = String.Format("{0:0.00}", sumFls);
|
||||
lblSumFk.Text = String.Format("{0:0.00}", sumFk);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user