Merge branch 'master' of ssh://float.ownsoft.de/git/beyondSoft/BeWo
This commit is contained in:
@@ -73,6 +73,7 @@
|
||||
<Compile Include="CustomMitarbeiterstundenkontoBerechnung.cs" />
|
||||
<Compile Include="CustomMitarbeiterstundenkontoBerechnungMonate.cs" />
|
||||
<Compile Include="CustomReportCreator.cs" />
|
||||
<Compile Include="CustomVacationService.cs" />
|
||||
<Compile Include="InvoiceCustomerReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
||||
@@ -158,5 +158,13 @@ namespace BeWo.BeWoAuxilio
|
||||
emp.Custom1 += (duration / 60);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IstAnrechenbareAbsenceTime(AbsenceTime item)
|
||||
{
|
||||
if (item.AbsenceReason.Description != null && item.AbsenceReason.Description.ToLower().Contains("freizeitausgleich"))
|
||||
return false;
|
||||
else
|
||||
return base.IstAnrechenbareAbsenceTime(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
29
ReportImp/BeWoAuxilio/CustomVacationService.cs
Normal file
29
ReportImp/BeWoAuxilio/CustomVacationService.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Service.Core;
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using Utils = BS.Shared.Core.Utils;
|
||||
|
||||
namespace BeWoAuxilio.Service
|
||||
{
|
||||
public class CustomVacationService : VacationService
|
||||
{
|
||||
public override List<FeiertagDC> GetFeiertage(int year, string bundesland)
|
||||
{
|
||||
var list = base.GetFeiertage(year, bundesland);
|
||||
list.Add(new FeiertagDC() { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
public override decimal GetFeiertagsFaktor(DateTime start)
|
||||
{
|
||||
if (start.Date.Month == 12 && (start.Date.Day == 24 || start.Date.Day == 31))
|
||||
return 0.5m;
|
||||
else
|
||||
return base.GetFeiertagsFaktor(start);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,20 @@ namespace BeWo.BeWoAuxilio
|
||||
var msb = new CustomMitarbeiterstundenkontoBerechnung();
|
||||
msb.CreateReport(pRO);
|
||||
|
||||
foreach (var emp in pRO.EmployeeDetailList)
|
||||
{
|
||||
if (emp.SollProTag != 0)
|
||||
{
|
||||
var urlaubKrankheit = 0m;
|
||||
if (emp.TageUrlaub.HasValue)
|
||||
urlaubKrankheit += emp.TageUrlaub.Value * emp.SollProTag;
|
||||
if (emp.TageKrankheit.HasValue)
|
||||
urlaubKrankheit += emp.TageKrankheit.Value * emp.SollProTag;
|
||||
|
||||
emp.UrlaubUndKrankheit = urlaubKrankheit;
|
||||
}
|
||||
}
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
|
||||
@@ -6,6 +6,7 @@ using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using BS.Shared.Extensions;
|
||||
using System.Linq;
|
||||
|
||||
namespace BeWo.BetreutesWohnenWoellReports
|
||||
{
|
||||
@@ -19,15 +20,34 @@ namespace BeWo.BetreutesWohnenWoellReports
|
||||
public void SetReportDataSource(Settlement2RO pRO)
|
||||
{
|
||||
decimal rateFactor = 1;
|
||||
bool assistenzRechnung = false;
|
||||
bool assistenzRechnung = false;
|
||||
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
if (pRO.InvoiceItems.Any(ii => ii.RateFactor.HasValue))
|
||||
{
|
||||
if (pRO.InvoiceItems.Any(ii => ii.RateFactor.Value == 20))
|
||||
{
|
||||
rateFactor = 1.2m;
|
||||
pRO.RateFactorText2 = String.Format("{0:0.00}", rateFactor);
|
||||
}
|
||||
else if (pRO.InvoiceItems.Any(ii => ii.RateFactor.Value == 0))
|
||||
{
|
||||
rateFactor = 1m;
|
||||
pRO.RateFactorText2 = String.Format("{0:0.00}", rateFactor);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
rateFactor = 1m;
|
||||
pRO.RateFactorText2 = String.Format("{0:0.00}", rateFactor);
|
||||
}
|
||||
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
if (ii.RateFactor.HasValue)
|
||||
{
|
||||
rateFactor = (100 + ii.RateFactor.Value) / 100;
|
||||
pRO.RateFactorText2 = String.Format("{0:0.00}", rateFactor);
|
||||
}
|
||||
//if (ii.RateFactor.HasValue)
|
||||
//{
|
||||
// rateFactor = (100 + ii.RateFactor.Value) / 100;
|
||||
// pRO.RateFactorText2 = String.Format("{0:0.00}", rateFactor);
|
||||
//}
|
||||
|
||||
if (!pRO.FehlkontakteString.IsNullOrEmpty() && ii.RateFactor == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user