Commit d1539133 authored by sjarande's avatar sjarande

sql and metadata ,srd updated by saurabh


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106063 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6e67dbed
delete from pophelp where mod_name='W_SECONDORY_SALE_GWT_WIZ' and field_name='CUST_CODE';
commit;
Insert into pophelp(FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL) values ('CUST_CODE','W_SECONDORY_SALE_GWT_WIZ','select distinct trim(cust.cust_code) as cust_code,
cust.cust_name,stn.descr as Station,org.table_no as Division,itmser.sh_descr as Div_description
from org_structure org,org_structure_cust orgcust,customer cust ,
station stn,state state ,itemser itmser
where org.version_id=orgcust.version_id and
org.pos_code=orgcust.pos_code and
org.table_no=orgcust.table_no and
orgcust.cust_code=cust.cust_code
and itmser.item_ser=org.table_no
and cust.stan_code=stn.stan_code
AND orgcust.pos_code =''?''
AND (case when orgcust.source is null then ''Y'' else orgcust.source end) <> ''A''
AND org.table_no =''?''
and org.version_id = (select FN_GET_VERSION_ID from dual)
and orgcust.cust_code not in(SELECT distinct(cust_code) FROM cust_stock WHERE
from_date >= ''?''
and to_date <= ''?'' and item_ser=''?'' and pos_code is not null ) AND (cust.SH_NAME LIKE upper(''?%'')
or cust.cust_code LIKE upper(''?%'') OR cust.cust_name LIKE upper(''?%''))
and state.count_code=''?'' and state.state_code=stn.state_code
and (''?'' BETWEEN orgcust.EFF_DATE and orgcust.VALID_UPTO )
and (''?'' BETWEEN orgcust.EFF_DATE and orgcust.VALID_UPTO )
order by stn.descr,cust.cust_name asc',null,'Customer Code',0,0,null,null,null,'0',null,':pos_code,:item_ser,:pophelp_frmdt,:pophelp_todt,:item_ser,:cust_code,:cust_code,:cust_code,:country_code,:pophelp_frmdt,:pophelp_todt',0,null,null,null,null,null,0,null,null,null,null,null,null);
commit;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment