lori19
Active Member
Hi all !
I'm not sure if this is an issue or a suggestions for future development.
I have this repeated group that does some simple calculation (sum) of some of its fields. Works fine for one instance of the group, but when I want to add one more, the calculations fail. The calc has, obviously, to deal with two set of fields to add and it seems no means to tell which ones belogn to which group. I can see that the fields are named differently in the group instances, so I assume that the issue lies with the ajax script. Or is it my PHP code in the calculation? It looks like this:
$LTotal = "";
$LTotal=(int)'{student_11_repeat___amount}'+(int)'{student_11_repeat___charges}';
return number_format($LTotal);
Thanks for any suggestions!
Joomla 4.2.9 (fresh install) F4.gamma3, PHP 8.1
I'm not sure if this is an issue or a suggestions for future development.
I have this repeated group that does some simple calculation (sum) of some of its fields. Works fine for one instance of the group, but when I want to add one more, the calculations fail. The calc has, obviously, to deal with two set of fields to add and it seems no means to tell which ones belogn to which group. I can see that the fields are named differently in the group instances, so I assume that the issue lies with the ajax script. Or is it my PHP code in the calculation? It looks like this:
$LTotal = "";
$LTotal=(int)'{student_11_repeat___amount}'+(int)'{student_11_repeat___charges}';
return number_format($LTotal);
Thanks for any suggestions!
Joomla 4.2.9 (fresh install) F4.gamma3, PHP 8.1