if ($email == 0)
{
$rep = new FrontReport(_('INVOICE'), "InvoiceBulk", user_pagesize());
+ $rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
$rep->Info($params, $cols, null, $aligns);
if ($email == 1)
{
$rep = new FrontReport("", "", user_pagesize());
+ $rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
if ($j == ST_SALESINVOICE)
}
else
$rep->title = ($j == ST_SALESINVOICE) ? _('INVOICE') : _('CREDIT NOTE');
- $rep->Header2($myrow, $branch, $sales_order, $baccount, $j);
+ $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, $j);
+ $rep->NewPage();
$result = get_customer_trans_details($j, $i);
$SubTotal = 0;
$rep->row = $newrow;
//$rep->NewLine(1);
if ($rep->row < $rep->bottomMargin + (15 * $rep->lineHeight))
- $rep->Header2($myrow, $branch, $sales_order, $baccount,$j);
+ $rep->NewPage();
}
$comments = get_comments($j, $i);