$this->option_multilang=1;// Dispo en plusieurs langues
$this->option_escompte=1;// Affiche si il y a eu escompte
$this->option_credit_note=1;// Support credit notes
$this->option_escompte=0;// Affiche si il y a eu escompte
$this->option_credit_note=0;// Support credit notes
$this->option_freetext=1;// Support add of a personalised text
$this->option_draft_watermark=1;// Support add of a watermark on drafts
...
...
@@ -104,14 +104,14 @@ class pdf_standard extends ModeleExpenseReport
// Define position of columns
$this->posxpiece=$this->marge_gauche+1;
$this->posxdesc=20;
$this->posxdate=85;
$this->posxtype=105;
$this->posxprojet=125;
$this->posxtva=145;
$this->posxup=162;
$this->posxqty=176;
$this->postotalttc=186;
$this->posxcomment=$this->marge_gauche+10;
$this->posxdate=80;
$this->posxtype=97;
$this->posxprojet=116;
$this->posxtva=136;
$this->posxup=148;
$this->posxqty=166;
$this->postotalttc=178;
if($this->page_largeur<210)// To work with US executive format
{
$this->posxdate-=20;
...
...
@@ -127,7 +127,6 @@ class pdf_standard extends ModeleExpenseReport
$this->localtax1=array();
$this->localtax2=array();
$this->atleastoneratenotnull=0;
$this->atleastonediscount=0;
}
...
...
@@ -199,7 +198,7 @@ class pdf_standard extends ModeleExpenseReport
// Create pdf instance
$pdf=pdf_getInstance($this->format);
$default_font_size=pdf_getPDFFontSize($outputlangs);// Must be after pdf_getInstance
$heightforinfotot=50;// Height reserved to output the info and total part
$heightforinfotot=40;// Height reserved to output the info and total part
$heightforfreetext=(isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5);// Height reserved to output the free text on last page
$heightforfooter=$this->marge_basse+8;// Height reserved to output the footer (value include bottom margin)
$pdf->SetAutoPageBreak(1,0);
...
...
@@ -230,15 +229,6 @@ class pdf_standard extends ModeleExpenseReport
$pdf->SetMargins($this->marge_gauche,$this->marge_haute,$this->marge_droite);// Left, Top, Right
// Positionne $this->atleastonediscount si on a au moins une remise
for($i=0;$i<$nblignes;$i++)
{
if($object->lines[$i]->remise_percent)
{
$this->atleastonediscount++;
}
}
// New page
$pdf->AddPage();
if(!empty($tplidx))$pdf->useTemplate($tplidx);
...
...
@@ -249,9 +239,9 @@ class pdf_standard extends ModeleExpenseReport