| @@ 1186-1197 (lines=12) @@ | ||
| 1183 | ||
| 1184 | ||
| 1185 | ||
| 1186 | protected function saveQuantityIncMonth($quantity) |
|
| 1187 | { |
|
| 1188 | require_once dirname(__FILE__).'/increment_agent_right.class.php'; |
|
| 1189 | ||
| 1190 | $increment = new absences_IncrementAgentRight(); |
|
| 1191 | $increment->id_user_right = $this->id; |
|
| 1192 | $increment->quantity = $quantity; |
|
| 1193 | $increment->createdOn = date('Y-m-d H:i:s'); |
|
| 1194 | $increment->monthkey = date('Ym'); |
|
| 1195 | ||
| 1196 | $increment->saveOrUpdate(); |
|
| 1197 | } |
|
| 1198 | ||
| 1199 | ||
| 1200 | /** |
|
| @@ 627-638 (lines=12) @@ | ||
| 624 | ||
| 625 | ||
| 626 | ||
| 627 | protected function saveQuantityIncMonth($quantity) |
|
| 628 | { |
|
| 629 | require_once dirname(__FILE__).'/increment_right.class.php'; |
|
| 630 | ||
| 631 | $increment = new absences_IncrementRight(); |
|
| 632 | $increment->id_right = $this->id; |
|
| 633 | $increment->quantity = $quantity; |
|
| 634 | $increment->createdOn = date('Y-m-d H:i:s'); |
|
| 635 | $increment->monthkey = date('Ym'); |
|
| 636 | ||
| 637 | $increment->saveOrUpdate(); |
|
| 638 | } |
|
| 639 | ||
| 640 | ||
| 641 | ||