forked from Wavyzz/dolibarr
clean indent
This commit is contained in:
@@ -497,7 +497,7 @@ class doc_generic_reception_odt extends ModelePdfReception
|
||||
}
|
||||
else {
|
||||
try {
|
||||
$odfHandler->saveToDisk($file);
|
||||
$odfHandler->saveToDisk($file);
|
||||
} catch (Exception $e){
|
||||
$this->error=$e->getMessage();
|
||||
return -1;
|
||||
|
||||
@@ -142,26 +142,25 @@ class pdf_squille extends ModelePdfReception
|
||||
|
||||
$realpath='';
|
||||
|
||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) {
|
||||
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||
if ($obj['photo_vignette'])
|
||||
{
|
||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||
{
|
||||
if ($obj['photo_vignette'])
|
||||
{
|
||||
$filename= $obj['photo_vignette'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$filename=$obj['photo'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$filename=$obj['photo'];
|
||||
}
|
||||
$filename= $obj['photo_vignette'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$filename=$obj['photo'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$filename=$obj['photo'];
|
||||
}
|
||||
|
||||
$realpath = $dir.$filename;
|
||||
break;
|
||||
$realpath = $dir.$filename;
|
||||
break;
|
||||
}
|
||||
|
||||
if ($realpath) $realpatharray[$i]=$realpath;
|
||||
@@ -461,14 +460,13 @@ class pdf_squille extends ModelePdfReception
|
||||
$pdf->writeHTMLCell($this->posxqtyordered - $this->posxweightvol + 2, 3, $this->posxweightvol - 1, $curY, $weighttxt.(($weighttxt && $voltxt)?'<br>':'').$voltxt, 0, 0, false, true, 'C');
|
||||
//$pdf->MultiCell(($this->posxqtyordered - $this->posxweightvol), 3, $weighttxt.(($weighttxt && $voltxt)?'<br>':'').$voltxt,'','C');
|
||||
|
||||
if (empty($conf->global->RECEPTION_PDF_HIDE_ORDERED))
|
||||
{
|
||||
$pdf->SetXY($this->posxqtyordered, $curY);
|
||||
if($object->lines[$i]->fk_commandefourndet!=$fk_commandefourndet){
|
||||
$pdf->MultiCell(($this->posxqtytoship - $this->posxqtyordered), 3, $object->lines[$i]->qty_asked, '', 'C');
|
||||
$totalOrdered+=$object->lines[$i]->qty_asked;
|
||||
}
|
||||
$fk_commandefourndet = $object->lines[$i]->fk_commandefourndet;
|
||||
if (empty($conf->global->RECEPTION_PDF_HIDE_ORDERED)) {
|
||||
$pdf->SetXY($this->posxqtyordered, $curY);
|
||||
if($object->lines[$i]->fk_commandefourndet!=$fk_commandefourndet){
|
||||
$pdf->MultiCell(($this->posxqtytoship - $this->posxqtyordered), 3, $object->lines[$i]->qty_asked, '', 'C');
|
||||
$totalOrdered+=$object->lines[$i]->qty_asked;
|
||||
}
|
||||
$fk_commandefourndet = $object->lines[$i]->fk_commandefourndet;
|
||||
}
|
||||
|
||||
$pdf->SetXY($this->posxqtytoship, $curY);
|
||||
|
||||
Reference in New Issue
Block a user