var $ov_discount;
var $ov_gst;
var $gl_codes_counter=0;
+ var $credit = 0;
function supp_trans($trans_type)
{
foreach ($this->gl_codes as $gl_line)
{ //////// 2010-10-10 Joe Hunt
- if (!is_tax_account($gl_line->gl_code))
+ if (!is_tax_account($gl_line->gl_code) || $this->tax_included)
$total += $gl_line->amount;
}
return $total;