46 $this->family =
"financial";
48 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
53 $this->version =
'dolibarr';
55 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
56 $this->picto =
'money-bill-alt';
59 $this->dirs = array(
"/loan/temp");
62 $this->config_page_url = array(
'loan.php');
65 $this->hidden =
false;
66 $this->depends = array();
67 $this->requiredby = array();
68 $this->conflictwith = array();
69 $this->phpmin = array(7, 0);
70 $this->langfiles = array(
"loan");
73 $this->
const = array();
74 $this->
const[0] = array(
75 "LOAN_ACCOUNTING_ACCOUNT_CAPITAL",
79 $this->
const[1] = array(
80 "LOAN_ACCOUNTING_ACCOUNT_INTEREST",
84 $this->
const[2] = array(
85 "LOAN_ACCOUNTING_ACCOUNT_INSURANCE",
91 $this->boxes = array();
94 $this->rights = array();
95 $this->rights_class =
'loan';
99 $this->rights[$r][0] = 521;
100 $this->rights[$r][1] =
'Read loans';
101 $this->rights[$r][2] =
'r';
102 $this->rights[$r][3] = 0;
103 $this->rights[$r][4] =
'read';
104 $this->rights[$r][5] =
'';
107 $this->rights[$r][0] = 522;
108 $this->rights[$r][1] =
'Create/modify loans';
109 $this->rights[$r][2] =
'w';
110 $this->rights[$r][3] = 0;
111 $this->rights[$r][4] =
'write';
112 $this->rights[$r][5] =
'';
115 $this->rights[$r][0] = 524;
116 $this->rights[$r][1] =
'Delete loans';
117 $this->rights[$r][2] =
'd';
118 $this->rights[$r][3] = 0;
119 $this->rights[$r][4] =
'delete';
120 $this->rights[$r][5] =
'';
123 $this->rights[$r][0] = 525;
124 $this->rights[$r][1] =
'Access loan calculator';
125 $this->rights[$r][2] =
'r';
126 $this->rights[$r][3] = 0;
127 $this->rights[$r][4] =
'calc';
128 $this->rights[$r][5] =
'';
131 $this->rights[$r][0] = 527;
132 $this->rights[$r][1] =
'Export loans';
133 $this->rights[$r][2] =
'r';
134 $this->rights[$r][3] = 0;
135 $this->rights[$r][4] =
'export';
136 $this->rights[$r][5] =
'';