Fixed GET continuation after timeot and logout page access without authorization.
[fa-stable.git] / reporting / includes / reporting.inc
index 7fa0c122ad1d9754951e5be3be79da37f35d6f5b..e38ed6a225119a276ea76359fa7bc65f1a4505b9 100644 (file)
@@ -24,7 +24,7 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
 
        switch ($type_no)
        {
-               case systypes::sales_quotation() :
+               case ST_SALESQUOTE :
                        $rep = 111;
                        // from, to, currency, bank acc, email, quote, comments
                        $ar = array(
@@ -35,7 +35,7 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_4' => $email, 
                                'PARAM_5' => "");
                        break;
-               case systypes::sales_order() :
+               case ST_SALESORDER :
                        $rep = 109;
                        // from, to, currency, bank acc, email, quote, comments
                        $ar = array(
@@ -47,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(
@@ -56,8 +56,8 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_2' => $email, 
                                'PARAM_3' => "");
                        break;
-               case 10 : // Sales Invoice
-               case 11 : // Customer Credit Note
+               case ST_SALESINVOICE : // Sales Invoice
+               case ST_CUSTCREDIT : // Customer Credit Note
                        $rep = 107;
                        // from, to, currency, bank acc, email, paylink, comments, type
                        $ar = array(
@@ -70,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(