30 require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
31 require_once DOL_DOCUMENT_ROOT.
'/product/class/product.class.php';
32 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
50 public $atleastonediscount = 0;
51 public $atleastoneratenotnull = 0;
69 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
104 $langs->load(
"bills");
105 return $langs->trans(
"NoDescription");
116 $langs->load(
"bills");
117 return $langs->trans(
"NoExample");
142 return $langs->trans(
"NotAvailable");
153 $langs->load(
"admin");
155 if ($this->version ==
'development') {
156 return $langs->trans(
"VersionDevelopment");
157 } elseif ($this->version ==
'experimental') {
158 return $langs->trans(
"VersionExperimental");
159 } elseif ($this->version ==
'dolibarr') {
161 } elseif ($this->version) {
162 return $this->version;
164 return $langs->trans(
"NotAvailable");
info()
Renvoi la description par defaut du modele de numerotation.
isEnabled()
Return if a module can be used or not.
canBeActivated()
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
getVersion()
Renvoi version du modele de numerotation.
Parent class of invoice document generators.
Parent class of invoice reference numbering templates.
getNextValue($objsoc, $invoice, $mode= 'next')
Renvoi prochaine valeur attribuee.
getExample()
Return an example of numbering.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
Parent class for documents generators.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.