266 |
line += "|"+printing.printField(productInvoiceResultSet.current.getField("_entity_data.name"),30) |
line += "|"+printing.printField(productInvoiceResultSet.current.getField("_entity_data.name"),30) |
267 |
line += "|"+printing.printField(productInvoiceResultSet.current.getField("_entity_uid_data.uid"),15) |
line += "|"+printing.printField(productInvoiceResultSet.current.getField("_entity_uid_data.uid"),15) |
268 |
sign= documentSign[str(productInvoiceResultSet.current.getField("own_document.own_document_type"))] |
sign= documentSign[str(productInvoiceResultSet.current.getField("own_document.own_document_type"))] |
269 |
|
print "void",str(productInvoiceResultSet.current.getField("own_document.is_void")) |
270 |
|
if str(productInvoiceResultSet.current.getField("own_document.is_void"))=='1': |
271 |
|
voidDocument = "true" |
272 |
|
else : |
273 |
|
voidDocument = "false" |
274 |
|
|
275 |
while productInvoiceResultSet.current.getField("own_document.id") == currOwnDoc and more: |
while productInvoiceResultSet.current.getField("own_document.id") == currOwnDoc and more: |
276 |
lQty = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.qty")) |
lQty = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.qty")) |
277 |
lUnitPrice = hack.a2f(productInvoiceResultSet.current.getField("_price_data.unit_price")) |
lUnitPrice = hack.a2f(productInvoiceResultSet.current.getField("_price_data.unit_price")) |
290 |
invoiceTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount")) |
invoiceTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount")) |
291 |
odt_more = odt_rs.nextRecord() |
odt_more = odt_rs.nextRecord() |
292 |
#signo del comprobante |
#signo del comprobante |
293 |
itemTaxTotal = itemTaxTotal * hack.a2f(sign) |
if voidDocument == "true" : |
294 |
invoiceTotal = invoiceTotal * hack.a2f(sign) |
line += "|" + printing.printTitle("anulado",14) |
295 |
line += "|" + printing.printAccount(invoiceTotal,14) |
line += "|" + printing.printTitle("anulado",12) |
296 |
line += "|" + printing.printAccount(itemTaxTotal,12) |
line += "|" + printing.printTitle("anulado",14) |
297 |
line += "|" + printing.printAccount(itemTaxTotal,14) |
else: |
298 |
totalIVA += itemTaxTotal |
itemTaxTotal = itemTaxTotal * hack.a2f(sign) |
299 |
totalNeto += invoiceTotal |
invoiceTotal = invoiceTotal * hack.a2f(sign) |
300 |
|
line += "|" + printing.printAccount(invoiceTotal,14) |
301 |
|
line += "|" + printing.printAccount(itemTaxTotal,12) |
302 |
|
line += "|" + printing.printAccount(itemTaxTotal,14) |
303 |
|
totalIVA += itemTaxTotal |
304 |
|
totalNeto += invoiceTotal |
305 |
table.append(line) |
table.append(line) |
306 |
|
|
307 |
callTrigger('endWaitingModeTrigger') |
callTrigger('endWaitingModeTrigger') |