34 require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
60 $type =
'product_batch';
63 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
97 $langs->load(
"productbatch");
98 return $langs->trans(
"NoDescription");
109 $langs->load(
"productbatch");
110 return $langs->trans(
"NoExample");
134 return $langs->trans(
"NotAvailable");
145 $langs->load(
"admin");
147 if ($this->version ==
'development')
return $langs->trans(
"VersionDevelopment");
148 if ($this->version ==
'experimental')
return $langs->trans(
"VersionExperimental");
149 if ($this->version ==
'dolibarr')
return DOL_VERSION;
150 if ($this->version)
return $this->version;
151 return $langs->trans(
"NotAvailable");
canBeActivated()
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
isEnabled()
Return if a module can be used or not.
getVersion()
Returns version of numbering module.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
getExample()
Returns an example of numbering.
Parent class to manage numbering of batch products.
Parent class to manage intervention document templates.
getNextValue($objsoc, $object)
Returns next assigned value.
Parent class for documents generators.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
info()
Returns the default description of the numbering template.