- else
- $rep->title = _('REMITTANCE');
- $rep->Header2($myrow, null, $myrow, $baccount, ST_SUPPAYMENT);
+ $rep->SetHeaderType('Header2');
+ $rep->currency = $cur;
+ $rep->Font();
+ $rep->Info($params, $cols, null, $aligns);
+
+ $contacts = get_supplier_contacts($myrow['supplier_id'], 'invoice');
+ $rep->SetCommonData($myrow, null, $myrow, $baccount, ST_SUPPAYMENT, $contacts);
+ $rep->NewPage();