[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11747] property: percent consumption
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11747] property: percent consumption |
Date: |
Mon, 24 Feb 2014 20:36:51 +0000 |
Revision: 11747
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11747
Author: sigurdne
Date: 2014-02-24 20:36:49 +0000 (Mon, 24 Feb 2014)
Log Message:
-----------
property: percent consumption
Modified Paths:
--------------
trunk/property/inc/class.soworkorder.inc.php
Modified: trunk/property/inc/class.soworkorder.inc.php
===================================================================
--- trunk/property/inc/class.soworkorder.inc.php 2014-02-24 20:08:29 UTC
(rev 11746)
+++ trunk/property/inc/class.soworkorder.inc.php 2014-02-24 20:36:49 UTC
(rev 11747)
@@ -1777,7 +1777,8 @@
$_sub_oblications +=
$entry['sum_oblications'];
}
$budget = $_sub_budget == 0 ? 1 : $_sub_budget;
// avoid zero-division
- $percent = round((($_sub_actual_cost +
$_sub_oblications)/$budget)*100, 1);
+// $percent = round((($_sub_actual_cost +
$_sub_oblications)/$budget)*100, 1);
+ $percent =
round(($_sub_actual_cost/$budget)*100, 1);
}
return $percent;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11747] property: percent consumption,
Sigurd Nes <=