19 require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
79 $type =
'supplier_payment';
82 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
119 $langs->load(
"bills");
120 return $langs->trans(
"NoDescription");
131 $langs->load(
"bills");
132 return $langs->trans(
"NoExample");
156 return $langs->trans(
"NotAvailable");
167 $langs->load(
"admin");
169 if ($this->version ==
'development') {
170 return $langs->trans(
"VersionDevelopment");
171 } elseif ($this->version ==
'experimental') {
172 return $langs->trans(
"VersionExperimental");
173 } elseif ($this->version ==
'dolibarr') {
175 } elseif ($this->version) {
176 return $this->version;
178 return $langs->trans(
"NotAvailable");
Parent class for documents generators.
Payment numbering references mother class.
canBeActivated()
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
getVersion()
Returns the module numbering version.
info()
Return the default description of numbering module.
getExample()
Return numbering example.
isEnabled()
Return if a module can be used or not.
getNextValue($objsoc, $object)
Returns the next value.
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.