Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/agent.ui.php 2 locations

@@ 577-588 (lines=12) @@
574
			
575
			$this->dynamic_quantity = null;
576
			$dyn = $agentRight->getDynamicQuantity();
577
			if (abs($dyn) > 0.01) {
578
			    $this->dynamic_quantity = bab_toHtml(
579
			        sprintf(
580
			            absences_translate(
581
			                'The quantity include %s because of the balance modification according to the consumed amount rule',
582
			                'The quantity include %s because of the balance modification according to the consumed amount rule',
583
			                $dyn
584
			            ),
585
			            absences_quantity($dyn, $right->quantity_unit)
586
	               )
587
	            );
588
			}
589
			
590
			
591
			$this->increment_quantity = null;
@@ 593-604 (lines=12) @@
590
			
591
			$this->increment_quantity = null;
592
			$dyn = $agentRight->getIncrementQuantity();
593
			if (abs($dyn) > 0.01) {
594
			    $this->increment_quantity = bab_toHtml(
595
			            sprintf(
596
			                    absences_translate(
597
			                        'The quantity include %s because of the monthly modifications',
598
			                        'The quantity include %s because of the monthly modifications',
599
			                        $dyn
600
			                    ),
601
			                    absences_quantity($dyn, $right->quantity_unit)
602
			            )
603
			    );
604
			}
605
			
606
			$this->disp_quantity = absences_quantity($agentRight->getQuantity(), $right->quantity_unit);
607