46 |
while more: |
while more: |
47 |
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
48 |
currencyTypeBlock.newRecord() |
currencyTypeBlock.newRecord() |
49 |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("id") |
50 |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
51 |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),4) |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),4) |
52 |
monto = round(hack.a2f(payBlock.cashEntry,4) / hack.a2f(rs.current.getField("rate"),4),4) |
monto = round(hack.a2f(payBlock.cashEntry,4) / hack.a2f(rs.current.getField("rate"),4),4) |
256 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
257 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
258 |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
259 |
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4),2)) |
#currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4),2)) |
260 |
|
#ahora guardo moneda original |
261 |
|
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2))) |
262 |
#post changes |
#post changes |
263 |
postChangeAdvance = 3 |
postChangeAdvance = 3 |
264 |
ownDocumentProceedingBlock.postChanges() |
ownDocumentProceedingBlock.postChanges() |