Skip to content
Snippets Groups Projects
Commit 0aca6759 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: problem with multi-page

parent d02d52f9
No related branches found
No related tags found
No related merge requests found
......@@ -203,9 +203,9 @@ class pdf_propale_azur extends ModelePDFPropales
$tab_top = 90;
$tab_top_middlepage = 50;
$tab_top_newpage = 50;
$tab_height = 150;
$tab_height_middlepage = 190;
$tab_height_newpage = 150;
$tab_height = 130;
$tab_height_middlepage = 200;
$tab_height_endpage = 170;
// Affiche notes
if (! empty($object->note_public))
......@@ -322,7 +322,7 @@ class pdf_propale_azur extends ModelePDFPropales
else
{
$tab_top_in_current_page=$tab_top_newpage;
$tab_height_in_current_page=$tab_height_newpage;
$tab_height_in_current_page=$tab_height_middlepage;
}
if (($nexY+$nblineFollowDesc) > ($tab_top_in_current_page+$tab_height_in_current_page) && $i < ($nblignes - 1))
{
......@@ -332,7 +332,7 @@ class pdf_propale_azur extends ModelePDFPropales
}
else
{
$this->_tableau($pdf, $tab_top_newpage, $tab_height_newpage, $nexY, $outputlangs);
$this->_tableau($pdf, $tab_top_newpage, $tab_height_middlepage, $nexY, $outputlangs);
}
$this->_pagefoot($pdf,$object,$outputlangs);
......@@ -358,8 +358,8 @@ class pdf_propale_azur extends ModelePDFPropales
}
else
{
$this->_tableau($pdf, $tab_top_newpage, $tab_height_newpage, $nexY, $outputlangs);
$bottomlasttab=$tab_top_newpage + $tab_height_newpage + 1;
$this->_tableau($pdf, $tab_top_newpage, $tab_height_endpage, $nexY, $outputlangs);
$bottomlasttab=$tab_top_newpage + $tab_height_endpage + 1;
}
// Affiche zone infos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment