|
@@ -105,13 +105,13 @@ class pdf_standard extends ModeleExpenseReport
|
|
|
// Define position of columns
|
|
|
$this->posxpiece=$this->marge_gauche+1;
|
|
|
$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;
|
|
|
+ $this->posxdate=88;
|
|
|
+ $this->posxtype=107;
|
|
|
+ $this->posxprojet=126;
|
|
|
+ $this->posxtva=146;
|
|
|
+ $this->posxup=158;
|
|
|
+ $this->posxqty=176;
|
|
|
+ $this->postotalttc=188;
|
|
|
if (empty($conf->projet->enabled)) {
|
|
|
$this->posxtva-=20;
|
|
|
$this->posxup-=20;
|
|
@@ -324,7 +324,7 @@ class pdf_standard extends ModeleExpenseReport
|
|
|
|
|
|
// Date
|
|
|
$pdf->SetXY($this->posxdate, $curY);
|
|
|
- $pdf->MultiCell($this->posxtype-$this->posxdate-0.8, 4,dol_print_date($object->lines[$i]->date,"day",false,$outputlangs), 0, 'C');
|
|
|
+ $pdf->MultiCell($this->posxtype-$this->posxdate-0.8, 4, dol_print_date($object->lines[$i]->date,"day",false,$outputlangs), 0, 'C');
|
|
|
|
|
|
// Type
|
|
|
$pdf->SetXY($this->posxtype, $curY);
|
|
@@ -352,7 +352,7 @@ class pdf_standard extends ModeleExpenseReport
|
|
|
|
|
|
// Quantity
|
|
|
$pdf->SetXY($this->posxqty, $curY);
|
|
|
- $pdf->MultiCell($this->postotalttc-$this->posxqty-0.8, 4,$object->lines[$i]->qty, 0, 'C');
|
|
|
+ $pdf->MultiCell($this->postotalttc-$this->posxqty-0.8, 4,$object->lines[$i]->qty, 0, 'R');
|
|
|
|
|
|
// Total with all taxes
|
|
|
$pdf->SetXY($this->postotalttc-1, $curY);
|
|
@@ -423,6 +423,8 @@ class pdf_standard extends ModeleExpenseReport
|
|
|
$bottomlasttab=$this->page_hauteur - $heightforinfotot - $heightforfreetext - $heightforfooter + 1;
|
|
|
}
|
|
|
|
|
|
+ $pdf->SetFont('','', 10);
|
|
|
+
|
|
|
// Show total area box
|
|
|
$posy=$bottomlasttab+5;//$nexY+95;
|
|
|
$pdf->SetXY(100, $posy);
|
|
@@ -574,7 +576,7 @@ class pdf_standard extends ModeleExpenseReport
|
|
|
// Status Expense Report
|
|
|
$posy+=6;
|
|
|
$pdf->SetXY($posx,$posy);
|
|
|
- $pdf->SetFont('','B',18);
|
|
|
+ $pdf->SetFont('','B', $default_font_size + 2);
|
|
|
$pdf->SetTextColor(111,81,124);
|
|
|
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$posx, 3, $object->getLibStatut(0), '', 'R');
|
|
|
|
|
@@ -814,7 +816,7 @@ class pdf_standard extends ModeleExpenseReport
|
|
|
if (empty($hidetop))
|
|
|
{
|
|
|
$pdf->SetXY($this->posxqty-1, $tab_top+1);
|
|
|
- $pdf->MultiCell($this->postotalttc-$this->posxqty,2, $outputlangs->transnoentities("Qty"),'','R');
|
|
|
+ $pdf->MultiCell($this->postotalttc-$this->posxqty - 1,2, $outputlangs->transnoentities("Qty"),'','R');
|
|
|
}
|
|
|
|
|
|
// Total with all taxes
|