$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())
$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)