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;
67 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
102 $langs->load(
"bills");
103 return $langs->trans(
"NoDescription");
114 $langs->load(
"bills");
115 return $langs->trans(
"NoExample");
140 return $langs->trans(
"NotAvailable");
151 $langs->load(
"admin");
153 if ($this->version ==
'development') {
154 return $langs->trans(
"VersionDevelopment");
155 } elseif ($this->version ==
'experimental') {
156 return $langs->trans(
"VersionExperimental");
157 } elseif ($this->version ==
'dolibarr') {
159 } elseif ($this->version) {
160 return $this->version;
162 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()
Returns the default description of the numbering pattern.
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.