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

Diff of /papo/forms/ivaSales.neb

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

revision 1.10 by mhepp, Mon Jun 9 18:36:11 2003 UTC revision 1.11 by jlenton, Thu Jun 12 18:16:15 2003 UTC
# Line 10  Line 10 
10          own_item, own_product_item, _price_data, own_item_tax,      -->          own_item, own_product_item, _price_data, own_item_tax,      -->
11    
12    <datasource name="productInvoiceDataSource" database="papo"    <datasource name="productInvoiceDataSource" database="papo"
13                table=" _entity_data as client, own_document, _entity_uid_data"                table=" _entity_data as client, own_document, _entity_uid_data, _document_type_data"
14                order_by="own_document.date">                order_by="own_document.date">
15      <condition>      <condition>
16        <and>        <and>
# Line 20  Line 20 
20            <cfield name="own_document.recipient"/>            <cfield name="own_document.recipient"/>
21          </eq>          </eq>
22          <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_product_item.price"/> -->  
         <!--           <cfield name="_price_data.id"/> -->  
         <!--         </eq> -->  
         <!--         <eq> -->  
         <!--           <cfield name="own_item.id"/> -->  
         <!--           <cfield name="own_item_tax.own_item"/> -->  
         <!--         </eq> -->  
         <eq>  
23            <cfield name="client._table"/>            <cfield name="client._table"/>
24            <cfield name="_entity_uid_data.entity"/>            <cfield name="_entity_uid_data.entity"/>
25          </eq>          </eq>
# Line 86  Line 70 
70            </eq>            </eq>
71            <!--/show credit notes-->            <!--/show credit notes-->
72          </or>          </or>
73            <eq>
74              <cfield name="own_document.own_document_type"/>
75              <cfield name="_document_type_data._table"/>
76            </eq>
77       </and>       </and>
78      </condition>      </condition>
79    </datasource>    </datasource>
# Line 210  else: Line 198  else:
198    
199    table = []    table = []
200    line="\n\nListado de IVA Ventas\n\n\n"    line="\n\nListado de IVA Ventas\n\n\n"
201      separator="+----------+---------------------+------------------------------+---------------+--------------+------------+--------------"
202    table.append(line)    table.append(line)
203    
204    line = "|" + printing.printTitle("Fecha",10) + "|" + printing.printTitle("Comprobante",21) + "|"    line = "|" + printing.printTitle("Fecha",10) + "|" + printing.printTitle("Comprobante",21) + "|"
205    line += printing.printTitle("Cliente",30) + "|" + printing.printTitle("C.U.I.T",15) + "|"    line += printing.printTitle("Cliente",30) + "|" + printing.printTitle("C.U.I.T",15) + "|"
206    line += printing.printTitle("Neto",14) + "|" + printing.printTitle("I.V.A.",12) + "|"    line += printing.printTitle("Neto",14) + "|" + printing.printTitle("I.V.A.",12) + "|"
207    line += printing.printTitle("Total",14)+"\n"    line += printing.printTitle("Total",14)
208    table.append(line)    table.append(line)
209      table.append(separator)
210    
211    totalNeto = 0    totalNeto = 0
212    totalIVA = 0    totalIVA = 0
   documentType={'4': 'FAC A','9':'FAC C','8':'FAC  B','14':'NCR A','16':'NCR C','15':'NCR B'}  
213    documentSign={'4': '1', '9':'1', '8':'1','14':'-1', '16':'-1', '15':'-1'}    documentSign={'4': '1', '9':'1', '8':'1','14':'-1', '16':'-1', '15':'-1'}
214    condProductInvoice = GConditions.GCondition()    condProductInvoice = GConditions.GCondition()
215    tmpAnd = GConditions.GCand(condProductInvoice)    tmpAnd = GConditions.GCand(condProductInvoice)
# Line 265  else: Line 254  else:
254        itemTaxTotal = 0        itemTaxTotal = 0
255        currOwnDoc = productInvoiceResultSet.current.getField("own_document.id")        currOwnDoc = productInvoiceResultSet.current.getField("own_document.id")
256        line = "|" +  printing.printField(productInvoiceResultSet.current.getField("own_document.date"),10)        line = "|" +  printing.printField(productInvoiceResultSet.current.getField("own_document.date"),10)
257        line += "|"+  printing.printField(documentType[str(productInvoiceResultSet.current.getField("own_document.own_document_type")).strip()],5)+" "        #line += "|"+  printing.printField(documentType[str(productInvoiceResultSet.current.getField("own_document.own_document_type")).strip()],5)+" "
258          line += "|"+  printing.printField(productInvoiceResultSet.current.getField("_document_type_data.code"),5)+" "
259        line += printing.printField(productInvoiceResultSet.current.getField("own_document.number"),15)        line += printing.printField(productInvoiceResultSet.current.getField("own_document.number"),15)
260        line += "|"+printing.printField(productInvoiceResultSet.current.getField("client.name"),30)        line += "|"+printing.printField(productInvoiceResultSet.current.getField("client.name"),30)
261        line += "|"+printing.printField(productInvoiceResultSet.current.getField("_entity_uid_data.uid"),15)        line += "|"+printing.printField(productInvoiceResultSet.current.getField("_entity_uid_data.uid"),15)
# Line 310  else: Line 300  else:
300        more = productInvoiceResultSet.nextRecord()        more = productInvoiceResultSet.nextRecord()
301    callTrigger('endWaitingModeTrigger')    callTrigger('endWaitingModeTrigger')
302    
303    line = "\n"+printing.printField("Total",80,'r') + "|"    line = printing.printField("Total",80,'r') + "|"
304    line += printing.printAccount(totalNeto,14) + "|"    line += printing.printAccount(totalNeto,14) + "|"
305    line += printing.printAccount(totalIVA,12) + "|"    line += printing.printAccount(totalIVA,12) + "|"
306    line += printing.printAccount((totalIVA + totalNeto),14)    line += printing.printAccount((totalIVA + totalNeto),14)
307      table.append(separator)
308    table.append(line)    table.append(line)
309    
310    printing.previewPrint(table,'xless')    printing.previewPrint(table,'xless')
# Line 358  ownDocumentBlock.clear() Line 349  ownDocumentBlock.clear()
349        <box height="8" label="Impresion IVA Ventas" name="printBox"        <box height="8" label="Impresion IVA Ventas" name="printBox"
350      width="37" x="1" y="1"  >      width="37" x="1" y="1"  >
351          <label name="startDateLbl" text="Desde : "  x="1" y="1"/>          <label name="startDateLbl" text="Desde : "  x="1" y="1"/>
352          <entry name="startDateEntry" typecast="date" x="9" y="1" width="12" />          <entry name="startDateEntry" typecast="date" x="9" y="1" width="12" default="01/01/1300"/>
353          <label name="endDateLbl" text="Hasta : " x="1" y="2"/>          <label name="endDateLbl" text="Hasta : " x="1" y="2"/>
354          <entry name="endDateEntry" typecast="date" x="9" y="2" width="12"/>          <entry name="endDateEntry" typecast="date" x="9" y="2"
355              width="12" default="01/01/2107"/>
356          <label  text="sucursal :" x="1" y="3"/>          <label  text="sucursal :" x="1" y="3"/>
357          <entry  x="9" y="3" name="ownBranchIdSearch"  width="25" style="dropdown"          <entry  x="9" y="3" name="ownBranchIdSearch"  width="25" style="dropdown"
358            foreign_key="ownBranchSearchDataSource._entity_data._table"            foreign_key="ownBranchSearchDataSource._entity_data._table"

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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