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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user