Fixed cash only payment terms.
[fa-stable.git] / purchasing / includes / supp_trans_class.inc
index 293b59a725b11ff69f6a1816b0aef186e83b6cbf..db940d62feb8300e815af650128ac38e5c36325a 100644 (file)
@@ -164,12 +164,12 @@ class supp_trans
                foreach ($this->grn_items as $ln_itm)
                        $total += round($ln_itm->this_quantity_inv * $ln_itm->chg_price, user_price_dec());
 
-               return $total;
-
                foreach ($this->gl_codes as $gl_line)
-               {
-                       $total += $gl_line->amount;
+               {   //////// 2010-10-10 Joe Hunt
+                       if (!is_tax_account($gl_line->gl_code) || $this->tax_included)
+                               $total += $gl_line->amount;
                }
+               return $total;
        }
 } /* end of class defintion */