|
@@ -572,7 +572,13 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|
|
$pdf->setPage($pageposbefore+1);
|
|
|
|
|
|
$curY = $tab_top_newpage;
|
|
|
- $showpricebeforepagebreak=0;
|
|
|
+
|
|
|
+ // Allows data in the first page if description is long enough to break in multiples pages
|
|
|
+ if(!empty($conf->global->MAIN_PDF_DATA_ON_FIRST_PAGE))
|
|
|
+ $showpricebeforepagebreak = 1;
|
|
|
+ else
|
|
|
+ $showpricebeforepagebreak = 0;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (!empty($this->cols['photo']) && isset($imglinesize['width']) && isset($imglinesize['height']))
|
|
@@ -610,7 +616,13 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|
|
else
|
|
|
{
|
|
|
// We found a page break
|
|
|
- $showpricebeforepagebreak=0;
|
|
|
+
|
|
|
+ // Allows data in the first page if description is long enough to break in multiples pages
|
|
|
+ if(!empty($conf->global->MAIN_PDF_DATA_ON_FIRST_PAGE))
|
|
|
+ $showpricebeforepagebreak = 1;
|
|
|
+ else
|
|
|
+ $showpricebeforepagebreak = 0;
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
else // No pagebreak
|