/[papo]/papo/forms/providerMultiCurrency.neb
ViewVC logotype

Diff of /papo/forms/providerMultiCurrency.neb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by apronotti, Thu Jun 5 19:51:12 2003 UTC revision 1.8 by mhepp, Mon Sep 1 21:08:19 2003 UTC
# Line 30  if hack.a2f(payBlock.cashAmountEntry,2) Line 30  if hack.a2f(payBlock.cashAmountEntry,2)
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)
# Line 87  else: Line 88  else:
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        ]]>        ]]>

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26