Commit 8523f3e3 authored by caluka's avatar caluka

customer and position code pohelp querys updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100166 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 104e632e
......@@ -588,6 +588,63 @@ ORDER BY LEVEL_NO',null,'Position Code',0,0,null,null,null,'0',null,':pos_code',
----End added by chandrashekar on 29-jan-2016
---start added by chandrashekar on 11-feb-2016
INSERT into MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VTINVOCDT', 'Invalid Invoice Transit Date.','Selected Invoices are older than ', 'E', 'Y', SYSDATE, 'BASE', 'BASE');
UPDATE POPHELP SET SQL_STR='SELECT trim(A.POS_CODE) as pos_code ,A.DESCR,trim(A.EMP_CODE) as emp_code,C.EMP_FNAME||'' ''||C.EMP_MNAME||'' ''||C.EMP_LNAME NAME,
a.table_no FROM ORG_STRUCTURE A ,EMPLOYEE C
WHERE A.VERSION_ID IN(SELECT MAX(VERSION_ID) FROM ORG_STRUCTURE D)
AND A.EMP_CODE(+)=C.EMP_CODE
AND A.POS_CODE IN(SELECT C.POS_CODE FROM ORG_STRUCTURE C
START WITH C.POS_CODE=''?''
CONNECT BY PRIOR C.POS_CODE=C.POS_CODE__REPTO
AND C.VERSION_ID =(SELECT MAX(VERSION_ID) FROM ORG_STRUCTURE E)
)
ORDER BY LEVEL_NO'
WHERE MOD_NAME='W_SECONDORY_SALE_GWT' AND FIELD_NAME='POS_CODE';
Insert into disparm (PRD_CODE,VAR_NAME,VAR_TYPE,VAR_VALUE,DESCR,VAR_SUBS,CHG_DATE,CHG_USER,CHG_TERM)
values ('999999','GRACE_DAYS_TRINV','S','45','Grace days to be consider transit invoices',0,sysdate,'BASE','BASE');
INSERT into MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VTGRCDAYS', 'Disparm is not defined. ','GRACE_DAYS_TRINV disparm not defined for grace days of transit invoices.', 'E', 'Y', SYSDATE, 'BASE', 'BASE');
INSERT INTO obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT)
VALUES ('secondory_sale_gwt',11,NULL,'Add',NULL,NULL,'A','Add','3',NULL,NULL,'U',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
UPDATE pophelp SET
sql_input=':pos_code,:item_ser,:pophelp_frmdt,:pophelp_todt,:cust_code,:cust_code,:cust_code,:country_code,:pophelp_frmdt,:pophelp_todt,:item_ser,:item_ser',
sql_str='select distinct trim(cust.cust_code) as cust_code,cust.cust_name,stn.descr as Station,org.table_no item_ser
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 orgcust.pos_code =''?''
AND org.table_no =''?''
and org.version_id in (select max(version_id) from org_structure )
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
and (''?'' BETWEEN orgcust.EFF_DATE and orgcust.VALID_UPTO )
and (''?'' BETWEEN orgcust.EFF_DATE and orgcust.VALID_UPTO )
and custser.item_ser in(select item_ser from itemser where grp_code=''?'' and item_ser<>case when grp_code is null then ''.'' else grp_code end
union all
select item_ser from itemser where item_ser=''?'' and item_ser<>case when grp_code is null then ''.'' else grp_code end)
order by stn.descr asc '
WHERE mod_name='W_SECONDORY_SALE_GWT' AND field_name='CUST_CODE';
INSERT into MESSAGES (msg_no , msg_str , msg_descr , msg_type , msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMINVPRDST', 'Invalid start and end dates.','Invalid entry start and end date.Entry is possible between entry start and end dates only.', 'E', 'Y', SYSDATE, 'BASE', 'BASE');
---End added by chandrashekar on 11-feb-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