87 lines
3.0 KiB
PHP
87 lines
3.0 KiB
PHP
|
|
<?
|
||
|
|
$this->SetFont('arialpl', '', 8);
|
||
|
|
$this->SetY($this->fh-15);
|
||
|
|
|
||
|
|
$this->SetDrawColor(0,0,0);
|
||
|
|
$this->SetFillColor(255,255,255);
|
||
|
|
$this->Rect(0, $this->getBreakLine(), $this->fw, $this->bMargin+1, "F");
|
||
|
|
|
||
|
|
$this->SetDrawColor(0,0,0);
|
||
|
|
$this->Cell(0, 10, $this->PageNo().'/{nb}');
|
||
|
|
|
||
|
|
$this->Ln(5);
|
||
|
|
$this->AliasNbPages();
|
||
|
|
$this->SetLineWidth(0);
|
||
|
|
$this->SetDrawColor(0,0,0);
|
||
|
|
$this->Line($this->lMargin,$this->getBreakLine()-6,$this->fw-$this->rMargin,$this->fh-$this->bMargin-6+1);
|
||
|
|
|
||
|
|
|
||
|
|
if($this->edt->show_footer_on_all_pages == 0 && $this->page > 1) {
|
||
|
|
// $this->bMargin = 3;
|
||
|
|
// $this->SetAutoPageBreak(true,$this->bMargin);
|
||
|
|
return;
|
||
|
|
} else {
|
||
|
|
// $this->bMargin = 19;
|
||
|
|
// $this->SetAutoPageBreak(true,$this->bMargin+$this->tMarign+5);
|
||
|
|
}
|
||
|
|
|
||
|
|
$this->SetXY($this->lMargin,$this->fh-$this->bMargin+3-6);
|
||
|
|
$r=mysql_fetch_array(mysql_query("select document_no from ecminvoiceouts where id='".$_REQUEST['record']."'"));
|
||
|
|
if($r['document_no']=="FV 874/10"){
|
||
|
|
$this->Cell(170,4,"Towar z możliwością zwrotu w przeciągu 90 dni. Zwrotowi podlega towar nie zniszczony, nie używany,",0,0,"C");
|
||
|
|
$this->Ln();
|
||
|
|
$this->Cell(170,4,"bez cenówek, bez bind, bez kodów zabezpieczających, w nie uszkodzonych opakowaniach.",0,0,"C");
|
||
|
|
$this->Ln(6);
|
||
|
|
}
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(110,4,$this->edt->footer_account);
|
||
|
|
$this->SetFont('arialpl','B','7');
|
||
|
|
$this->Cell(20,4,'KRS: ');
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(45,4,$this->edt->footer_krs,0,0,'L');
|
||
|
|
$this->Ln();
|
||
|
|
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(110,4,$this->edt->footer_address);
|
||
|
|
$this->SetFont('arialpl','B','7');
|
||
|
|
$this->Cell(20,4,'NIP: ');
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(45,4,$this->edt->footer_nip,0,0,'L');
|
||
|
|
$this->Ln();
|
||
|
|
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(110,4,$this->edt->footer_phone);
|
||
|
|
$this->SetFont('arialpl','B','7');
|
||
|
|
$this->Cell(20,4,'REGON: ');
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(45,4,$this->edt->footer_regon,0,0,'L');
|
||
|
|
$this->Ln();
|
||
|
|
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(110,4,$this->edt->footer_fax);
|
||
|
|
$this->SetFont('arialpl','B','7');
|
||
|
|
$this->Cell(20,4,'Bank: ');
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(45,4,$this->edt->footer_bankname,0,0,'L');
|
||
|
|
$this->Ln();
|
||
|
|
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(110,4,'www.e5.pl');
|
||
|
|
$this->SetFont('arialpl','B','7');
|
||
|
|
$this->Cell(20,4,'Numer konta: ');
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(45,4,$this->edt->account_number,0,0,'L');
|
||
|
|
$this->Ln();
|
||
|
|
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(110,4,'');
|
||
|
|
$this->SetFont('arialpl','B','7');
|
||
|
|
$this->Cell(20,4,'Numer GIOŚ: ');
|
||
|
|
$this->SetFont('arialpl','','7');
|
||
|
|
$this->Cell(45,4,"E0006254W",0,0,'L');
|
||
|
|
$this->Ln();
|
||
|
|
|
||
|
|
$this->SetFont("arialpl","B",8);
|
||
|
|
$this->SetXY(40,$this->GetY()+7);
|
||
|
|
$this->Cell(45,4,$r['document_no'],0,0,'L');
|
||
|
|
?>
|