CalculatedColumn Process
Set calculated column together with its meta
| name | hour_rate | working_hours |
|
John |
$20/hrs |
123 hrs |
|
Marry |
$30/hrs |
112 hrs |
|
Peter |
$25/hrs |
132 hrs |
|
Donald |
$40/hrs |
89 hrs |
->pipe(new CalculatedColumn(array(
"total_meta"=>array(
"exp"=>"{hour_rate}*{working_hours}",
"type"=>"number",
"decimals" => 4,
"prefix"=>'$'
)
)))
| name | hour_rate | working_hours | total_meta |
|
John |
$20/hrs |
123 hrs |
$2,460.0000 |
|
Marry |
$30/hrs |
112 hrs |
$3,360.0000 |
|
Peter |
$25/hrs |
132 hrs |
$3,300.0000 |
|
Donald |
$40/hrs |
89 hrs |
$3,560.0000 |