diff --git a/lib/views/pages/user/requests/report/edit_service_report.dart b/lib/views/pages/user/requests/report/edit_service_report.dart index 6aa64bdf..a43cc433 100644 --- a/lib/views/pages/user/requests/report/edit_service_report.dart +++ b/lib/views/pages/user/requests/report/edit_service_report.dart @@ -791,9 +791,9 @@ class _EditServiceReportState extends State with TickerProvid textInputType: TextInputType.number, onSaved: (value) { if (value != null && value.isEmpty) { - _serviceReport.travelingExpense = int.tryParse(_serviceReport?.travelingExpense?.toString() ?? "") ?? 0; + _serviceReport.travelingExpense = num.tryParse(_serviceReport?.travelingExpense?.toString() ?? "") ?? 0; } else - _serviceReport.travelingExpense = int.tryParse(value) ?? 0; + _serviceReport.travelingExpense = num.tryParse(value) ?? 0; }, ),