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> |
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) + "|" |
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 |
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 |
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 : |