'.$_LANG['quoteqty'].' |
'.$_LANG['quotedesc'].' |
'.$_LANG['quoteunitprice'].' |
'.$_LANG['quotediscount'].' |
'.$_LANG['quotelinetotal'].' |
';
foreach ($lineitems AS $item) {
$tblhtml .= '
'.$item['qty'].' |
'.nl2br($item['description']).'
|
'.$item['unitprice'].' |
'.$item['discount'].' |
'.$item['total'].' |
';
}
$tblhtml .= '
'.$_LANG['invoicessubtotal'].' |
'.$subtotal.' |
';
if ($taxlevel1['rate']>0) $tblhtml .= '
'.$taxlevel1['name'].' @ '.$taxlevel1['rate'].'% |
'.$tax1.' |
';
if ($taxlevel2['rate']>0) $tblhtml .= '
'.$taxlevel2['name'].' @ '.$taxlevel2['rate'].'% |
'.$tax2.' |
';
$tblhtml .= '
'.$_LANG['invoicestotal'].' |
'.$total.' |
';
$pdf->writeHTML($tblhtml, true, false, false, false, '');
if ($notes) {
$pdf->Ln(6);
$pdf->SetFont($pdfFont,'',8);
$pdf->MultiCell(170,5,$_LANG['invoicesnotes'].": $notes");
}