Smaller technical fixes.
[fa-stable.git] / purchasing / supplier_credit.php
index 9b62ec4defebd2dfd60562d6116e946b8c578515..bd4807109b2d848c4b75e3ef6fb12a72f019e131 100644 (file)
@@ -62,8 +62,7 @@ if (isset($_GET['New']))
                unset ($_SESSION['supp_trans']);
        }
 
-       $_SESSION['supp_trans'] = new supp_trans;
-       $_SESSION['supp_trans']->is_invoice = false;
+       $_SESSION['supp_trans'] = new supp_trans(ST_SUPPCREDIT);
        if (isset($_GET['invoice_no']))
        {
                $_SESSION['supp_trans']->supp_reference = $_POST['invoice_no'] = $_GET['invoice_no'];