- $rep->Header2($myrow, $branch, $myrow, $baccount, ST_SALESORDER);
+
+ $contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no']);
+ $rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESORDER, $contacts);
+ $rep->NewPage();