Welcome Guest, Not a member yet? Register   Sign In
Entities/Model - Validation and Calculation
#1

hi

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?
Reply


Messages In This Thread
Entities/Model - Validation and Calculation - by Mr_Yekta - 09-03-2020, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB