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';
120 $langs->load(
"bills");
121 return $langs->trans(
"NoDescription");
132 $langs->load(
"bills");
133 return $langs->trans(
"NoExample");
157 return $langs->trans(
"NotAvailable");
168 $langs->load(
"admin");
170 if ($this->version ==
'development') {
171 return $langs->trans(
"VersionDevelopment");
172 } elseif ($this->version ==
'experimental') {
173 return $langs->trans(
"VersionExperimental");
174 } elseif ($this->version ==
'dolibarr') {
176 } elseif ($this->version) {
177 return $this->version;
179 return $langs->trans(
"NotAvailable");
Parent class for documents generators.
ModeleNumRefSupplierPayments.
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.