Commit 3f0e1c2a authored by dpawar's avatar dpawar

update function


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95325 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 548aa879
...@@ -69,7 +69,7 @@ commit; ...@@ -69,7 +69,7 @@ commit;
-- POD Function start -- 20/JUN/2014 -- POD Function start -- 20/JUN/2014
create or replace create or replace
Function taroqc.fn_pod_chk ( as_saleorder in sorder.sale_order%type) Function fn_pod_chk ( as_saleorder in sorder.sale_order%type)
RETURN number IS RETURN number IS
TYPE InvCurTyp IS REF CURSOR; TYPE InvCurTyp IS REF CURSOR;
TYPE DtlCurTyp IS REF CURSOR; TYPE DtlCurTyp IS REF CURSOR;
...@@ -165,7 +165,12 @@ BEGIN ...@@ -165,7 +165,12 @@ BEGIN
EXIT WHEN dtl_cur%NOTFOUND; EXIT WHEN dtl_cur%NOTFOUND;
if dtl_cur%FOUND then if dtl_cur%FOUND then
if podqty_sum < inv_qty then if podqty_sum < inv_qty then
return 1; cnumber := fn_miscdrcr_chk(ls_invoiceid) ;
if cnumber = 1 then
return 1;
else
goto continue2;
end if;
else else
goto continue2; goto continue2;
end if; end if;
......
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