Fixing tax_included in gl_items.
[fa-stable.git] / purchasing / includes / supp_trans_class.inc
index 0647b96fd4e6eeec682da5f3791f9719845efe38..db940d62feb8300e815af650128ac38e5c36325a 100644 (file)
@@ -166,7 +166,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;