Commit cbb1f8d8 authored by caluka's avatar caluka

obj_forms and pophelp sql updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99542 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5fb46eaa
...@@ -435,6 +435,27 @@ WHERE mod_name='W_SECONDORY_SALE_GWT' AND field_name='CUST_CODE'; ...@@ -435,6 +435,27 @@ WHERE mod_name='W_SECONDORY_SALE_GWT' AND field_name='CUST_CODE';
--Start Added by chandra shekar on 27-dec-2015 --Start Added by chandra shekar on 27-dec-2015
UPDATE transetup SET confirm_val='Y',confirm_col='confirmed' UPDATE transetup SET confirm_val='Y',confirm_col='confirmed'
WHERE tran_window='w_secondory_sale_gwt'; WHERE tran_window='w_secondory_sale_gwt';
update obj_forms set title='Customer' where win_name='w_secondory_sale_gwt' and form_no=1;
update obj_forms set title='Invoice Details' where win_name='w_secondory_sale_gwt' and form_no=2;
update obj_forms set title='Item Details' where win_name='w_secondory_sale_gwt' and form_no=3;
UPDATE pophelp SET sql_input=':sale_per,:sale_per,:sale_per,:pophelp_frmdt,:pophelp_todt,:cust_code,:cust_code,: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(''?%'') or cust.cust_code LIKE upper(''?%'') OR cust.cust_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 27-dec-2015 ---End added by chandrashekar on 27-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