Pimcore grid data export

when we export data from grid in pimcore, we see that quantityvalue data type column value is concat with “_” in export csv file for example “2.0_1” means 2.0 is value and 1 is unit value of that column.
So our requirement is to show symbol unit rather then integer unit value like that “2.0 $” means 2.0 is value and $ is unit value for that column.

I have analysis in pimcore library file and found that this is pimcore do that in below given file “/vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Data/QuantityValue.php” under function :
public function getForCsvExport($object, $params = [])
{
$data = $this->getDataFromObjectParam($object, $params);
if ($data instanceof \Pimcore\Model\DataObject\Data\QuantityValue) {
return $data->getValue() . ‘_’ . $data->getUnitId();
} else {
return null;
}
}

now according to my requirement i have modified that function like below:

public function getForCsvExport($object, $params = [])
{
$data = $this->getDataFromObjectParam($object, $params);
if ($data instanceof \Pimcore\Model\DataObject\Data\QuantityValue) {

       // comment code old one 
        //return $data->getValue() . '_' . $data->getUnitId();
       
       //custom change as per our requirement
       $conCatVal=null;
       if($data->getValue()!=''){
         $conCatVal= $data->getValue() . ' ' . $data->getUnit()->abbreviation;
	   }
	   
		return $conCatVal;
    } else {
        return null;
    }
}

Now after doing above chage now data is coming correct with symbol sign like “2.0 $” while old function gives like “2.0_1”

So if any body wants data like that then you have to modified this function like above.

Also Pimcore handle this scenario in pimcore next release.