[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11003] Property: budget handling
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11003] Property: budget handling |
Date: |
Tue, 19 Mar 2013 18:41:40 +0000 |
Revision: 11003
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11003
Author: sigurdne
Date: 2013-03-19 18:41:39 +0000 (Tue, 19 Mar 2013)
Log Message:
-----------
Property: budget handling
Modified Paths:
--------------
trunk/property/inc/class.soproject.inc.php
Modified: trunk/property/inc/class.soproject.inc.php
===================================================================
--- trunk/property/inc/class.soproject.inc.php 2013-03-19 11:15:08 UTC (rev
11002)
+++ trunk/property/inc/class.soproject.inc.php 2013-03-19 18:41:39 UTC (rev
11003)
@@ -2265,35 +2265,15 @@
}
ksort($_values);
+//_debug_array($_values);die();
$values = array();
- $_current_period = (int)date('Ym');
- $_delay_period = 0;
+
foreach ($_values as $period => $_budget)
{
- if ($_current_period > (int)$period)
- {
- $_delay_period +=
$_budget['sum_oblications'];
- $_budget['sum_oblications'] = 0;
- }
-
- if( $_delay_period && $_current_period <
(int)$period)
- {
- $_budget['sum_oblications'] +=
$_delay_period;
- $_delay_period =0;
- }
-
$values[] = $_budget;
}
-
- if($_delay_period && $values)
- {
- $i = count($values) -1;
- //last one
- $values[$i]['sum_oblications'] +=
$_delay_period;
- }
-
//_debug_array($values);die();
$deviation_acc = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11003] Property: budget handling,
Sigurd Nes <=