}
else
$rep->title = _('DELIVERY NOTE');
- $rep->SetCommonData($myrow, $branch, $sales_order, '', ST_CUSTDELIVERY);
+ $contacts = get_branch_contacts($branch['branch_code'], 'delivery', $branch['debtor_no']);
+ $rep->SetCommonData($myrow, $branch, $sales_order, '', ST_CUSTDELIVERY, $contacts);
$rep->NewPage();
$result = get_customer_trans_details(ST_CUSTDELIVERY, $i);