/[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.9 by charlie, Thu May 22 21:09:28 2003 UTC revision 1.10 by charlie, Mon May 26 22:55:38 2003 UTC
# Line 295  if client: Line 295  if client:
295      while more:      while more:
296          invoiceTotal = 0          invoiceTotal = 0
297          currOwnDoc = productInvoiceResultSet.current.getField("own_document.id")          currOwnDoc = productInvoiceResultSet.current.getField("own_document.id")
298            if not tmpInvToPayedBlock.getCurrentRecord().isEmpty():
299                tmpInvToPayedBlock.newRecord()
300    
301          tmpInvToPayedBlock.idEntry = str(productInvoiceResultSet.current.getField("own_document.id"))          tmpInvToPayedBlock.idEntry = str(productInvoiceResultSet.current.getField("own_document.id"))
302          tmpInvToPayedBlock.numberEntry = str(productInvoiceResultSet.current.getField("own_document.number"))          tmpInvToPayedBlock.numberEntry = str(productInvoiceResultSet.current.getField("own_document.number"))
303          tmpInvToPayedBlock.dateEntry = str(productInvoiceResultSet.current.getField("own_document.date"))          tmpInvToPayedBlock.dateEntry = str(productInvoiceResultSet.current.getField("own_document.date"))
# Line 320  if client: Line 323  if client:
323    
324          tmpInvToPayedBlock.amountEntry = str(invoiceTotal)          tmpInvToPayedBlock.amountEntry = str(invoiceTotal)
325          tmpInvToPayedBlock.payedEntry = "0.0"          tmpInvToPayedBlock.payedEntry = "0.0"
         tmpInvToPayedBlock.newRecord()  
326    
327      rs = payTotDataSource.createResultSet(condPay)      rs = payTotDataSource.createResultSet(condPay)
328      more = rs.firstRecord()      more = rs.firstRecord()
# Line 339  if client: Line 341  if client:
341      for recNum in range(rc):      for recNum in range(rc):
342          tmpInvToPayedBlock.jumpRecord(recNum)          tmpInvToPayedBlock.jumpRecord(recNum)
343          if hack.a2f(tmpInvToPayedBlock.payedEntry) < hack.a2f(tmpInvToPayedBlock.amountEntry):          if hack.a2f(tmpInvToPayedBlock.payedEntry) < hack.a2f(tmpInvToPayedBlock.amountEntry):
344                if not invoiceToPayedBlock.getCurrentRecord().isEmpty():
345                    invoiceToPayedBlock.newRecord()
346              invoiceToPayedBlock.invoiceBox.idEntry = str(tmpInvToPayedBlock.idEntry)              invoiceToPayedBlock.invoiceBox.idEntry = str(tmpInvToPayedBlock.idEntry)
347              invoiceToPayedBlock.invoiceBox.numberEntry = str(tmpInvToPayedBlock.numberEntry)              invoiceToPayedBlock.invoiceBox.numberEntry = str(tmpInvToPayedBlock.numberEntry)
348              invoiceToPayedBlock.invoiceBox.dateEntry = str(tmpInvToPayedBlock.dateEntry)              invoiceToPayedBlock.invoiceBox.dateEntry = str(tmpInvToPayedBlock.dateEntry)
# Line 348  if client: Line 352  if client:
352                  hack.a2f(tmpInvToPayedBlock.amountEntry) - \                  hack.a2f(tmpInvToPayedBlock.amountEntry) - \
353                  hack.a2f(tmpInvToPayedBlock.payedEntry))                  hack.a2f(tmpInvToPayedBlock.payedEntry))
354              total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry)              total += hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry)
             invoiceToPayedBlock.newRecord()  
355    
356  invoiceToPayedBlock.invoiceBox.totalEntry = str(total)  invoiceToPayedBlock.invoiceBox.totalEntry = str(total)
357  callTrigger('endWaitingModeTrigger')  callTrigger('endWaitingModeTrigger')
# Line 394  rc = currencyTypeBlock.getRecordCount() Line 397  rc = currencyTypeBlock.getRecordCount()
397  for recNum in range(rc):  for recNum in range(rc):
398      currencyTypeBlock.jumpRecord(recNum)      currencyTypeBlock.jumpRecord(recNum)
399      if hack.a2f(currencyTypeBlock.currencyBox.payEntry) > 0:      if hack.a2f(currencyTypeBlock.currencyBox.payEntry) > 0:
400          currencyMovementBlock.newRecord()          if not currencyMovementBlock.getCurrentRecord().isEmpty():
401                currencyMovementBlock.newRecord()
402          currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry)          currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry)
403          currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto          currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto
404          currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry)          currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry)
# Line 430  rc = invoiceToPayedBlock.getRecordCount( Line 434  rc = invoiceToPayedBlock.getRecordCount(
434  for recNum in range(rc):  for recNum in range(rc):
435      invoiceToPayedBlock.jumpRecord(recNum)      invoiceToPayedBlock.jumpRecord(recNum)
436      if hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) > 0:      if hack.a2f(invoiceToPayedBlock.invoiceBox.payEntry) > 0:
         ownDocumentProceedingBlock.newRecord()  
437          ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry)          ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry)
438          ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry)          ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry)
439          ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry)          ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry)
# Line 498  if hack.a2f(invoiceToPayedBlock.invoiceB Line 501  if hack.a2f(invoiceToPayedBlock.invoiceB
501      client = 0      client = 0
502      more = rs.firstRecord()      more = rs.firstRecord()
503      while more:      while more:
504            if not currencyTypeBlock.getCurrentRecord().isEmpty():
505                currencyTypeBlock.newRecord()
506          currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table")          currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table")
507          currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name")          currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name")
508          currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"))          currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"))
# Line 505  if hack.a2f(invoiceToPayedBlock.invoiceB Line 510  if hack.a2f(invoiceToPayedBlock.invoiceB
510          currencyTypeBlock.currencyBox.formatEntry = rs.current.getField("format")          currencyTypeBlock.currencyBox.formatEntry = rs.current.getField("format")
511          currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto          currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto
512          currencyTypeBlock.currencyBox.payEntry = 0.0          currencyTypeBlock.currencyBox.payEntry = 0.0
         currencyTypeBlock.newRecord()  
513          more = rs.nextRecord()          more = rs.nextRecord()
514    
515      currencyDataBlock.recipientBox.dateEntry = str(tmpBlock.tmpDateEntry)      currencyDataBlock.recipientBox.dateEntry = str(tmpBlock.tmpDateEntry)

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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