28 require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
29 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
56 $type =
'invoice_supplier';
59 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
92 $langs->load(
"invoices");
93 return $langs->trans(
"NoDescription");
103 $langs->load(
"invoices");
104 return $langs->trans(
"NoExample");
126 return $langs->trans(
"NotAvailable");
136 $langs->load(
"admin");
138 if ($this->version ==
'development')
return $langs->trans(
"VersionDevelopment");
139 if ($this->version ==
'experimental')
return $langs->trans(
"VersionExperimental");
140 if ($this->version ==
'dolibarr')
return DOL_VERSION;
141 if ($this->version)
return $this->version;
142 return $langs->trans(
"NotAvailable");
canBeActivated()
Tests if the numbers already in force in the database do not cause conflicts that would prevent this ...
Parent Class of numbering models of suppliers invoices references.
isEnabled()
Return if a model can be used or not.
getNextValue($objsoc, $object, $mode)
Returns next value assigned.
Parent class for supplier invoices models.
info()
Returns the default description of the model numbering.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation models.
Parent class for documents generators.
getVersion()
Returns version of the model numbering.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
getExample()
Returns a numbering example.