X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep201.php;h=e0a882d0f48de28154a74225f94fe9b633599c62;hb=604d89ac6d18712d8b55bed821afe07b7106db3d;hp=834ca6ce0c6b30e7e41fb8ec03fe209956d27970;hpb=7a50c189ea995d5fe6785feb7710c00396065d2b;p=fa-stable.git diff --git a/reporting/rep201.php b/reporting/rep201.php index 834ca6ce..e0a882d0 100644 --- a/reporting/rep201.php +++ b/reporting/rep201.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // date_: 2005-05-19 // Title: Supplier Balances // ---------------------------------------------------------------- -$path_to_root="../"; +$path_to_root=".."; -include_once($path_to_root . "includes/session.inc"); -include_once($path_to_root . "includes/date_functions.inc"); -include_once($path_to_root . "includes/data_checks.inc"); -include_once($path_to_root . "gl/includes/gl_db.inc"); +include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/date_functions.inc"); +include_once($path_to_root . "/includes/data_checks.inc"); +include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- @@ -44,7 +53,7 @@ function print_supplier_balances() { global $path_to_root; - include_once($path_to_root . "reporting/includes/pdf_report.inc"); + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $to = $_POST['PARAM_0']; $fromsupp = $_POST['PARAM_1']; @@ -84,7 +93,7 @@ function print_supplier_balances() $rep->Header(); $total = array(); - $grandtotal = array(); + $grandtotal = array(0,0,0,0); $sql = "SELECT supplier_id, supp_name AS name, curr_code FROM ".TB_PREF."suppliers "; if ($fromsupp != reserved_words::get_all_numeric()) @@ -118,7 +127,8 @@ function print_supplier_balances() $rep->TextCol(3, 4, sql2date($trans['due_date'])); $item[0] = $item[1] = 0.0; if ($convert) - $rate = get_exchange_rate_from_home_currency($myrow['curr_code'], $date); + //$rate = get_exchange_rate_from_home_currency($myrow['curr_code'], $date); + $rate = $trans['rate']; else $rate = 1.0; if ($trans['TotalAmount'] > 0.0)