Dobrý den,
podobný kód v pdf.php mám, ale ve verzi 1.4.4 se mi ičo a dič zákazníka nezobrazuje
Kód:
/* fakturační adresa */
$pdf->Cell(5, 10, '','L');
$pdf->SetFont(self::fontname(), '', 9); /* velikost textu ič */
$pdf->Cell(90, 10, self::l('IC: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_IC')) ,'R');
$pdf->Cell(5, 10, '');
$pdf->SetFont(self::fontname(), '', 10); /* velikost textu fakturační adresa */
$pdf->Cell(35, 10, self::l('Invoicing'));
$pdf->SetFont(self::fontname(), '', 9);
if (!empty($invoice_address->company))
$pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->company), 'R');
$pdf->Ln(5);
$pdf->Cell(5, 10, '','L');
$pdf->Cell(90, 10, self::l('DIC: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_DIC')) ,'R');
$pdf->Cell(40, 10, '');
$pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->firstname).' '.Tools::iconv('utf-8', self::encoding(), $invoice_address->lastname),'R');
$pdf->Ln(5);
$pdf->Cell(5, 10, '','L');
$pdf->Cell(90, 10,self::l('E-mail: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_EMAIL')) ,'R');
$pdf->Cell(40, 10, '');
if (!empty($invoice_address->address2))
$pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->address1).', '.Tools::iconv('utf-8', self::encoding(), $invoice_address->address2), 'R');
else
$pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->address1), 'R');
$pdf->Ln(5);
$pdf->Cell(5, 10, '','L');
$pdf->Cell(90, 10,self::l('Web: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_WWW')),'R');
$pdf->Cell(40, 10,'');
$pdf->Cell(0, 10,$invoice_address->postcode.' '.Tools::iconv('utf-8', self::encoding(), $delivery_address->city) , 'R');
$pdf->Ln(5);
$pdf->Cell(5, 10, '','L');
$pdf->Cell(90, 10, self::l('Phone: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_PHONE')) ,'R');
$pdf->Cell(40, 10,'');
if (Tools::iconv('utf-8', self::encoding(),$invoice_address->country.($invoiceState ? '-'.$invoiceState->name : ''))=='Česká Republika-Česká republika')
$pdf->Cell(0, 10, 'Česká republika', 'R');
else
$pdf->Cell(0, 10,Tools::iconv('utf-8', self::encoding(), $invoice_address->country.($invoiceState ? '-'.$invoiceState->name : '')) , 'R');
$pdf->Ln(5);
$pdf->Cell(5, 10,'','L');
$pdf->Cell(90, 10, self::l('Fax: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_FAX')) ,'R');
/* pokud nechcete používat FAX, místo něj doplňte $pdf->Cell(90, 10,'' ,'R'); */
$pdf->Cell(40, 10, '');
if (!empty($invoice_address->phone_mobile))
$pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->phone_mobile), 'R');
$pdf->Ln(5);
$pdf->Cell(5, 10,'','L');
$pdf->Cell(90, 10,self::l('Bank: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_BANK_ADDRESS')));
$carrier = new Carrier(self::$order->id_carrier);
if ($carrier->name == '0')
$carrier->name = Configuration::get('PS_SHOP_NAME');
$pdf->Cell(40, 10,'');
if ($invoice_address->ic!='')$pdf->Cell(0, 10, self::l('IC: ').$invoice_address->ic); else $pdf->Cell(50, 10, '');
$pdf->Ln(5);
$pdf->Cell(5, 10, '','L');
$pdf->Cell(90,10,self::l('Bank Account: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_BANK_ACCOUNT')) ,'R');
$pdf->Cell(40, 10,'');
if ($invoice_address->dic!='')$pdf->Cell(0, 10, self::l('DIC: ').Tools::iconv('utf-8', self::encoding(),$invoice_address->dic),'R'); else $pdf->Cell(0, 10, '','R');
$pdf->Ln(5);
Radek Plašil píše:
Dobrý den,
ičo a dič zobrazíte pomocí:
Kód:
$invoice_address->ic
$invoice_address->dic