Added Danish/Svedish installer translation (Joe Hunt)
[fa-stable.git] / purchasing / view / view_supp_credit.php
index 5c8ec92fc9cf057ea5c5810536b0ce8dd8d4bfb2..ec5cb40b20fd92ba764c3b5dd4dc98a7ad3da198 100644 (file)
@@ -31,8 +31,7 @@ elseif (isset($_POST["trans_no"]))
        $trans_no = $_POST["trans_no"];
 }
 
-$supp_trans = new supp_trans();
-$supp_trans->is_invoice = false;
+$supp_trans = new supp_trans(ST_SUPPCREDIT);
 
 read_supp_invoice($trans_no, ST_SUPPCREDIT, $supp_trans);