[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [Bug #3379] Incorrect table names used in bookke
From: |
nobody |
Subject: |
[Phpgroupware-tracker] [Bug #3379] Incorrect table names used in bookkeeping |
Date: |
Tue, 29 Apr 2003 20:28:44 -0400 |
=================== BUG #3379: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3379&group_id=509
Changes by: Dave Hall <address@hidden>
Date: Wed 04/30/2003 at 10:28 (Australia/Melbourne)
What | Removed | Added
---------------------------------------------------------------------------
Summary | Old and Wromng db table names in the code | Incorrect
table names used in bookkeeping
=================== BUG #3379: FULL BUG SNAPSHOT ===================
Submitted by: powerstat Project: phpGroupWare
Submitted on: Tue 04/29/2003 at 19: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: Incorrect table names used in bookkeeping
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
Follow-up Comments
*******************
-------------------------------------------------------
Date: Wed 04/30/2003 at 09:25 By: skwashd
This app is currently unmaintained
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-tracker] [Bug #3379] Incorrect table names used in bookkeeping,
nobody <=