/[papo]/papo/forms/ivaBuyer.gfd
ViewVC logotype

Diff of /papo/forms/ivaBuyer.gfd

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

revision 1.1 by charlie, Mon Mar 10 21:39:54 2003 UTC revision 1.2 by charlie, Mon Mar 10 22:27:13 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1"?>  <?xml version="1.0" encoding="ISO-8859-1"?>
2  <!DOCTYPE form SYSTEM "gnue-forms.dtd">  <!DOCTYPE form SYSTEM "gnue-forms.dtd">
3    
4  <form width="35" height="5" title="Listado I.V.A. Compras">  <form width="30" height="4" title="Listado I.V.A. Compras">
5    
6    <datasource name="providerSearchDataSource" database="papo"    <datasource name="providerSearchDataSource" database="papo"
7                table="entity, _entity_data, alien_entity, _alien_entity_data, persona,                table="entity, _entity_data, alien_entity, _alien_entity_data, persona,
# Line 134  callTrigger('startWaitingModeTrigger') Line 134  callTrigger('startWaitingModeTrigger')
134  table = []  table = []
135  line="\n\nListado de IVA Compras\n\n\n"  line="\n\nListado de IVA Compras\n\n\n"
136  table.append(line)  table.append(line)
137  line = "Factura".center(10)+" | "+"Fecha".center(30)+" | "+"Neto".center(14)+" | "+"I.V.A.".center(14)+" | "+"Total".center(14)+"\n"  line = "Factura".center(10)+" | "+"Fecha".center(30)+" | "+"Neto".center(10)+" | "+"I.V.A.".center(10)+" | "+"Total".center(10)+"\n"
138  table.append(line)  table.append(line)
139    
140  condProductInvoice = GConditions.GCondition()  condProductInvoice = GConditions.GCondition()
# Line 142  condProductInvoice = GConditions.GCondit Line 142  condProductInvoice = GConditions.GCondit
142  productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice)  productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice)
143  more = productInvoiceResultSet.firstRecord()  more = productInvoiceResultSet.firstRecord()
144    
145    totalNeto = 0
146    totalIVA = 0
147    
148  while more:  while more:
149      invoiceTotal = 0      invoiceTotal = 0
150      itemTaxTotal = 0              itemTaxTotal = 0        
# Line 168  while more: Line 171  while more:
171      line += "|" + string.rjust(str(invoiceTotal),10)      line += "|" + string.rjust(str(invoiceTotal),10)
172      line += "|" + string.rjust(str(itemTaxTotal),10)      line += "|" + string.rjust(str(itemTaxTotal),10)
173      line += "|" + string.rjust(str(itemTaxTotal + invoiceTotal),10)      line += "|" + string.rjust(str(itemTaxTotal + invoiceTotal),10)
174        totalIVA += itemTaxTotal
175        totalNeto += invoiceTotal
176      table.append(line)      table.append(line)
177            
178  callTrigger('endWaitingModeTrigger')  callTrigger('endWaitingModeTrigger')
179    
180    line = "Total".center(43) + string.rjust(str(totalNeto),10) + "|"
181    line += string.rjust(str(totalIVA),10) + "|" + string.rjust(str(totalIVA + totalNeto),10)
182    table.append(line)
183    
184  hack.previewPrint(table)  hack.previewPrint(table)
185    
186    ]]></trigger>    ]]></trigger>
# Line 204  hack.previewPrint(table) Line 214  hack.previewPrint(table)
214    
215      <block datasource="alienDocumentDataSource" name="alienDocumentSearchBlock" restrictInsert="">      <block datasource="alienDocumentDataSource" name="alienDocumentSearchBlock" restrictInsert="">
216    
217        <box height="5" label="Listado de I.V.A. Compras"        <box height="4" label="Listado de I.V.A. Compras"
218          name="printBox" width="30" x="1" y="1">          name="printBox" width="25" x="1" y="1">
219    
220          <button x="2" y="2" trigger="printTrigger" width="20" label="Imprimir"          <button x="2" y="1" trigger="printTrigger" width="20" label="Imprimir"
221            name="printBotton" height="1"/>            name="printBotton" height="1"/>
222    
223        </box>        </box>

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

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