295 |
while more: |
while more: |
296 |
invoiceTotal = 0 |
invoiceTotal = 0 |
297 |
currOwnDoc = productInvoiceResultSet.current.getField("own_document.id") |
currOwnDoc = productInvoiceResultSet.current.getField("own_document.id") |
298 |
|
if not tmpInvToPayedBlock.getCurrentRecord().isEmpty(): |
299 |
|
tmpInvToPayedBlock.newRecord() |
300 |
|
|
301 |
tmpInvToPayedBlock.idEntry = str(productInvoiceResultSet.current.getField("own_document.id")) |
tmpInvToPayedBlock.idEntry = str(productInvoiceResultSet.current.getField("own_document.id")) |
302 |
tmpInvToPayedBlock.numberEntry = str(productInvoiceResultSet.current.getField("own_document.number")) |
tmpInvToPayedBlock.numberEntry = str(productInvoiceResultSet.current.getField("own_document.number")) |
303 |
tmpInvToPayedBlock.dateEntry = str(productInvoiceResultSet.current.getField("own_document.date")) |
tmpInvToPayedBlock.dateEntry = str(productInvoiceResultSet.current.getField("own_document.date")) |
323 |
|
|
324 |
tmpInvToPayedBlock.amountEntry = str(invoiceTotal) |
tmpInvToPayedBlock.amountEntry = str(invoiceTotal) |
325 |
tmpInvToPayedBlock.payedEntry = "0.0" |
tmpInvToPayedBlock.payedEntry = "0.0" |
|
tmpInvToPayedBlock.newRecord() |
|
326 |
|
|
327 |
rs = payTotDataSource.createResultSet(condPay) |
rs = payTotDataSource.createResultSet(condPay) |
328 |
more = rs.firstRecord() |
more = rs.firstRecord() |
341 |
for recNum in range(rc): |
for recNum in range(rc): |
342 |
tmpInvToPayedBlock.jumpRecord(recNum) |
tmpInvToPayedBlock.jumpRecord(recNum) |
343 |
if hack.a2f(tmpInvToPayedBlock.payedEntry) < hack.a2f(tmpInvToPayedBlock.amountEntry): |
if hack.a2f(tmpInvToPayedBlock.payedEntry) < hack.a2f(tmpInvToPayedBlock.amountEntry): |
344 |
|
if not invoiceToPayedBlock.getCurrentRecord().isEmpty(): |
345 |
|
invoiceToPayedBlock.newRecord() |
346 |
invoiceToPayedBlock.invoiceBox.idEntry = str(tmpInvToPayedBlock.idEntry) |
invoiceToPayedBlock.invoiceBox.idEntry = str(tmpInvToPayedBlock.idEntry) |
347 |
invoiceToPayedBlock.invoiceBox.numberEntry = str(tmpInvToPayedBlock.numberEntry) |
invoiceToPayedBlock.invoiceBox.numberEntry = str(tmpInvToPayedBlock.numberEntry) |
348 |
invoiceToPayedBlock.invoiceBox.dateEntry = str(tmpInvToPayedBlock.dateEntry) |
invoiceToPayedBlock.invoiceBox.dateEntry = str(tmpInvToPayedBlock.dateEntry) |
352 |
hack.a2f(tmpInvToPayedBlock.amountEntry) - \ |
hack.a2f(tmpInvToPayedBlock.amountEntry) - \ |
353 |
hack.a2f(tmpInvToPayedBlock.payedEntry)) |
hack.a2f(tmpInvToPayedBlock.payedEntry)) |
354 |
total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) |
total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) |
|
invoiceToPayedBlock.newRecord() |
|
355 |
|
|
356 |
invoiceToPayedBlock.invoiceBox.totalEntry = str(total) |
invoiceToPayedBlock.invoiceBox.totalEntry = str(total) |
357 |
callTrigger('endWaitingModeTrigger') |
callTrigger('endWaitingModeTrigger') |
397 |
for recNum in range(rc): |
for recNum in range(rc): |
398 |
currencyTypeBlock.jumpRecord(recNum) |
currencyTypeBlock.jumpRecord(recNum) |
399 |
if hack.a2f(currencyTypeBlock.currencyBox.payEntry) > 0: |
if hack.a2f(currencyTypeBlock.currencyBox.payEntry) > 0: |
400 |
currencyMovementBlock.newRecord() |
if not currencyMovementBlock.getCurrentRecord().isEmpty(): |
401 |
|
currencyMovementBlock.newRecord() |
402 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
403 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
404 |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
434 |
for recNum in range(rc): |
for recNum in range(rc): |
435 |
invoiceToPayedBlock.jumpRecord(recNum) |
invoiceToPayedBlock.jumpRecord(recNum) |
436 |
if hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) > 0: |
if hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) > 0: |
|
ownDocumentProceedingBlock.newRecord() |
|
437 |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
438 |
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry) |
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry) |
439 |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry) |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry) |
501 |
client = 0 |
client = 0 |
502 |
more = rs.firstRecord() |
more = rs.firstRecord() |
503 |
while more: |
while more: |
504 |
|
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
505 |
|
currencyTypeBlock.newRecord() |
506 |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
507 |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
508 |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate")) |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate")) |
510 |
currencyTypeBlock.currencyBox.formatEntry = rs.current.getField("format") |
currencyTypeBlock.currencyBox.formatEntry = rs.current.getField("format") |
511 |
currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto |
currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto |
512 |
currencyTypeBlock.currencyBox.payEntry = 0.0 |
currencyTypeBlock.currencyBox.payEntry = 0.0 |
|
currencyTypeBlock.newRecord() |
|
513 |
more = rs.nextRecord() |
more = rs.nextRecord() |
514 |
|
|
515 |
currencyDataBlock.recipientBox.dateEntry = str(tmpBlock.tmpDateEntry) |
currencyDataBlock.recipientBox.dateEntry = str(tmpBlock.tmpDateEntry) |