fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [9705] property: debug


From: Sigurd Nes
Subject: [Fmsystem-commits] [9705] property: debug
Date: Mon, 02 Jul 2012 18:44:14 +0000

Revision: 9705
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9705
Author:   sigurdne
Date:     2012-07-02 18:44:13 +0000 (Mon, 02 Jul 2012)
Log Message:
-----------
property: debug

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

Modified: trunk/property/inc/class.sobudget.inc.php
===================================================================
--- trunk/property/inc/class.sobudget.inc.php   2012-07-02 11:53:50 UTC (rev 
9704)
+++ trunk/property/inc/class.sobudget.inc.php   2012-07-02 18:44:13 UTC (rev 
9705)
@@ -866,9 +866,10 @@
                                . " GROUP BY fm_b_account.{$b_account_field}, 
district_id, dimb, mvakode";
 
                        $this->db->query($sql,__LINE__,__FILE__);
-
+//_debug_array($sql);
                        while ($this->db->next_record())
                        {
+//continue;
                                $_taxfactor = 1 + 
($_taxcode[(int)$this->db->f('mvakode')]/100);
                                $_actual_cost = 
round($this->db->f('actual_cost')/$_taxfactor);
                                $sum_actual_cost += $_actual_cost;
@@ -895,6 +896,7 @@
 
                        while ($this->db->next_record())
                        {
+//continue;
                                $_taxfactor = 1 + 
($_taxcode[(int)$this->db->f('mvakode')]/100);
                                $_actual_cost = 
round($this->db->f('actual_cost')/$_taxfactor);
                                $sum_actual_cost += $_actual_cost;

Modified: trunk/property/inc/class.soinvoice.inc.php
===================================================================
--- trunk/property/inc/class.soinvoice.inc.php  2012-07-02 11:53:50 UTC (rev 
9704)
+++ trunk/property/inc/class.soinvoice.inc.php  2012-07-02 18:44:13 UTC (rev 
9705)
@@ -197,6 +197,7 @@
                        
if($GLOBALS['phpgw_info']['server']['db_type']=='postgres')
                        {
                                $sql_count = 'SELECT count(bilagsnr) as cnt, 
sum(godkjentbelop) AS sum_amount FROM (SELECT DISTINCT bilagsnr, 
sum(godkjentbelop) as godkjentbelop '. substr($sql2,strripos($sql2,'FROM')) .' 
GROUP BY bilagsnr) AS t';
+               //_debug_array($sql_count);
                                $this->db->query($sql_count,__LINE__,__FILE__);
                                $this->db->next_record();
                                $this->total_records            = 
$this->db->f('cnt');




reply via email to

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