5 |
|
|
6 |
<sources> |
<sources> |
7 |
<datasource database="papo" name="ownDocumentDataSource" table="owndocument"/> |
<datasource database="papo" name="ownDocumentDataSource" table="owndocument"/> |
8 |
<datasource database="papo" detaillink="own_document" |
<datasource database="papo" detaillink="ownitem.own_document" |
9 |
master="ownDocumentDataSource" masterlink="id" name="ownItemDataSource" |
master="ownDocumentDataSource" masterlink="id" name="ownItemDataSource" |
10 |
table="ownservitemvw"/> |
table="ownitem, ownproditem, price, product"> |
11 |
<datasource database="papo" name="priceVWDataSource" order_by="product_name" |
<condition> |
12 |
table="pricevw"/> |
<and> |
13 |
|
<eq> |
14 |
|
<cfield name="ownitem.id"/> |
15 |
|
<cfield name="ownproditem.own_item"/> |
16 |
|
</eq> |
17 |
|
<eq> |
18 |
|
<cfield name="ownproditem.price"/> |
19 |
|
<cfield name="price.id"/> |
20 |
|
</eq> |
21 |
|
<eq> |
22 |
|
<cfield name="price.product"/> |
23 |
|
<cfield name="product.id"/> |
24 |
|
</eq> |
25 |
|
</and> |
26 |
|
</condition> |
27 |
|
</datasource> |
28 |
</sources> |
</sources> |
29 |
<layout xmlns:out="GNUe:Reports:SimpleTabulation"> |
<layout xmlns:out="GNUe:Reports:SimpleTabulation"> |
30 |
<out:report> |
<out:report> |
31 |
<out:reportTitle>Facturas</out:reportTitle> |
<out:reportTitle>Facturas</out:reportTitle> |
32 |
<out:section break="page"> |
<out:section break="page"> |
33 |
<out:table width="100%"> |
<out:table width="100%"> |
34 |
|
|
35 |
<out:tablehead> |
<out:tablehead> |
36 |
<out:colhead width="50">Numero</out:colhead> |
<out:colhead width="50">Numero</out:colhead> |
37 |
<out:colhead width="50">Fecha</out:colhead> |
<out:colhead width="50">Fecha</out:colhead> |
38 |
<out:colhead width="50">Bonificacion</out:colhead> |
<out:colhead width="50">Bonificacion</out:colhead> |
39 |
</out:tablehead> |
</out:tablehead> |
40 |
|
|
41 |
<section name="cabeceras" source="ownDocumentDataSource"> |
<section name="cabeceras" source="ownDocumentDataSource"> |
42 |
<out:row> |
<out:row> |
43 |
<out:col><field name="number" section="cabeceras"/></out:col> |
<out:col><field name="number" section="cabeceras"/></out:col> |
44 |
<out:col><field name="date" section="cabeceras"/></out:col> |
<out:col><field name="date" section="cabeceras"/></out:col> |
45 |
<out:col><field name="bonus" section="cabeceras"/></out:col> |
<out:col><field name="bonus" section="cabeceras"/></out:col> |
46 |
</out:row> |
</out:row> |
47 |
|
|
48 |
<section name="detalles" source="ownItemDataSource"> |
<section name="detalles" source="ownItemDataSource"> |
49 |
<out:row> |
<out:row> |
50 |
<out:col/> |
<out:col align="right"> |
51 |
|
<field name="ownproditem.qty" section="detalles"/> |
52 |
|
</out:col> |
53 |
<out:col align="center"> |
<out:col align="center"> |
54 |
<field name="description" section="detalles"/> |
<field name="product.name" section="detalles"/> |
55 |
</out:col> |
</out:col> |
56 |
<out:col align="right"> |
<out:col align="right"> |
57 |
<field name="amount" section="detalles"/> |
<field name="price.unit_price" section="detalles"/> |
58 |
</out:col> |
</out:col> |
59 |
</out:row> |
</out:row> |
60 |
</section> |
</section> |
61 |
<out:row type="subtotal"> |
|
62 |
|
<out:row type="subtotal" level="2"> |
63 |
<out:col/> |
<out:col/> |
64 |
<out:col align="center">Total: </out:col> |
<out:col align="center">Total: </out:col> |
65 |
<out:col align="right"> |
<out:col align="right"> |
66 |
<summ function="sum" section="detalles" field="amount"/></out:col> |
<summ function="sum" section="detalles" field="price.unit_price"/> |
67 |
|
</out:col> |
68 |
</out:row> |
</out:row> |
|
<out:row/> |
|
69 |
</section> |
</section> |
70 |
</out:table> |
</out:table> |
71 |
</out:section> |
</out:section> |