31,040
edits
mNo edit summary |
mNo edit summary |
||
| Line 13: | Line 13: | ||
# Change the method code of getExemple() to return the an example of value for ra eference that might be returned by the module. | # Change the method code of getExemple() to return the an example of value for ra eference that might be returned by the module. | ||
# Change the method code of canBeActivated() to just do a "return true;" | # Change the method code of canBeActivated() to just do a "return true;" | ||
# Modify the code of the method getNextValue() to return the next available reference numbering. | # 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 (db connection object in the database that allows SQL querying to database). | ||
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 (db connection object in the database that allows SQL querying to database). | |||
# Save: the template 'terrebis' is available in the list of invoice templates into Dolibarr | # Save: the template 'terrebis' is available in the list of invoice templates into Dolibarr | ||
= Test this module = | = Test this module = | ||
Test this module by activating the module from configuration page. Verify that the column description, example and next value you get reflect what you should get (referred respectively by function info(), getExample() and getNextValue()). | Test this module by activating the module from configuration page. Verify that the column description, example and next value you get reflect what you should get (referred respectively by function info(), getExample() and getNextValue()). | ||