@@ -146,9 +146,11 @@ public decimal GetWageTypeCurrentConsolidatedValue(WageTypeConsolidatedResultQue
146146 /// <param name="slot">The result slot</param>
147147 /// <param name="tags">The result tags</param>
148148 /// <param name="attributes">The wage type custom result attributes</param>
149+ /// <param name="culture">The result culture</param>
149150 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 ) ;
152154
153155 /// <summary>Add payrun result</summary>
154156 /// <param name="name">The result name</param>
@@ -160,9 +162,10 @@ public void AddPayrunResult(string name, object value, ValueType? valueType = nu
160162 /// <param name="slot">The result slot</param>
161163 /// <param name="tags">The result tags</param>
162164 /// <param name="attributes">The wage type custom result attributes</param>
165+ /// <param name="culture">The result culture</param>
163166 public void AddPayrunResult ( string name , object value , DateTime startDate , DateTime endDate ,
164167 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 )
166169 {
167170 if ( string . IsNullOrWhiteSpace ( name ) )
168171 {
@@ -176,7 +179,7 @@ public void AddPayrunResult(string name, object value, DateTime startDate, DateT
176179 source ??= GetType ( ) . Name ;
177180 var json = JsonSerializer . Serialize ( value ) ;
178181 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 ) ;
180183 }
181184
182185 #endregion
@@ -188,19 +191,21 @@ public void AddPayrunResult(string name, object value, DateTime startDate, DateT
188191 /// <param name="tags">The result tags</param>
189192 /// <param name="attributes">The wage type custom result attributes</param>
190193 /// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
194+ /// <param name="culture">The result culture</param>
191195 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 ) ;
194198
195199 /// <summary>Add wage type custom result from case field values, using the current period</summary>
196200 /// <param name="source">The value source</param>
197201 /// <param name="value">The period value</param>
198202 /// <param name="tags">The result tags</param>
199203 /// <param name="attributes">The wage type custom result attributes</param>
200204 /// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
205+ /// <param name="culture">The result culture</param>
201206 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 ) ;
204209
205210 /// <summary>Add wage type custom result from case field values</summary>
206211 /// <param name="source">The value source</param>
@@ -209,9 +214,10 @@ public void AddCustomResult(string source, decimal value, IEnumerable<string> ta
209214 /// <param name="tags">The result tags</param>
210215 /// <param name="attributes">The wage type custom result attributes</param>
211216 /// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
217+ /// <param name="culture">The result culture</param>
212218 public void AddCustomResult ( string source , DateTime startDate , DateTime endDate ,
213219 IEnumerable < string > tags = null , Dictionary < string , object > attributes = null ,
214- ValueType ? valueType = null )
220+ ValueType ? valueType = null , string culture = null )
215221 {
216222 var tagList = tags ? . ToList ( ) ;
217223 var caseValues = GetPeriodCaseValues ( new DatePeriod ( startDate , endDate ) , source ) ;
@@ -222,7 +228,7 @@ public void AddCustomResult(string source, DateTime startDate, DateTime endDate,
222228 if ( periodValue . Value is decimal decimalValue )
223229 {
224230 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 ) ;
226232 }
227233 }
228234 }
@@ -236,10 +242,11 @@ public void AddCustomResult(string source, DateTime startDate, DateTime endDate,
236242 /// <param name="tags">The result tags</param>
237243 /// <param name="attributes">The wage type custom result attributes</param>
238244 /// <param name="valueType">The result value type (numeric), default is the wage type value type</param>
245+ /// <param name="culture">The result culture</param>
239246 public void AddCustomResult ( string source , decimal value , DateTime startDate ,
240247 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 ) ;
243250
244251 #endregion
245252
0 commit comments