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;
-- POD Function start -- 20/JUN/2014
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
TYPE InvCurTyp IS REF CURSOR;
TYPE DtlCurTyp IS REF CURSOR;
......@@ -165,10 +165,15 @@ BEGIN
EXIT WHEN dtl_cur%NOTFOUND;
if dtl_cur%FOUND then
if podqty_sum < inv_qty then
cnumber := fn_miscdrcr_chk(ls_invoiceid) ;
if cnumber = 1 then
return 1;
else
goto continue2;
end if;
else
goto continue2;
end if;
end if;
end LOOP;
end; --new 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