19require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
79 $type =
'supplier_payment';
82 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
123 $langs->load(
"bills");
124 return $langs->trans(
"NoDescription");
135 $langs->load(
"bills");
136 return $langs->trans(
"NoExample");
160 return $langs->trans(
"NotAvailable");
171 $langs->load(
"admin");
173 if ($this->version ==
'development') {
174 return $langs->trans(
"VersionDevelopment");
175 } elseif ($this->version ==
'experimental') {
176 return $langs->trans(
"VersionExperimental");
177 } elseif ($this->version ==
'dolibarr') {
179 } elseif ($this->version) {
180 return $this->version;
182 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.