Create numbering module: Difference between revisions

Jump to navigation Jump to search
m
Line 18: Line 18:


5.Modify the code of the method getNextValue() to return the next available reference numbering. Within the code for this function, you can use parameters $objsoc or $facture containing the information of third parties involved in the generation and the object invoice involved in the generation (The name of these variables may differ depending on the nature of the managed entity module). You can also use the objects $langs, $conf and $db if you declare them first in the function with ligne
5.Modify the code of the method getNextValue() to return the next available reference numbering. Within the code for this function, you can use parameters $objsoc or $facture containing the information of third parties involved in the generation and the object invoice involved in the generation (The name of these variables may differ depending on the nature of the managed entity module). You can also use the objects $langs, $conf and $db if you declare them first in the function with ligne
global $langs, $db, $conf
<source lang="php">
global $langs, $db, $conf
</source>
where  
where  
$conf contains all configuration of Dolibarr,
$conf contains all configuration of Dolibarr,

Navigation menu