@@ -146,9 +146,11 @@ public decimal GetWageTypeCurrentConsolidatedValue(WageTypeConsolidatedResultQue
146
146
/// <param name="slot">The result slot</param>
147
147
/// <param name="tags">The result tags</param>
148
148
/// <param name="attributes">The wage type custom result attributes</param>
149
+ /// <param name="culture">The result culture</param>
149
150
public void AddPayrunResult ( string name , object value , ValueType ? valueType = null , string source = null ,
150
- string slot = null , IEnumerable < string > tags = null , Dictionary < string , object > attributes = null ) =>
151
- AddPayrunResult ( name , value , PeriodStart , PeriodEnd , valueType , source , slot , tags , attributes ) ;
151
+ string slot = null , IEnumerable < string > tags = null ,
152
+ Dictionary < string , object > attributes = null , string culture = null ) =>
153
+ AddPayrunResult ( name , value , PeriodStart , PeriodEnd , valueType , source , slot , tags , attributes , culture ) ;
152
154
153
155
/// <summary>Add payrun result</summary>
154
156
/// <param name="name">The result name</param>
@@ -160,9 +162,10 @@ public void AddPayrunResult(string name, object value, ValueType? valueType = nu
160
162
/// <param name="slot">The result slot</param>
161
163
/// <param name="tags">The result tags</param>
162
164
/// <param name="attributes">The wage type custom result attributes</param>
165
+ /// <param name="culture">The result culture</param>
163
166
public void AddPayrunResult ( string name , object value , DateTime startDate , DateTime endDate ,
164
167
ValueType ? valueType = null , string source = null , string slot = null ,
165
- IEnumerable < string > tags = null , Dictionary < string , object > attributes = null )
168
+ IEnumerable < string > tags = null , Dictionary < string , object > attributes = null , string culture = null )
166
169
{
167
170
if ( string . IsNullOrWhiteSpace ( name ) )
168
171
{
@@ -176,7 +179,7 @@ public void AddPayrunResult(string name, object value, DateTime startDate, DateT
176
179
source ??= GetType ( ) . Name ;
177
180
var json = JsonSerializer . Serialize ( value ) ;
178
181
valueType ??= value . GetValueType ( ) ;
179
- Runtime . AddPayrunResult ( source , name , json , ( int ) valueType . Value , startDate , endDate , slot , tags ? . ToList ( ) , attributes ) ;
182
+ Runtime . AddPayrunResult ( source , name , json , ( int ) valueType . Value , startDate , endDate , slot , tags ? . ToList ( ) , attributes , culture ) ;
180
183
}
181
184
182
185
#endregion
@@ -188,19 +191,21 @@ public void AddPayrunResult(string name, object value, DateTime startDate, DateT
188
191
/// <param name="tags">The result tags</param>
189
192
/// <param name="attributes">The wage type custom result attributes</param>
190
193
/// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
194
+ /// <param name="culture">The result culture</param>
191
195
public void AddCustomResult ( string source , IEnumerable < string > tags = null ,
192
- Dictionary < string , object > attributes = null , ValueType ? valueType = null ) =>
193
- AddCustomResult ( source , PeriodStart , PeriodEnd , tags , attributes , valueType ) ;
196
+ Dictionary < string , object > attributes = null , ValueType ? valueType = null , string culture = null ) =>
197
+ AddCustomResult ( source , PeriodStart , PeriodEnd , tags , attributes , valueType , culture ) ;
194
198
195
199
/// <summary>Add wage type custom result from case field values, using the current period</summary>
196
200
/// <param name="source">The value source</param>
197
201
/// <param name="value">The period value</param>
198
202
/// <param name="tags">The result tags</param>
199
203
/// <param name="attributes">The wage type custom result attributes</param>
200
204
/// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
205
+ /// <param name="culture">The result culture</param>
201
206
public void AddCustomResult ( string source , decimal value , IEnumerable < string > tags = null ,
202
- Dictionary < string , object > attributes = null , ValueType ? valueType = null ) =>
203
- AddCustomResult ( source , value , PeriodStart , PeriodEnd , tags , attributes , valueType ) ;
207
+ Dictionary < string , object > attributes = null , ValueType ? valueType = null , string culture = null ) =>
208
+ AddCustomResult ( source , value , PeriodStart , PeriodEnd , tags , attributes , valueType , culture ) ;
204
209
205
210
/// <summary>Add wage type custom result from case field values</summary>
206
211
/// <param name="source">The value source</param>
@@ -209,9 +214,10 @@ public void AddCustomResult(string source, decimal value, IEnumerable<string> ta
209
214
/// <param name="tags">The result tags</param>
210
215
/// <param name="attributes">The wage type custom result attributes</param>
211
216
/// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
217
+ /// <param name="culture">The result culture</param>
212
218
public void AddCustomResult ( string source , DateTime startDate , DateTime endDate ,
213
219
IEnumerable < string > tags = null , Dictionary < string , object > attributes = null ,
214
- ValueType ? valueType = null )
220
+ ValueType ? valueType = null , string culture = null )
215
221
{
216
222
var tagList = tags ? . ToList ( ) ;
217
223
var caseValues = GetPeriodCaseValues ( new DatePeriod ( startDate , endDate ) , source ) ;
@@ -222,7 +228,7 @@ public void AddCustomResult(string source, DateTime startDate, DateTime endDate,
222
228
if ( periodValue . Value is decimal decimalValue )
223
229
{
224
230
var period = new DatePeriod ( periodValue . Start , periodValue . End ) ;
225
- AddCustomResult ( source , decimalValue , period . Start , period . End , tagList , attributes , valueType ) ;
231
+ AddCustomResult ( source , decimalValue , period . Start , period . End , tagList , attributes , valueType , culture ) ;
226
232
}
227
233
}
228
234
}
@@ -236,10 +242,11 @@ public void AddCustomResult(string source, DateTime startDate, DateTime endDate,
236
242
/// <param name="tags">The result tags</param>
237
243
/// <param name="attributes">The wage type custom result attributes</param>
238
244
/// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
245
+ /// <param name="culture">The result culture</param>
239
246
public void AddCustomResult ( string source , decimal value , DateTime startDate ,
240
247
DateTime endDate , IEnumerable < string > tags = null , Dictionary < string , object > attributes = null ,
241
- ValueType ? valueType = null ) =>
242
- Runtime . AddCustomResult ( source , value , startDate , endDate , tags ? . ToList ( ) , attributes , ( int ? ) valueType ) ;
248
+ ValueType ? valueType = null , string culture = null ) =>
249
+ Runtime . AddCustomResult ( source , value , startDate , endDate , tags ? . ToList ( ) , attributes , ( int ? ) valueType , culture ) ;
243
250
244
251
#endregion
245
252
0 commit comments