Hi , I am using datatables of datagrid package and I force the number to be .0 if its a whole number. But my footer sum is coming wrong as you can see in this picture:
i have forced comma seperated before also but that is working fine. i tried using footertext property but even that makes it 5.0 , what else can i try?
"col_name"=>['label'=>'aaaa',"footerText"=>$sum_array['test_col'],'formatValue'=>function($value,$row){return $this->formatter($value);}]
"col_name"=>['label'=>'aaaa',"footer"=>'sum','formatValue'=>function($value,$row){return $this->numberToCurrency($value);}]
I tried both ways but when value crosses 1000 , it makes it first digit and .0 . I tested the value returned by my formatter but even that is correct.
what else can i try?