main_design2.0
nextwo 2 years ago
parent ad48521170
commit 350ea3f9e7

@ -791,9 +791,9 @@ class _EditServiceReportState extends State<EditServiceReport> 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;
},
),

Loading…
Cancel
Save