- $rep->Info($params, $cols, null, $aligns);
- }
- $rep->Header2($myrow, null, null, $baccount, ST_STATEMENT);
+ }
+ $rep->SetHeaderType('Header2');
+ $rep->currency = $cur;
+ $rep->Font();
+ $rep->Info($params, $cols, null, $aligns);
+
+ $contacts = get_customer_contacts($myrow['debtor_no'], 'invoice');
+ //= get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no']);
+ $rep->SetCommonData($myrow, null, null, $baccount, ST_STATEMENT, $contacts);
+ $rep->NewPage();