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