Email of Sales Documents now use the General Contact type (fall back if no 'orders...
[fa-stable.git] / reporting / rep107.php
index 19f590ede16052e0eb9c7ac48153d4e0a045021a..94681d9010e20f2203b04cd37efae6a419708ad3 100644 (file)
@@ -89,7 +89,7 @@ function print_invoices()
                        $rep->Font();
                        $rep->Info($params, $cols, null, $aligns);
 
-                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false);
+                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], true);
                        $baccount['payment_service'] = $pay_service;
                        $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_SALESINVOICE, $contacts);
                        $rep->NewPage();