* Fix float - string error.

This commit is contained in:
caoyanyi
2023-08-30 09:37:09 +08:00
parent e97a2e9af3
commit 08622df920
+1 -1
View File
@@ -2620,7 +2620,7 @@ class executionModel extends model
$execution->days = $execution->days ? $execution->days : '';
$execution->totalEstimate = round((float)$total->totalEstimate, 1);
$execution->totalConsumed = round((float)$total->totalConsumed, 1);
$execution->totalLeft = round((float)($total->totalLeft - $closedTotalLeft), 1);
$execution->totalLeft = round((float)($total->totalLeft - (float)$closedTotalLeft), 1);
$execution = $this->loadModel('file')->replaceImgURL($execution, 'desc');
if($setImgSize) $execution->desc = $this->file->setImgSize($execution->desc);