Commits

Dairon Medina committed 38ea1ee

Fix Reporte

Comments (0)

Files changed (1)

templates/reports/gastosobra_report.html

 {% block page_title %}Reporte Gastos por obra{% endblock %}
 
 {% block page_styles %}
-     background-image: url({{ MEDIA_URL }}images/report-bg.jpg);
+     background-image: url('{{ MEDIA_URL }}images/report-bg.jpg');
 {% endblock %}
 
 {% block extrastyle %}
 <h2>Total general: ${{ total }}</h2>
 <pdf:spacer height="0.3cm" />
 
-{% for categoria in items %}
-    {% for obra in categoria.0 %}
-    <table class="obra">
+{% for obra in items %}
+     <table class="obra">
         <tr>
-            <td colspan="4">Obra: {{ obra.0.0.id }}-{{ obra.0.0.nombre }}.</td>
-            <td style="text-align:right;"><span>{{ obra.1 }}</span></td>
+            <td colspan="4">Obra: {{ obra.0.0.0.0 }}</td>
+            <td style="text-align:right;"><span>{{ obra.0.0.1 }}</span></td>
         </tr>
     </table>
+    
+    {% for categoria in obra.1 %}
+	<div class="categoria">{{ categoria.0 }} ${{ categoria.2 }}</div>
+        {% if abierto %}
 
-
-	<div class="categoria">{{ categoria.1 }} ${{ categoria.3 }}</div>
-		{% if abierto %}
-		{% for superconcepto in categoria.2 %}
+		{% for superconcepto in categoria.1 %}
 			
 			<div class="superconcepto">{{ superconcepto.0 }} ${{ superconcepto.2 }}</div>
 			{% for subconcepto in superconcepto.1 %}
-				
 				<div class="subconcepto">{{ subconcepto.0 }} ${{ subconcepto.2 }}</div>
 				<table class="gastos">
 					<thead>
 				
 		{% endfor %}
 		{% endif %}
-		
-	{% endfor %}
+    {% endfor %}
+
 {% endfor %}
 
 {% endblock%}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.