mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
Fix: Generating of reports for action use a good page break. Added page nb in report.
This commit is contained in:
@@ -2553,6 +2553,21 @@ function dol_string_is_good_iso($s)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Return nb of lines of a text
|
||||
* \param s String to check
|
||||
* \param maxchar Not yet used
|
||||
* \return int 0 if bad iso, 1 if good iso
|
||||
*/
|
||||
function dol_nboflines($s,$maxchar=0)
|
||||
{
|
||||
$arraystring=split("\n",$s);
|
||||
$nb=sizeof($arraystring);
|
||||
|
||||
return $nb;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
\brief Fonction retournant le nombre de jour fieries samedis et dimanches entre 2 dates entrees en timestamp
|
||||
\remarks SERVANT AU CALCUL DES JOURS OUVRABLES
|
||||
|
||||
Reference in New Issue
Block a user