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");
Parent class for documents generators.
Parent class of invoice reference numbering templates.
isEnabled()
Return if a module can be used or not.
getExample()
Return an example of numbering.
info()
Renvoi la description par defaut du modele de numerotation.
getNextValue($objsoc, $invoice, $mode='next')
Renvoi prochaine valeur attribuee.
getVersion()
Renvoi version du modele de numerotation.
canBeActivated()
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
Parent class of invoice document generators.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.