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, |
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() |
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> |
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> |