Commit d04ad1e2 authored by pgole's avatar pgole

Updated SQL


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104366 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d62c06ce
...@@ -59,6 +59,13 @@ begin ...@@ -59,6 +59,13 @@ begin
drcramt:= drcramt * (-1); drcramt:= drcramt * (-1);
end if; end if;
if abs(nvl(:new.amount , 0) - nvl(drcramt , 0)) > 0 then
begin
drcramt := nvl(:new.amount , 0);
end;
end if;
if abs(nvl(:new.amount , 0) - nvl(drcramt , 0)) > 0.999 then if abs(nvl(:new.amount , 0) - nvl(drcramt , 0)) > 0.999 then
begin begin
raise_application_error (-20500,'Credit Note Amount not same as charge back amount CB Amount: (' || drcramt || ') CN Amount: (' || :new.amount || ')'); raise_application_error (-20500,'Credit Note Amount not same as charge back amount CB Amount: (' || drcramt || ') CN Amount: (' || :new.amount || ')');
...@@ -69,8 +76,6 @@ begin ...@@ -69,8 +76,6 @@ begin
end if; end if;
end; end;
-------------------------------05-Jan-2017---------------------------------------------- -------------------------------05-Jan-2017----------------------------------------------
......
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