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'];