Bad and missing parameter to header2 funciton
[fa-stable.git] / reporting / rep109.php
index e9be5d7669f1d94dbe449de250b67a8ead918352..1bbf662a94bebc10df8ab9395e6f4d88069d43d2 100644 (file)
@@ -54,10 +54,10 @@ function print_sales_orders()
 
        if ($email == 0)
        {
-               if ($print_as_quote == 1)
-                       $rep = new FrontReport(_("QUOTE"), "QuoteBulk.pdf", user_pagesize());
-               else
+               if ($print_as_quote == 0)
                        $rep = new FrontReport(_("SALES ORDER"), "SalesOrderBulk.pdf", user_pagesize());
+               else
+                       $rep = new FrontReport(_("QUOTE"), "QuoteBulk.pdf", user_pagesize());
                $rep->currency = $cur;
                $rep->Font();
                $rep->Info($params, $cols, null, $aligns);
@@ -111,7 +111,7 @@ function print_sales_orders()
                        $rep->TextCol(6, 7,     $DisplayNet, -2);
                        $rep->NewLine(1);
                        if ($rep->row < $rep->bottomMargin + (15 * $rep->lineHeight))
-                               $rep->Header2($myrow, $branch, $sales_order, $baccount);
+                               $rep->Header2($myrow, $branch, $myrow, $baccount, 9);
                }
                if ($myrow['comments'] != "")
                {