Commit 7e4a6e93 authored by caluka's avatar caluka

customer/stockist pohelp query changed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99850 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 40a0f281
...@@ -496,6 +496,27 @@ VALUES ('VTEMPCDNUL', 'Employee can not be blank','Employee can not be blank. ', ...@@ -496,6 +496,27 @@ VALUES ('VTEMPCDNUL', 'Employee can not be blank','Employee can not be blank. ',
INSERT into MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term ) INSERT into MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VTEMPCD', 'Invalid Employee','Employee should be exist in employee master.', 'E', 'Y', SYSDATE, 'BASE', 'BASE'); VALUES ('VTEMPCD', 'Invalid Employee','Employee should be exist in employee master.', 'E', 'Y', SYSDATE, 'BASE', 'BASE');
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 org,org_structure_cust orgcust,customer cust ,station stn,customer_series custser,state state
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 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 08-jan-2016 ---End added by chandrashekar on 08-jan-2016
......
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