diff --git a/SolarPower/Controllers/StationReportController.cs b/SolarPower/Controllers/StationReportController.cs index dc286a0..8633c11 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -1696,14 +1696,15 @@ namespace SolarPower.Controllers PowerstationId = form.PowerstationId, SiteDB = form.PowerstationDB }; - var LeaseRate = 0; + double LeaseRate = 0; if (form.PowerstationType == 1) { var Hire = GetHireInfo(psIdAndSiteDB); foreach (var a in Hire.Result.Data) { - LeaseRate += Convert.ToInt32(a.LeaseRate); + + LeaseRate += Convert.ToDouble(a.LeaseRate); } }