/[papo]/papo/forms/ctaCteClient.neb
ViewVC logotype

Diff of /papo/forms/ctaCteClient.neb

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

revision 1.6 by apronotti, Wed May 28 15:12:46 2003 UTC revision 1.7 by charlie, Thu May 29 21:33:37 2003 UTC
# Line 84  Line 84 
84    
85    <!-- Origen de datos que srive para calcular el total facturado -->    <!-- Origen de datos que srive para calcular el total facturado -->
86    
87    <datasource name="productInvoiceDataSource" database="papo"    <datasource name="ownDocumentDataSource" database="papo"
88                table="_entity_data, own_document, own_item, own_product_item, own_item_tax"                table="_entity_data, own_document, own_item, own_product_item, own_item_tax"
89                order_by="own_product_item.id">                order_by="own_product_item.id">
90      <condition>      <condition>
# Line 98  Line 98 
98            <cfield name="own_document.id"/>            <cfield name="own_document.id"/>
99            <cfield name="own_item.own_document"/>            <cfield name="own_item.own_document"/>
100          </eq>          </eq>
         <eq>  
           <cfield name="own_item.id"/>  
           <cfield name="own_product_item.own_item"/>  
         </eq>  
         <eq>  
           <cfield name="own_item.id"/>  
           <cfield name="own_item_tax.own_item"/>  
         </eq>  
         <or>  
           <eq>  
             <cfield name="own_document.own_document_type"/>  
             <cconst value="4"/> <!-- Factura tipo A -->  
           </eq>  
           <eq>  
             <cfield name="own_document.own_document_type"/>  
             <cconst value="8"/> <!-- Factura tipo B -->  
           </eq>  
           <eq>  
             <cfield name="own_document.own_document_type"/>  
             <cconst value="9"/> <!-- Factura tipo C -->  
           </eq>  
         </or>  
101        </and>        </and>
102      </condition>      </condition>
103    </datasource>    </datasource>
104    
   <datasource name="productCreditNoteTotalDataSource" database="papo"  
               table="_entity_data, own_document, own_item, own_product_item, own_item_tax"  
               order_by="own_product_item.id">  
     <condition>  
       <and>  
         <eq>  
           <!-- Aqui se refiere al cliente  -->  
           <cfield name="_entity_data.id"/>  
           <cfield name="own_document.recipient"/>  
         </eq>  
         <eq>  
           <cfield name="own_document.id"/>  
           <cfield name="own_item.own_document"/>  
         </eq>  
         <eq>  
           <cfield name="own_item.id"/>  
           <cfield name="own_product_item.own_item"/>  
         </eq>  
         <eq>  
           <cfield name="own_item.id"/>  
           <cfield name="own_item_tax.own_item"/>  
         </eq>  
         <or>  
           <eq>  
             <cfield name="own_document.own_document_type"/>  
             <cconst value="14"/> <!-- Nota de Crédito tipo A -->  
           </eq>  
           <eq>  
             <cfield name="own_document.own_document_type"/>  
             <cconst value="15"/> <!-- Nota de Crédito tipo B -->  
           </eq>  
           <eq>  
             <cfield name="own_document.own_document_type"/>  
             <cconst value="16"/> <!-- Nota de Crédito tipo C -->  
           </eq>  
         </or>  
      </and>  
     </condition>  
   </datasource>  
   
   <datasource name="recipientInvoiceDataSource" database="papo"  
               table="_entity_data, own_document, own_document_proceeding">  
     <condition>  
       <and>  
         <eq>  
           <!-- Aqui se refiere al cliente  -->  
           <cfield name="_entity_data.id"/>  
           <cfield name="own_document.recipient"/>  
         </eq>  
         <eq>  
           <cfield name="own_document.id"/>  
           <cfield name="own_document_proceeding.own_document"/>  
         </eq>  
         <eq>  
           <cfield name="own_document.own_document_type"/>  
           <cconst value="3"/>  
         </eq>  
      </and>  
     </condition>  
   </datasource>  
   
105    <datasource name="ownDocumentTaxTotDataSource" database="papo"    <datasource name="ownDocumentTaxTotDataSource" database="papo"
106                table="own_document, own_document_tax">                table="own_document, own_document_tax">
107      <condition>      <condition>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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