/[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.20 by mhepp, Fri Oct 24 19:15:51 2003 UTC revision 1.21 by mhepp, Wed Oct 29 19:44:47 2003 UTC
# Line 10  Line 10 
10    
11    <datasource name="productInvoiceDataSource" database="papo"    <datasource name="productInvoiceDataSource" database="papo"
12                table=" _entity_data as client, own_document, _entity_uid_data, _document_type_data, _entity_data as pos_entity ,_own_entity_data as pos_own_entity,_own_pos_data"                table=" _entity_data as client, own_document, _entity_uid_data, _document_type_data, _entity_data as pos_entity ,_own_entity_data as pos_own_entity,_own_pos_data"
13                order_by="own_document.date,own_document.number">                order_by="_own_pos_data.number,own_document.date,own_document.number">
14      <condition>      <condition>
15        <and>        <and>
16          <eq>          <eq>
# Line 244  else: Line 244  else:
244    #table.append(line)    #table.append(line)
245    
246    
247    line="\n\nListado de IVA Ventas\n\n\n"    line="\n\nListado de IVA Ventas\n"
248      table.append(line)
   
249    
250      if printDataSource.selectBy == "date" :
251          line="Desde: "+str(printByDateBlock.startDateEntry)[:11]+"Hasta: "+str(printByDateBlock.endDateEntry)[:11]+"\n"
252    
253      else:
254          line="Periodo: "+str(printByPeriodBlock.periodoNameEntry)+"\n"
255      table.append(line)
256    
     
257    separator="----------+------------------+-------------------------+-------------+----------+---------+---------+---------+---------+---------+-----------"    separator="----------+------------------+-------------------------+-------------+----------+---------+---------+---------+---------+---------+-----------"
258    table.append(line)    
259        
260        
261    line =  printing.printTitle("Fecha",10) + "|" + printing.printTitle("Comprobante",18) + "|"    line =  printing.printTitle("Fecha",10) + "|" + printing.printTitle("Comprobante",18) + "|"
# Line 265  else: Line 268  else:
268    line += printing.printTitle("Otro",9) + "|"    line += printing.printTitle("Otro",9) + "|"
269    line += printing.printTitle("Total",11)    line += printing.printTitle("Total",11)
270    table.append(line)    table.append(line)
271    table.append(separator)    #table.append(separator)
272    
273      formerNumber = 0
274    totalIvaTaxed = 0    totalIvaTaxed = 0
275    totalNotTaxed = 0    totalNotTaxed = 0
276    totalIVA = 0    totalIVA = 0
# Line 395  else: Line 398  else:
398      elif moreInvoice:      elif moreInvoice:
399              printInvoice=1              printInvoice=1
400      if printInvoice :      if printInvoice :
401    
402                    
403        invoiceTotal = 0        invoiceTotal = 0
404        itemTaxTotal = 0        itemTaxTotal = 0
# Line 487  else: Line 491  else:
491         totalIVARNI += documentIvaRNIAmount         totalIVARNI += documentIvaRNIAmount
492         totalOtherTax += otherTaxAmount         totalOtherTax += otherTaxAmount
493         totalAmount += invoiceTotal         totalAmount += invoiceTotal
494          if formerNumber != pos:
495            table.append(separator)
496          formerNumber = pos
497        table.append(line)        table.append(line)
498        moreInvoice = productInvoiceResultSet.nextRecord()        moreInvoice = productInvoiceResultSet.nextRecord()
499      elif moreRetention :      elif moreRetention :

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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