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

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

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

revision 1.8 by mhepp, Thu Oct 9 19:50:35 2003 UTC revision 1.9 by apronotti, Thu Oct 9 22:29:35 2003 UTC
# Line 903  order_by="_entity_data.name"> Line 903  order_by="_entity_data.name">
903    print "ownIVACond",tmpValuesDataSource.ownIVACond    print "ownIVACond",tmpValuesDataSource.ownIVACond
904    #cargo el own-pos entity id    #cargo el own-pos entity id
905    callTrigger('searchOwnPosData')    callTrigger('searchOwnPosData')
906      print "ownStorehouseBlock.ownStorehouseStockByInvoiceEntry",ownStorehouseBlock.ownStorehouseStockByInvoiceEntry
907    #/cargo el own-pos entity id    #/cargo el own-pos entity id
908    </trigger>    </trigger>
909    
# Line 1032  order_by="_entity_data.name"> Line 1033  order_by="_entity_data.name">
1033    
1034          tmpValuesDataSource.idEntry = str(alienDocumentBlock.idEntry)          tmpValuesDataSource.idEntry = str(alienDocumentBlock.idEntry)
1035         <neb:Block> if ($stock_alta) {</neb:Block>         <neb:Block> if ($stock_alta) {</neb:Block>
1036          callTrigger('<neb:Inline>$stock_alta</neb:Inline>')          if hack.emptyEntry(ownStorehouseBlock.ownStorehouseStockByInvoiceEntry) \
1037               and int(str(ownStorehouseBlock.ownStorehouseStockByInvoiceEntry)):
1038              callTrigger('<neb:Inline>$stock_alta</neb:Inline>')
1039         <neb:Block>} </neb:Block>         <neb:Block>} </neb:Block>
1040          commitConnection()          commitConnection()
1041          callTrigger('rollbackTrigger')          callTrigger('rollbackTrigger')
# Line 1087  order_by="_entity_data.name"> Line 1090  order_by="_entity_data.name">
1090        
1091          tmpValuesDataSource.idEntry = str(alienDocumentShowBlock.idEntry)          tmpValuesDataSource.idEntry = str(alienDocumentShowBlock.idEntry)
1092          <neb:Block> if ($stock_borrado) {</neb:Block>          <neb:Block> if ($stock_borrado) {</neb:Block>
1093          callTrigger('<neb:Inline>$stock_borrado</neb:Inline>')          if hack.emptyEntry(ownStorehouseBlock.ownStorehouseStockByInvoiceEntry) \
1094               and int(str(ownStorehouseBlock.ownStorehouseStockByInvoiceEntry)):
1095              callTrigger('<neb:Inline>$stock_borrado</neb:Inline>')
1096          <neb:Block>}</neb:Block>          <neb:Block>}</neb:Block>
1097        
1098          lRecordCount = alienItemShowBlock.getRecordCount()          lRecordCount = alienItemShowBlock.getRecordCount()
# Line 1391  order_by="_entity_data.name"> Line 1396  order_by="_entity_data.name">
1396        callTrigger('endWaitingModeTrigger')        callTrigger('endWaitingModeTrigger')
1397    
1398        recordCount = providerResultBlock.getRecordCount()        recordCount = providerResultBlock.getRecordCount()
1399          import hack
1400        if recordCount > 1:        if recordCount > 1:
1401          def callback (returnValue):          def callback (returnValue):
1402            global block            global block
# Line 1399  order_by="_entity_data.name"> Line 1405  order_by="_entity_data.name">
1405              callTrigger('afterProviderSearchTrigger')              callTrigger('afterProviderSearchTrigger')
1406    
1407          runForm ('providerSelect.gfd', {'data': providerResultBlock, 'callback': callback})          runForm ('providerSelect.gfd', {'data': providerResultBlock, 'callback': callback})
1408        elif recordCount == 1:        elif recordCount == 1 and hack.emptyEntry(providerResultBlock.idEntry):
1409          providerResultBlock.jumpRecord(0)          providerResultBlock.jumpRecord(0)
1410          callTrigger('afterProviderSearchTrigger')          callTrigger('afterProviderSearchTrigger')
1411    

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

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