/[papo]/papo/report/despatchNote-13.grd
ViewVC logotype

Diff of /papo/report/despatchNote-13.grd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by styxman, Thu Jun 5 19:26:35 2003 UTC revision 1.3 by styxman, Tue Jun 10 19:48:43 2003 UTC
# Line 6  Line 6 
6    <sortoptions/>    <sortoptions/>
7    
8    <sources>    <sources>
9        <!-- our data -->
10        <datasource name="ourselves" database="papo"
11          table="_entity_data, _own_entity_data, _organization_data, _entity_uid_data, _persona_tax_profile_data">
12          <condition> <and>
13            <!-- let's glue -->
14            <null> <cfield name="_entity_data._end_t"/> </null>
15            <eq> <cfield name="_entity_data._table"/> <cfield name="_own_entity_data.entity"/> </eq>
16            <null> <cfield name="_own_entity_data._end_t"/> </null>
17            <eq> <cfield name="_own_entity_data._table"/> <cfield name="_organization_data.own_entity"/> </eq>
18            <null> <cfield name="_organization_data._end_t"/> </null>
19            <!-- su cuit -->
20            <eq> <cfield name="_entity_uid_data.entity"/> <cfield name="_entity_data._table"/> </eq>
21            <eq> <cfield name="_entity_uid_data.entity_uid_type"/> <cconst value="1"/> </eq> <!-- 1 means CUIT -->
22            <!-- su condicion de IVA -->
23            <eq> <cfield name="_persona_tax_profile_data.persona"/> <cfield name="_entity_data._table"/> </eq>
24            <eq> <cfield name="_persona_tax_profile_data.tax_profile"/> <cfield name="_tax_profile_data._table"/> </eq>
25          </and> </condition>
26        </datasource>
27    
28      <datasource name="productInvoicesDataSource" database="papo"      <datasource name="productInvoicesDataSource" database="papo"
29        table="own_document, _entity_data, _alien_entity_data, _persona_data, _client_data, _entity_uid_data, _persona_tax_profile_data, _tax_profile_data">        table="own_document, _entity_data, _alien_entity_data, _persona_data, _client_data, _entity_uid_data, _persona_tax_profile_data, _tax_profile_data">
30        <!-- WARNING: before you see these conditions, please be calm -->        <!-- WARNING: before you see these conditions, please be calm -->
# Line 126  Line 145 
145        </condition>        </condition>
146      </datasource>      </datasource>
147    
148      <datasource name="invoiceItemsDataSource" database="papo"      <datasource name="invoiceItemsDataSource" database="papo"
149        table="own_document, own_item, own_product_item, own_item_tax, _price_data, _product_data"        table="own_document, own_item, own_product_item, own_item_tax, _price_data, _product_data"
150        master="productInvoicesDataSource" masterlink="own_document.id" detaillink="own_item.own_document">        master="productInvoicesDataSource" masterlink="own_document.id" detaillink="own_item.own_document">
151        <condition>        <condition>
# Line 168  Line 187 
187        <out:section break="page">        <out:section break="page">
188          <out:table width="100%">          <out:table width="100%">
189    
190              <section name="cabeza" source="ourselves">
191                <out:row>
192                  <out:col>REMITO</out:col>
193                  <out:col><field name="_entity_data.name" section="cabeza"/></out:col>
194                  <out:col>CUIT: <field name="_entity_uid_data.uid" section="cabeza"/></out:col>
195                  <out:col><field name="_tax_profile_data.profile" section="cabeza"/></out:col>
196                  <out:col></out:col><!-- address not yet implemented -->
197                </out:row>
198              </section>
199            <section name="cabeceras" source="productInvoicesDataSource">            <section name="cabeceras" source="productInvoicesDataSource">
200              <out:row>              <out:row>
201                <out:col>Nombre Empresa</out:col>                <out:col>Numero: <field name="own_document.number" section="cabeceras"/></out:col>
               <out:col>CUIT: 22-23232323-3</out:col>  
               <out:col>Responsable Inscripto</out:col>  
               <out:col>Juan De los Palotes 12</out:col>  
202                <out:col><field name="own_document.date" section="cabeceras"/></out:col>                <out:col><field name="own_document.date" section="cabeceras"/></out:col>
203                <out:col><field name="_entity_data.name" section="cabeceras"/></out:col>                <out:col><field name="_entity_data.name" section="cabeceras"/></out:col>
204                <out:col><field name="_entity_uid_data.uid" section="cabeceras"/></out:col>                <out:col>CUIT: <field name="_entity_uid_data.uid" section="cabeceras"/></out:col>
               <out:col></out:col><!-- address not yet implemented -->  
205                <out:col><field name="_tax_profile_data.profile" section="cabeceras"/></out:col>                <out:col><field name="_tax_profile_data.profile" section="cabeceras"/></out:col>
206                  <out:col></out:col><!-- address not yet implemented -->
207              </out:row>              </out:row>
208    
209              <section name="detalles" source="invoiceItemsDataSource">              <section name="detalles" source="invoiceItemsDataSource">

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26