30 |
while more: |
while more: |
31 |
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
if not currencyTypeBlock.getCurrentRecord().isEmpty(): |
32 |
currencyTypeBlock.newRecord() |
currencyTypeBlock.newRecord() |
33 |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
#ahora es id |
34 |
|
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("id") |
35 |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
36 |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),2) |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),2) |
37 |
monto = round(hack.a2f(payBlock.cashAmountEntry,2) / hack.a2f(rs.current.getField("rate"),2),2) |
monto = round(hack.a2f(payBlock.cashAmountEntry,2) / hack.a2f(rs.current.getField("rate"),2),2) |
88 |
for recNum in range(rc): |
for recNum in range(rc): |
89 |
currencyTypeBlock.jumpRecord(recNum) |
currencyTypeBlock.jumpRecord(recNum) |
90 |
if hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) > 0: |
if hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) > 0: |
91 |
if not currencyMovementBlock.getCurrentRecord().isEmpty(): |
if not currencyMovementBlock.getCurr |
92 |
|
entRecord().isEmpty(): |
93 |
currencyMovementBlock.newRecord() |
currencyMovementBlock.newRecord() |
94 |
|
#guardo el umero de id no de _table |
95 |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
96 |
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2)) |
#currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2)) |
97 |
|
#ahora guardo moneda original |
98 |
|
currencyMovementBlock.amountEntry = str((hack.a2f(currencyTypeBlock.currencyBox.payEntry,2))) |
99 |
tmpBlock.returnEntity = str(1) |
tmpBlock.returnEntity = str(1) |
100 |
exit() |
exit() |
101 |
]]> |
]]> |