Commit 1a39babb authored by jshinde's avatar jshinde

Request ID:W15HSUN003,Pallet request with stock details


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100039 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 44a9350f
...@@ -418,61 +418,6 @@ ls_tranid := as_tranid; ...@@ -418,61 +418,6 @@ ls_tranid := as_tranid;
end; end;
/ /
--------------------------------------------------------22/1/2016 new requirement for Exempted /BSR Location -------------------------------
delete from pophelp where mod_name='W_PALLET_REQ_STK' AND field_name='PALLET_NO';
commit;
INSERT INTO POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,
chg_term,dist_opt,sql_input,help_option)
values ('PALLET_NO','W_PALLET_REQ_STK','select distinct s.loc_code as pallet_no from stock s where
s.inv_stat in (''AWMS'') and s.site_code=''?'' and s.quantity > 0 and fn_chk_prs(trim(s.loc_code),'''') = 0
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''Q'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''Q'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''Q'')-1) is not null
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''B'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''B'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''B'')-1) is not null
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''X'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''X'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''X'')-1) is not null
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''M'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''M'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''M'')-1) is not null
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''U'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''U'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''U'')-1) is not null
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''P'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''P'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''P'')-1) is not null
union all
select distinct substr(s.loc_code,1,instr(s.loc_code,''S'')-1) from stock s where
s.inv_stat in (''AWMSQ'') and s.site_code=''?'' and s.quantity > 0
and fn_chk_prs(substr(s.loc_code,1,instr(s.loc_code,''S'')-1),'''') = 0 and substr(s.loc_code,1,instr(s.loc_code,''S'')-1) is not null
'
,'User-defined Type',0,0,sysdate,'BASE','BASE','0',':site_code,:site_code,:site_code,:site_code,:site_code,:site_code,:site_code,:site_code',
'0');
-----------------------------------------SITE_CODE IS NOT CONSIDER FOR LOCATION-----------------------------------------------------------
DELETE FROM POPHELP WHERE mod_name='W_PALLET_REQ_STK' AND field_name='LOC_CODE';
commit;
insert into pophelp (field_name,mod_name,sql_str,msg_title,width,height,
chg_date,chg_user,chg_term,dist_opt,help_option)
values ('LOC_CODE','W_PALLET_REQ_STK',
'SELECT LOC_CODE,DESCR FROM LOCATION WHERE INV_STAT NOT IN (''AWMS'',''AWMSQ'')',
'User-defined Type',0,0,sysdate,
'BASE','BASE','0',
'0');
-------------------------------------------------------------------END---------------------------------------------------------------------------- -------------------------------------------------------------------END----------------------------------------------------------------------------
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