phpgroupware-tracker
[Top][All Lists]
Advanced

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

[Phpgroupware-tracker] [Bug #3379] Old and Wromng db table names in the


From: nobody
Subject: [Phpgroupware-tracker] [Bug #3379] Old and Wromng db table names in the code
Date: Tue, 29 Apr 2003 05:12:12 -0400

=================== BUG #3379: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3379&group_id=509

Submitted by: powerstat               Project: phpGroupWare                 
Submitted on: Tue 04/29/2003 at 11:12
Category:  bookkeeping                Bug Group:  devel cvs                 
Severity:  5 - Major                  Priority:  Normal                     
Resolution:  None                     Assigned to:  None                    
Status:  Open                         Component Version:  None              
Platform Version:  None               Reproducibility:  None                

Summary:  Old and Wromng db table names in the code

Original Submission:  Within this module there are a lot of "old" (?) table 
names that are not within the database - as it seems they all are
converted to short 1 or 2 character labels:


NO tables: phpgw_bk_categories, phpgw_bk_entries, phpgw_bk_acl, phpgw_bk_gu  
and maybe others!!!



 $phpgw->db->query("SELECT * FROM phpgw_bk_categories WHERE 
income_expense='$income_expense' order by $order");
./bookkeeping/categories.php

     $sql="insert into phpgw_bk_categories (description,income_expense) values 
('$description','$income_expense')";
./bookkeeping/category_add.php

      $sql="delete from phpgw_bk_categories where category_id=$category_id";
    $phpgw->db->query("select description from phpgw_bk_categories WHERE 
category_id='$category_id'");
./bookkeeping/category_delete.php

    $sql="update phpgw_bk_categories set description='$description' where 
category_id=$category_id";
    $sql="select description from phpgw_bk_categories where 
category_id=$category_id";
./bookkeeping/category_edit.php

    $sql="select category_id,description from phpgw_bk_categories where 
income_expense='$income_expense' order by description asc";
./bookkeeping/entry_add.php

                      "from phpgw_bk_entries e, phpgw_bk_categories c WHERE 
entry_id='$entry_id' AND e.category_id=c.category_id");
./bookkeeping/entry_delete.php

    $sql2="select category_id,description from phpgw_bk_categories where 
income_expense='$income_expense' order by description asc";
./bookkeeping/entry_edit.php

                    "from phpgw_bk_entries e, phpgw_bk_categories c WHERE 
entry_id='$entry_id' AND e.category_id=c.category_id");
./bookkeeping/entry_view.php

    $sql="select category_id,description from phpgw_bk_categories where 
income_expense='$income_expense' order by description asc";     
    $sql="select category_id,description from phpgw_bk_categories where 
income_expense='$income_expense' order by description asc"; 
./bookkeeping/statistics.php

      $sql2="select sum(e.amount) as amount, c.description as description from 
phpgw_bk_entries e, phpgw_bk_categories c ". 
./bookkeeping/reports/reports.php

                $sql = "SELECT module FROM phpgw_bk_acl WHERE bookkeeping_id='" 
. $phpgw_info['bookkeeping']['id'] . "' GROUP BY module";
                $sql = "SELECT a.bookkeeping_id FROM phpgw_bk_acl a, 
phpgw_bk_gu g WHERE a.group_id = g.group_id AND g.user_id='" . 
$phpgw_info['user']['id'] . "' GROUP BY a.module";
./bookkeeping/inc/class.bookkeeping.inc.php

                $sql = "SELECT a.bookkeeping_id FROM phpgw_bk_acl a, 
phpgw_bk_gu g WHERE a.group_id = g.group_id AND g.user_id='" . 
$phpgw_info['user']['id'] . "' GROUP BY a.module";
./bookkeeping/inc/class.bookkeeping.inc.php




No Followups Have Been Posted


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3379&group_id=509




reply via email to

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