| @@ 747-753 (lines=7) @@ | ||
| 744 | $this->setFont('', '', null); |
|
| 745 | $this->MultiTexto($receptor['RznSocRecep'], $x+$offset+2, null, '', $x==10?105:0); |
|
| 746 | } |
|
| 747 | if (!empty($receptor['GiroRecep'])) { |
|
| 748 | $this->setFont('', 'B', null); |
|
| 749 | $this->Texto('Giro', $x); |
|
| 750 | $this->Texto(':', $x+$offset); |
|
| 751 | $this->setFont('', '', null); |
|
| 752 | $this->MultiTexto($receptor['GiroRecep'], $x+$offset+2); |
|
| 753 | } |
|
| 754 | if (!empty($receptor['DirRecep'])) { |
|
| 755 | $this->setFont('', 'B', null); |
|
| 756 | $this->Texto('Dirección', $x); |
|
| @@ 771-777 (lines=7) @@ | ||
| 768 | $this->setFont('', '', null); |
|
| 769 | $this->MultiTexto(\sasco\LibreDTE\Sii\Aduana::getNacionalidad($receptor['Extranjero']['Nacionalidad']), $x+$offset+2); |
|
| 770 | } |
|
| 771 | if (!empty($receptor['Extranjero']['NumId'])) { |
|
| 772 | $this->setFont('', 'B', null); |
|
| 773 | $this->Texto('N° ID extranj.', $x); |
|
| 774 | $this->Texto(':', $x+$offset); |
|
| 775 | $this->setFont('', '', null); |
|
| 776 | $this->MultiTexto($receptor['Extranjero']['NumId'], $x+$offset+2); |
|
| 777 | } |
|
| 778 | $contacto = []; |
|
| 779 | if (!empty($receptor['Contacto'])) |
|
| 780 | $contacto[] = $receptor['Contacto']; |
|
| @@ 783-789 (lines=7) @@ | ||
| 780 | $contacto[] = $receptor['Contacto']; |
|
| 781 | if (!empty($receptor['CorreoRecep'])) |
|
| 782 | $contacto[] = $receptor['CorreoRecep']; |
|
| 783 | if (!empty($contacto)) { |
|
| 784 | $this->setFont('', 'B', null); |
|
| 785 | $this->Texto('Contacto', $x); |
|
| 786 | $this->Texto(':', $x+$offset); |
|
| 787 | $this->setFont('', '', null); |
|
| 788 | $this->MultiTexto(implode(' / ', $contacto), $x+$offset+2); |
|
| 789 | } |
|
| 790 | if (!empty($Encabezado['RUTSolicita'])) { |
|
| 791 | list($rut, $dv) = explode('-', $Encabezado['RUTSolicita']); |
|
| 792 | $this->setFont('', 'B', null); |
|
| @@ 819-825 (lines=7) @@ | ||
| 816 | private function agregarTraslado($IndTraslado, array $Transporte = null, $x = 10, $offset = 22) |
|
| 817 | { |
|
| 818 | // agregar tipo de traslado |
|
| 819 | if ($IndTraslado) { |
|
| 820 | $this->setFont('', 'B', null); |
|
| 821 | $this->Texto('Tipo oper.', $x); |
|
| 822 | $this->Texto(':', $x+$offset); |
|
| 823 | $this->setFont('', '', null); |
|
| 824 | $this->MultiTexto($this->traslados[$IndTraslado], $x+$offset+2); |
|
| 825 | } |
|
| 826 | // agregar información de transporte |
|
| 827 | if ($Transporte) { |
|
| 828 | $transporte = ''; |
|
| @@ 842-848 (lines=7) @@ | ||
| 839 | if (!empty($Transporte['Chofer']['RUTChofer'])) |
|
| 840 | $transporte .= ' ('.$Transporte['Chofer']['RUTChofer'].')'; |
|
| 841 | } |
|
| 842 | if ($transporte) { |
|
| 843 | $this->setFont('', 'B', null); |
|
| 844 | $this->Texto('Traslado', $x); |
|
| 845 | $this->Texto(':', $x+$offset); |
|
| 846 | $this->setFont('', '', null); |
|
| 847 | $this->MultiTexto(ucfirst(trim($transporte)), $x+$offset+2); |
|
| 848 | } |
|
| 849 | } |
|
| 850 | // agregar información de aduana |
|
| 851 | if (!empty($Transporte['Aduana']) and is_array($Transporte['Aduana'])) { |
|