PsychosozialeProjekteSaarpfalz/RechnungSozio Kostenzusage n. Bew

This commit is contained in:
2023-06-23 14:21:51 +02:00
parent b18069e7bf
commit d490ff47bc
3 changed files with 37 additions and 2 deletions

View File

@@ -70,6 +70,7 @@
<Compile Include="RechnungSozio.Designer.cs">
<DependentUpon>RechnungSozio.cs</DependentUpon>
</Compile>
<Compile Include="Translation\TranslationDictionary.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Data\Data.csproj">

View File

@@ -55,7 +55,7 @@ namespace PsychosozialeProjekteSaarpfalz
private void SetBewilligung(ServiceInvoiceRO pRO)
{
DateTime? date = null;
//string date = null;
decimal geleistetGesamt = 0;
decimal bewilligtWoche = 0;
@@ -85,6 +85,10 @@ namespace PsychosozialeProjekteSaarpfalz
bewilligtGesamt += calc.GetApprovedHoursTotal(scapdc, c2sdc.CostBearer.CostRatePeriods) ?? 0;
bewilligtWoche += calc.GetApprovedHoursPerWeek(scapdc, c2sdc.CostBearer.CostRatePeriods) ?? 0;
if (!scapdc.Notice.IsNullOrEmpty())
{
pRO.ApprovalDate = scapdc.Notice;
}
var sc = sip.SupportConceptApprovalPeriod.CostBearer2SupportConcept.SupportConcept;
@@ -121,7 +125,10 @@ namespace PsychosozialeProjekteSaarpfalz
}
geleistetGesamt = minutenIst / 60;
date = sc.ApprovalDate;
//if (date != null)
//{
// date = String.Format("{0:dd.MM.yyyy}", sc.ApprovalDate);
//}
}
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Service.DCEntityMapper;
using BeWo.Service.Plugins;
using BS.Shared;
using BS.Shared.Core;
using BS.Shared.DataContracts.Compact;
using BS.Shared.Extensions;
namespace PsychosozialeProjekteSaarpfalz.Translation
{
public class CustomTranslationDictionary : TranslationDictionary
{
public override Dictionary<String, String> GetTranslationDictionary()
{
var dict = base.GetTranslationDictionary();
AddOrReplaceTranslation(dict, "BewilligungBemerkung", "Kostenzusage vom");
return dict;
}
}
}