/[papo]/papo/forms/productProviderInvoice.gfd
ViewVC logotype

Diff of /papo/forms/productProviderInvoice.gfd

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

revision 1.6 by apronotti, Wed Dec 11 22:14:43 2002 UTC revision 1.7 by apronotti, Mon Dec 16 20:42:26 2002 UTC
# Line 401  Line 401 
401    </trigger>    </trigger>
402    
403    <trigger name="resultFocusOutTrigger" type="NAMED">    <trigger name="resultFocusOutTrigger" type="NAMED">
404       import hack
405     alienDocumentBlock.processRollback()     alienDocumentBlock.processRollback()
406     if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty():     if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty():
407       alienDocumentBlock.initQuery()       alienDocumentBlock.initQuery()
408       alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry)       alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry)
409       alienDocumentBlock.processQuery()       alienDocumentBlock.processQuery()
410         recordCount = alienItemBlock.getRecordCount()
411         alienItemBlock.firstRecord()
412         for index in range(recordCount):
413             alienItemBlock.taxPercentEntry = hack.a2f(alienItemBlock.taxAmountEntry) / hack.a2f(alienItemBlock.unitPriceEntry) * \
414                                              hack.a2f(alienItemBlock.qtyEntry) * 100
415             if index != recordCount-1:
416                 alienItemBlock.nextRecord()
417    
418    </trigger>    </trigger>
419    
420    <trigger name="providerTrigger" type="NAMED">    <trigger name="providerTrigger" type="NAMED">

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

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