private function getFolioInformation() { $this->Ln(); $border = false; $this->SetLineWidth(0.1); $this->SetFillColor(225, 225, 225); $fill = false; $cellHeight = $this->regularSize / 1.5; //encabezado de las tablas $this->SetFont($this->FontType, $this->titleStyle, $this->titleSize); $this->Cell(self::CellXXLarge, $cellHeight, 'Folio Import Information', $border, 0, 'L'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Cell(self::CellXXLarge, $cellHeight, 'Increasable Freight', $border, 0, 'L'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Cell(self::CellXXLarge, $cellHeight, 'Import License Information', $border, 'L', false, 0); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //Contenido $this->SetFont($this->FontType, $this->FontStyle, $this->regularSize); //folio $this->Cell(self::CellMedium, $cellHeight, 'Folio', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $this->folioImport->getFolio(), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Increasable Freight $this->Cell(self::CellMedium, $cellHeight, 'Increasable Freight', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, '$' . number_format($this->booking->getIncreasableFreight(), 4) . 'USD', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Import Licence Number $this->Cell(self::CellMedium, $cellHeight, 'Import Licence Number', $border, 0, 'L', $fill); $this->Cell(self::CellLarge, $cellHeight, $this->folioImport->getImportLicence(), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); $forwarder = ForwarderQuery::create()->findByPK($this->folioImport->getIdForwarder())->getName(); //forwarder $this->Cell(self::CellMedium, $cellHeight, 'Forwarder', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $forwarder, $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Increasable Insurance $this->Cell(self::CellMedium, $cellHeight, 'Increasable Insurance', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, '$' . number_format($this->booking->getIncreasableInsurance(), 4) . 'USD', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //origin seal $this->Cell(self::CellMedium, $cellHeight, 'Origin Seal', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $this->folioImport->getOrigenSell(), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //folio $this->Cell(self::CellMedium, $cellHeight, 'ETD', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $this->booking->getEtd(), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Increasable Freight $this->Cell(self::CellMedium, $cellHeight, 'Total', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, '$' . number_format($this->booking->getTotalIncreasable(), 4) . 'USD', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Import Licence Number $this->Cell(self::CellMedium, $cellHeight, 'Customs Seal', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $this->folioImport->getCustomsSell(), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //folio $this->Cell(self::CellMedium, $cellHeight, 'ETA', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $this->booking->getEta(), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Increasable Freight $this->SetFont($this->FontType, $this->titleStyle, $this->titleSize); $this->Cell(self::CellXXLarge, $cellHeight, 'Not Increasable Freight', $border, 'L', false, 0); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); $this->SetFont($this->FontType, $this->FontStyle, $this->regularSize); //Pieces - Cartons $this->Cell(self::CellMedium, $cellHeight, 'Pieces - Cartons', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, $this->totalPieces . ' - ' . $this->totalCartons, $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Not Increasable Freight $this->Cell(self::CellMedium, $cellHeight, 'Not Increasable Freight', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, '$' . number_format($this->booking->getNotIncreasableFreight(), 4) . 'USD', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //Pieces - Cartons $this->Cell(self::CellMedium, $cellHeight, 'Weight', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, number_format($this->totalWeight, 4) . 'kg', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Not Increasable Freight $this->Cell(self::CellMedium, $cellHeight, 'Total', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, '$' . number_format($this->booking->getTotalNotIncreasable(), 4) . 'USD', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); // $this->Cell(self::CellMedium, $cellHeight, 'Not Increasable Insurance', $border, 0, 'L'); // $this->Cell(self::CellLarge, $cellHeight, '$'.number_format($this->booking->getNotIncreasableInsurance(),4).'USD', $border, 0, 'R'); // $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //Pieces - Cartons $this->Cell(self::CellMedium, $cellHeight, 'Volume', $border, 0, 'L'); // $this->Cell(self::CellLarge, $cellHeight, $this->totalVolume.'cbm' , $border, 0, 'R'); $this->Cell(self::CellLarge, $cellHeight, number_format($this->totalVolume, 4) . 'cbm', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); //Not Increasable Freight $this->Ln(); //Load Cost $this->Cell(self::CellMedium, $cellHeight, 'Load Cost', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, '$' . number_format($this->loadCost, 4) . 'USD', $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //Exchange rate $this->SetFont($this->FontType, $this->titleStyle, $this->titleSize); $this->Cell(self::CellXXLarge, $cellHeight, 'Exchange Rate', $border, 0, 'L'); $this->Ln(); $this->SetFont($this->FontType, $this->FontStyle, $this->regularSize); //Pieces - Cartons $this->Cell(self::CellMedium, $cellHeight, 'EUR => USD', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, number_format($this->folioImport->getExchangeEuroToDollar(), 4), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); //Pieces - Cartons $this->Cell(self::CellMedium, $cellHeight, 'USD => MXP', $border, 0, 'L'); $this->Cell(self::CellLarge, $cellHeight, number_format($this->folioImport->getExchangeDollarToPeso(), 4), $border, 0, 'R'); $this->Cell(self::CellSmall, $cellHeight, ' ', false, 0, 'L'); $this->Ln(); $this->Ln(); $this->Ln(); }