Changed all numeric constants to the new defined constants. A huge task.
[fa-stable.git] / purchasing / supplier_credit.php
index 25c24e3b0afdf31771954d07b0ede86581ad817f..319bab0bb1acf583fec8d99a4198668a47bc718e 100644 (file)
@@ -36,7 +36,7 @@ check_db_has_suppliers(_("There are no suppliers defined in the system."));
 if (isset($_GET['AddedID'])) 
 {
        $invoice_no = $_GET['AddedID'];
-       $trans_type = 21;
+       $trans_type = ST_SUPPCREDIT;
 
 
     echo "<center>";
@@ -153,7 +153,7 @@ function check_data()
                return false;
        }
 
-       if (!is_new_reference($_SESSION['supp_trans']->reference, 21)) 
+       if (!is_new_reference($_SESSION['supp_trans']->reference, ST_SUPPCREDIT)) 
        {
                display_error(_("The entered reference is already in use."));
                set_focus('reference');