Optimized editkey graphics by using JS callEditor instead.
[fa-stable.git] / reporting / rep109.php
index 3939459d9665b3374c4992617bbd13ae9560f898..51697c3c6c1ec8bac98ae1c1b3d530d378b90093 100644 (file)
@@ -98,7 +98,7 @@ function print_sales_orders()
                else
                        $rep->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
 
-               $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no']);
+               $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], false);
                $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESORDER, $contacts);
                $rep->NewPage();
 
@@ -211,7 +211,7 @@ function print_sales_orders()
                $rep->Font();
                if ($email == 1)
                {
-                       $rep->End($email, '', $myrow);
+                       $rep->End($email);
                }
        }
        if ($email == 0)