From: Joe Hunt Date: Sat, 20 Sep 2008 22:25:16 +0000 (+0000) Subject: Layout adjustments X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=92079736889cb7570b0dfda2b06c62587faec8db;p=textcart.git Layout adjustments --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 85569f0..5705d78 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -32,8 +32,12 @@ $ /admin/gl_setup.php /sales/includes/db/sales_credit_db.inc ! New tcpdf.php file. Minor bugfixes from tcpdf.org /reporting/includes/tcpdf.php +! Layout adjustments + /dimensions/includes/dimensions_ui.inc + /dimensions/view/view_dimension.php + /inventory/view/view_adjustment.php + /manufacturing/view/work_order_view.php - 18-Sep-2008 Janusz Dobrowolski + Support for calling external pages during document entry (e.g. for adding customer/supplier/items). $ /index.php diff --git a/dimensions/includes/dimensions_ui.inc b/dimensions/includes/dimensions_ui.inc index bc56479..9355c99 100644 --- a/dimensions/includes/dimensions_ui.inc +++ b/dimensions/includes/dimensions_ui.inc @@ -8,7 +8,9 @@ function display_dimension_payments($id) { global $path_to_root, $table_style; - $result = get_bank_trans(null, null, payment_person_types::dimension(), $id); + $sql = "SELECT * FROM ".TB_PREF."gl_trans WHERE dimension_id = $id OR dimension2_id = $id + ORDER BY account,tran_date"; + $result = db_query($sql, "Transactions could not be calculated"); echo "
"; @@ -20,7 +22,7 @@ function display_dimension_payments($id) { display_heading2(_("Transactions for this Dimension")); start_table($table_style); - $th = array(_("Type"), _("#"), _("Reference"), + $th = array(_("Type"), _("#"), _("Account"), _("Date"), _("Debit"), _("Credit")); table_header($th); @@ -31,17 +33,13 @@ function display_dimension_payments($id) alt_table_row_color($k); - // projects are always in home currency...get the home equivalent of the banktrans - // from it's gl postings - $home_value = get_gl_trans_value($myrow["bank_act"], $myrow["type"], $myrow["trans_no"]); - label_cell(systypes::name($myrow["type"])); - label_cell(get_trans_view_str($myrow["type"], $myrow["trans_no"])); - label_cell($myrow["ref"]); - label_cell(sql2date($myrow["trans_date"])); - display_debit_or_credit_cells($home_value); + label_cell(get_gl_view_str($myrow["type"], $myrow["type_no"], $myrow["type_no"], true)); + label_cell($myrow["account"]); + label_cell(sql2date($myrow["tran_date"])); + display_debit_or_credit_cells($myrow["amount"]); - $total += $home_value; + $total += $myrow["amount"]; end_row(); } diff --git a/dimensions/view/view_dimension.php b/dimensions/view/view_dimension.php index 5929432..843da18 100644 --- a/dimensions/view/view_dimension.php +++ b/dimensions/view/view_dimension.php @@ -25,6 +25,7 @@ if ($_GET['trans_no'] != "") display_heading(systypes::name(systypes::dimension()) . " # " . $id); +br(1); $myrow = get_dimension($id); if (strlen($myrow[0]) == 0) diff --git a/inventory/view/view_adjustment.php b/inventory/view/view_adjustment.php index a4eb1fe..9aac2fd 100644 --- a/inventory/view/view_adjustment.php +++ b/inventory/view/view_adjustment.php @@ -18,6 +18,7 @@ if (isset($_GET["trans_no"])) display_heading(systypes::name(systypes::inventory_adjustment()) . " #$trans_no"); +br(1); $adjustment_items = get_stock_adjustment_items($trans_no); $k = 0; $header_shown = false; diff --git a/manufacturing/view/work_order_view.php b/manufacturing/view/work_order_view.php index d63f2de..7b11499 100644 --- a/manufacturing/view/work_order_view.php +++ b/manufacturing/view/work_order_view.php @@ -25,6 +25,7 @@ if ($_GET['trans_no'] != "") display_heading(systypes::name(systypes::work_order()) . " # " . $woid); +br(1); $myrow = get_work_order($woid); if ($myrow["type"] == wo_types::advanced()) @@ -35,7 +36,7 @@ else echo "
"; // display the WO requirements -echo "
"; +br(1); if ($myrow["released"] == false) { display_heading2(_("BOM for item:") . " " . $myrow["StockItemName"]);