/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
{
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 "<br>";
{
display_heading2(_("Transactions for this Dimension"));
start_table($table_style);
- $th = array(_("Type"), _("#"), _("Reference"),
+ $th = array(_("Type"), _("#"), _("Account"),
_("Date"), _("Debit"), _("Credit"));
table_header($th);
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();
}
display_heading(systypes::name(systypes::work_order()) . " # " . $woid);
+br(1);
$myrow = get_work_order($woid);
if ($myrow["type"] == wo_types::advanced())
echo "<center>";
// display the WO requirements
-echo "<br>";
+br(1);
if ($myrow["released"] == false)
{
display_heading2(_("BOM for item:") . " " . $myrow["StockItemName"]);