Fix: manquait l'envoi des traductions au changement de page
This commit is contained in:
parent
1be15ba753
commit
c306d1fb06
@ -295,25 +295,25 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
|
|
||||||
// Collecte des totaux par valeur de tva
|
// Collecte des totaux par valeur de tva
|
||||||
// dans le tableau tva["taux"]=total_tva
|
// dans le tableau tva["taux"]=total_tva
|
||||||
$tvaligne=$com->lignes[$i]->price * $com->lignes[$i]->qty;
|
$tvaligne=$com->lignes[$i]->price * $com->lignes[$i]->qty;
|
||||||
if ($com->remise_percent) $tvaligne-=($tvaligne*$com->remise_percent)/100;
|
if ($com->remise_percent) $tvaligne-=($tvaligne*$com->remise_percent)/100;
|
||||||
$this->tva[ (string)$com->lignes[$i]->tva_tx ] += $tvaligne;
|
$this->tva[ (string)$com->lignes[$i]->tva_tx ] += $tvaligne;
|
||||||
|
|
||||||
$nexY+=2; // Passe espace entre les lignes
|
$nexY+=2; // Passe espace entre les lignes
|
||||||
|
|
||||||
if ($nexY > 200 && $i < ($nblignes - 1))
|
if ($nexY > 200 && $i < ($nblignes - 1))
|
||||||
{
|
{
|
||||||
$this->_tableau($pdf, $tab_top, $tab_height + 20, $nexY);
|
$this->_tableau($pdf, $tab_top, $tab_height + 20, $nexY, $outputlangs);
|
||||||
$this->_pagefoot($pdf);
|
$this->_pagefoot($pdf, $outputlangs);
|
||||||
|
|
||||||
// Nouvelle page
|
// Nouvelle page
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
$pagenb++;
|
$pagenb++;
|
||||||
$this->_pagehead($pdf, $com, 0, $outputlangs);
|
$this->_pagehead($pdf, $com, 0, $outputlangs);
|
||||||
|
|
||||||
$nexY = $tab_top_newpage + 8;
|
$nexY = $tab_top_newpage + 8;
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','', 10);
|
$pdf->SetFont('Arial','', 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -328,8 +328,8 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$this->_tableau($pdf, $tab_top_newpage, $tab_height, $nexY, $outputlangs);
|
$this->_tableau($pdf, $tab_top_newpage, $tab_height, $nexY, $outputlangs);
|
||||||
$bottomlasttab=$tab_top_newpage + $tab_height + 1;
|
$bottomlasttab=$tab_top_newpage + $tab_height + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$deja_regle = "";
|
$deja_regle = "";
|
||||||
|
|
||||||
$posy=$this->_tableau_tot($pdf, $com, $deja_regle, $bottomlasttab, $outputlangs);
|
$posy=$this->_tableau_tot($pdf, $com, $deja_regle, $bottomlasttab, $outputlangs);
|
||||||
|
|
||||||
@ -593,7 +593,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
|
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
// Montants exprimés en (en tab_top - 1)
|
// Montants exprimés en (en tab_top - 1)
|
||||||
$pdf->SetTextColor(0,0,0);
|
$pdf->SetTextColor(0,0,0);
|
||||||
$pdf->SetFont('Arial','',8);
|
$pdf->SetFont('Arial','',8);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user