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

Diff of /papo/forms/receipt.neb

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

revision 1.26 by mhepp, Thu Aug 28 18:42:55 2003 UTC revision 1.27 by mhepp, Mon Sep 1 21:08:19 2003 UTC
# Line 420  if hack.a2f(invoiceToPayedTotalBlock.tot Line 420  if hack.a2f(invoiceToPayedTotalBlock.tot
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)
# Line 710  else: Line 711  else:
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    

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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