Smaller technical fixes.
[fa-stable.git] / purchasing / supplier_invoice.php
index ce56148738dfe0720000cec842b72fe007e11198..48b79d69884769da8a78ab8fd0a608d59da6e0e8 100644 (file)
@@ -65,8 +65,7 @@ if (isset($_GET['New']))
                unset ($_SESSION['supp_trans']);
        }
 
-       $_SESSION['supp_trans'] = new supp_trans;
-       $_SESSION['supp_trans']->is_invoice = true;
+       $_SESSION['supp_trans'] = new supp_trans(ST_SUPPINVOICE);
 }
 
 //--------------------------------------------------------------------------------------------------