Multiply contacts spport added.
[fa-stable.git] / reporting / rep107.php
index 275498c9d184b06f92baf88756132f7d74f2cecc..11af3b832f90f83c7826ca50812cfc9a87761314 100644 (file)
@@ -109,7 +109,8 @@ function print_invoices()
                        }
                        else
                                $rep->title = ($j == ST_SALESINVOICE) ? _('INVOICE') : _('CREDIT NOTE');
-                       $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, $j);
+                       $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no']);
+                       $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, $j, $contacts);
                        $rep->NewPage();
 
                        $result = get_customer_trans_details($j, $i);