47 $this->family =
"financial";
49 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
54 $this->version =
'dolibarr';
56 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
57 $this->picto =
'money-bill-alt';
60 $this->dirs = array(
"/loan/temp");
63 $this->config_page_url = array(
'loan.php');
66 $this->hidden =
false;
67 $this->depends = array();
68 $this->requiredby = array();
69 $this->conflictwith = array();
70 $this->phpmin = array(7, 0);
71 $this->langfiles = array(
"loan");
74 $this->
const = array();
75 $this->
const[0] = array(
76 "LOAN_ACCOUNTING_ACCOUNT_CAPITAL",
80 $this->
const[1] = array(
81 "LOAN_ACCOUNTING_ACCOUNT_INTEREST",
85 $this->
const[2] = array(
86 "LOAN_ACCOUNTING_ACCOUNT_INSURANCE",
92 $this->boxes = array();
95 $this->rights = array();
96 $this->rights_class =
'loan';
100 $this->rights[$r][0] = 521;
101 $this->rights[$r][1] =
'Read loans';
102 $this->rights[$r][2] =
'r';
103 $this->rights[$r][3] = 0;
104 $this->rights[$r][4] =
'read';
105 $this->rights[$r][5] =
'';
108 $this->rights[$r][0] = 522;
109 $this->rights[$r][1] =
'Create/modify loans';
110 $this->rights[$r][2] =
'w';
111 $this->rights[$r][3] = 0;
112 $this->rights[$r][4] =
'write';
113 $this->rights[$r][5] =
'';
116 $this->rights[$r][0] = 524;
117 $this->rights[$r][1] =
'Delete loans';
118 $this->rights[$r][2] =
'd';
119 $this->rights[$r][3] = 0;
120 $this->rights[$r][4] =
'delete';
121 $this->rights[$r][5] =
'';
124 $this->rights[$r][0] = 525;
125 $this->rights[$r][1] =
'Access loan calculator';
126 $this->rights[$r][2] =
'r';
127 $this->rights[$r][3] = 0;
128 $this->rights[$r][4] =
'calc';
129 $this->rights[$r][5] =
'';
132 $this->rights[$r][0] = 527;
133 $this->rights[$r][1] =
'Export loans';
134 $this->rights[$r][2] =
'r';
135 $this->rights[$r][3] = 0;
136 $this->rights[$r][4] =
'export';
137 $this->rights[$r][5] =
'';