420 |
while more: |
while more: |
421 |
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
422 |
currencyTypeBlock.newRecord() |
currencyTypeBlock.newRecord() |
423 |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
#ahora es id |
424 |
|
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("id") |
425 |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
426 |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),2) |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),2) |
427 |
monto = round(hack.a2f(invoiceToPayedTotalBlock.totalCashEntry,2) / hack.a2f(rs.current.getField("rate"),2),2) |
monto = round(hack.a2f(invoiceToPayedTotalBlock.totalCashEntry,2) / hack.a2f(rs.current.getField("rate"),2),2) |
711 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
712 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
713 |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
714 |
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2)) |
#ahora guardo moneda original |
715 |
|
#currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2)) |
716 |
|
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2))) |
717 |
currencyMovementBlock.postChanges() |
currencyMovementBlock.postChanges() |
718 |
|
|
719 |
|
|