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

Diff of /papo/forms/ivaSales.gfd

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

revision 1.1 by charlie, Mon Mar 10 15:05:09 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 title="Impresion I.V.A. Ventas" height="4" width="30">  <form title="Impresion I.V.A. Ventas" height="3" width="30">
5    
6    <datasource name="clientSearchDataSource" database="papo"    <datasource name="clientSearchDataSource" database="papo"
7                table="_entity_data, _alien_entity_data, _persona_data, _client_data,                table="_entity_data, _alien_entity_data, _persona_data, _client_data,
# Line 225  table.append(line) Line 225  table.append(line)
225  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(14)+" | "+"I.V.A.".center(14)+" | "+"Total".center(14)+"\n"
226  table.append(line)  table.append(line)
227    
228  total = 0.0  totalNeto = 0
229        totalIVA = 0
230    
231  condProductInvoice = GConditions.GCondition()  condProductInvoice = GConditions.GCondition()
232  productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice)  productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice)
233  more = productInvoiceResultSet.firstRecord()  more = productInvoiceResultSet.firstRecord()
# Line 258  while more: Line 259  while more:
259      line += "|" + string.rjust(str(invoiceTotal),10)      line += "|" + string.rjust(str(invoiceTotal),10)
260      line += "|" + string.rjust(str(itemTaxTotal),10)      line += "|" + string.rjust(str(itemTaxTotal),10)
261      line += "|" + string.rjust(str(invoiceTotal + itemTaxTotal),10)      line += "|" + string.rjust(str(invoiceTotal + itemTaxTotal),10)
262        totalIVA += itemTaxTotal
263        totalNeto += invoiceTotal
264      table.append(line)      table.append(line)
265    
266  callTrigger('endWaitingModeTrigger')  callTrigger('endWaitingModeTrigger')
267    
268    line = "Total".center(43) + string.rjust(str(totalNeto),10) + "|"
269    line += string.rjust(str(totalIVA),10) + "|" + string.rjust(str(totalIVA + totalNeto),10)
270    table.append(line)
271    
272  hack.previewPrint(table)  hack.previewPrint(table)
273    
274      ]]></trigger>      ]]></trigger>
# Line 300  ownDocumentBlock.processRollback() Line 308  ownDocumentBlock.processRollback()
308    <page name="Impresion IVA Ventas">    <page name="Impresion IVA Ventas">
309    
310      <block datasource="ownDocumentDataSource" name="printBlock">      <block datasource="ownDocumentDataSource" name="printBlock">
311        <box height="4" label="Impresion IVA Ventas" name="printBox" width="24" x="2" y="1">        <box height="4" label="Impresion IVA Ventas" name="printBox" width="25" x="2" y="1">
312          <button name="printButton" trigger="printTrigger"          <button name="printButton" trigger="printTrigger"
313            label="Imprimir" width="20" height="1" x="2" y="1"/>            label="Imprimir" width="20" height="1" x="2" y="1"/>
314        </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