bugphpGroupWare - Bugs: bug #3379, Incorrect table names used in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3379: Incorrect table names used in bookkeeping

Submitter:  Kai Hofmann <powerstat>
Submitted:  Tue 29 Apr 2003 09:12:11 AM UTC
   
 
Category:  bookkeeping Item Group:  SVN trunk (dev code)
Severity:  3 - Normal Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  None
Reproducibility:  None Planned Release:  0.9.18.000
Fixed Release: 

Tue 29 Apr 2003 11:25:47 PM UTC, comment #1: 

This app is currently unmaintained

Dave Hall <skwashd>
Group administrator
Tue 29 Apr 2003 09:12:11 AM UTC, 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

Kai Hofmann <powerstat>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-07-15 skwashd Planned ReleaseNone 0.9.18.000
2003-04-30 skwashd SummaryOld and Wromng db table names in the code

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code