@@ -36,6 +36,7 @@ enum ProfitAndLossReportFields {
36
36
currency,
37
37
transaction_reference,
38
38
record_state,
39
+ converted_amount,
39
40
}
40
41
41
42
var memoizedProfitAndLossReport = memo9 ((
@@ -179,6 +180,9 @@ ReportResult profitAndLossReport(
179
180
value = AppLocalization .of (navigatorKey.currentContext! )!
180
181
.lookup (payment.entityState);
181
182
break ;
183
+ case ProfitAndLossReportFields .converted_amount:
184
+ value = payment.convertedAmount;
185
+ break ;
182
186
}
183
187
184
188
if (! ReportResult .matchField (
@@ -194,6 +198,9 @@ ReportResult profitAndLossReport(
194
198
row.add (payment.getReportEntityType ());
195
199
} else if (value.runtimeType == bool ) {
196
200
row.add (payment.getReportBool (value: value));
201
+ } else if (column == ProfitAndLossReportFields .converted_amount) {
202
+ row.add (payment.getReportDouble (
203
+ value: value, currencyId: userCompany.company.currencyId));
197
204
} else if (value.runtimeType == double || value.runtimeType == int ) {
198
205
row.add (payment.getReportDouble (
199
206
value: value, currencyId: client.currencyId));
@@ -286,6 +293,9 @@ ReportResult profitAndLossReport(
286
293
value = AppLocalization .of (navigatorKey.currentContext! )!
287
294
.lookup (expense.entityState);
288
295
break ;
296
+ case ProfitAndLossReportFields .converted_amount:
297
+ value = expense.convertedAmount;
298
+ break ;
289
299
}
290
300
291
301
if (! ReportResult .matchField (
@@ -301,6 +311,9 @@ ReportResult profitAndLossReport(
301
311
row.add (expense.getReportEntityType ());
302
312
} else if (value.runtimeType == bool ) {
303
313
row.add (expense.getReportBool (value: value));
314
+ } else if (column == ProfitAndLossReportFields .converted_amount) {
315
+ row.add (expense.getReportDouble (
316
+ value: value, currencyId: userCompany.company.currencyId));
304
317
} else if (value.runtimeType == double || value.runtimeType == int ) {
305
318
row.add (expense.getReportDouble (
306
319
value: value, currencyId: expense.currencyId));
0 commit comments