Debug/Clean code
This commit is contained in:
parent
725de78d29
commit
f1fd4108ae
@ -84,7 +84,6 @@ class pdf_ban extends ModeleBankAccountDoc
|
|||||||
$this->posxref=$this->marge_gauche+1;
|
$this->posxref=$this->marge_gauche+1;
|
||||||
$this->posxlabel=$this->marge_gauche+25;
|
$this->posxlabel=$this->marge_gauche+25;
|
||||||
$this->posxworkload=$this->marge_gauche+100;
|
$this->posxworkload=$this->marge_gauche+100;
|
||||||
$this->posxprogress=$this->marge_gauche+130;
|
|
||||||
$this->posxdatestart=$this->marge_gauche+150;
|
$this->posxdatestart=$this->marge_gauche+150;
|
||||||
$this->posxdateend=$this->marge_gauche+170;
|
$this->posxdateend=$this->marge_gauche+170;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,12 +83,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
if (! $this->emetteur->country_code) $this->emetteur->country_code=substr($langs->defaultlang, -2); // By default if not defined
|
if (! $this->emetteur->country_code) $this->emetteur->country_code=substr($langs->defaultlang, -2); // By default if not defined
|
||||||
|
|
||||||
// Defini position des colonnes
|
// Defini position des colonnes
|
||||||
$this->posxref=$this->marge_gauche+1;
|
$this->posxref=$this->marge_gauche;
|
||||||
$this->posxlabel=$this->marge_gauche+25;
|
|
||||||
$this->posxworkload=$this->marge_gauche+100;
|
|
||||||
$this->posxprogress=$this->marge_gauche+130;
|
|
||||||
$this->posxdatestart=$this->marge_gauche+150;
|
|
||||||
$this->posxdateend=$this->marge_gauche+170;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -203,7 +198,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
if (! empty($object->note_public))
|
if (! empty($object->note_public))
|
||||||
{
|
{
|
||||||
$pdf->SetFont('', '', $default_font_size - 1);
|
$pdf->SetFont('', '', $default_font_size - 1);
|
||||||
$pdf->writeHTMLCell(190, 3, $this->posxref-1, $tab_top-2, dol_htmlentitiesbr($object->note_public), 0, 1);
|
$pdf->writeHTMLCell(190, 3, $this->posxref, $tab_top-2, dol_htmlentitiesbr($object->note_public), 0, 1);
|
||||||
$nexY = $pdf->GetY();
|
$nexY = $pdf->GetY();
|
||||||
$height_note=$nexY-($tab_top-2);
|
$height_note=$nexY-($tab_top-2);
|
||||||
|
|
||||||
|
|||||||
@ -1711,22 +1711,6 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|||||||
'border-left' => true, // add left line separator
|
'border-left' => true, // add left line separator
|
||||||
);
|
);
|
||||||
|
|
||||||
$rank = $rank + 10;
|
|
||||||
$this->cols['progress'] = array(
|
|
||||||
'rank' => $rank,
|
|
||||||
'width' => 19, // in mm
|
|
||||||
'status' => false,
|
|
||||||
'title' => array(
|
|
||||||
'textkey' => 'Progress'
|
|
||||||
),
|
|
||||||
'border-left' => false, // add left line separator
|
|
||||||
);
|
|
||||||
|
|
||||||
if($this->situationinvoice)
|
|
||||||
{
|
|
||||||
$this->cols['progress']['status'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$rank = $rank + 10;
|
$rank = $rank + 10;
|
||||||
$this->cols['unit'] = array(
|
$this->cols['unit'] = array(
|
||||||
'rank' => $rank,
|
'rank' => $rank,
|
||||||
|
|||||||
@ -1863,22 +1863,6 @@ class pdf_cyan extends ModelePDFPropales
|
|||||||
'border-left' => true, // add left line separator
|
'border-left' => true, // add left line separator
|
||||||
);
|
);
|
||||||
|
|
||||||
$rank = $rank + 10;
|
|
||||||
$this->cols['progress'] = array(
|
|
||||||
'rank' => $rank,
|
|
||||||
'width' => 19, // in mm
|
|
||||||
'status' => false,
|
|
||||||
'title' => array(
|
|
||||||
'textkey' => 'Progress'
|
|
||||||
),
|
|
||||||
'border-left' => false, // add left line separator
|
|
||||||
);
|
|
||||||
|
|
||||||
if($this->situationinvoice)
|
|
||||||
{
|
|
||||||
$this->cols['progress']['status'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$rank = $rank + 10;
|
$rank = $rank + 10;
|
||||||
$this->cols['unit'] = array(
|
$this->cols['unit'] = array(
|
||||||
'rank' => $rank,
|
'rank' => $rank,
|
||||||
|
|||||||
@ -1550,22 +1550,6 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
'border-left' => true, // add left line separator
|
'border-left' => true, // add left line separator
|
||||||
);
|
);
|
||||||
|
|
||||||
$rank = $rank + 10;
|
|
||||||
$this->cols['progress'] = array(
|
|
||||||
'rank' => $rank,
|
|
||||||
'width' => 19, // in mm
|
|
||||||
'status' => false,
|
|
||||||
'title' => array(
|
|
||||||
'textkey' => 'Progress'
|
|
||||||
),
|
|
||||||
'border-left' => false, // add left line separator
|
|
||||||
);
|
|
||||||
|
|
||||||
if($this->situationinvoice)
|
|
||||||
{
|
|
||||||
$this->cols['progress']['status'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$rank = $rank + 10;
|
$rank = $rank + 10;
|
||||||
$this->cols['unit'] = array(
|
$this->cols['unit'] = array(
|
||||||
'rank' => $rank,
|
'rank' => $rank,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user