New Text Document
New Text Document
go
go
go
go
go
create procedure GST_Report_B2CS(
@fromDate date,
@toDate date,
@locGSTN nvarchar(15),
@dspType nvarchar(1) = 'D')
as
begin
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
go
create procedure GST_Report_CDNR(
@fromDate date,
@toDate date,
@locGSTN nvarchar(15),
@dspType nvarchar(1) = 'D')
as
begin
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
go
go
go
go
go
create procedure GST_Report_GSTR2_CDNR(
@fromDate date,
@toDate date,
@locGSTN nvarchar(15),
@dspType nvarchar(1) = 'D')
as
begin
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
declare @numOfGSTN integer
declare @numOfInv integer
declare @numOfOrigInv integer
declare @docTotalSum numeric(19, 6)
declare @taxiableSum numeric(19, 6)
declare @IGSTSum numeric(19, 6)
declare @CGSTSum numeric(19, 6)
declare @SGSTSum numeric(19, 6)
declare @cessSum numeric(19, 6)
declare @IGSTITCSum numeric(19, 6)
declare @CGSTITCSum numeric(19, 6)
declare @SGSTITCSum numeric(19, 6)
declare @CessITCSum numeric(19, 6)
go
go
create procedure GST_Report_GSTR2_CDNUR(
@fromDate date,
@toDate date,
@locGSTN nvarchar(15),
@dspType nvarchar(1) = 'D')
as
begin
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
go
create procedure GST_Report_GSTR2_EXEMP(
@fromDate date,
@toDate date,
@locGSTN nvarchar(15),
@dspType nvarchar(1) = 'D')
as
begin
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
if(@dspType <> 'B' and @dspType <> 'S' and @dspType <> 'D')
begin
set @dspType = 'D'
end
go
go