Fixed contact type for language selection.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 5 Oct 2010 09:40:35 +0000 (09:40 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 5 Oct 2010 09:40:35 +0000 (09:40 +0000)
reporting/rep107.php

index 78a59495f1766e6d8818844e78914cb9f026e917..33455a1948c4e0bb51b51a4873fac8fc6bb696d8 100644 (file)
@@ -109,7 +109,7 @@ function print_invoices()
                        }
                        else
                                $rep->title = ($j == ST_SALESINVOICE) ? _('INVOICE') : _('CREDIT NOTE');
-                       $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no']);
+                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no']);
                        $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, $j, $contacts);
                        $rep->NewPage();