Commit dbcfa9ff authored by pgole's avatar pgole

Updated SQL


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104345 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d77ec036
......@@ -14,6 +14,7 @@ iscb number(3);
cbnetamt number(14,3);
cbclaumamt number(14,3);
drcramt number(14,3);
diffamt number(14,3);
ll_count number(3) := 0;
begin
if :new.sreturn_no is not null and length(trim(:new.sreturn_no)) > 0 then
......@@ -47,6 +48,8 @@ begin
else
if cbclaumamt < cbnetamt then
drcramt := cbclaumamt;
diffamt := nvl(:new.amount , 0) - nvl(drcramt , 0);
drcramt := drcramt + diffamt;
else
drcramt := cbnetamt;
end if;
......@@ -88,4 +91,10 @@ update obj_itemchange set mandatory = 'Y' where obj_name in ( 'misc_drcr_rcp_cr'
update OBJ_FORMS set qty_col = 'quantity' ,rate_col = 'rate__diff' where win_name = 'w_charge_back_loc' and form_no = 2;
Insert into tenvseq (TAX_ENV,REF_SER,SEQ_NO,TAX_CODE,TAX_TABLE,TAX_TABLE__MARK,USE_MARKING,ACCT_CODE,CCTR_CODE,ACCT_CODE__REVR,CCTR_CODE__REVR)
values ('TC1 ',' ',10,'TC1 ','1S ',null,null,null,null,null,null);
Insert into tenvseq (TAX_ENV,REF_SER,SEQ_NO,TAX_CODE,TAX_TABLE,TAX_TABLE__MARK,USE_MARKING,ACCT_CODE,CCTR_CODE,ACCT_CODE__REVR,CCTR_CODE__REVR)
values ('TC1 ',' ',11,'TC2 ','1S ',null,null,null,null,null,null);
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