Commit e68f2ac5 authored by kdabholkar's avatar kdabholkar

added new function for misc-voucher in GSTR2 purchase data.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106587 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0b17aa5c
...@@ -314,6 +314,48 @@ begin ...@@ -314,6 +314,48 @@ begin
end; end;
/ /
create or replace function fn_get_hsn_sac(as_sitecode in site.site_code%type,as_itemcode in item.item_code%type,as_acctcode in accounts.acct_code%type)
return varchar is
ls_hsnno varchar2(20);
begin
if as_itemcode is null or length(trim(as_itemcode)) then
begin
select sac_code into ls_hsnno from accounts
where acct_code = as_acctcode;
exception when others then
ls_hsnno := '';
end;
else
begin
select hsn_no into ls_hsnno from siteitem
where site_code = as_sitecode
and item_code = as_itemcode;
exception when others then
ls_hsnno := '';
end;
if ls_hsnno is null or length(trim(ls_hsnno)) = 0 then
begin
select hsn_no into ls_hsnno from item
where item_code = as_itemcode;
exception when others then
ls_hsnno := '';
end;
end if;
end if;
return ls_hsnno;
end;
/
create or replace function fn_gst_rate_amt(as_trancode in taxtran.tran_code%type,as_tranid in taxtran.tran_id%type, al_lineno number, as_type in char, as_rateoramt in char) create or replace function fn_gst_rate_amt(as_trancode in taxtran.tran_code%type,as_tranid in taxtran.tran_id%type, al_lineno number, as_type in char, as_rateoramt in char)
return number is return number is
lc_rateoramt number(16,2) := 0; lc_rateoramt number(16,2) := 0;
......
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