Fixed maximum nam length.
[fa-stable.git] / purchasing / includes / supp_trans_class.inc
index 0647b96fd4e6eeec682da5f3791f9719845efe38..21e5e5fbb32d3846593f9f8de5615c6b578052ca 100644 (file)
@@ -40,6 +40,7 @@ class supp_trans
        var $ov_discount;
        var $ov_gst;
        var $gl_codes_counter=0;
+       var $credit = 0;
 
        function supp_trans($trans_type)
        {
@@ -166,7 +167,7 @@ class supp_trans
 
                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;