Fix: UTF encoding
This commit is contained in:
parent
9fc5a1f705
commit
d7291bc655
@ -624,7 +624,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
$pdf->SetFont('Arial','B',8);
|
$pdf->SetFont('Arial','B',8);
|
||||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByChequeOrderedTo',$outputlangs->convToOutputCharset($account->proprio)).':',0,'L',0);
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByChequeOrderedTo',$account->proprio).':',0,'L',0);
|
||||||
$posy=$pdf->GetY()+1;
|
$posy=$pdf->GetY()+1;
|
||||||
|
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
@ -711,7 +711,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
if ($tvakey) // On affiche pas taux 0
|
if ($tvakey) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
$index++;
|
$index++;
|
||||||
$pdf->SetXY ($col1x, $tab2_top + $tab2_hl * $index);
|
$pdf->SetXY ($col1x, $tab2_top + $tab2_hl * $index);
|
||||||
$tvacompl='';
|
$tvacompl='';
|
||||||
@ -727,7 +727,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->MultiCell($largcol2, $tab2_hl, price($tvaval), 0, 'R', 1);
|
$pdf->MultiCell($largcol2, $tab2_hl, price($tvaval), 0, 'R', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $this->atleastoneratenotnull) // If no vat at all
|
if (! $this->atleastoneratenotnull) // If no vat at all
|
||||||
{
|
{
|
||||||
$index++;
|
$index++;
|
||||||
@ -737,7 +737,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->MultiCell($largcol2, $tab2_hl, price($object->total_tva), 0, 'R', 1);
|
$pdf->MultiCell($largcol2, $tab2_hl, price($object->total_tva), 0, 'R', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Total TTC
|
// Total TTC
|
||||||
if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT))
|
if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT))
|
||||||
{
|
{
|
||||||
@ -842,7 +842,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetXY ($this->posxtva-1, $tab_top+2);
|
$pdf->SetXY ($this->posxtva-1, $tab_top+2);
|
||||||
$pdf->MultiCell($this->posxup-$this->posxtva-1,2, $outputlangs->transnoentities("VAT"),'','C');
|
$pdf->MultiCell($this->posxup-$this->posxtva-1,2, $outputlangs->transnoentities("VAT"),'','C');
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdf->line($this->posxup-1, $tab_top, $this->posxup-1, $tab_top + $tab_height);
|
$pdf->line($this->posxup-1, $tab_top, $this->posxup-1, $tab_top + $tab_height);
|
||||||
$pdf->SetXY ($this->posxup-1, $tab_top+2);
|
$pdf->SetXY ($this->posxup-1, $tab_top+2);
|
||||||
$pdf->MultiCell(18,2, $outputlangs->transnoentities("PriceUHT"),'','C');
|
$pdf->MultiCell(18,2, $outputlangs->transnoentities("PriceUHT"),'','C');
|
||||||
|
|||||||
@ -536,7 +536,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
|
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
$pdf->SetFont('Arial','B',8);
|
$pdf->SetFont('Arial','B',8);
|
||||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByChequeOrderedTo',$outputlangs->convToOutputCharset($account->proprio)).':',0,'L',0);
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByChequeOrderedTo',$account->proprio).':',0,'L',0);
|
||||||
$posy=$pdf->GetY()+1;
|
$posy=$pdf->GetY()+1;
|
||||||
|
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
@ -590,7 +590,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
function _tableau_tot(&$pdf, $fac, $deja_regle, $posy, $outputlangs)
|
function _tableau_tot(&$pdf, $fac, $deja_regle, $posy, $outputlangs)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$langs->load("main");
|
$langs->load("main");
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
@ -602,7 +602,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
// Tableau total
|
// Tableau total
|
||||||
$col1x=$this->marges['g']+110; $col2x=$this->marges['g']+164;
|
$col1x=$this->marges['g']+110; $col2x=$this->marges['g']+164;
|
||||||
$lltot = 200; $largcol2 = $lltot - $col2x;
|
$lltot = 200; $largcol2 = $lltot - $col2x;
|
||||||
|
|
||||||
$pdf->SetXY ($this->marges['g'], $tab2_top + 0);
|
$pdf->SetXY ($this->marges['g'], $tab2_top + 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -633,7 +633,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
if ($tvakey) // On affiche pas taux 0
|
if ($tvakey) // On affiche pas taux 0
|
||||||
{
|
{
|
||||||
$this->atleastoneratenotnull++;
|
$this->atleastoneratenotnull++;
|
||||||
|
|
||||||
$index++;
|
$index++;
|
||||||
$pdf->SetXY ($col1x, $tab2_top + $tab2_hl * $index);
|
$pdf->SetXY ($col1x, $tab2_top + $tab2_hl * $index);
|
||||||
$tvacompl='';
|
$tvacompl='';
|
||||||
@ -649,7 +649,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
$pdf->MultiCell($largcol2, $tab2_hl, price($tvaval), 0, 'R', 1);
|
$pdf->MultiCell($largcol2, $tab2_hl, price($tvaval), 0, 'R', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $this->atleastoneratenotnull) // If no vat at all
|
if (! $this->atleastoneratenotnull) // If no vat at all
|
||||||
{
|
{
|
||||||
$index++;
|
$index++;
|
||||||
@ -672,7 +672,7 @@ class pdf_oursin extends ModelePDFFactures
|
|||||||
$pdf->MultiCell($largcol2, $tab2_hl, price($fac->total_ttc), 0, 'R', 0);
|
$pdf->MultiCell($largcol2, $tab2_hl, price($fac->total_ttc), 0, 'R', 0);
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
$creditnoteamount=$fac->getSommeCreditNote();
|
$creditnoteamount=$fac->getSommeCreditNote();
|
||||||
$resteapayer = $fac->total_ttc - $deja_regle - $creditnoteamount;
|
$resteapayer = $fac->total_ttc - $deja_regle - $creditnoteamount;
|
||||||
if ($object->paye) $resteapayer=0;
|
if ($object->paye) $resteapayer=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user