[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10949] Property: budget handling
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10949] Property: budget handling |
Date: |
Sun, 03 Mar 2013 14:18:40 +0000 |
Revision: 10949
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10949
Author: sigurdne
Date: 2013-03-03 14:18:38 +0000 (Sun, 03 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-02 15:33:08 UTC (rev
10948)
+++ trunk/property/inc/class.soproject.inc.php 2013-03-03 14:18:38 UTC (rev
10949)
@@ -2871,11 +2871,12 @@
$this->db->query("SELECT sum(budget) as budget
FROM fm_project_budget WHERE project_id = {$id} AND year = {$latest_year} AND
active = 1",__LINE__,__FILE__);
$this->db->next_record();
$last_budget = $this->db->f('budget');
+/*
if( !abs( $last_budget ) > 0 )
{
throw new
Exception('property_soproject::transfer_budget() - no budget to transfer for
this investment project: ' . $id);
}
-
+*/
//paid last year
$this->db->query("SELECT sum(amount) as paid
FROM fm_project"
. " {$this->join} fm_workorder ON fm_project.id
= fm_workorder.project_id"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10949] Property: budget handling,
Sigurd Nes <=