Missing 'Set Global Supplier' in invoice_ui.inc invoice_header
[fa-stable.git] / purchasing / includes / db / supp_trans_db.inc
index 4ba8d7bac65d57517c4f6f1eb41f595c418e17a5..3a95a4f502eae85bb604901ab2886dcd1ef1a124 100644 (file)
@@ -104,7 +104,7 @@ function get_supp_trans($trans_no, $trans_type=-1)
 
 function exists_supp_trans($type, $type_no)
 {
-       if ($type == 25)
+       if ($type == ST_SUPPRECEIVE)
                return exists_grn($type_no);
 
        $sql = "SELECT trans_no FROM ".TB_PREF."supp_trans WHERE type=".db_escape($type)."