Commit 126aa8e3 authored by tmahadi's avatar tmahadi

sql updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104180 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 92ff818f
......@@ -39,3 +39,26 @@ GROUP by A.POS_CODE,A.DESCR,A.EMP_CODE,A.TABLE_NO,C.EMP_FNAME,C.EMP_MNAME,C.EMP_
ORDER BY A.POS_CODE,A.DESCR asc ',null,'Position Code',0,0,null,null,null,'0',null,':login_poscode',0,null,null,null,null,null,0,null,null,null,null,null,null,null);
COMMIT;
-------Attachment-------
create or replace
function fn_isAttachment(as_tran_id char,as_refSer char)
return char is
ls_val char(3);
cnt number(10);
begin
select count(*) into cnt from doc_contents
where doc_id in(select doc_id from doc_transaction_link where ref_id=as_tran_id and ref_ser=as_refser);
if cnt > 0 then
ls_val:='YES';
else
ls_val:='NO';
end if;
return ls_val;
end;
/
commit;
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