Commit a18f527d authored by pgole's avatar pgole

Updated sql component for debit note generation if net_amt< 0


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104239 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 72caac00
......@@ -51,6 +51,11 @@ begin
drcramt := cbnetamt;
end if;
end if;
if :new.drcr_flag = 'D' then
drcramt:= drcramt * (-1);
end if;
if abs(nvl(:new.amount , 0) - nvl(drcramt , 0)) > 0.999 then
begin
raise_application_error (-20500,'Credit Note Amount not same as charge back amount CB Amount: (' || drcramt || ') CN Amount: (' || :new.amount || ')');
......
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