Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/agent.ui.php 2 locations

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