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

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

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

revision 1.2 by apronotti, Tue Sep 23 20:28:05 2003 UTC revision 1.3 by apronotti, Wed Sep 24 19:31:13 2003 UTC
# Line 38  $target_field Line 38  $target_field
38            
39    try:    try:
40      test = accountValuesDataSource.code      test = accountValuesDataSource.code
41    except:    except AttributeError:
42      rs = sys_account2accountPlanDataSource.createResultSet()      rs = sys_account2accountPlanDataSource.createResultSet()
43      rs.firstRecord()      if rs.firstRecord():
44      accountValuesDataSource.code = str(rs.current.getField('code'))        accountValuesDataSource.code = str(rs.current.getField('code'))
45        
46    search_account_planBlock.aditionalEntry = str(accountValuesDataSource.code)+'%'    search_account_planBlock.aditionalEntry = str(accountValuesDataSource.code)+'%'
47        
# Line 51  $target_field Line 51  $target_field
51  <neb:Sub neb:src="inlineSearch.nebc"  <neb:Sub neb:src="inlineSearch.nebc"
52    label="Cuenta contable"    label="Cuenta contable"
53    pre_search_trigger="searchAccountPrefix"    pre_search_trigger="searchAccountPrefix"
54    cond_field="_account_plan_data.code"    cond_field="code"
55    table="account_plan"    table="account_plan"
56    target_field="neb:$target_field"    target_field="neb:$target_field"
57    target_block="neb:$target_block"    target_block="neb:$target_block"

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

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