Email of Sales Documents now use the General Contact type (fall back if no 'orders...
[fa-stable.git] / reporting / rep109.php
index 0497392fba0f0cb6df11a3e5cdad3b5b53b2e24d..3251efcf5cc2bbc068b432eae3dc2e97e9680b0a 100644 (file)
@@ -96,7 +96,7 @@ function print_sales_orders()
                $rep->Font();
                $rep->Info($params, $cols, null, $aligns);
 
-               $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], false);
+               $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], true);
                $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESORDER, $contacts);
                $rep->NewPage();