Commit 95e6e88c authored by caluka's avatar caluka

sql updated for pophelp


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99414 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 15fc3da9
...@@ -404,6 +404,32 @@ update obj_forms set selection_mode=null WHERE WIN_NAME='w_secondory_sale_gwt'; ...@@ -404,6 +404,32 @@ update obj_forms set selection_mode=null WHERE WIN_NAME='w_secondory_sale_gwt';
update itm2menu set default_state=null where win_name='w_secondory_sale_gwt' ; update itm2menu set default_state=null where win_name='w_secondory_sale_gwt' ;
update itm2menu set default_state=null where win_name='w_custstock_reopen' ; update itm2menu set default_state=null where win_name='w_custstock_reopen' ;
---Start Added by chandrashekar on 14-dec-2015
UPDATE MESSAGES SET msg_type='P' WHERE msg_no='VTSUBM1';
UPDATE MESSAGES SET msg_type='P' WHERE msg_no='VTSTAOPEN';
INSERT into MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VTSALNEG','Secondary Sales Negitive.','Secondary Sales Negitive ', 'W', 'Y', SYSDATE, 'BASE ', 'BASE ');
UPDATE pophelp SET SQl_STR='select prd_code as prd_code , fr_date,to_date,prd_tblno from period_tbl where CASE WHEN prd_closed IS NULL THEN ''N'' ELSE prd_closed END=''N'' order by prd_code desc' where mod_name='W_SECONDORY_SALE_GWT' and field_name='PRD_CODE';
UPDATE pophelp SET sql_input=':sale_per,:sale_per,:sale_per,:pophelp_frmdt,:pophelp_todt,:cust_code,:country_code',sql_str='select trim(cust.cust_code) as cust_code,cust.cust_name,stn.descr as Station
from org_structure_cust orgcust,customer cust ,station stn,customer_series custser,state state
where orgcust.cust_code=cust.cust_code
and cust.stan_code=stn.stan_code
and custser.cust_code=cust.cust_code and custser.black_listed !=''Y''
and custser.item_ser=(select item_ser from department where dept_code in
(select dept_code from employee where emp_code=''?''))
and orgcust.table_no=(select item_ser from department where dept_code in
(select dept_code from employee where emp_code=''?''))
AND orgcust.pos_code in(SELECT pos_code FROM employee WHERE emp_code= ''?'')
and orgcust.cust_code not in(SELECT distinct(cust_code) FROM cust_stock WHERE
from_date >= ''?''
and to_date <= ''?'') AND cust.SH_NAME LIKE upper(''?%'')
and state.count_code=''?'' and state.state_code=stn.state_code
order by stn.descr asc'
WHERE mod_name='W_SECONDORY_SALE_GWT' AND field_name='CUST_CODE';
---End Added by chandrashekar on 14-dec-2015
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