Commits

Dairon Medina committed cfce4b2

Template para incluir en gastos x proyecto

Comments (0)

Files changed (1)

templates/reports/gastos_x_obra.html

+{% for categoria in items %}
+	<div class="categoria">{{ categoria.0 }} ${{ categoria.2 }}</div>
+	{% 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>
+                        <tr>
+                            <th>Fecha</th>
+                            <th >Nro. Orden</th>
+                            <th >Comp. externo</th>
+                            <th>Proveedor</th>
+                            <th>Importe no gravado</th>
+                        </tr>
+					</thead>
+					<tbody>
+					{% for gasto in subconcepto.1 %}
+					<tr>
+					    <td style="width=80px;">{{ gasto.gasto.fecha_op|date:"SHORT_DATE_FORMAT" }}</td>
+						<td style="width=100px;">{{ gasto.gasto.id }}</td>
+						<td style="width=100px;">{{ gasto.gasto.numero }}</td>
+						<td style="width=250px;">{{ gasto.gasto.proveedor }}</td>
+						<td style="width=150px;">${{ gasto.imp_neto }}</td>
+					</tr>						
+					{% endfor %}	
+					</tbody>					
+				</table>
+                <pdf:spacer height="0.5cm" />
+
+		{% endfor %} {# /Subconceptos #}
+    {% endfor %}  {# /Superconceptos #}
+{% endfor %} {# /Categorias #}
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.