fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [9147] property: allow 0 as budget


From: Sigurd Nes
Subject: [Fmsystem-commits] [9147] property: allow 0 as budget
Date: Fri, 13 Apr 2012 10:39:20 +0000

Revision: 9147
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9147
Author:   sigurdne
Date:     2012-04-13 10:39:20 +0000 (Fri, 13 Apr 2012)
Log Message:
-----------
property: allow 0 as budget

Modified Paths:
--------------
    trunk/property/inc/class.sobudget.inc.php
    trunk/property/inc/class.uibudget.inc.php

Modified: trunk/property/inc/class.sobudget.inc.php
===================================================================
--- trunk/property/inc/class.sobudget.inc.php   2012-04-13 10:16:19 UTC (rev 
9146)
+++ trunk/property/inc/class.sobudget.inc.php   2012-04-13 10:39:20 UTC (rev 
9147)
@@ -466,7 +466,7 @@
                                        $budget['revision'],
                                        $budget['district_id'],
                                        $budget['b_account_id'],
-                                       $budget['budget_cost'],
+                                       (int)$budget['budget_cost'],
                                        $budget['ecodimb'],
                                        $budget['cat_id']
                                );
@@ -496,7 +496,7 @@
                                (
                                        'remark'                => 
$budget['remark'],
                                        'entry_date'    => time(),
-                                       'budget_cost'   => 
$budget['budget_cost'],
+                                       'budget_cost'   => 
(int)$budget['budget_cost'],
                                        'year'                  => 
$budget['year'],
                                        'revision'              => 
$budget['revision'],
                                        'district_id'   => 
$budget['district_id'],

Modified: trunk/property/inc/class.uibudget.inc.php
===================================================================
--- trunk/property/inc/class.uibudget.inc.php   2012-04-13 10:16:19 UTC (rev 
9146)
+++ trunk/property/inc/class.uibudget.inc.php   2012-04-13 10:39:20 UTC (rev 
9147)
@@ -1464,12 +1464,12 @@
 
                                if(!$values['district_id'] && !$budget_id > 0)
                                {
-                                       //                      
$receipt['error'][]=array('msg'=>lang('Please select a district !'));
+               //                      
$receipt['error'][]=array('msg'=>lang('Please select a district !'));
                                }
 
                                if(!$values['budget_cost'])
                                {
-                                       
$receipt['error'][]=array('msg'=>lang('Please enter a budget cost !'));
+//                                     
$receipt['error'][]=array('msg'=>lang('Please enter a budget cost !'));
                                }
 
                                if(!isset($receipt['error']) || 
!$receipt['error'])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]