@@ 167-181 (lines=15) @@ | ||
164 | * somme des jours epargnes sur les CET ouverts |
|
165 | * @return float |
|
166 | */ |
|
167 | public function getQuantity() |
|
168 | { |
|
169 | if (!isset($this->rights_withDeposits)) |
|
170 | { |
|
171 | $this->updateRights(); |
|
172 | } |
|
173 | ||
174 | $total = 0.0; |
|
175 | foreach($this->rights_withDeposits as $agentRight) |
|
176 | { |
|
177 | $total += $agentRight->getQuantity(); |
|
178 | } |
|
179 | ||
180 | return $total; |
|
181 | } |
|
182 | ||
183 | ||
184 | ||
@@ 189-203 (lines=15) @@ | ||
186 | * somme des jours utilises confirmes sur les CET ouverts |
|
187 | * @return float |
|
188 | */ |
|
189 | public function getConfirmedQuantity() |
|
190 | { |
|
191 | if (!isset($this->rights_withDeposits)) |
|
192 | { |
|
193 | $this->updateRights(); |
|
194 | } |
|
195 | ||
196 | $total = 0.0; |
|
197 | foreach($this->rights_withDeposits as $agentRight) |
|
198 | { |
|
199 | $total += $agentRight->getConfirmedQuantity(); |
|
200 | } |
|
201 | ||
202 | return $total; |
|
203 | } |
|
204 | ||
205 | ||
206 | /** |