MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/.trash/backup/application/models/Increment_calculation_model.php
<?php class Increment_calculation_model extends CI_Model{
	public function increment_calculation($trans_array,$employee_code){ 
		 foreach($trans_array as $trans){ 
			 $trans['fixed_basic'] =  round($trans['fixed_gross']*(40/100)); 
			
			 $trans['fixed_hra'] =  round(($trans['fixed_gross']*(30/100))); 
			
			 $trans['fixed_da'] =  round($trans['fixed_basic']*(50/100));
 
			
			 $trans['fo_allowance'] =  round(($trans['fixed_da']*(50/100)));
 
			
			 $x = round($trans['yearly_ctc']/12);
$trans['fixed_gross'] =  $x; 
			
		 $trans_array[$employee_code] = $trans;
		 } return $trans_array; 
		 }
}?>