PHP issue: Displaying sub totals/texts below only the last items of their groups in Drupal

MQL5 Sripts Integración

Tarea técnica

A short PHP code snippet has to be fixed within the shortest possible time. 

This code snippet runs inside Drupal (7) views (global php field) that generates a PDF page and it helps to display sub totals. Our goal is to display that sub totals below only the last price offer items of the relevant process. Sub totals are already calculated correctly. Only their row location has a problem. 

It "seems" that we need to update a previous variable outside the loop with the current variable within a PHP loop. Looping is not mandatory, so any other solution, that's not away from Drupal field logic will also be greatly welcomed! 

Once the code is fixed, you'll apply the same solution to the other similiar three global php fields that will display texts again only below the last price offer items of their processes, and process titles to be displayed above only the first price offer items of their processes. 

No direct Drupal administrator web access, but Team Viewer access is available. 

Please see the attachment for details. 

Han respondido

1
Desarrollador 1
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre

Información sobre el proyecto

Presupuesto
15 - 60 USD
Para el ejecutor
13.5 - 54 USD
Plazo límite de ejecución
a 1 día(s)