09-03-2020, 04:36 PM
hi
i have this inputs
and i need this outputs to save it on database
i'm using Entities and Model
1- where i must validate fileds?
2- where i must caculate data to set netProfit and EBITDA for save in database?
i have this inputs
PHP Code:
$inputs = [
'revenue' => 100,
'cost' => 50,
'tax' => '20',
];
and i need this outputs to save it on database
PHP Code:
$outputs = [
'revenue' => 100,
'cost' => 50,
'tax' => 20,
'EBITDA' => 50,
'netProfit' => 40,
];
i'm using Entities and Model
1- where i must validate fileds?
2- where i must caculate data to set netProfit and EBITDA for save in database?