1 |
<?xml version="1.0"?> |
<?xml version="1.0"?> |
2 |
<report> |
<report> |
3 |
<parameters> |
<parameters> |
4 |
<parameter name="id" description="nothing"/> |
<parameter name="id" description="The number of the invopice"/> |
5 |
</parameters> |
</parameters> |
6 |
<sortoptions/> |
<sortoptions/> |
7 |
|
|
139 |
|
|
140 |
<layout xmlns:out="GNUe:Reports:SimpleTabulation"> |
<layout xmlns:out="GNUe:Reports:SimpleTabulation"> |
141 |
<out:report> |
<out:report> |
|
<out:reportTitle>Facturas</out:reportTitle> |
|
142 |
<out:section break="page"> |
<out:section break="page"> |
143 |
<out:table width="100%"> |
<out:table width="100%"> |
|
<out:tablehead> |
|
|
<out:colhead width="20">Numero</out:colhead> |
|
|
<out:colhead width="30">Fecha</out:colhead> |
|
|
<out:colhead width="40">Cliente</out:colhead> |
|
|
<out:colhead width="10"/> |
|
|
</out:tablehead> |
|
144 |
<section name="cabeceras" source="serviceInvoicesDataSource"> |
<section name="cabeceras" source="serviceInvoicesDataSource"> |
145 |
<out:row> |
<out:row> |
|
<out:col><field name="own_document.number" section="cabeceras"/></out:col> |
|
146 |
<out:col align="center"><field name="own_document.date" section="cabeceras"/></out:col> |
<out:col align="center"><field name="own_document.date" section="cabeceras"/></out:col> |
147 |
<out:col><field name="_entity_data.name" section="cabeceras"/></out:col> |
<out:col><field name="_entity_data.name" section="cabeceras"/></out:col> |
148 |
</out:row> |
<!-- this empty thing is for simulating the recipient address --> |
149 |
<out:row> |
<out:col align="right"></out:col> |
|
<out:col align="left">Servicio</out:col> |
|
|
<out:col align="right">Precio</out:col> |
|
|
<out:col align="right">IVA</out:col> |
|
|
<out:col align="right">Precio Final</out:col> |
|
150 |
</out:row> |
</out:row> |
151 |
<section name="detalles" source="invoiceItemsDataSource"> |
<section name="detalles" source="invoiceItemsDataSource"> |
152 |
<out:row> |
<out:row> |
153 |
|
<out:col align="right"></out:col> |
154 |
<out:col align="left"><field name="own_service_item.description" section="detalles"/></out:col> |
<out:col align="left"><field name="own_service_item.description" section="detalles"/></out:col> |
155 |
<out:col align="right"><field name="own_service_item.amount" section="detalles"/></out:col> |
<out:col align="right"></out:col> |
156 |
<out:col align="right"><field name="own_item_tax.amount" section="detalles"/>%</out:col> |
<out:col align="right"></out:col> |
157 |
|
<out:col align="right"></out:col> |
158 |
<out:col align="right"><field name="round (own_service_item.amount*(1+own_item_tax.amount/100), 2)" |
<out:col align="right"><field name="round (own_service_item.amount*(1+own_item_tax.amount/100), 2)" |
159 |
section="detalles"/></out:col> |
section="detalles"/></out:col> |
160 |
</out:row> |
</out:row> |
161 |
</section> |
</section> |
162 |
<out:row type="subtotal" level="2"> |
<out:row type="subtotal" level="2"> |
163 |
<out:col/> |
<!-- these ones simulates net total and tax total --> |
164 |
<out:col/> |
<out:col align="right"></out:col> |
165 |
<out:col align="center">Total:</out:col> |
<out:col align="right"></out:col> |
166 |
<out:col align="right"> |
<!-- do _not_ 'fix' this veeeery long line --> |
167 |
<summ function="sum" section="detalles" field="round (own_service_item.amount*(1+own_item_tax.amount/100), 2)"/> |
<out:col align="right"><summ function="sum" section="detalles" field="round (own_service_item.amount*(1+own_item_tax.amount/100), 2)"/></out:col> |
|
</out:col> |
|
168 |
</out:row> |
</out:row> |
169 |
</section> |
</section> |
170 |
</out:table> |
</out:table> |
171 |
</out:section> |
</out:section> |
|
<out:row type="subtotal" level="1"> |
|
|
<out:col/> |
|
|
<out:col/> |
|
|
<out:col align="center">Total:</out:col> |
|
|
<out:col align="right"><!--summ function="sum" section="cabeceras" field="own_service_item.amount"/--></out:col> |
|
|
</out:row> |
|
172 |
</out:report> |
</out:report> |
173 |
</layout> |
</layout> |
174 |
</report> |
</report> |