Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / reporting / includes / reporting.inc
index 43d03ef0a8cab7d9a1f9fe3c046bf77fbae02031..9df4942975e2d1850605f5193d7aa05a5136b546 100644 (file)
@@ -24,7 +24,18 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
 
        switch ($type_no)
        {
-               case systypes::sales_order() :
+               case ST_SALESQUOTE :
+                       $rep = 111;
+                       // from, to, currency, bank acc, email, quote, comments
+                       $ar = array(
+                               'PARAM_0' => $doc_no, 
+                               'PARAM_1' => $doc_no, 
+                               'PARAM_2' => "", 
+                               'PARAM_3' => get_first_bank_account(), 
+                               'PARAM_4' => $email, 
+                               'PARAM_5' => "");
+                       break;
+               case ST_SALESORDER :
                        $rep = 109;
                        // from, to, currency, bank acc, email, quote, comments
                        $ar = array(
@@ -36,7 +47,7 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_5' => 0, 
                                'PARAM_6' => "");
                        break;
-               case systypes::cust_dispatch() :
+               case ST_CUSTDELIVERY :
                        $rep = 110;
                        // from, to, email, comments
                        $ar = array(
@@ -59,7 +70,7 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_6' => "", 
                                'PARAM_7' => $type_no);
                        break;
-               case systypes::po() :
+               case ST_PURCHORDER :
                        $rep = 209;
                        // from, to, currency, bank acc, email, comments
                        $ar = array(