Manuelbolzano
New Member
Hello everyone! today's problem is linked to a sum between 4 fields!
I have a form, where employee salaries, bonuses, and pay advances are noted.
{buste_paga___stipendio},
{buste_paga___bonus},
{buste_paga___anticipo1},
{buste_paga___anticipo2},
{buste_paga___anticipo3}
these plugin fields, are of Input type number, format decimal with Number format selected on yes.
In these fields, you simply have to add an amount in number
I made a field with Plugin Calc, which should do the following count
{buste_paga___stipendio} + {buste_paga___bonus} - {buste_paga___anticipo1} - {buste_paga___anticipo2} - {buste_paga___anticipo3}
and deliver the result
i have insert to More > Calculation this:
$myCalc = '{buste_paga___stipendio}' + '{buste_paga___bonus}' - '{buste_paga___anticipo1}' - '{buste_paga___anticipo2}' - '{buste_paga___anticipo3}' ;
return $myCalc;
Activated Ajax Calculation to YES and type to Ajax observe fields all field name:
{buste_paga___stipendio},
{buste_paga___bonus},
{buste_paga___anticipo1},
{buste_paga___anticipo2},
{buste_paga___anticipo3}
Ok.. Now... what did i do wrong?
Thanks Guys for the help!
I have a form, where employee salaries, bonuses, and pay advances are noted.
{buste_paga___stipendio},
{buste_paga___bonus},
{buste_paga___anticipo1},
{buste_paga___anticipo2},
{buste_paga___anticipo3}
these plugin fields, are of Input type number, format decimal with Number format selected on yes.
In these fields, you simply have to add an amount in number
I made a field with Plugin Calc, which should do the following count
{buste_paga___stipendio} + {buste_paga___bonus} - {buste_paga___anticipo1} - {buste_paga___anticipo2} - {buste_paga___anticipo3}
and deliver the result
i have insert to More > Calculation this:
$myCalc = '{buste_paga___stipendio}' + '{buste_paga___bonus}' - '{buste_paga___anticipo1}' - '{buste_paga___anticipo2}' - '{buste_paga___anticipo3}' ;
return $myCalc;
Activated Ajax Calculation to YES and type to Ajax observe fields all field name:
{buste_paga___stipendio},
{buste_paga___bonus},
{buste_paga___anticipo1},
{buste_paga___anticipo2},
{buste_paga___anticipo3}
Ok.. Now... what did i do wrong?
Thanks Guys for the help!