Skip to content

Commit bedd840

Browse files
author
Jani Giannoudis
committed
collector and wage type runtime: added culture for payrun and custom results
updated version to 0.9.0-beta.10
1 parent 255c67e commit bedd840

File tree

6 files changed

+17
-20
lines changed

6 files changed

+17
-20
lines changed

Client.Services/PayrollEngine.Client.Services.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.8" />
18-
<PackageReference Include="PayrollEngine.Client.Scripting" Version="0.9.0-beta.9" />
19-
<PackageReference Include="PayrollEngine.Client.Test" Version="0.9.0-beta.9" />
17+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.9" />
18+
<PackageReference Include="PayrollEngine.Client.Scripting" Version="0.9.0-beta.10" />
19+
<PackageReference Include="PayrollEngine.Client.Test" Version="0.9.0-beta.10" />
2020
</ItemGroup>
2121

2222
<!-- include xml documention files and json schemas to the nuget package -->

Client.Services/PayrollEngine.Client.Services.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Client.Services/Scripting.Runtime.Api/CollectorRuntimeBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,15 @@ public void SetResultAttribute(string name, object value)
142142

143143
/// <inheritdoc />
144144
public void AddPayrunResult(string source, string name, string value, int valueType,
145-
DateTime startDate, DateTime endDate, string slot, List<string> tags, Dictionary<string, object> attributes)
145+
DateTime startDate, DateTime endDate, string slot, List<string> tags,
146+
Dictionary<string, object> attributes, string culture)
146147
{
147148
// implementation
148149
}
149150

150151
/// <inheritdoc />
151152
public void AddCustomResult(string source, decimal value, DateTime startDate, DateTime endDate,
152-
List<string> tags, Dictionary<string, object> attributes, int? valueType)
153+
List<string> tags, Dictionary<string, object> attributes, int? valueType, string culture)
153154
{
154155
// implementation
155156
}

Client.Services/Scripting.Runtime.Api/ReportRuntime.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ public void SetReportAttribute(string attributeName, object value)
7070
else
7171
{
7272
// remove attribute
73-
if (Report.Attributes != null && Report.Attributes.ContainsKey(attributeName))
74-
{
75-
Report.Attributes.Remove(attributeName);
76-
}
73+
Report.Attributes?.Remove(attributeName);
7774
}
7875
}
7976

@@ -205,10 +202,7 @@ public void SetParameterAttribute(string parameterName, string attributeName, ob
205202
else
206203
{
207204
// remove attribute
208-
if (reportParameter.Attributes != null && reportParameter.Attributes.ContainsKey(attributeName))
209-
{
210-
reportParameter.Attributes.Remove(attributeName);
211-
}
205+
reportParameter.Attributes?.Remove(attributeName);
212206
}
213207
}
214208

Client.Services/Scripting.Runtime.Api/WageTypeRuntimeBase.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,16 @@ public void SetResultAttribute(string name, object value)
112112

113113
/// <inheritdoc />
114114
public void AddPayrunResult(string source, string name, string value, int valueType,
115-
DateTime startDate, DateTime endDate, string slot, List<string> tags, Dictionary<string, object> attributes)
115+
DateTime startDate, DateTime endDate, string slot, List<string> tags,
116+
Dictionary<string, object> attributes, string culture)
116117
{
117118
// implementation
118119
}
119120

120121
/// <inheritdoc />
121122
public void AddCustomResult(string source, decimal value, DateTime startDate,
122-
DateTime endDate, List<string> tags, Dictionary<string, object> attributes, int? valueType)
123+
DateTime endDate, List<string> tags, Dictionary<string, object> attributes,
124+
int? valueType, string culture)
123125
{
124126
// implementation
125127
}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>0.9.0-beta.9</Version>
5+
<Version>0.9.0-beta.10</Version>
66
<FileVersion>0.9.0</FileVersion>
77
<InformationalVersion></InformationalVersion>
88
<Authors>Jani Giannoudis</Authors>

0 commit comments

Comments
 (0)