29 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
 
   49     $this->family = 
"financial";
 
   50     $this->module_position = 
'52';
 
   52     $this->
name = preg_replace(
'/^mod/i', 
'', get_class($this));
 
   53     $this->
description = 
"Management of Direct Debit orders";
 
   56     $this->version = 
'dolibarr';
 
   58     $this->const_name = 
'MAIN_MODULE_'.strtoupper($this->
name);
 
   60     $this->picto = 
'payment';
 
   63     $this->dirs = array(
"/prelevement/temp", 
"/prelevement/receipts");
 
   66     $this->hidden = 
false; 
 
   67     $this->depends = array(
"modFacture", 
"modBanque"); 
 
   68     $this->requiredby = array(); 
 
   69     $this->conflictwith = array(); 
 
   70     $this->phpmin = array(7, 0); 
 
   73     $this->config_page_url = array(
"prelevement.php");
 
   76     $this->
const = array();
 
   79     $this->
const[$r][0] = 
"BANK_ADDON_PDF";
 
   80     $this->
const[$r][1] = 
"chaine";
 
   81     $this->
const[$r][2] = 
"sepamandate";
 
   82     $this->
const[$r][3] = 
'Name of manager to generate SEPA mandate';
 
   83     $this->
const[$r][4] = 0;
 
   88     $this->boxes = array();
 
   91     $this->rights = array();
 
   92     $this->rights_class = 
'prelevement';
 
   95     $this->rights[$r][0] = 151;
 
   96     $this->rights[$r][1] = 
'Read direct debit payment orders';
 
   97     $this->rights[$r][2] = 
'r';
 
   98     $this->rights[$r][3] = 0;
 
   99     $this->rights[$r][4] = 
'bons';
 
  100     $this->rights[$r][5] = 
'lire';
 
  103     $this->rights[$r][0] = 152;
 
  104     $this->rights[$r][1] = 
'Create/modify a direct debit payment order';
 
  105     $this->rights[$r][2] = 
'w';
 
  106     $this->rights[$r][3] = 0;
 
  107     $this->rights[$r][4] = 
'bons';
 
  108     $this->rights[$r][5] = 
'creer';
 
  111     $this->rights[$r][0] = 153;
 
  112     $this->rights[$r][1] = 
'Send/Transmit direct debit payment orders';
 
  113     $this->rights[$r][2] = 
'a';
 
  114     $this->rights[$r][3] = 0;
 
  115     $this->rights[$r][4] = 
'bons';
 
  116     $this->rights[$r][5] = 
'send';
 
  119     $this->rights[$r][0] = 154;
 
  120     $this->rights[$r][1] = 
'Record Credits/Rejects of direct debit payment orders';
 
  121     $this->rights[$r][2] = 
'a';
 
  122     $this->rights[$r][3] = 0;
 
  123     $this->rights[$r][4] = 
'bons';
 
  124     $this->rights[$r][5] = 
'credit';
 
  140   public function init($options = 
'')
 
  145     $this->
remove($options);
 
  148       "DELETE FROM ".MAIN_DB_PREFIX.
"document_model WHERE nom = '".$this->db->escape($this->const[0][2]).
"' AND type = 'bankaccount' AND entity = ".((
int) $conf->entity),
 
  149       "INSERT INTO ".MAIN_DB_PREFIX.
"document_model (nom, type, entity) VALUES('".$this->db->escape($this->const[0][2]).
"','bankaccount',".((
int) $conf->entity).
")",
 
  152     return $this->
_init($sql, $options);
 
_init($array_sql, $options='')
Enables a module.
Class to describe and enable module of payment by Direct Debit.
init($options='')
Function called when module is enabled.
__construct($db)
Constructor.
print *****$script_file(".$version.") pid cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.