/[papo]/papo/forms/components/ownDocumentPay.nebc
ViewVC logotype

Diff of /papo/forms/components/ownDocumentPay.nebc

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

revision 1.1 by mhepp, Tue Aug 26 18:03:19 2003 UTC revision 1.2 by mhepp, Mon Sep 1 21:08:19 2003 UTC
# Line 46  Line 46 
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)
# Line 256  Line 256 
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()

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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