Multiple email accounts on contacts didn't work in sales documents
[fa-stable.git] / reporting / rep107.php
index 17fbd69dd3640d7b734c39eae78562786915d9bc..62dc0f2cb202a31c3afe0d53dd01b842f8e53a7e 100644 (file)
@@ -92,7 +92,7 @@ function print_invoices()
                        }
                        else
                                $rep->title = _('INVOICE');
-                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no']);
+                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false);
                        $baccount['payment_service'] = $pay_service;
                        $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_SALESINVOICE, $contacts);
                        $rep->NewPage();