USE [master]
GO
/****** Object:  Database [EINVOICENETV2]    Script Date: 05/08/2024 2:42:18 PM ******/
CREATE DATABASE [EINVOICENETV2] ON  PRIMARY 
( NAME = N'EINVOICE_data', FILENAME = N'E:\SQLDatas\EINVOICENETV2.mdf' , SIZE = 16768KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'EINVOICE_log', FILENAME = N'E:\SQLDatas\EINVOICENETV2.ldf' , SIZE = 3456KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [EINVOICENETV2] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [EINVOICENETV2].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO
ALTER DATABASE [EINVOICENETV2] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET ARITHABORT OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [EINVOICENETV2] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [EINVOICENETV2] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET  DISABLE_BROKER 
GO
ALTER DATABASE [EINVOICENETV2] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [EINVOICENETV2] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [EINVOICENETV2] SET RECOVERY SIMPLE 
GO
ALTER DATABASE [EINVOICENETV2] SET  MULTI_USER 
GO
ALTER DATABASE [EINVOICENETV2] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [EINVOICENETV2] SET DB_CHAINING OFF 
GO
EXEC sys.sp_db_vardecimal_storage_format N'EINVOICENETV2', N'ON'
GO
USE [EINVOICENETV2]
GO
/****** Object:  UserDefinedFunction [dbo].[fnNumpadLeft]    Script Date: 05/08/2024 2:42:18 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 CREATE function [dbo].[fnNumpadLeft] ( @input numeric(18,0),@pad tinyint)
returns varchar(250)
as begin
	declare @numstr varchar(250)
	set @numstr = LTRIM(@input)
	if (@pad > LEN(@numstr))
	set @numstr = REPLICATE('0',@pad - LEN(@numstr))  + @numstr
	return @numstr
end 
GO
/****** Object:  UserDefinedFunction [dbo].[Num2Text]    Script Date: 05/08/2024 2:42:18 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 CREATE FUNCTION [dbo].[Num2Text](@Number bigint )
RETURNS nvarchar(4000) AS 
BEGIN 
-- trường hợp số tiền đưa vào âm cho loại hóa đơn điều chỉnh giảm thì chuyển tiền về dương
if @Number<0 
begin
	set @Number=@Number*-1
end

DECLARE @sNumber nvarchar(4000)
DECLARE @Return	nvarchar(4000)
DECLARE @mLen  numeric(23,18)
DECLARE @i  int

DECLARE @mDigit int
DECLARE @mGroup numeric(23,18)
DECLARE @mTemp nvarchar(4000)
DECLARE @mNumText nvarchar(4000)

SELECT @sNumber=LTRIM(convert( varchar,@Number))
SELECT @mLen = Len(@sNumber)

SELECT @i=1
SELECT @mTemp=''

WHILE @i <= @mLen
BEGIN

SELECT @mDigit=SUBSTRING(@sNumber, @i, 1)

IF @mDigit=0 SELECT @mNumText=N'không'
ELSE
BEGIN
IF @mDigit=1 SELECT @mNumText=N'một'
ELSE
IF @mDigit=2 SELECT @mNumText=N'hai'
ELSE
IF @mDigit=3 SELECT @mNumText=N'ba'
ELSE
IF @mDigit=4 SELECT @mNumText=N'bốn'
ELSE
IF @mDigit=5 SELECT @mNumText=N'năm'
ELSE
IF @mDigit=6 SELECT @mNumText=N'sáu'
ELSE
IF @mDigit=7 SELECT @mNumText=N'bảy'
ELSE
IF @mDigit=8 SELECT @mNumText=N'tám'
ELSE
IF @mDigit=9 SELECT @mNumText=N'chín'
END

SELECT @mTemp = @mTemp + ' ' + @mNumText

IF (@mLen = @i) BREAK

Select @mGroup=(@mLen - @i) % 9

IF @mGroup=0
BEGIN
SELECT @mTemp = @mTemp + N' tỷ'

If SUBSTRING(@sNumber, @i + 1, 3) = N'000' 
SELECT @i = @i + 3

If SUBSTRING(@sNumber, @i + 1, 3) = N'000' 
SELECT @i = @i + 3

If SUBSTRING(@sNumber, @i + 1, 3) = N'000' 
SELECT @i = @i + 3
END 
ELSE
IF @mGroup=6
BEGIN
SELECT @mTemp = @mTemp + N' triệu'

If SUBSTRING(@sNumber, @i + 1, 3) = N'000' 
SELECT @i = @i + 3

If SUBSTRING(@sNumber, @i + 1, 3) = N'000' 
SELECT @i = @i + 3
END
ELSE
IF @mGroup=3
BEGIN
SELECT @mTemp = @mTemp + N' nghìn'

If SUBSTRING(@sNumber, @i + 1, 3) = N'000' 
SELECT @i = @i + 3

END
ELSE
BEGIN

Select @mGroup=(@mLen - @i) % 3

IF @mGroup=2	
SELECT @mTemp = @mTemp + N' trăm'
ELSE
IF @mGroup=1
SELECT @mTemp = @mTemp + N' mươi'	
END


SELECT @i=@i+1
END

--'Loại bỏ trường hợp x00

SELECT @mTemp = Replace(@mTemp, N'không mươi không', '')

--'Loại bỏ trường hợp 00x

SELECT @mTemp = Replace(@mTemp, N'không mươi ', N'linh ')

--'Loại bỏ trường hợp x0, x>=2

SELECT @mTemp = Replace(@mTemp, N'mươi không', N'mươi')

--'Fix trường hợp 10

SELECT @mTemp = Replace(@mTemp, N'một mươi', N'mười')

--'Fix trường hợp x4, x>=2

SELECT @mTemp = Replace(@mTemp, N'mươi bốn', N'mươi tư')

--'Fix trường hợp x04 

SELECT @mTemp = Replace(@mTemp, N'linh bốn', N'linh tư')

--'Fix trường hợp x5, x>=2

SELECT @mTemp = Replace(@mTemp, N'mươi năm', N'mươi nhăm')

--'Fix trường hợp x1, x>=2

SELECT @mTemp = Replace(@mTemp, N'mươi một', N'mươi mốt')

--'Fix trường hợp x15

SELECT @mTemp = Replace(@mTemp, N'mười năm', N'mười lăm')

--'Bỏ ký tự space

SELECT @mTemp = LTrim(@mTemp)

--'Ucase ký tự đầu tiên

SELECT @Return=UPPER(Left(@mTemp, 1)) + SUBSTRING(@mTemp,2, 4000)

RETURN @Return
END
GO
/****** Object:  UserDefinedFunction [dbo].[STR_SPLITS]    Script Date: 05/08/2024 2:42:18 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[STR_SPLITS](@string nvarchar(max),@split_Char nvarchar(10))    
RETURNS     
@RETURN_TABLE TABLE (id int identity(1,1), name nvarchar(500))    
AS    
BEGIN    
declare @pos int,    
  @name as nvarchar(255)    
while CHARINDEX(@split_Char, @string) > 0    
begin    
 select @pos = CHARINDEX(@split_Char,@string)    
 select @name = SUBSTRING(@string,1,@pos-1)    
 insert into @RETURN_TABLE select @name    
 select @string = SUBSTRING(@string,@pos+1,len(@string)-@pos)    
end    
insert into @RETURN_TABLE    
select @string    
return    
END 
GO
/****** Object:  UserDefinedFunction [dbo].[TCVN2Unicode]    Script Date: 05/08/2024 2:42:18 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[TCVN2Unicode] (@strInput VARCHAR(4000))
RETURNS NVARCHAR(4000)
AS
BEGIN
    DECLARE @TCVN CHAR(671)
    DECLARE @UNICODE CHAR(671)
    SET @TCVN = ',184 ,181 ,182 ,183 ,185 ,168 ,190 ,187 ,188 ,189 ,198 ,169 ,202 ,199 ,200 ,201 ,203 ,208 ,204 ,206 ,207 ,209 ,170 ,213 ,210 ,211 ,212 ,214 ,221 ,215 ,216 ,220 ,222 ,227 ,223 ,225 ,226 ,228 ,171 ,232 ,229 ,230 ,231 ,233 ,172 ,237 ,234 ,235 ,236 ,238 ,243 ,239 ,241 ,242 ,244 ,173 ,248 ,245 ,246 ,247 ,249 ,253 ,250 ,251 ,252 ,254 ,174 ,184 ,181 ,182 ,183 ,185 ,161 ,190 ,187 ,188 ,189 ,198 ,162 ,202 ,199 ,200 ,201 ,203 ,208 ,204 ,206 ,207 ,209 ,163 ,213 ,210 ,211 ,212 ,214 ,221 ,215 ,216 ,220 ,222 ,227 ,223 ,225 ,226 ,228 ,164 ,232 ,229 ,230 ,231 ,233 ,165 ,237 ,234 ,235 ,236 ,238 ,243 ,239 ,241 ,242 ,244 ,166 ,248 ,245 ,246 ,247 ,249 ,253 ,250 ,251 ,252 ,254 ,167 ,'
    SET @UNICODE = ',225 ,224 ,7843,227 ,7841,259 ,7855,7857,7859,7861,7863,226 ,7845,7847,7849,7851,7853,233 ,232 ,7867,7869,7865,234 ,7871,7873,7875,7877,7879,237 ,236 ,7881,297 ,7883,243 ,242 ,7887,245 ,7885,244 ,7889,7891,7893,7895,7897,417 ,7899,7901,7903,7905,7907,250 ,249 ,7911,361 ,7909,432 ,7913,7915,7917,7919,7921,253 ,7923,7927,7929,7925,273 ,193 ,192 ,7842,195 ,7840,258 ,7854,7856,7858,7860,7862,194 ,7844,7846,7848,7850,7852,201 ,200 ,7866,7868,7864,202 ,7870,7872,7874,7876,7878,205 ,204 ,7880,296 ,7882,211 ,210 ,7886,213 ,7884,212 ,7888,7890,7892,7894,7896,416 ,7898,7900,7902,7904,7906,218 ,217 ,7910,360 ,7908,431 ,7912,7914,7916,7918,7920,221 ,7922,7926,7928,7924,272 ,'
    IF @strInput IS NULL RETURN NULL
    IF @strInput = '' RETURN NULL
    DECLARE @strOutput NVARCHAR(4000)
    DECLARE @COUNTER INT
    DECLARE @POSITION INT
    SET @COUNTER = 1
    SET @strOutput = ''
    WHILE (@COUNTER <= LEN(@strInput))
    BEGIN
        SET @POSITION = CHARINDEX(','+CONVERT(CHAR(4),ASCII(SUBSTRING(@strInput, @COUNTER, 1)))+',', @TCVN, 1)
        IF @POSITION > 0
            SET @strOutput = @strOutput + NCHAR(CONVERT(INT,SUBSTRING(@UNICODE, @POSITION+1, 4)))
        ELSE
            SET @strOutput = @strOutput + SUBSTRING(@strInput, @COUNTER, 1)
        SET @COUNTER = @COUNTER + 1
    END 
    RETURN @strOutput
END


GO
/****** Object:  UserDefinedFunction [dbo].[Unicode2TCVN]    Script Date: 05/08/2024 2:42:18 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[Unicode2TCVN] (@strInput NVARCHAR(4000))
RETURNS VARCHAR(4000)
AS
BEGIN
    DECLARE @TCVN CHAR(671)
    DECLARE @UNICODE CHAR(671)
    SET @TCVN = ',184 ,181 ,182 ,183 ,185 ,168 ,190 ,187 ,188 ,189 ,198 ,169 ,202 ,199 ,200 ,201 ,203 ,208 ,204 ,206 ,207 ,209 ,170 ,213 ,210 ,211 ,212 ,214 ,221 ,215 ,216 ,220 ,222 ,227 ,223 ,225 ,226 ,228 ,171 ,232 ,229 ,230 ,231 ,233 ,172 ,237 ,234 ,235 ,236 ,238 ,243 ,239 ,241 ,242 ,244 ,173 ,248 ,245 ,246 ,247 ,249 ,253 ,250 ,251 ,252 ,254 ,174 ,184 ,181 ,182 ,183 ,185 ,161 ,190 ,187 ,188 ,189 ,198 ,162 ,202 ,199 ,200 ,201 ,203 ,208 ,204 ,206 ,207 ,209 ,163 ,213 ,210 ,211 ,212 ,214 ,221 ,215 ,216 ,220 ,222 ,227 ,223 ,225 ,226 ,228 ,164 ,232 ,229 ,230 ,231 ,233 ,165 ,237 ,234 ,235 ,236 ,238 ,243 ,239 ,241 ,242 ,244 ,166 ,248 ,245 ,246 ,247 ,249 ,253 ,250 ,251 ,252 ,254 ,167 ,'
    SET @UNICODE = ',225 ,224 ,7843,227 ,7841,259 ,7855,7857,7859,7861,7863,226 ,7845,7847,7849,7851,7853,233 ,232 ,7867,7869,7865,234 ,7871,7873,7875,7877,7879,237 ,236 ,7881,297 ,7883,243 ,242 ,7887,245 ,7885,244 ,7889,7891,7893,7895,7897,417 ,7899,7901,7903,7905,7907,250 ,249 ,7911,361 ,7909,432 ,7913,7915,7917,7919,7921,253 ,7923,7927,7929,7925,273 ,193 ,192 ,7842,195 ,7840,258 ,7854,7856,7858,7860,7862,194 ,7844,7846,7848,7850,7852,201 ,200 ,7866,7868,7864,202 ,7870,7872,7874,7876,7878,205 ,204 ,7880,296 ,7882,211 ,210 ,7886,213 ,7884,212 ,7888,7890,7892,7894,7896,416 ,7898,7900,7902,7904,7906,218 ,217 ,7910,360 ,7908,431 ,7912,7914,7916,7918,7920,221 ,7922,7926,7928,7924,272 ,'
    IF @strInput IS NULL RETURN NULL
    IF @strInput = '' RETURN NULL
    DECLARE @strOutput VARCHAR(4000)
    DECLARE @COUNTER INT
    DECLARE @POSITION INT
    SET @COUNTER = 1
    SET @strOutput = ''
    WHILE (@COUNTER <= LEN(@strInput))
    BEGIN
        SET @POSITION = CHARINDEX(','+CONVERT(CHAR(4),UNICODE(SUBSTRING(@strInput, @COUNTER, 1)))+',', @UNICODE, 1)
        IF @POSITION > 0
            SET @strOutput = @strOutput + CHAR(CONVERT(INT,SUBSTRING(@TCVN, @POSITION+1, 4)))
        ELSE
            SET @strOutput = @strOutput + SUBSTRING(@strInput, @COUNTER, 1)
        SET @COUNTER = @COUNTER + 1
    END
    RETURN @strOutput
END


GO
/****** Object:  Table [dbo].[ANH]    Script Date: 05/08/2024 2:42:18 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ANH](
	[ANHID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[CODE] [nvarchar](100) NOT NULL,
	[TEN_FILE] [nvarchar](255) NULL,
	[DU_LIEU1] [image] NULL,
	[DU_LIEU2] [image] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
 CONSTRAINT [PK_ANH] PRIMARY KEY CLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_DOITAC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_DOITAC](
	[DAUVAO_DOITACID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_SO_THUE] [nvarchar](50) NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](400) NULL,
	[NGUOI_GIAO_DICH] [nvarchar](100) NULL,
	[DIEN_THOAI] [nvarchar](50) NULL,
	[EMAIL] [nvarchar](100) NULL,
	[FAX] [nvarchar](100) NULL,
	[NGAN_HANG_TEN] [nvarchar](200) NULL,
	[NGAN_HANG_TAI_KHOAN] [nvarchar](50) NULL,
	[TRANG_THAI] [int] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGAY_CAP_NHAT] [datetime] NULL,
	[NGAY_DUNG_HOAT_DONG] [datetime] NULL,
 CONSTRAINT [PK_DAUVAO_DOITAC] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_DOITACID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_HOADON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_HOADON](
	[DAUVAO_HOADONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GUID_DAUVAO_HOADON] [nvarchar](255) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NOT NULL,
	[KY_HIEU] [nvarchar](50) NOT NULL,
	[MAU_SO] [nvarchar](50) NOT NULL,
	[NGAY_HOA_DON] [datetime] NOT NULL,
	[MA_NT] [nvarchar](50) NOT NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NULL,
	[BEN_MUA_MA_DV] [nvarchar](50) NULL,
	[BEN_BEN_TEN_DV] [nvarchar](500) NULL,
	[BEN_BAN_TEN_DV] [nvarchar](255) NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](255) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_FAX] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[BEN_MUA_MA] [nvarchar](50) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](255) NULL,
	[BEN_MUA_HO_TEN] [nvarchar](255) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_FAX] [nvarchar](255) NULL,
	[BEN_MUA_EMAIL] [varchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_DIA_CHI] [nvarchar](255) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_0] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_5] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_10] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_0_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_5_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_10_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU] [nvarchar](255) NULL,
	[TONG_THANH_TOAN_BANG_CHU_NT] [nvarchar](255) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_5] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_CK] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_CK] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_0_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_5_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_10_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_10] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_SAU_CK_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_SAU_CK_TONG] [numeric](23, 8) NULL,
	[IS_TT68] [int] NULL,
	[SO_XAC_THUC] [nvarchar](250) NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NULL,
	[SO_XAC_THUC_GOC] [nvarchar](50) NULL,
	[DAUVAO_HOADONID_GOC] [numeric](18, 0) NULL,
	[SO_HOA_DON_GOC] [nvarchar](50) NULL,
	[KY_HIEU_GOC] [nvarchar](50) NULL,
	[MAU_SO_GOC] [nvarchar](50) NULL,
	[NGAY_HOA_DON_GOC] [datetime] NULL,
	[TEN_HTTT] [nvarchar](50) NULL,
 CONSTRAINT [PK_DAUVAO_HOADONID] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_HOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_HOADON_FILE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_HOADON_FILE](
	[DAUVAO_HOADON_FILEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DAUVAO_HOADONID] [numeric](18, 0) NULL,
	[NOI_DUNG] [image] NULL,
	[NOI_DUNG_BANG_KE] [image] NULL,
 CONSTRAINT [PK_DAUVAO_HOADON_FILE] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_HOADON_FILEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_HOADON_HANG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_HOADON_HANG](
	[DAUVAO_HOADON_HANGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DAUVAO_HOADONID] [numeric](18, 0) NULL,
	[GUID_DAUVAO_HOADON] [varchar](50) NULL,
	[IS_DIEU_CHINH] [int] NULL,
	[IS_KHUYEN_MAI] [int] NULL,
	[STT] [numeric](18, 0) NULL,
	[MA_HANG] [nvarchar](50) NULL,
	[TEN_HANG] [nvarchar](500) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[TEN_DVT] [nvarchar](255) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[SO_LUONG_NHAP] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[DON_GIA_NT] [numeric](23, 8) NULL,
	[DON_GIA_SAU_THUE] [decimal](23, 8) NULL,
	[DON_GIA_SAU_THUE_NT] [decimal](23, 8) NULL,
	[VAT] [numeric](23, 8) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[VAT_TIEN_NT] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN_NT] [numeric](23, 8) NULL,
	[CHIET_KHAU_PHAN_TRAM] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_NT] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_THUE] [decimal](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_KHO] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](100) NULL,
	[SO_LUONG_GOC] [numeric](23, 8) NULL,
	[SO_LUONG_NHAP_GOC] [numeric](23, 8) NULL,
	[DON_GIA_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_GOC] [numeric](23, 8) NULL,
	[DON_GIA_NT_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_NT_GOC] [numeric](23, 8) NULL,
	[MA_LOAI_HANG] [nvarchar](50) NULL,
	[GUID_DHOADON_HANG] [varchar](100) NULL,
	[THANH_TIEN_SAU_THUE_NT] [decimal](23, 8) NULL,
	[THANH_TIEN_SAU_CK] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_CK_NT] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_CK_GOC] [numeric](23, 8) NULL,
	[TINH_CHAT] [int] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[SLOAI_DIEU_CHINHID] [int] NULL,
	[TY_GIA] [decimal](18, 6) NULL,
	[MA_NT] [varchar](3) NULL,
 CONSTRAINT [PK_DAUVAO_HOADON_HANG] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_HOADON_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_HOADON_VAT_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_HOADON_VAT_EXTENSION](
	[DAUVAO_HOADON_VAT_EXTENSIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DAUVAO_HOADONID] [decimal](18, 0) NOT NULL,
	[GUID_DAUVAO_HOADON] [varchar](50) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
 CONSTRAINT [PK_DAUVAO_HOADON_VAT_EXTENSION] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_HOADON_VAT_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_HOADON_XML_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_HOADON_XML_EXTENSION](
	[DAUVAO_HOADON_XML_EXTENSIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DAUVAO_HOADONID] [numeric](18, 0) NULL,
	[GUID_DAUVAO_HOADON] [nvarchar](255) NULL,
	[VUNG] [numeric](18, 0) NULL,
	[TEN_VUNG] [nvarchar](255) NULL,
	[TEN_THE] [nvarchar](255) NULL,
	[LOAI_DU_LIEU] [nvarchar](50) NULL,
	[GIA_TRI] [nvarchar](500) NULL,
 CONSTRAINT [PK_DAUVAO_HOADON_XML_EXTENSIONID] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_HOADON_XML_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DAUVAO_XSLT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DAUVAO_XSLT](
	[DAUVAO_XSLTID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[TEMPLATE_XSLT] [ntext] NULL,
 CONSTRAINT [PK_DAUVAO_XSLT] PRIMARY KEY CLUSTERED 
(
	[DAUVAO_XSLTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DBAOCAO_SDHD]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DBAOCAO_SDHD](
	[DBAOCAO_SDHDID] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[QUY] [numeric](10, 0) NULL,
	[NAM] [numeric](10, 0) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[MA_DV] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[NGUOI_DAI_DIEN] [nvarchar](255) NULL,
	[NGAY] [datetime] NULL,
	[NGUOI_LAP_BIEU] [nvarchar](255) NULL,
	[TU_NGAY] [nvarchar](50) NULL,
	[DEN_NGAY] [nvarchar](50) NULL,
	[NOI_DUNG] [ntext] NULL,
	[IS_THANG] [int] NULL,
	[THANG] [int] NULL,
	[LOAI_BAO_CAO] [int] NULL,
 CONSTRAINT [PK_DBAOCAO_SDHD] PRIMARY KEY CLUSTERED 
(
	[DBAOCAO_SDHDID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DBAOCAO_SDHD_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DBAOCAO_SDHD_CHITIET](
	[DBAOCAO_SDHD_CHITIETID] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[DBAOCAO_SDHDID] [numeric](10, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[TEN_LOAI_HOA_DON] [nvarchar](255) NULL,
	[KY_HIEU_MAU_HD] [nvarchar](255) NULL,
	[KY_HIEU_HD] [nvarchar](255) NULL,
	[TONG_SO] [numeric](10, 0) NULL,
	[TON_DAU_TU_SO] [numeric](10, 0) NULL,
	[TON_DAU_DEN_SO] [numeric](10, 0) NULL,
	[PHAT_HANH_TU_SO] [numeric](10, 0) NULL,
	[PHAT_HANH_DEN_SO] [numeric](10, 0) NULL,
	[SU_DUNG_TU_SO] [numeric](10, 0) NULL,
	[SU_DUNG_DEN_SO] [numeric](10, 0) NULL,
	[SU_DUNG_TONG] [numeric](10, 0) NULL,
	[TRONG_DO_SU_DUNG] [numeric](10, 0) NULL,
	[TRONG_DO_XOA_SO_LUONG] [numeric](10, 0) NULL,
	[TRONG_DO_XOA_SO] [varchar](8000) NULL,
	[TRONG_DO_MAT_SO_LUONG] [numeric](10, 0) NULL,
	[TRONG_DO_MAT_SO] [varchar](8000) NULL,
	[TRONG_DO_HUY_SO_LUONG] [numeric](10, 0) NULL,
	[TRONG_DO_HUY_SO] [varchar](8000) NULL,
	[TON_CUOI_KY_TU_SO] [nvarchar](255) NULL,
	[TON_CUOI_KY_DEN_SO] [nvarchar](255) NULL,
	[TON_CUOI_KY_SO_LUONG] [numeric](10, 0) NULL,
 CONSTRAINT [PK_DBAOCAO_SDHD_CHITIET] PRIMARY KEY CLUSTERED 
(
	[DBAOCAO_SDHD_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCAU_HINH_COT_MAC_DINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCAU_HINH_COT_MAC_DINH](
	[DCAU_HINH_COT_MAC_DINHID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[LOAI] [nvarchar](50) NULL,
	[TEN_COT] [nvarchar](100) NULL,
	[KIEU_DU_LIEU] [nvarchar](255) NULL,
	[MO_TA] [nvarchar](255) NULL,
	[BANG_DU_LIEU] [nvarchar](100) NULL,
	[COT_EXCEL_MAC_DINH] [nvarchar](50) NULL,
	[IS_KEY] [int] NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_DCAU_HINH_COT_MAC_DINH] PRIMARY KEY CLUSTERED 
(
	[DCAU_HINH_COT_MAC_DINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCAU_HINH_COT_MO_RONG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCAU_HINH_COT_MO_RONG](
	[DCAU_HINH_COT_MO_RONGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[STT] [int] NULL,
	[TEN_COT] [nvarchar](255) NULL,
	[TEN_HIEN_THI] [nvarchar](255) NULL,
	[TEN_BANG] [nvarchar](50) NOT NULL,
	[CHON] [int] NULL,
	[FORMAT] [nvarchar](50) NULL,
	[FieldLeft] [int] NULL,
	[ColorName] [nvarchar](255) NULL,
	[colWidth] [int] NULL,
	[colFix] [int] NULL,
	[colDefault] [int] NULL,
	[SplitIndex] [int] NULL,
	[Is_Extension] [int] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[DHOADON_COLUMN] [nvarchar](255) NULL,
 CONSTRAINT [PK_DCAU_HINH_COT_MO_RONG] PRIMARY KEY CLUSTERED 
(
	[DCAU_HINH_COT_MO_RONGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCAUHINH_MORONG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCAUHINH_MORONG](
	[DCAUHINH_MORONGID] [int] IDENTITY(1,1) NOT NULL,
	[BANG_DU_LIEU] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[EXT_VARCHAR1_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR2_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR3_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR4_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR5_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR6_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR7_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR8_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR9_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER1_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER2_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER3_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER4_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER5_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER6_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER7_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER8_LABEL] [nvarchar](100) NULL,
	[EXT_NUMBER9_LABEL] [nvarchar](100) NULL,
	[EXT_DATE1_LABEL] [nvarchar](100) NULL,
	[EXT_DATE2_LABEL] [nvarchar](100) NULL,
	[EXT_DATE3_LABEL] [nvarchar](100) NULL,
	[EXT_DATE4_LABEL] [nvarchar](100) NULL,
	[EXT_DATE5_LABEL] [nvarchar](100) NULL,
	[EXT_DATE6_LABEL] [nvarchar](100) NULL,
	[EXT_DATE7_LABEL] [nvarchar](100) NULL,
	[EXT_DATE8_LABEL] [nvarchar](100) NULL,
	[EXT_DATE9_LABEL] [nvarchar](100) NULL,
	[EXT_VARCHAR1_ACTIVE] [int] NULL,
	[EXT_VARCHAR2_ACTIVE] [int] NULL,
	[EXT_VARCHAR3_ACTIVE] [int] NULL,
	[EXT_VARCHAR4_ACTIVE] [int] NULL,
	[EXT_VARCHAR5_ACTIVE] [int] NULL,
	[EXT_VARCHAR6_ACTIVE] [int] NULL,
	[EXT_VARCHAR7_ACTIVE] [int] NULL,
	[EXT_VARCHAR8_ACTIVE] [int] NULL,
	[EXT_VARCHAR9_ACTIVE] [int] NULL,
	[EXT_NUMBER1_ACTIVE] [int] NULL,
	[EXT_NUMBER2_ACTIVE] [int] NULL,
	[EXT_NUMBER3_ACTIVE] [int] NULL,
	[EXT_NUMBER4_ACTIVE] [int] NULL,
	[EXT_NUMBER5_ACTIVE] [int] NULL,
	[EXT_NUMBER6_ACTIVE] [int] NULL,
	[EXT_NUMBER7_ACTIVE] [int] NULL,
	[EXT_NUMBER8_ACTIVE] [int] NULL,
	[EXT_NUMBER9_ACTIVE] [int] NULL,
	[EXT_DATE6_ACTIVE] [int] NULL,
	[EXT_DATE7_ACTIVE] [int] NULL,
	[EXT_DATE8_ACTIVE] [int] NULL,
	[EXT_DATE9_ACTIVE] [int] NULL,
	[EXT_DATE1_ACTIVE] [int] NULL,
	[EXT_DATE2_ACTIVE] [int] NULL,
	[EXT_DATE3_ACTIVE] [int] NULL,
	[EXT_DATE4_ACTIVE] [int] NULL,
	[EXT_DATE5_ACTIVE] [int] NULL,
	[EXT_VARCHAR1_ORDER_NO] [int] NULL,
	[EXT_VARCHAR2_ORDER_NO] [int] NULL,
	[EXT_VARCHAR3_ORDER_NO] [int] NULL,
	[EXT_VARCHAR4_ORDER_NO] [int] NULL,
	[EXT_VARCHAR5_ORDER_NO] [int] NULL,
	[EXT_VARCHAR6_ORDER_NO] [int] NULL,
	[EXT_VARCHAR7_ORDER_NO] [int] NULL,
	[EXT_VARCHAR8_ORDER_NO] [int] NULL,
	[EXT_VARCHAR9_ORDER_NO] [int] NULL,
	[EXT_NUMBER1_ORDER_NO] [int] NULL,
	[EXT_NUMBER2_ORDER_NO] [int] NULL,
	[EXT_NUMBER3_ORDER_NO] [int] NULL,
	[EXT_NUMBER4_ORDER_NO] [int] NULL,
	[EXT_NUMBER5_ORDER_NO] [int] NULL,
	[EXT_NUMBER6_ORDER_NO] [int] NULL,
	[EXT_NUMBER7_ORDER_NO] [int] NULL,
	[EXT_NUMBER8_ORDER_NO] [int] NULL,
	[EXT_NUMBER9_ORDER_NO] [int] NULL,
	[EXT_DATE1_ORDER_NO] [int] NULL,
	[EXT_DATE2_ORDER_NO] [int] NULL,
	[EXT_DATE3_ORDER_NO] [int] NULL,
	[EXT_DATE4_ORDER_NO] [int] NULL,
	[EXT_DATE5_ORDER_NO] [int] NULL,
	[EXT_DATE6_ORDER_NO] [int] NULL,
	[EXT_DATE7_ORDER_NO] [int] NULL,
	[EXT_DATE8_ORDER_NO] [int] NULL,
	[EXT_DATE9_ORDER_NO] [int] NULL,
	[EXT_VARCHAR1_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR2_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR3_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR4_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR5_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR6_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR7_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR8_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR9_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER1_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER2_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER3_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER4_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER5_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER6_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER7_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER8_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER9_IS_REQUIRED] [int] NULL,
	[EXT_DATE1_IS_REQUIRED] [int] NULL,
	[EXT_DATE2_IS_REQUIRED] [int] NULL,
	[EXT_DATE3_IS_REQUIRED] [int] NULL,
	[EXT_DATE4_IS_REQUIRED] [int] NULL,
	[EXT_DATE5_IS_REQUIRED] [int] NULL,
	[EXT_DATE6_IS_REQUIRED] [int] NULL,
	[EXT_DATE7_IS_REQUIRED] [int] NULL,
	[EXT_DATE8_IS_REQUIRED] [int] NULL,
	[EXT_DATE9_IS_REQUIRED] [int] NULL,
	[EXT_VARCHAR1_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR2_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR3_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR4_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR5_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR6_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR7_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR8_FORMAT] [nvarchar](50) NULL,
	[EXT_VARCHAR9_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER1_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER2_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER3_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER4_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER5_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER6_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER7_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER8_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER9_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE1_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE2_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE3_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE4_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE5_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE6_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE7_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE8_FORMAT] [nvarchar](50) NULL,
	[EXT_DATE9_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER10_ACTIVE] [int] NULL,
	[EXT_NUMBER11_ACTIVE] [int] NULL,
	[EXT_NUMBER12_ACTIVE] [int] NULL,
	[EXT_NUMBER13_ACTIVE] [int] NULL,
	[EXT_NUMBER14_ACTIVE] [int] NULL,
	[EXT_NUMBER15_ACTIVE] [int] NULL,
	[EXT_NUMBER10_ORDER_NO] [int] NULL,
	[EXT_NUMBER11_ORDER_NO] [int] NULL,
	[EXT_NUMBER12_ORDER_NO] [int] NULL,
	[EXT_NUMBER13_ORDER_NO] [int] NULL,
	[EXT_NUMBER14_ORDER_NO] [int] NULL,
	[EXT_NUMBER15_ORDER_NO] [int] NULL,
	[EXT_NUMBER10_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER11_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER12_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER13_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER14_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER15_IS_REQUIRED] [int] NULL,
	[EXT_NUMBER10_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER11_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER12_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER13_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER14_FORMAT] [nvarchar](50) NULL,
	[EXT_NUMBER15_FORMAT] [nvarchar](50) NULL,
 CONSTRAINT [PK_DCAUHINH_MORONG] PRIMARY KEY CLUSTERED 
(
	[DCAUHINH_MORONGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCAUHINH_MORONG_NHAPLIEU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCAUHINH_MORONG_NHAPLIEU](
	[DCAUHINH_MORONG_NHAPLIEUID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[MA_TIEU_CHI] [nvarchar](50) NOT NULL,
	[STT] [int] NULL,
	[KIEU_DU_LIEU] [nvarchar](50) NOT NULL,
	[TEN_TIEU_CHI] [nvarchar](100) NULL,
	[TEN_THE_XML] [nvarchar](50) NULL,
	[LOAI_BANG] [nvarchar](100) NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_DCAUHINH_MORONG_NHAPLIEU] PRIMARY KEY CLUSTERED 
(
	[DCAUHINH_MORONG_NHAPLIEUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCAUHINHCKS]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCAUHINHCKS](
	[CAUHINHCKSID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[leDoc] [int] NULL,
	[leNgang] [int] NULL,
	[trang] [int] NULL,
	[image_DATA] [image] NULL,
	[image_NAME] [nvarchar](255) NULL,
	[renderMode] [int] NULL,
	[signHeight] [int] NULL,
	[signWidth] [int] NULL,
 CONSTRAINT [PK_CAUHINHCKS] PRIMARY KEY CLUSTERED 
(
	[CAUHINHCKSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCHINHANH_PHAN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCHINHANH_PHAN](
	[DCHINHANH_PHANID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_CHITIETID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[LAN_PHAN] [numeric](18, 0) NULL,
	[NGAY_PHAN] [datetime] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
 CONSTRAINT [PK_CHINHANH_PHAN] PRIMARY KEY CLUSTERED 
(
	[DCHINHANH_PHANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCHINHANH_PHAN_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCHINHANH_PHAN_CHITIET](
	[DCHINHANH_PHAN_CHITIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DCHINHANH_PHANID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[SO_LUONG] [numeric](18, 0) NULL,
	[TU_SO] [numeric](18, 0) NULL,
	[DEN_SO] [numeric](18, 0) NULL,
	[GHI_CHU] [char](10) NULL,
	[TEN_CN] [nvarchar](255) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[DPHATHANH_CHITIETID] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_DCHINHANH_PHAN_CHITIET] PRIMARY KEY CLUSTERED 
(
	[DCHINHANH_PHAN_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_BIEU_MAU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_BIEU_MAU](
	[CONFIG_BIEU_MAUID] [int] IDENTITY(1,1) NOT NULL,
	[LOAI_BIEU_MAU] [int] NULL,
	[FORM_NAME] [nvarchar](50) NULL,
	[CHON] [int] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[FILE_PATH] [nvarchar](550) NULL,
 CONSTRAINT [PK_CONFIG_BIEU_MAU] PRIMARY KEY CLUSTERED 
(
	[CONFIG_BIEU_MAUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_BIEU_MAU_MAPPING]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_BIEU_MAU_MAPPING](
	[CONFIG_BIEU_MAU_MAPPINGID] [int] IDENTITY(1,1) NOT NULL,
	[FORM_NAME] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[LOAI_BANG_DL] [int] NULL,
	[TEN_COT_BM] [nvarchar](50) NULL,
	[TEN_TRUONG_EINVOICE] [nvarchar](250) NULL,
	[KIEU_DU_LIEU] [nvarchar](50) NOT NULL,
	[GIA_TRI_MAC_DINH] [nvarchar](250) NULL,
 CONSTRAINT [PK_CONFIG_BIEU_MAU_MAPPING] PRIMARY KEY CLUSTERED 
(
	[CONFIG_BIEU_MAU_MAPPINGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_EMAIL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_EMAIL](
	[DCONFIG_EMAILID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SMTP] [nvarchar](400) NULL,
	[EMAIL] [nvarchar](400) NULL,
	[USER_NAME] [nvarchar](400) NULL,
	[PASSWORD] [nvarchar](400) NULL,
	[ENABLE_SSL] [nvarchar](50) NULL,
	[URL_WEB_POST] [nvarchar](400) NULL,
	[IS_SU_DUNG] [varchar](50) NULL,
	[PORT] [numeric](18, 0) NULL,
	[EMAIL_TEMPLATE_DATA] [ntext] NULL,
	[EMAIL_TEMPLATE_FILE] [nvarchar](255) NULL,
	[SUPPLIER] [nvarchar](50) NULL,
	[EMAIL_SUBJECT] [nvarchar](400) NULL,
	[EMAIL_TEMPLATE_DATA_BIENBAN] [ntext] NULL,
	[EMAIL_SUBJECT_BIENBAN] [nvarchar](4000) NULL,
	[EMAIL_TEMPLATE_FILE_BIENBAN] [nvarchar](255) NULL,
	[EMAIL_TYPE] [int] NULL,
	[TNCN_TEMPLATE_HUY] [ntext] NULL,
	[TNCN_SUBJECT_HUY] [nvarchar](500) NULL,
	[TNCN_TEMPLATE_FILE] [nvarchar](255) NULL,
	[BCC_EMAIL] [nvarchar](400) NULL,
 CONSTRAINT [PK_DCONFIG_EMAIL] PRIMARY KEY CLUSTERED 
(
	[DCONFIG_EMAILID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_SMS]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_SMS](
	[DCONFIG_SMSID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV_CUNG_CAP] [nvarchar](50) NULL,
	[TEN_DV_CUNG_CAP] [nvarchar](255) NULL,
	[DIA_CHI_WEB_SERVICE] [nvarchar](255) NULL,
	[TAI_KHOAN] [nvarchar](255) NULL,
	[MAT_KHAU] [nvarchar](255) NULL,
	[BRAND_NAME] [nvarchar](50) NULL,
	[DON_GIA] [numeric](18, 0) NULL,
	[URL_WEB_POST] [nvarchar](255) NULL,
	[IS_SU_DUNG] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SMS_TYPE] [nvarchar](50) NULL,
	[SMS_TEMPLATE_FILE] [nvarchar](255) NULL,
	[SMS_TEMPLATE_DATA] [ntext] NULL,
	[SMS_TEMPLATE_DATA_KHAC] [ntext] NULL,
 CONSTRAINT [PK_DCONFIG_SMS] PRIMARY KEY CLUSTERED 
(
	[DCONFIG_SMSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_TRUYEN_NHAN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_TRUYEN_NHAN](
	[DCONFIG_TRUYEN_NHANID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_DV_LIEN_QUAN] [nvarchar](1000) NULL,
	[ETVAN_URL] [nvarchar](500) NULL,
	[ETVAN_USERNAME] [nvarchar](100) NULL,
	[ETVAN_PASSWORD] [nvarchar](100) NULL,
	[KY_KK_THOI_GIAN] [int] NULL,
	[KY_KK_THOI_DIEM] [int] NULL,
	[KY_KK_LOAI] [int] NULL,
	[KY_KK_NGAY_CANH_BAO] [int] NULL,
	[TU_DONG_GUI_PM] [int] NULL,
	[TU_DONG_LAY_PH_PM] [int] NULL,
	[THOI_GIAN_QUET_NHAN_PM] [int] NULL,
	[THONG_BAO_GUI_THU_MUC] [nvarchar](500) NULL,
	[THONG_BAO_NHAN_THU_MUC] [nvarchar](500) NULL,
	[KY_SO_THOI_GIAN_THUC] [int] NULL,
	[SERVICE_GUI_URL] [nvarchar](500) NULL,
	[KIEU_GUI_DU_LIEU] [int] NULL,
	[THOI_GIAN_NOTIFY] [int] NULL,
	[SL_BAN_GHI_GUI] [int] NULL,
	[GUI_SERVICE] [int] NULL,
	[THOI_GIAN_QUET_GUI_SERVICE] [int] NULL,
	[NHAN_SERVICE] [int] NULL,
	[THOI_GIAN_QUET_NHAN_SERVICE] [int] NULL,
	[IS_SUA_DOI] [int] NULL,
	[IS_GUI_TUNG_HD] [int] NULL,
	[SL_BAN_GHI_GUI_BANG_TH] [int] NULL,
	[PROXY_IP] [nvarchar](50) NULL,
	[PROXY_PORT] [nvarchar](50) NULL,
	[PROXY_DOMAIN] [nvarchar](100) NULL,
	[PROXY_USERNAME] [nvarchar](100) NULL,
	[PROXY_PASSWORD] [nvarchar](100) NULL,
	[PROXY_LOAI] [int] NULL,
	[LAY_TD_NO_TRANSACTION] [int] NULL,
 CONSTRAINT [PK_DCONFIG_TRUYEN_NHAN] PRIMARY KEY CLUSTERED 
(
	[DCONFIG_TRUYEN_NHANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_XACTHUC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_XACTHUC](
	[NGAY_KICH_HOAT] [datetime] NULL,
	[MA_SO_THUE] [nvarchar](50) NOT NULL,
	[PRE_SYSTEMCODE] [nvarchar](50) NULL,
	[CHUOI_BAO_MAT] [nvarchar](255) NULL,
	[URL_SEND] [nvarchar](255) NULL,
	[USER_VAN] [varchar](255) NULL,
	[PASSWORD_VAN] [varchar](255) NULL,
	[URL_VAN] [nvarchar](255) NULL,
	[URI_CKS_SERVICE] [nvarchar](400) NULL,
	[MAX_INV] [numeric](18, 0) NULL,
	[IS_SU_DUNG_POST] [nvarchar](50) NULL,
	[URL_WEB_POST] [nvarchar](400) NULL,
	[SYSTEM_CODE] [nvarchar](50) NULL,
 CONSTRAINT [PK_DCONFIG_XACTHUC] PRIMARY KEY CLUSTERED 
(
	[MA_SO_THUE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DCONFIG_XML68]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DCONFIG_XML68](
	[DCONFIG_XML68ID] [int] IDENTITY(1,1) NOT NULL,
	[InvoiceType] [nvarchar](200) NULL,
	[Region] [int] NOT NULL,
	[Order] [int] NOT NULL,
	[NameShow] [nvarchar](200) NOT NULL,
	[DataType] [nvarchar](200) NOT NULL,
	[DBName] [nvarchar](200) NOT NULL,
	[AdjustType] [nvarchar](200) NULL,
	[InforType] [int] NOT NULL,
	[IsExtend] [int] NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[GroupBy] [int] NULL,
	[XMLName] [nvarchar](50) NULL,
	[SeparatorBarcode] [nvarchar](50) NULL,
	[Default_Value] [nvarchar](500) NULL,
	[Negative_Value] [int] NULL,
 CONSTRAINT [PK_DCONFIG_XML68] PRIMARY KEY CLUSTERED 
(
	[DCONFIG_XML68ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DDKSD_VOI_CQTHUE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DDKSD_VOI_CQTHUE](
	[DDKSD_VOI_CQTHUEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MAU_SO_TO_KHAI] [nvarchar](50) NULL,
	[TEN_TO_KHAI] [nvarchar](100) NULL,
	[HINH_THUC] [int] NULL,
	[TEN_NNT] [nvarchar](400) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[CQT_QUANLY] [nvarchar](100) NULL,
	[MA_CQT_QUANLY] [nvarchar](50) NULL,
	[NGUOI_LIEN_HE] [nvarchar](50) NULL,
	[DIA_CHI_LIEN_HE] [nvarchar](400) NULL,
	[DIA_CHI_THU_DIEN_TU] [nvarchar](50) NULL,
	[DIEN_THOAI_LIEN_HE] [nvarchar](20) NULL,
	[DIA_DANH] [nvarchar](50) NULL,
	[NGAY_LAP] [datetime] NULL,
	[IS_CO_MA] [int] NULL,
	[IS_KHONG_CO_MA] [int] NULL,
	[IS_NNT_DIABAN_KHOKHAN] [int] NULL,
	[IS_NNT_KHAC_THEO_DN_UBND] [int] NULL,
	[IS_CHUYEN_DL_TRUC_TIEP_CQT] [int] NULL,
	[IS_CHUYEN_DL_QUA_TCTN] [int] NULL,
	[IS_CHUYEN_DAY_DU] [int] NULL,
	[IS_CHUYEN_BANG_TONG_HOP] [int] NULL,
	[IS_SD_HD_GTGT] [int] NULL,
	[IS_SD_HDBHANG] [int] NULL,
	[IS_SD_HDBTSCONG] [int] NULL,
	[IS_SD_HDBHDTQGIA] [int] NULL,
	[IS_SD_HDKHAC] [int] NULL,
	[IS_SD_CTU] [int] NULL,
	[NOI_DUNG_XML] [nvarchar](max) NULL,
	[TRANG_THAI_TO_KHAI] [int] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[THONG_BAO_TRUYEN_NHAN] [nvarchar](max) NULL,
	[NOI_DUNG_XML_THUE_TIEP_NHAN] [nvarchar](max) NULL,
	[SO_THONG_BAO_THUE_TIEP_NHAN] [nvarchar](50) NULL,
	[NGAY_THONG_BAO_THUE_TIEP_NHAN] [datetime] NULL,
	[NOI_DUNG_XML_THUE_CHAP_NHAN] [nvarchar](max) NULL,
	[SO_THONG_BAO_THUE_CHAP_NHAN] [nvarchar](50) NULL,
	[NGAY_THONG_BAO_THUE_CHAP_NHAN] [datetime] NULL,
	[IS_CO_MA_TU_MTT] [int] NULL,
 CONSTRAINT [PK_DDKSD_VOI_CQTHUE] PRIMARY KEY CLUSTERED 
(
	[DDKSD_VOI_CQTHUEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DDKSD_VOI_CQTHUE_CHUNGTHUSO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DDKSD_VOI_CQTHUE_CHUNGTHUSO](
	[DDKSD_VOI_CQTHUE_CHUNGTHUSOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[STT] [int] NULL,
	[TEN_TO_CHUC] [nvarchar](400) NOT NULL,
	[SERI] [nvarchar](50) NOT NULL,
	[TU_NGAY] [datetime] NOT NULL,
	[DEN_NGAY] [datetime] NOT NULL,
	[HINH_THUC] [int] NOT NULL,
	[DDKSD_VOI_CQTHUEID] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_DDKSD_VOI_CQTHUE_CHUNGTHUSO] PRIMARY KEY CLUSTERED 
(
	[DDKSD_VOI_CQTHUE_CHUNGTHUSOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DEXTENSION_CAUHINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DEXTENSION_CAUHINH](
	[DEXTENSION_CAUHINHID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[MA_TIEU_CHI] [nvarchar](50) NOT NULL,
	[STT] [int] NULL,
	[KIEU_DU_LIEU] [int] NOT NULL,
	[TEN_TIEU_CHI] [nvarchar](100) NULL,
	[TEN_THE_XML] [nvarchar](50) NULL,
	[LOAI_BANG] [nvarchar](100) NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_DEXTENSION_CAUHINH] PRIMARY KEY CLUSTERED 
(
	[DEXTENSION_CAUHINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHANGHOA]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHANGHOA](
	[DHANGHOAID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TEN_HANG] [nvarchar](255) NULL,
	[TEN_HANG_EN] [nvarchar](255) NULL,
	[MA_HANG] [nvarchar](100) NULL,
	[MA_HS] [nvarchar](100) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[GIA_NHAP] [numeric](23, 8) NULL,
	[GIA_XUAT] [numeric](23, 8) NULL,
	[VAT] [numeric](18, 0) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_HIENTHI] [int] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[DHANGHOAIDTempt] [numeric](18, 0) NULL,
	[CHIET_KHAU] [numeric](23, 8) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[IS_CHON] [int] NULL,
	[IS_DUNG_CHUNG] [int] NULL,
	[IS_MAC_DINH] [int] NULL,
	[IS_DIEU_CHINH] [int] NULL,
	[IS_KHUYEN_MAI] [int] NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_INT1] [int] NULL,
	[EXT_INT2] [int] NULL,
	[EXT_INT3] [int] NULL,
	[EXT_INT4] [int] NULL,
	[EXT_INT5] [int] NULL,
	[MA_LOAI_HANG] [nvarchar](50) NULL,
	[DLOAI_HANGID] [int] NULL,
 CONSTRAINT [PK_DHANGHOA] PRIMARY KEY CLUSTERED 
(
	[DHANGHOAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHANGHOA_KHACHHANG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHANGHOA_KHACHHANG](
	[DHANGHOA_KHACHHANGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_HANG] [nvarchar](550) NULL,
	[TEN_HANG_VN] [nvarchar](550) NULL,
	[TEN_HANG_EN] [nvarchar](550) NULL,
	[MA_KHACH_HANG] [nvarchar](550) NULL,
	[GHI_CHU] [nvarchar](550) NULL,
	[IS_TRUNG_TEN] [int] NULL,
 CONSTRAINT [PK_DHANGHOA_KHACHHANG] PRIMARY KEY CLUSTERED 
(
	[DHANGHOA_KHACHHANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHIEN_THI_COT_MAC_DINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHIEN_THI_COT_MAC_DINH](
	[DHIEN_THI_COT_MAC_DINHID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[STT] [int] NULL,
	[TEN_COT] [nvarchar](255) NULL,
	[TEN_HIEN_THI] [nvarchar](255) NULL,
	[TEN_BANG] [nvarchar](50) NOT NULL,
	[CHON] [int] NULL,
	[FORMAT] [nvarchar](50) NULL,
	[FIELDLEFT] [int] NULL,
	[COLORNAME] [nvarchar](255) NULL,
	[COLWIDTH] [int] NULL,
	[COLFIX] [int] NULL,
	[COLDEFAULT] [int] NULL,
	[SPLITINDEX] [int] NULL,
	[IS_EXTENSION] [int] NULL,
	[LOAI] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[DHOADON_COLUMN] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHIEN_THI_COT_MAC_DINH] PRIMARY KEY CLUSTERED 
(
	[DHIEN_THI_COT_MAC_DINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON](
	[DHOADONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_HOADONID] [numeric](18, 0) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NOT NULL,
	[KY_HIEU] [nvarchar](50) NOT NULL,
	[MAU_SO] [nvarchar](50) NOT NULL,
	[NGAY_HOA_DON] [datetime] NOT NULL,
	[MA_HINHTHUCTT] [nvarchar](50) NULL,
	[HINH_THUC_TT] [nvarchar](50) NULL,
	[HINH_THUC_IN] [int] NULL,
	[MA_CN] [nvarchar](50) NULL,
	[TEN_CN] [nvarchar](500) NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[GUID_DPHATHANH_HOADON] [varchar](50) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[MA_NHAN_HOA_DON] [nvarchar](50) NULL,
	[BEN_BAN_TEN_DV] [nvarchar](400) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NOT NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](400) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_FAX] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TEN] [nvarchar](400) NULL,
	[BEN_MUA_HO_TEN] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](400) NULL,
	[BEN_MUA_MA] [nvarchar](50) NULL,
	[BEN_MUA_MA_DV] [nvarchar](50) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](400) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_FAX] [nvarchar](255) NULL,
	[BEN_MUA_EMAIL] [varchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TEN] [nvarchar](400) NULL,
	[BEN_BAN_NGAN_HANG_DIA_CHI] [nvarchar](255) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_0] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_5] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_10] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_0_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_5_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_10_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU] [nvarchar](255) NULL,
	[TONG_THANH_TOAN_BANG_CHU_NT] [nvarchar](255) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_5] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_10] [numeric](23, 8) NULL,
	[LOAI_HANG] [nvarchar](100) NULL,
	[SO_HOP_DONG] [nvarchar](255) NULL,
	[NGAY_HOP_DONG] [datetime] NULL,
	[DIA_DIEM_GIAO_HANG] [nvarchar](255) NULL,
	[DIA_DIEM_NHAN_HANG] [nvarchar](255) NULL,
	[SO_VAN_DON] [nvarchar](255) NULL,
	[SO_CONTAINER] [nvarchar](255) NULL,
	[TEN_DON_VI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_PHUONG_TIEN_VAN_CHUYEN] [nvarchar](255) NULL,
	[SO_HOP_DONG_VAN_CHUYEN] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_SO] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_NGAY] [datetime] NULL,
	[LENH_DIEU_DONG_CUA] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_VE_VIEC] [nvarchar](255) NULL,
	[HO_TEN_NGUOI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_KHO_XUAT] [nvarchar](255) NULL,
	[MA_KHO_NHAP] [nvarchar](255) NULL,
	[NGAY_XUAT_KHO] [datetime] NULL,
	[NGAY_NHAP_KHO] [datetime] NULL,
	[NGAY_NHAN_DON_HANG] [datetime] NULL,
	[NGAY_GIAO_HANG] [datetime] NULL,
	[THONG_TIN_GIAO_HANG] [nvarchar](500) NULL,
	[DIEU_KIEN_GIAO_HANG] [nvarchar](50) NULL,
	[DON_VI_NHAN_HANG] [nvarchar](255) NULL,
	[DIA_CHI_DON_VI_NHAN_HANG] [nvarchar](255) NULL,
	[DIEN_THOAI_NHAN_HANG] [nvarchar](200) NULL,
	[BIEN_BAN_GIAO_HANG_SO] [nvarchar](255) NULL,
	[MA_NT] [nvarchar](255) NULL,
	[MA_NT_QD] [nvarchar](255) NULL,
	[TEN_NT] [nvarchar](50) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](4000) NULL,
	[GHI_CHU_NB] [nvarchar](255) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](255) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[NGAY_IN] [datetime] NULL,
	[NGUOI_IN] [nvarchar](100) NULL,
	[NGUOI_PHE_DUYET] [nvarchar](50) NULL,
	[NGAY_PHE_DUYET] [date] NULL,
	[NGAY_IN_BANG_KE] [datetime] NULL,
	[NGUOI_THU] [nvarchar](2550) NULL,
	[NGAY_IN_HD_CHUYEN_DOI] [datetime] NULL,
	[LAN_IN] [int] NULL,
	[NOI_XUAT_HOA_DON] [nvarchar](255) NULL,
	[CA_LAM_VIEC] [nvarchar](255) NULL,
	[THONG_BAO_BANG_KE] [int] NULL,
	[MA_BAO_MAT] [nvarchar](255) NULL,
	[MA_BAO_MAT1] [nvarchar](255) NULL,
	[TRANG_THAI] [int] NULL,
	[TRANG_THAI_PHE_DUYET] [int] NULL,
	[LY_DO_XU_LY] [nvarchar](255) NULL,
	[NGAY_XU_LY] [datetime] NULL,
	[CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_PHI_KHAC] [numeric](23, 8) NULL,
	[SO_HOA_DON_IMPORT] [nvarchar](200) NULL,
	[TRANG_THAI_THANH_TOAN] [int] NULL,
	[THOI_HAN_THANH_TOAN] [nvarchar](200) NULL,
	[THOI_HAN_THANH_TOAN_NGAY] [datetime] NULL,
	[CHUNG_TU_THANH_TOAN_SO] [nvarchar](50) NULL,
	[CHUNG_TU_THANH_TOAN_NGAY] [datetime] NULL,
	[TONG_DA_THANH_TOAN] [numeric](23, 6) NULL,
	[IS_DA_DONG_BO] [int] NULL,
	[DIA_CHI_GUI_HOA_DON] [nvarchar](500) NULL,
	[NGUOI_LIEN_HE_GUI_HOA_DON] [nvarchar](255) NULL,
	[DIEN_THOAI_GUI_HOA_DON] [nvarchar](100) NULL,
	[EMAIL_GUI_HOA_DON] [nvarchar](255) NULL,
	[IS_KHONG_TONG_HOP_01GTGT] [int] NULL,
	[IS_IMPORT] [int] NULL,
	[IS_KHACH_LE] [int] NULL,
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) NULL,
	[IS_SU_DUNG_NT] [int] NULL,
	[IS_BEN_MUA_KY_SO] [int] NULL,
	[IS_BEN_BAN_KY_SO] [int] NULL,
	[BEN_MUA_KY_SO_NGAY] [date] NULL,
	[BEN_BAN_KY_SO_NGAY] [datetime] NULL,
	[SO_THAM_CHIEU_1] [nvarchar](255) NULL,
	[SO_THAM_CHIEU_2] [nvarchar](255) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_VAT] [numeric](23, 8) NULL,
	[THUE_VAT] [numeric](23, 8) NULL,
	[BAN_IN] [numeric](18, 0) NULL,
	[IS_CHON] [int] NULL,
	[CODE_KHO_NHAP] [nvarchar](255) NULL,
	[CODE_KHO_XUAT] [nvarchar](255) NULL,
	[DMAU_INID] [numeric](18, 0) NULL,
	[PHI_CONG] [numeric](23, 8) NULL,
	[PHI_TRU] [numeric](23, 8) NULL,
	[SO_VE] [nvarchar](255) NULL,
	[HANH_TRINH] [nvarchar](255) NULL,
	[LOAI_HINH_SU_DUNG] [int] NULL,
	[TYPE_HOADON] [nvarchar](50) NULL,
	[IS_KHONG_CHIU_THUE] [int] NULL,
	[IS_KHONG_TINH] [int] NULL,
	[TIEP_HOA_DON_TRUOC] [nvarchar](255) NULL,
	[IS_TIEP_HOA_DON_TRUOC] [int] NULL,
	[TIEP_HOA_DON_SAU] [nvarchar](50) NULL,
	[IS_TIEP_HOA_DON_SAU] [int] NULL,
	[THUE_KHAC] [numeric](23, 8) NULL,
	[TONG_THUE_KHAC] [numeric](23, 8) NULL,
	[PHI_KHAC] [numeric](23, 8) NULL,
	[MA_SO_TK] [nvarchar](50) NULL,
	[MA_HOA_DON_XK] [nvarchar](50) NULL,
	[PHI_SAN_BAY] [numeric](23, 8) NULL,
	[TONG_PHI_SAN_BAY] [numeric](23, 8) NULL,
	[TEN_HANG_HANG_KHONG] [nvarchar](255) NULL,
	[IS_CHI_HOAN] [int] NULL,
	[TEN_VE] [nvarchar](255) NULL,
	[LOAI_HINH_AP_DUNG] [nvarchar](255) NULL,
	[CHUNG_TU_THANH_TOAN_NGAN_HANG] [nvarchar](255) NULL,
	[SO_LUONG_VE] [numeric](23, 6) NULL,
	[TU_SO_VE] [nvarchar](50) NULL,
	[DEN_SO_VE] [nvarchar](50) NULL,
	[GIA_TIEN_VE] [nvarchar](255) NULL,
	[CANG_GIAO_HANG] [nvarchar](255) NULL,
	[CANG_NHAN_HANG] [nvarchar](255) NULL,
	[NGAY_TAU_CHAY] [datetime] NULL,
	[TEN_TAU] [nvarchar](255) NULL,
	[VAT5] [numeric](23, 8) NULL,
	[TONG_VAT5] [numeric](23, 8) NULL,
	[IS_EXPORT] [numeric](18, 0) NULL,
	[IS_DA_TT] [int] NULL,
	[IS_VE_THANG] [int] NULL,
	[IN_VE_THANG] [numeric](18, 0) NULL,
	[IN_VE_NAM] [numeric](18, 0) NULL,
	[NGAY_TT] [datetime] NULL,
	[SO_PHIEU_TT] [nvarchar](100) NULL,
	[DHOADONID_IMPORT] [numeric](18, 0) NULL,
	[HOP_DONG_TYPE] [nvarchar](50) NULL,
	[TONG_VAT_NT] [numeric](23, 8) NULL,
	[TONG_VAT_NT5] [numeric](23, 8) NULL,
	[FAX_NHAN_HANG] [nvarchar](200) NULL,
	[GHI_CHU_GIAO_HANG] [nvarchar](500) NULL,
	[RESCODE] [nvarchar](200) NULL,
	[RECEITP] [varchar](8000) NULL,
	[RESCODE_REF] [nvarchar](200) NULL,
	[CHECK_NO] [varchar](900) NULL,
	[IS_NO_HD] [int] NULL,
	[IS_TACH_HD] [int] NULL,
	[TACH_HDID] [numeric](18, 0) NULL,
	[TACH_HD_STT] [int] NULL,
	[IS_GOP_HD] [int] NULL,
	[CASHIER] [nvarchar](200) NULL,
	[TRAN_STATUS] [int] NULL,
	[REPLY_STATUS] [int] NULL,
	[COUNTGET] [int] NULL,
	[COUNTPOST] [int] NULL,
	[SRV_ERROR] [nvarchar](500) NULL,
	[DATEGET] [datetime] NULL,
	[PRE_DHOADONID] [numeric](18, 0) NULL,
	[IS_HOADON_DIEN_TU] [numeric](18, 0) NULL,
	[IS_XUAT_TU_DONG] [numeric](18, 0) NULL,
	[NGAY_YC_XUAT_TU_DONG] [datetime] NULL,
	[NGUOI_YC_XUAT_TU_DONG] [nvarchar](50) NULL,
	[NGAY_XUAT_HOA_DON_TU_DONG] [datetime] NULL,
	[LOI] [ntext] NULL,
	[QUYEN_SO] [nvarchar](255) NULL,
	[SO_BIEN_LAI] [nvarchar](255) NULL,
	[TAM_UNG] [numeric](23, 3) NULL,
	[SO_HOA_DON_MISA] [nvarchar](50) NULL,
	[NGAY_HOA_DON_MISA] [datetime] NULL,
	[ERROR_LOG_MISA] [nvarchar](255) NULL,
	[CONVERT_MISA] [int] NULL,
	[MAU_SO_MISA] [nvarchar](50) NULL,
	[KY_HIEU_MISA] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](50) NULL,
	[SO_LINE_HANG] [numeric](18, 0) NULL,
	[MA_PICKING] [nvarchar](50) NULL,
	[TIEN_COUPON] [decimal](23, 8) NULL,
	[IS_DONG_BO_WEBSITE] [int] NULL,
	[IS_DONG_BO_SERVER] [int] NULL,
	[SELLER_IS_SIGN] [int] NULL,
	[BUYER_IS_SIGN] [int] NULL,
	[KY_HOC] [nvarchar](255) NULL,
	[NAM_HOC] [decimal](18, 0) NULL,
	[NHOM_DOI_TUONG] [nvarchar](255) NULL,
	[LOP_HOC] [nvarchar](255) NULL,
	[BIEN_SO_XE] [nvarchar](255) NULL,
	[NamSinh] [datetime] NULL,
	[NgayNhapVien] [datetime] NULL,
	[MA_GIAO_DICH] [nvarchar](250) NULL,
	[TEN_GIAO_DICH] [nvarchar](550) NULL,
	[SO_NHAP_VIEN] [nvarchar](550) NULL,
	[REF_NO] [nvarchar](255) NULL,
	[INVOICE_SUBJECT] [nvarchar](500) NULL,
	[SWIFT_CODE] [nvarchar](250) NULL,
	[PROJECT_CODE] [nvarchar](250) NULL,
	[PAYMENT_TYPE_IN_WORDS] [nvarchar](2000) NULL,
	[PAYMENT_NOTES] [nvarchar](2000) NULL,
	[APPLICATION_NAME] [nvarchar](250) NULL,
	[BENEFICIARY_NAME] [nvarchar](250) NULL,
	[INVOICE_SUB_TYPE] [nvarchar](250) NULL,
	[PAY_TO_TYPE] [nvarchar](250) NULL,
	[PROJECT_PHONE] [nvarchar](255) NULL,
	[INVOICE_ID] [nvarchar](255) NULL,
	[TRANG_THAI_KIEM_DUYET] [int] NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](255) NULL,
	[GHI_CHU_DONG_BO] [nvarchar](255) NULL,
	[BILL_TYPE] [smallint] NULL,
	[MA_THOI_HAN_THANH_TOAN] [varchar](10) NULL,
	[SDTNHANSMS1] [nvarchar](50) NULL,
	[SDTNHANSMSKHAC] [nvarchar](50) NULL,
	[LOAI_IN_HOA_DON] [nvarchar](255) NULL,
	[TO_CHUC_BAN_HANG] [nvarchar](255) NULL,
	[KHU_VUC_KINH_DOANH] [nvarchar](255) NULL,
	[SO_BIEN_LAI_GOC] [nvarchar](255) NULL,
	[TONG_TIEN_HANG5] [numeric](23, 8) NULL,
	[TONG_VAT10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANGNO] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN5] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN10] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN0] [numeric](23, 8) NULL,
	[TONG_THANH_TOANNO] [numeric](23, 8) NULL,
	[REF_DOC_NO] [nvarchar](50) NULL,
	[REF_DOC_TYPE] [nvarchar](50) NULL,
	[SO_NO] [nvarchar](255) NULL,
	[DOC_NO] [nvarchar](255) NULL,
	[TRANG_THAI_DONG_BO_THAI_SON] [varchar](5) NULL,
	[GHI_CHU_DONG_BO_THAI_SON] [nvarchar](900) NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NULL,
	[SO_XAC_THUC] [nvarchar](50) NULL,
	[SO_XAC_THUC_GOC] [nvarchar](50) NULL,
	[MA_XAC_THUC] [nvarchar](255) NULL,
	[MA_QR_CODE] [nvarchar](255) NULL,
	[SIGN_PCD] [nvarchar](255) NULL,
	[ERR_CODE] [nvarchar](255) NULL,
	[ERR_DES] [nvarchar](255) NULL,
	[NGAY_XAC_THUC] [datetime] NULL,
	[PUBLICKEY] [nvarchar](255) NULL,
	[MST_NGUOI_BAN] [nvarchar](50) NULL,
	[MST_NGUOI_MUA] [nvarchar](50) NULL,
	[NOI_DUNG_DIEU_CHINH] [nvarchar](255) NULL,
	[NGAY_DIEU_CHINH] [datetime] NULL,
	[DHOADONID_GOC] [numeric](18, 0) NULL,
	[GUID_DHOADON1] [nvarchar](255) NULL,
	[SO_HOA_DON_GOC] [nvarchar](50) NULL,
	[KY_HIEU_GOC] [nvarchar](50) NULL,
	[MAU_SO_GOC] [nvarchar](50) NULL,
	[NGAY_HOA_DON_GOC] [datetime] NULL,
	[GUID_DHOADON_GOC] [nvarchar](50) NULL,
	[TONG_TIEN_HANG_GOC] [numeric](23, 8) NULL,
	[TEN_HANG_CHUNG] [nvarchar](500) NULL,
	[SO_BANG_KE] [nvarchar](50) NULL,
	[TRANG_THAI_HOA_DON] [int] NULL,
	[GUID_DHOADON_BIENBAN] [nvarchar](250) NULL,
	[SO_BIEN_BAN] [nvarchar](50) NULL,
	[FILE_NAME] [nvarchar](255) NULL,
	[IS_TT68] [int] NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_CK] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_CK] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_0_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_5_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_10_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_10] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_SAU_CK_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_SAU_CK_TONG] [numeric](23, 8) NULL,
	[SIGN_SUBJECT] [nvarchar](255) NULL,
	[SIGN_SERIAL] [nvarchar](255) NULL,
	[IS_GIAM_TRU_30] [int] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[THONG_BAO_TRUYEN_NHAN] [nvarchar](500) NULL,
	[THOI_GIAN_TRUYEN_NHAN] [datetime] NULL,
	[TRANG_THAI_TRUYEN_NHAN_SAI_SOT] [int] NULL,
	[THONG_BAO_TRUYEN_NHAN_SAI_SOT] [nvarchar](500) NULL,
	[THOI_GIAN_TRUYEN_NHAN_SAI_SOT] [datetime] NULL,
	[SO_THONG_BAO_TRUYEN_NHAN_SAI_SOT] [nvarchar](50) NULL,
	[NGAY_THONG_BAO_TRUYEN_NHAN_SAI_SOT] [datetime] NULL,
	[XAC_NHAN_GUI_LAI] [int] NULL,
	[BEN_MUA_MST_KHAC] [nvarchar](50) NULL,
	[NGUOI_XUAT_HANG] [nvarchar](100) NULL,
	[NGUOI_NHAP_HANG] [nvarchar](100) NULL,
	[HINH_THUC_IN_GOC] [int] NULL,
	[DOI_LAY_KET_QUA] [int] NULL,
	[TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI] [int] NULL,
	[BEN_MUA_SO_CCCD] [nvarchar](50) NULL,
	[BEN_MUA_MA_QUOC_TICH] [nvarchar](50) NULL,
	[BEN_MUA_TEN_QUOC_TICH] [nvarchar](50) NULL,
	[BEN_MUA_SO_HO_CHIEU] [nvarchar](100) NULL,
	[BEN_MUA_NGAY_CAP_HO_CHIEU] [date] NULL,
	[BEN_MUA_NGAY_HET_HAN_HO_CHIEU] [date] NULL,
	[NGAY_MO_CA] [datetime] NULL,
	[NGAY_CHOT_CA] [datetime] NULL,
	[OTHER_DB_CONNECTION] [nvarchar](200) NULL,
 CONSTRAINT [PK_DHOADON] PRIMARY KEY CLUSTERED 
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_BIENBAN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_BIENBAN](
	[DHOADON_BIENBANID] [decimal](23, 0) IDENTITY(1,1) NOT NULL,
	[SBIENBAN_TEMPLATEID] [numeric](18, 0) NULL,
	[GUID_BIENBAN_TEMP] [nvarchar](250) NULL,
	[NGAY_BIEN_BAN] [datetime] NULL,
	[SO_BIEN_BAN] [nvarchar](50) NULL,
	[NGAY_IN] [datetime] NULL,
	[MA_CN] [nvarchar](255) NULL,
	[BEN_BAN_MA_DV] [nvarchar](255) NULL,
	[BEN_BAN_TEN_DV] [nvarchar](255) NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](255) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_NGUOI_DAI_DIEN] [nvarchar](255) NULL,
	[BEN_BAN_NGUOI_DAI_DIEN_CV] [nvarchar](255) NULL,
	[BEN_MUA_MA] [nvarchar](255) NULL,
	[BEN_MUA_MA_DV] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](255) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_NGUOI_DAI_DIEN] [nvarchar](255) NULL,
	[BEN_MUA_NGUOI_DAI_DIEN_CV] [nvarchar](255) NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[GUID_DHOADON_BIENBAN] [nvarchar](250) NULL,
	[GUID_DHOADON] [nvarchar](50) NULL,
	[LI_DO_DIEU_CHINH] [nvarchar](255) NULL,
	[LOAI_BIEN_BAN] [nvarchar](50) NULL,
	[TRANG_THAI] [int] NULL,
	[TRANG_THAI_KY] [int] NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NULL,
	[NGAY_KY] [datetime] NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[IS_DONG_BO] [int] NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](50) NULL,
	[LOG_DONG_BO] [nvarchar](255) NULL,
	[GIA_TRI_HOA_DON] [numeric](18, 2) NULL,
	[TEN_DICH_VU] [nvarchar](255) NULL,
	[NOI_DUNG_DUNG] [nvarchar](255) NULL,
	[NOI_DUNG_SAI] [nvarchar](255) NULL,
	[MAU_SO_MOI] [nvarchar](255) NULL,
	[KY_HIEU_MOI] [nvarchar](255) NULL,
	[NGAY_HOA_DON_MOI] [datetime] NULL,
	[DHOADONID_MOI] [numeric](18, 0) NULL,
	[SO_HOA_DON_MOI] [nvarchar](255) NULL,
	[NOI_DUNG_XML] [ntext] NULL,
	[TIEN_TRUOC_THUE] [numeric](23, 8) NULL,
	[TIEN_THUE] [numeric](23, 8) NULL,
	[TIEN_TRUOC_THUE_MOI] [numeric](23, 8) NULL,
	[TIEN_THUE_MOI] [numeric](23, 8) NULL,
	[GIA_TRI_HOA_DON_MOI] [numeric](23, 8) NULL,
	[MA_NT] [nvarchar](250) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[TONG_VAT] [numeric](23, 8) NULL,
	[TONG_VAT5] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_5] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_10] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU] [nvarchar](250) NULL,
	[TONG_TIEN_THUE_5_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_10_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KHAI_THUE_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10_DC] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_DC] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_DC] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU_DC] [nvarchar](250) NULL,
	[IS_DONG_HANG] [int] NULL,
	[MAU_SO_DC] [nvarchar](50) NULL,
	[KY_HIEU_DC] [nvarchar](50) NULL,
	[SO_HOA_DON_DC] [nvarchar](50) NULL,
	[NGAY_HOA_DON_DC] [date] NULL,
	[LOAI_DIEU_CHINH] [int] NULL,
	[NOI_DUNG_XML_KH] [ntext] NULL,
	[KHACH_HANG_KY] [bit] NULL,
	[NGAY_KHACH_HANG_KY] [datetime] NULL,
	[IS_SENDEMAIL] [bit] NULL,
	[IS_ACCEPTEMAIL] [bit] NULL,
	[BEN_MUA_EMAIL] [nvarchar](255) NULL,
	[TONG_VAT5_DC] [numeric](23, 8) NULL,
	[TONG_VAT_DC] [numeric](28, 8) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](10) NULL,
	[BEN_MUA_NGUOI_DAI_DIEN_DV] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHOADON_BIEN_BAN_1] PRIMARY KEY CLUSTERED 
(
	[DHOADON_BIENBANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_BIENBAN_CHI_TIEU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_BIENBAN_CHI_TIEU](
	[DHOADON_BIENBAN_CHI_TIEUID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_BIENBANID] [numeric](18, 0) NOT NULL,
	[STT] [int] NULL,
	[MA_CHI_TIEU] [nvarchar](100) NULL,
	[CHI_TIEU_THONG_TIN] [nvarchar](250) NULL,
	[GIA_TRI_SAI] [numeric](23, 8) NULL,
	[GIA_TRI_DUNG] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[DONG_HOA_DON] [int] NULL,
	[GIA_TRI_SAI_TEXT] [nvarchar](255) NULL,
	[GIA_TRI_DUNG_TEXT] [nvarchar](255) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
 CONSTRAINT [PK_DHOADON_BIENBAN_CHI_TIEU] PRIMARY KEY CLUSTERED 
(
	[DHOADON_BIENBAN_CHI_TIEUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_BIENBAN_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_BIENBAN_CHITIET](
	[DHOADON_BIEN_BAN_CHI_TIETID] [decimal](23, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_BIEN_BANID] [decimal](23, 0) NULL,
	[STT_HANG] [int] NULL,
	[NOI_DUNG_DUNG] [nvarchar](255) NULL,
	[NOI_DUNG_SAI] [nvarchar](255) NULL,
	[KIEU_DIEU_CHINH] [nvarchar](255) NULL,
	[MA_HANG] [nvarchar](250) NULL,
	[TEN_HANG] [nvarchar](250) NULL,
	[MA_DVT] [nvarchar](250) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[SO_LUONG_DC] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[DON_GIA_DC] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN_DC] [numeric](23, 8) NULL,
	[VAT] [numeric](23, 8) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[VAT_DC] [numeric](23, 8) NULL,
	[VAT_TIEN_DC] [numeric](23, 8) NULL,
	[IS_DIEU_CHINH] [int] NULL,
	[BEN_MUA_MA] [nvarchar](255) NULL,
	[BEN_MUA_MA_DV] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](255) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_NGUOI_DAI_DIEN] [nvarchar](255) NULL,
	[BEN_MUA_NGUOI_DAI_DIEN_CV] [nvarchar](255) NULL,
	[DHOADONID] [numeric](23, 8) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[SO_HOA_DON] [nvarchar](255) NULL,
	[GUID_DHOADON] [nvarchar](50) NULL,
	[DHOADON_BIENBANID] [nvarchar](255) NULL,
	[IS_GIAM_TRU_30] [int] NULL,
	[IS_GIAM_TRU_30_DC] [int] NULL,
 CONSTRAINT [PK_DHOADON_BIEN_BAN_CHI_TIET] PRIMARY KEY CLUSTERED 
(
	[DHOADON_BIEN_BAN_CHI_TIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_CAPMA_LOI]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_CAPMA_LOI](
	[DHOADON_CAPMA_LOIID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[MAU_SO] [nvarchar](10) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[NGAY_LOI] [datetime] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[TRANG_THAI_CAP_LAI] [int] NULL,
 CONSTRAINT [PK_DHOADON_CAPMA_LOI] PRIMARY KEY CLUSTERED 
(
	[DHOADON_CAPMA_LOIID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_CAPSO_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_CAPSO_LOG](
	[DHOADON_CAPSO_LOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[NGAY_CAP] [datetime] NULL,
	[NGUOI_CAP] [nvarchar](50) NULL,
	[MAU_SO] [varchar](20) NULL,
	[MA_CQT] [numeric](18, 0) NULL,
 CONSTRAINT [PK_DHOADON_CAPSO_LOG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_CAPSO_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_CHOT_CA]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_CHOT_CA](
	[DHOADON_CHOT_CAID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](550) NULL,
	[MA_CN] [nvarchar](550) NULL,
	[TEN_CN] [nvarchar](550) NULL,
	[NGAY_CHOT] [datetime] NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN] [numeric](23, 8) NULL,
	[TONG_SO_HOA_DON] [numeric](23, 8) NULL,
	[TONG_SO_HOA_DON_DA_KY_SO] [numeric](23, 8) NULL,
	[TONG_SO_HOA_DON_CHUA_KY_SO] [numeric](23, 8) NULL,
	[TONG_SO_HOA_DON_XOA_BO] [numeric](23, 8) NULL,
	[TRANG_THAI] [int] NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](50) NULL,
	[NGUOI_TAO] [nvarchar](550) NULL,
	[GUID_DHOADON_CHOT_CA] [uniqueidentifier] NOT NULL,
	[GHI_CHU] [nchar](10) NULL,
 CONSTRAINT [PK_DHOADON_CHOT_CA] PRIMARY KEY CLUSTERED 
(
	[DHOADON_CHOT_CAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_CHOT_CA_CHI_TIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_CHOT_CA_CHI_TIET](
	[DHOADON_CHOT_CA_CHI_TIETID] [numeric](23, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_CHOT_CAID] [numeric](23, 0) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NULL,
	[DA_KY_SO] [int] NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_VAT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[GUID_DHOADON_CHOT_CA] [uniqueidentifier] NULL,
	[GHI_CHU] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_CT_KEM]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_CT_KEM](
	[DHOADON_CT_KEMID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[LOAI_CT] [nvarchar](50) NOT NULL,
	[TEN_FILE] [nvarchar](100) NOT NULL,
	[DUONG_DAN] [nvarchar](100) NOT NULL,
	[DUNG_LUONG] [numeric](19, 0) NOT NULL,
	[DA_KY] [int] NOT NULL,
	[NOI_DUNG] [nvarchar](max) NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[LOAI_FILE] [nvarchar](10) NULL,
 CONSTRAINT [PK__DHOADON___CBC638076AC5C326] PRIMARY KEY CLUSTERED 
(
	[DHOADON_CT_KEMID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_DIENTU_FILE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_DIENTU_FILE](
	[DHOADON_DIENTU_FILEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[NOI_DUNG] [image] NULL,
	[NOI_DUNG_BANG_KE] [image] NULL,
 CONSTRAINT [PK_DHOADON_DIENTU_FILE] PRIMARY KEY CLUSTERED 
(
	[DHOADON_DIENTU_FILEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_DONG_BO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_DONG_BO](
	[DHOADON_DONG_BOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_HOADONID] [numeric](18, 0) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NOT NULL,
	[KY_HIEU] [nvarchar](50) NOT NULL,
	[MAU_SO] [nvarchar](50) NOT NULL,
	[NGAY_HOA_DON] [datetime] NOT NULL,
	[BEN_BAN_TEN_DV] [nvarchar](255) NOT NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NOT NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](255) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_FAX] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[BEN_MUA_HO_TEN] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](255) NULL,
	[BEN_MUA_MA] [nvarchar](50) NULL,
	[BEN_MUA_MA_DV] [nvarchar](50) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_FAX] [nvarchar](255) NULL,
	[MA_HINHTHUCTT] [nvarchar](50) NULL,
	[BEN_MUA_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_VAT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU] [nvarchar](255) NULL,
	[TONG_THANH_TOAN_BANG_CHU_NT] [nvarchar](255) NULL,
	[MA_NT] [nvarchar](255) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGAY_IN] [datetime] NULL,
	[NGAY_IN_BANG_KE] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](255) NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[HINH_THUC_IN] [int] NULL,
	[THONG_BAO_BANG_KE] [int] NULL,
	[THUE_VAT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU] [numeric](23, 8) NULL,
	[CHIET_KHAU] [numeric](23, 8) NULL,
	[MA_BAO_MAT] [nvarchar](255) NULL,
	[MA_BAO_MAT1] [nvarchar](255) NULL,
	[BAN_IN] [numeric](18, 0) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[IS_CHON] [int] NULL,
	[SO_HOP_DONG] [nvarchar](255) NULL,
	[NGAY_HOP_DONG] [datetime] NULL,
	[DIA_DIEM_GIAO_HANG] [nvarchar](255) NULL,
	[DIA_DIEM_NHAN_HANG] [nvarchar](255) NULL,
	[SO_VAN_DON] [nvarchar](255) NULL,
	[SO_CONTAINER] [nvarchar](255) NULL,
	[TEN_DON_VI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_PHUONG_TIEN_VAN_CHUYEN] [nvarchar](255) NULL,
	[SO_HOP_DONG_VAN_CHUYEN] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_SO] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_NGAY] [datetime] NULL,
	[LENH_DIEU_DONG_CUA] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_VE_VIEC] [nvarchar](255) NULL,
	[HO_TEN_NGUOI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_KHO_XUAT] [nvarchar](255) NULL,
	[MA_KHO_NHAP] [nvarchar](255) NULL,
	[CODE_KHO_NHAP] [nvarchar](255) NULL,
	[CODE_KHO_XUAT] [nvarchar](255) NULL,
	[NGAY_XUAT_KHO] [datetime] NULL,
	[NGAY_NHAP_KHO] [datetime] NULL,
	[TRANG_THAI] [int] NULL,
	[LY_DO_XU_LY] [nvarchar](255) NULL,
	[NGAY_XU_LY] [datetime] NULL,
	[DMAU_INID] [numeric](18, 0) NULL,
	[PHI_CONG] [numeric](23, 8) NULL,
	[PHI_TRU] [numeric](23, 8) NULL,
	[SO_VE] [nvarchar](255) NULL,
	[HANH_TRINH] [nvarchar](255) NULL,
	[LOAI_HINH_SU_DUNG] [int] NULL,
	[TYPE_HOADON] [numeric](18, 0) NULL,
	[IS_KHONG_CHIU_THUE] [int] NULL,
	[IS_KHONG_TINH] [int] NULL,
	[GHI_CHU_NB] [nvarchar](255) NULL,
	[TIEP_HOA_DON_TRUOC] [nvarchar](255) NULL,
	[IS_TIEP_HOA_DON_TRUOC] [int] NULL,
	[TIEP_HOA_DON_SAU] [nvarchar](50) NULL,
	[IS_TIEP_HOA_DON_SAU] [int] NULL,
	[THUE_KHAC] [numeric](23, 8) NULL,
	[TONG_THUE_KHAC] [numeric](23, 8) NULL,
	[PHI_KHAC] [numeric](23, 8) NULL,
	[TONG_PHI_KHAC] [numeric](23, 8) NULL,
	[MA_NT_QD] [nvarchar](255) NULL,
	[MA_SO_TK] [nvarchar](50) NULL,
	[IS_IMPORT] [int] NULL,
	[SO_HOA_DON_IMPORT] [nvarchar](200) NULL,
	[THOI_HAN_THANH_TOAN] [nvarchar](200) NULL,
	[THOI_HAN_THANH_TOAN_NGAY] [datetime] NULL,
	[IS_KHONG_TONG_HOP_01GTGT] [int] NULL,
	[MA_HOA_DON_XK] [nvarchar](50) NULL,
	[PHI_SAN_BAY] [numeric](23, 8) NULL,
	[TONG_PHI_SAN_BAY] [numeric](23, 8) NULL,
	[DIEU_KIEN_GIAO_HANG] [nvarchar](50) NULL,
	[DON_VI_NHAN_HANG] [nvarchar](255) NULL,
	[DIA_CHI_DON_VI_NHAN_HANG] [nvarchar](255) NULL,
	[TEN_HANG_HANG_KHONG] [nvarchar](255) NULL,
	[IS_CHI_HOAN] [int] NULL,
	[TEN_VE] [nvarchar](255) NULL,
	[LOAI_HINH_AP_DUNG] [nvarchar](255) NULL,
	[BIEN_BAN_GIAO_HANG_SO] [nvarchar](255) NULL,
	[CHUNG_TU_THANH_TOAN_SO] [nvarchar](50) NULL,
	[CHUNG_TU_THANH_TOAN_NGAY] [datetime] NULL,
	[CHUNG_TU_THANH_TOAN_NGAN_HANG] [nvarchar](255) NULL,
	[SO_LUONG_VE] [numeric](23, 6) NULL,
	[TU_SO_VE] [nvarchar](50) NULL,
	[DEN_SO_VE] [nvarchar](50) NULL,
	[GIA_TIEN_VE] [nvarchar](255) NULL,
	[CANG_GIAO_HANG] [nvarchar](255) NULL,
	[CANG_NHAN_HANG] [nvarchar](255) NULL,
	[NGAY_TAU_CHAY] [datetime] NULL,
	[TEN_TAU] [nvarchar](255) NULL,
	[VAT5] [numeric](23, 8) NULL,
	[TONG_VAT5] [numeric](23, 8) NULL,
	[IS_EXPORT] [numeric](18, 0) NULL,
	[IS_DA_TT] [int] NULL,
	[HINH_THUC_TT] [nvarchar](50) NULL,
	[IS_VE_THANG] [int] NULL,
	[IN_VE_THANG] [numeric](18, 0) NULL,
	[IN_VE_NAM] [numeric](18, 0) NULL,
	[NGAY_TT] [datetime] NULL,
	[SO_PHIEU_TT] [nvarchar](100) NULL,
	[TONG_DA_THANH_TOAN] [numeric](23, 6) NULL,
	[DHOADONID_IMPORT] [numeric](18, 0) NULL,
	[HOP_DONG_TYPE] [nvarchar](50) NULL,
	[IS_DA_DONG_BO] [int] NULL,
	[DIA_CHI_GUI_HOA_DON] [nvarchar](500) NULL,
	[NGUOI_LIEN_HE_GUI_HOA_DON] [nvarchar](255) NULL,
	[DIEN_THOAI_GUI_HOA_DON] [nvarchar](100) NULL,
	[EMAIL_GUI_HOA_DON] [nvarchar](255) NULL,
	[TONG_VAT_NT] [numeric](23, 8) NULL,
	[TONG_VAT_NT5] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_NT] [numeric](23, 8) NULL,
	[DIEN_THOAI_NHAN_HANG] [nvarchar](200) NULL,
	[FAX_NHAN_HANG] [nvarchar](200) NULL,
	[GHI_CHU_GIAO_HANG] [nvarchar](500) NULL,
	[RESCODE] [nvarchar](200) NULL,
	[RECEITP] [nvarchar](500) NULL,
	[RESCODE_REF] [nvarchar](200) NULL,
	[CHECK_NO] [nvarchar](50) NULL,
	[IS_NO_HD] [int] NULL,
	[IS_TACH_HD] [int] NULL,
	[TACH_HDID] [numeric](18, 0) NULL,
	[TACH_HD_STT] [int] NULL,
	[IS_GOP_HD] [int] NULL,
	[IS_KHACH_LE] [int] NULL,
	[NGUOI_IN] [nvarchar](100) NULL,
	[CASHIER] [nvarchar](200) NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[GUID_DPHATHANH_HOADON] [varchar](50) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[BEN_MUA_EMAIL] [varchar](255) NULL,
	[TRAN_STATUS] [int] NULL,
	[REPLY_STATUS] [int] NULL,
	[TEN_CN] [nvarchar](500) NULL,
	[COUNTGET] [int] NULL,
	[COUNTPOST] [int] NULL,
	[SRV_ERROR] [nvarchar](500) NULL,
	[DATEGET] [datetime] NULL,
	[PRE_DHOADONID] [numeric](18, 0) NULL,
	[IS_HOADON_DIEN_TU] [numeric](18, 0) NULL,
	[IS_XUAT_TU_DONG] [numeric](18, 0) NULL,
	[NGAY_YC_XUAT_TU_DONG] [datetime] NULL,
	[NGUOI_YC_XUAT_TU_DONG] [nvarchar](50) NULL,
	[NGAY_XUAT_HOA_DON_TU_DONG] [datetime] NULL,
	[LOI] [ntext] NULL,
	[MA_NHAN_HOA_DON] [nvarchar](50) NULL,
	[QUYEN_SO] [nvarchar](255) NULL,
	[SO_BIEN_LAI] [nvarchar](255) NULL,
	[NGUOI_THU] [nvarchar](2550) NULL,
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) NULL,
	[NGAY_IN_HD_CHUYEN_DOI] [datetime] NULL,
	[LAN_IN] [int] NULL,
	[TAM_UNG] [numeric](23, 3) NULL,
	[NOI_XUAT_HOA_DON] [nvarchar](255) NULL,
	[SO_DON_HANG] [nvarchar](50) NULL,
	[NGAY_NHAN_DON_HANG] [datetime] NULL,
	[SO_LINE_HANG] [numeric](18, 0) NULL,
	[NGAY_GIAO_HANG] [datetime] NULL,
	[THONG_TIN_GIAO_HANG] [nvarchar](500) NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NULL,
	[SO_XAC_THUC] [nvarchar](50) NULL,
	[SO_XAC_THUC_GOC] [nvarchar](50) NULL,
	[MA_XAC_THUC] [nvarchar](255) NULL,
	[MA_QR_CODE] [nvarchar](255) NULL,
	[SIGN_PCD] [nvarchar](255) NULL,
	[ERR_CODE] [nvarchar](255) NULL,
	[ERR_DES] [nvarchar](255) NULL,
	[NGAY_XAC_THUC] [datetime] NULL,
	[PUBLICKEY] [nvarchar](255) NULL,
	[NGAY_DIEU_CHINH] [datetime] NULL,
	[NOI_DUNG_DIEU_CHINH] [nvarchar](255) NULL,
	[NOI_DUNG_HOA_DON_DIEN_TU] [ntext] NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](50) NULL,
	[GHI_CHU_DONG_BO] [nvarchar](4000) NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[CA_LAM_VIEC] [nvarchar](50) NULL,
	[BUYER_ISSIGN] [int] NULL,
	[FILE_ISSIGN] [int] NULL,
	[FILE_NAME] [nvarchar](50) NULL,
	[FILE_SIZE] [nvarchar](50) NULL,
	[FILE_TYPE] [int] NULL,
	[SO_HOA_DON_GOC] [nvarchar](50) NULL,
	[KY_HIEU_GOC] [nvarchar](50) NULL,
	[MAU_SO_GOC] [nvarchar](50) NULL,
	[NGAY_HOA_DON_GOC] [datetime] NULL,
	[GUID_DHOADON_GOC] [nvarchar](50) NULL,
	[FILE_DATA] [image] NULL,
	[VINPOINT_THANH_TOAN_DIEM] [numeric](23, 8) NULL,
	[VINPOINT_GIA_TRI_TICH_LUY] [numeric](23, 8) NULL,
	[VINPOINT_DIEM_TICH_LUY] [numeric](23, 8) NULL,
	[VINPOINT_TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[VINPOINT_TONG_TIEN_THANH_TOAN] [numeric](23, 8) NULL,
	[VINPOINT_TIEN_THUE_VAT5] [numeric](23, 8) NULL,
	[VINPOINT_TIEN_THUE_VAT] [numeric](23, 8) NULL,
	[VINPOINT_RESPONSECODE] [nvarchar](255) NULL,
	[VINPOINT_ERRORMESSAGE] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHOADON_DONG_BO] PRIMARY KEY CLUSTERED 
(
	[DHOADON_DONG_BOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_EMAIL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_EMAIL](
	[DHOADON_EMAILID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[EMAIL_TYPE] [int] NULL,
	[EMAIL_FROM] [nvarchar](250) NULL,
	[EMAIL_TO] [nvarchar](250) NULL,
	[EMAIL_SUBJECT] [nvarchar](500) NULL,
	[EMAIL_CONTENT] [ntext] NULL,
	[EMAIL_CC] [nvarchar](250) NULL,
	[EMAIL_BCC] [nvarchar](250) NULL,
	[EMAIL_ISSEND] [int] NULL,
	[USER_CREATE] [nvarchar](50) NULL,
	[EMAIL_SENDTIME] [datetime] NULL,
	[EMAIL_REPLYTIME] [datetime] NULL,
	[EMAIL_REPLY_CONTENT] [ntext] NULL,
	[EMAIL_GUID] [nvarchar](50) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[EMAIL_COUNTSEND] [int] NULL,
	[EMAIL_ERRORSEND] [nvarchar](4000) NULL,
	[MAY_CAP_NHAT] [nvarchar](255) NULL,
	[NGAY_CAP_NHAT] [datetime] NULL,
	[TEN_SERVICE] [varchar](255) NULL,
 CONSTRAINT [PK_DHOADON_EMAIL] PRIMARY KEY CLUSTERED 
(
	[DHOADON_EMAILID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_EMAIL_ATTACH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_EMAIL_ATTACH](
	[DHOADON_EMAILID] [numeric](18, 0) NOT NULL,
	[DHOADON_FILEID] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_DHOADON_EMAIL_ATTACH] PRIMARY KEY CLUSTERED 
(
	[DHOADON_EMAILID] ASC,
	[DHOADON_FILEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_EMAIL_BIENBAN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_EMAIL_BIENBAN](
	[DHOADON_EMAIL_BIENBANID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[DHOADON_BIENBANID] [numeric](18, 0) NULL,
	[EMAIL_TYPE] [int] NULL,
	[EMAIL_FROM] [nvarchar](250) NULL,
	[EMAIL_TO] [nvarchar](250) NULL,
	[EMAIL_SUBJECT] [nvarchar](500) NULL,
	[EMAIL_CONTENT] [ntext] NULL,
	[EMAIL_CC] [nvarchar](250) NULL,
	[EMAIL_BCC] [nvarchar](250) NULL,
	[EMAIL_ISSEND] [int] NULL,
	[USER_CREATE] [nvarchar](50) NULL,
	[EMAIL_SENDTIME] [datetime] NULL,
	[EMAIL_REPLYTIME] [datetime] NULL,
	[EMAIL_REPLY_CONTENT] [ntext] NULL,
	[EMAIL_GUID] [nvarchar](50) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[EMAIL_COUNTSEND] [int] NULL,
	[EMAIL_ERRORSEND] [nvarchar](4000) NULL,
	[MAY_CAP_NHAT] [nvarchar](255) NULL,
	[NGAY_CAP_NHAT] [datetime] NULL,
	[TEN_SERVICE] [varchar](255) NULL,
 CONSTRAINT [PK_DHOADON_EMAIL_BIENBAN] PRIMARY KEY CLUSTERED 
(
	[DHOADON_EMAIL_BIENBANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_EXPORT_XML]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_EXPORT_XML](
	[DHOADON_EXPORT_XMLID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[NOI_DUNG] [ntext] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_TAO] [nvarchar](50) NULL,
	[IS_EXPORT_FILE] [numeric](18, 0) NULL,
	[ERROR] [nvarchar](4000) NULL,
	[FILE_NAME] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHOADON_EXPORT_XML] PRIMARY KEY CLUSTERED 
(
	[DHOADON_EXPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_EXTENSION](
	[DHOADON_EXTENSIONID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [decimal](18, 0) NOT NULL,
	[GUID_DHOADON] [varchar](50) NOT NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_VARCHAR6] [nvarchar](255) NULL,
	[EXT_VARCHAR7] [nvarchar](255) NULL,
	[EXT_VARCHAR8] [nvarchar](255) NULL,
	[EXT_VARCHAR9] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_DATE6] [datetime] NULL,
	[EXT_DATE7] [datetime] NULL,
	[EXT_DATE8] [datetime] NULL,
	[EXT_DATE9] [datetime] NULL,
	[EXT_NUMBER6] [numeric](23, 8) NULL,
	[EXT_NUMBER7] [numeric](23, 8) NULL,
	[EXT_NUMBER8] [numeric](23, 8) NULL,
	[EXT_NUMBER9] [numeric](23, 8) NULL,
	[EXT_NUMBER10] [numeric](23, 8) NULL,
	[EXT_NUMBER11] [numeric](23, 8) NULL,
	[EXT_NUMBER12] [numeric](23, 8) NULL,
	[EXT_NUMBER13] [numeric](23, 8) NULL,
	[EXT_NUMBER14] [numeric](23, 8) NULL,
	[EXT_NUMBER15] [numeric](23, 8) NULL,
 CONSTRAINT [PK__DHOADON___B6A5CAC9292D09F3] PRIMARY KEY CLUSTERED 
(
	[DHOADON_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_EXTENSION_CAUHINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_EXTENSION_CAUHINH](
	[DHOADON_EXTENSION_CAUHINHID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[MA_TIEU_CHI] [nvarchar](50) NOT NULL,
	[STT] [int] NULL,
	[KIEU_DU_LIEU] [int] NOT NULL,
	[TEN_TIEU_CHI] [nvarchar](100) NULL,
	[TEN_THE_XML] [nvarchar](50) NULL,
	[LOAI_BANG] [nvarchar](100) NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK__CAU_HINH__8D1842E709B45E9A] PRIMARY KEY CLUSTERED 
(
	[DHOADON_EXTENSION_CAUHINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_FILE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_FILE](
	[DHOADON_FILEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[FILE_TYPE] [int] NULL,
	[FILE_NAME] [nvarchar](255) NULL,
	[FILE_SIZE] [nvarchar](255) NULL,
	[FILE_DATECREATE] [datetime] NULL,
	[FILE_PARTITION] [nvarchar](255) NULL,
	[FILE_FORMAT] [int] NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[FILE_ISSIGN] [int] NULL,
	[USER_CREATE] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[BUYER_ISSIGN] [int] NULL,
	[DHOADON_FILE_PARTITION_TEMPID] [numeric](18, 0) NULL,
	[DHOADONID_REF] [numeric](18, 0) NULL,
	[DHOADON_FILEID_REF] [numeric](18, 0) NULL,
 CONSTRAINT [PK_DHOADON_FILE] PRIMARY KEY CLUSTERED 
(
	[DHOADON_FILEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_FILE_PARTITION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_FILE_PARTITION](
	[DHOADON_FILEID] [numeric](18, 0) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[FILE_DATA] [image] NULL,
 CONSTRAINT [PK_DHOADON_FILE_PARTITION] PRIMARY KEY CLUSTERED 
(
	[DHOADON_FILEID] ASC,
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_GL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_GL](
	[DHOADON_GLID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NGAY_HOA_DON] [datetime] NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[SO_LUONG] [nvarchar](50) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[TU_SO] [nvarchar](50) NULL,
	[DEN_SO] [nvarchar](50) NULL,
	[NGAY_HOA_DON_TO] [datetime] NULL,
 CONSTRAINT [PK_DHOADON_GIULAI] PRIMARY KEY CLUSTERED 
(
	[DHOADON_GLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_GL_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_GL_CHITIET](
	[DHOADON_GL_CHITIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_GLID] [numeric](18, 0) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[IS_SUDUNG] [int] NULL,
	[NGAY_SU_DUNG] [datetime] NULL,
	[TRANG_THAI] [int] NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_DHOADON_GIULAI_CHITIET] PRIMARY KEY CLUSTERED 
(
	[DHOADON_GL_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_HANG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_HANG](
	[DHOADON_HANGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[IS_DIEU_CHINH] [int] NULL,
	[IS_KHUYEN_MAI] [int] NULL,
	[STT] [numeric](18, 0) NULL,
	[DHANGHOAID] [numeric](18, 0) NULL,
	[MA_HANG] [nvarchar](50) NULL,
	[TEN_HANG] [nvarchar](400) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[TEN_DVT] [nvarchar](255) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[SO_LUONG_NHAP] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[DON_GIA_NT] [numeric](23, 8) NULL,
	[DON_GIA_SAU_THUE] [decimal](23, 8) NULL,
	[DON_GIA_SAU_THUE_NT] [decimal](23, 8) NULL,
	[VAT] [numeric](23, 8) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN_NT] [numeric](23, 8) NULL,
	[CHIET_KHAU_PHAN_TRAM] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_NT] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_THUE] [decimal](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_KHO] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](100) NULL,
	[SO_LUONG_GOC] [numeric](23, 8) NULL,
	[DON_GIA_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_GOC] [numeric](23, 8) NULL,
	[DON_GIA_NT_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_NT_GOC] [numeric](23, 8) NULL,
	[MA_LOAI_HANG] [nvarchar](50) NULL,
	[GUID_DHOADON_HANG] [varchar](100) NULL,
	[VAT_TIEN_NT] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_THUE_NT] [decimal](23, 8) NULL,
	[THANH_TIEN_SAU_CK] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_CK_NT] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_CK_GOC] [numeric](23, 8) NULL,
	[TINH_CHAT] [int] NULL,
	[IS_GIAM_TRU_30] [int] NULL,
	[SLOAI_DIEU_CHINHID] [int] NULL,
	[SO_LUONG_NHAP_GOC] [numeric](23, 8) NULL,
	[TY_GIA] [decimal](18, 6) NULL,
	[MA_NT] [nvarchar](20) NULL,
 CONSTRAINT [PK_DHOADON_HANG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_HANG_DONG_BO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_HANG_DONG_BO](
	[DHOADON_HANG_DONG_BOID] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_DONG_BOID] [numeric](18, 0) NOT NULL,
	[DHANGHOAID] [numeric](18, 0) NULL,
	[STT] [numeric](18, 0) NULL,
	[TEN_HANG] [nvarchar](255) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[SO_LUONG_NHAP] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[CHIET_KHAU_PHAN_TRAM] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[VAT] [numeric](23, 8) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[MA_HANG] [nvarchar](50) NULL,
	[DON_GIA_NT] [numeric](23, 8) NULL,
	[THANH_TIEN_NT] [numeric](23, 8) NULL,
	[DHOADON_HANGIDTempt] [numeric](18, 0) NULL,
	[SO_LO] [nvarchar](50) NULL,
	[HAN_DUNG] [datetime] NULL,
	[IS_TINH_THUE] [int] NULL,
	[SO_VE] [nvarchar](255) NULL,
	[HANH_TRINH] [nvarchar](255) NULL,
	[IS_GIAM_TRU] [int] NULL,
	[CHIET_KHAU_TIEN_NT] [numeric](23, 8) NULL,
	[MA_KHO] [nvarchar](50) NULL,
	[SO_LUONG_DN] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](100) NULL,
	[TEN_HANG_HANG_KHONG] [nvarchar](255) NULL,
	[SO_LUONG_PSC] [numeric](23, 8) NULL,
	[SO_LUONG_BDL] [numeric](23, 8) NULL,
	[DINH_MUC_PSC] [numeric](23, 8) NULL,
	[GUID_DHOADON_HANG_DONG_BO] [varchar](50) NULL,
	[IS_DIEU_CHINH] [int] NULL,
	[SO_LUONG_GOC] [numeric](23, 8) NULL,
	[DON_GIA_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_GOC] [numeric](23, 8) NULL,
	[DON_GIA_NT_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_NT_GOC] [numeric](23, 8) NULL,
	[MA_NHOM] [nvarchar](50) NULL,
	[TEN_NHOM] [nvarchar](255) NULL,
	[MA_DOI_TUONG] [nvarchar](50) NULL,
	[TEN_DOI_TUONG] [nvarchar](255) NULL,
	[VI_TRI] [nvarchar](50) NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[GUID_DHOADON] [nvarchar](50) NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](50) NULL,
	[GHI_CHU_DONG_BO] [nvarchar](4000) NULL,
	[VINPOINT_THANH_TIEN] [numeric](23, 8) NULL,
	[VINPOINT_VAT_TIEN] [numeric](23, 8) NULL,
	[VINPOINT_TIEN_THANH_TOAN] [numeric](23, 8) NULL,
	[NOI_DUNG_TEMP] [ntext] NULL,
 CONSTRAINT [PK_DHOADON_HANG_DONG_BO] PRIMARY KEY CLUSTERED 
(
	[DHOADON_HANG_DONG_BOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_HANG_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_HANG_EXTENSION](
	[DHOADON_HANG_EXTENSIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[DHOADON_HANGID] [numeric](18, 0) NOT NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_VARCHAR6] [nvarchar](255) NULL,
	[EXT_VARCHAR7] [nvarchar](255) NULL,
	[EXT_VARCHAR8] [nvarchar](255) NULL,
	[EXT_VARCHAR9] [nvarchar](255) NULL,
	[EXT_VARCHAR10] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_INT1] [int] NULL,
	[EXT_INT2] [int] NULL,
	[EXT_INT3] [int] NULL,
	[EXT_INT4] [int] NULL,
	[EXT_INT5] [int] NULL,
	[GUID_DHOADON_HANG] [varchar](100) NULL,
	[EXT_NUMBER6] [numeric](23, 8) NULL,
	[EXT_NUMBER7] [numeric](23, 8) NULL,
	[EXT_NUMBER8] [numeric](23, 8) NULL,
	[EXT_NUMBER9] [numeric](23, 8) NULL,
 CONSTRAINT [PK__DHOADON___32082AE82CFD9AD7] PRIMARY KEY CLUSTERED 
(
	[DHOADON_HANG_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_HUY]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_HUY](
	[DHOADON_HUYID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[PHUONG_PHAP_HUY] [nvarchar](255) NULL,
	[GIO] [numeric](18, 0) NULL,
	[PHUT] [numeric](18, 0) NULL,
	[NGAY] [datetime] NULL,
	[NGAY_CT] [datetime] NULL,
	[NGAY_NHAP] [datetime] NULL,
	[NGUOI_DAI_DIEN] [nvarchar](255) NULL,
	[NGUOI_LAP_BIEU] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_LOAI_HUY] [nvarchar](255) NULL,
	[LOAI_HOA_DON_CHUA_SD] [nvarchar](255) NULL,
	[MA_CO_QUAN_THUE] [nvarchar](50) NULL,
	[TU_NGAY] [datetime] NULL,
	[DEN_NGAY] [datetime] NULL,
 CONSTRAINT [PK_DHOADON_HUY] PRIMARY KEY CLUSTERED 
(
	[DHOADON_HUYID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_HUY_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_HUY_CHITIET](
	[DHOADON_HUY_CHITIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_HUYID] [numeric](18, 0) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[TU_SO] [numeric](18, 0) NULL,
	[DEN_SO] [numeric](18, 0) NULL,
	[SO_LUONG] [numeric](18, 0) NULL,
	[SO_LIEN] [nvarchar](255) NULL,
	[QUYET_TOAN] [numeric](18, 0) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHOADON_HUY_CHITIET] PRIMARY KEY CLUSTERED 
(
	[DHOADON_HUY_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_LIST]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_LIST](
	[DHOADON_IMPORT_LISTID] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[MA_HOA_DON] [nvarchar](50) NOT NULL,
	[NGAY_HOA_DON] [datetime] NOT NULL,
	[BEN_MUA_MA] [nvarchar](50) NULL,
	[BEN_MUA_HO_TEN] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](255) NULL,
	[BEN_MUA_MA_DV] [nvarchar](255) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[SO_DON_HANG] [nvarchar](50) NULL,
	[MA_NT] [nvarchar](50) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[MA_HANG_HOA] [nvarchar](50) NULL,
	[TEN_HANG_HOA] [nvarchar](255) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN_VND] [numeric](23, 8) NULL,
	[SO_LUONG1] [numeric](23, 8) NULL,
	[DON_GIA1] [numeric](23, 8) NULL,
	[THANH_TIEN1] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[MA_CN] [nvarchar](50) NULL,
	[IS_SU_DUNG] [int] NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TIEN_THUE] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_THUE] [numeric](23, 8) NULL,
	[IS_CHON] [int] NULL,
 CONSTRAINT [PK_DHOADON_IMPORT_LIST] PRIMARY KEY CLUSTERED 
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML](
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[MA_HINHTHUCTT] [nvarchar](50) NULL,
	[HINH_THUC_TT] [nvarchar](50) NULL,
	[HINH_THUC_IN] [int] NULL,
	[MA_CN] [nvarchar](50) NULL,
	[TEN_CN] [nvarchar](500) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[MA_NHAN_HOA_DON] [nvarchar](50) NULL,
	[BEN_BAN_TEN_DV] [nvarchar](255) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](255) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_FAX] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[BEN_MUA_HO_TEN] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DV] [nvarchar](255) NULL,
	[BEN_MUA_MA] [nvarchar](50) NULL,
	[BEN_MUA_MA_DV] [nvarchar](50) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_FAX] [nvarchar](255) NULL,
	[BEN_MUA_EMAIL] [varchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_MUA_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_DIA_CHI] [nvarchar](255) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_0] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_5] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_10] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_0_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_5_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_10_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU] [nvarchar](255) NULL,
	[TONG_THANH_TOAN_BANG_CHU_NT] [nvarchar](255) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_0_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_5_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_10_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_5] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_10] [numeric](23, 8) NULL,
	[LOAI_HANG] [nvarchar](100) NULL,
	[SO_HOP_DONG] [nvarchar](255) NULL,
	[NGAY_HOP_DONG] [datetime] NULL,
	[DIA_DIEM_GIAO_HANG] [nvarchar](255) NULL,
	[DIA_DIEM_NHAN_HANG] [nvarchar](255) NULL,
	[SO_VAN_DON] [nvarchar](255) NULL,
	[SO_CONTAINER] [nvarchar](255) NULL,
	[TEN_DON_VI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_PHUONG_TIEN_VAN_CHUYEN] [nvarchar](255) NULL,
	[SO_HOP_DONG_VAN_CHUYEN] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_SO] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_NGAY] [datetime] NULL,
	[LENH_DIEU_DONG_CUA] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_VE_VIEC] [nvarchar](255) NULL,
	[HO_TEN_NGUOI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_KHO_XUAT] [nvarchar](255) NULL,
	[MA_KHO_NHAP] [nvarchar](255) NULL,
	[NGAY_XUAT_KHO] [datetime] NULL,
	[NGAY_NHAP_KHO] [datetime] NULL,
	[NGAY_NHAN_DON_HANG] [datetime] NULL,
	[NGAY_GIAO_HANG] [datetime] NULL,
	[THONG_TIN_GIAO_HANG] [nvarchar](500) NULL,
	[DIEU_KIEN_GIAO_HANG] [nvarchar](50) NULL,
	[DON_VI_NHAN_HANG] [nvarchar](255) NULL,
	[DIA_CHI_DON_VI_NHAN_HANG] [nvarchar](255) NULL,
	[DIEN_THOAI_NHAN_HANG] [nvarchar](200) NULL,
	[BIEN_BAN_GIAO_HANG_SO] [nvarchar](255) NULL,
	[MA_NT] [nvarchar](255) NULL,
	[MA_NT_QD] [nvarchar](255) NULL,
	[TEN_NT] [nvarchar](50) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[GHI_CHU_NB] [nvarchar](255) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](255) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[NGAY_IN] [datetime] NULL,
	[NGUOI_IN] [nvarchar](100) NULL,
	[NGUOI_PHE_DUYET] [nvarchar](50) NULL,
	[NGAY_PHE_DUYET] [date] NULL,
	[NGAY_IN_BANG_KE] [datetime] NULL,
	[NGUOI_THU] [nvarchar](2550) NULL,
	[NGAY_IN_HD_CHUYEN_DOI] [datetime] NULL,
	[LAN_IN] [int] NULL,
	[NOI_XUAT_HOA_DON] [nvarchar](255) NULL,
	[CA_LAM_VIEC] [nvarchar](255) NULL,
	[THONG_BAO_BANG_KE] [int] NULL,
	[MA_BAO_MAT] [nvarchar](255) NULL,
	[MA_BAO_MAT1] [nvarchar](255) NULL,
	[TRANG_THAI] [int] NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NULL,
	[TRANG_THAI_PHE_DUYET] [int] NULL,
	[LY_DO_XU_LY] [nvarchar](255) NULL,
	[NGAY_XU_LY] [datetime] NULL,
	[CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_PHI_KHAC] [numeric](23, 8) NULL,
	[SO_HOA_DON_IMPORT] [nvarchar](200) NULL,
	[TRANG_THAI_THANH_TOAN] [int] NULL,
	[THOI_HAN_THANH_TOAN] [nvarchar](200) NULL,
	[THOI_HAN_THANH_TOAN_NGAY] [datetime] NULL,
	[CHUNG_TU_THANH_TOAN_SO] [nvarchar](50) NULL,
	[CHUNG_TU_THANH_TOAN_NGAY] [datetime] NULL,
	[TONG_DA_THANH_TOAN] [numeric](23, 6) NULL,
	[IS_DA_DONG_BO] [int] NULL,
	[DIA_CHI_GUI_HOA_DON] [nvarchar](500) NULL,
	[NGUOI_LIEN_HE_GUI_HOA_DON] [nvarchar](255) NULL,
	[DIEN_THOAI_GUI_HOA_DON] [nvarchar](100) NULL,
	[EMAIL_GUI_HOA_DON] [nvarchar](255) NULL,
	[IS_KHONG_TONG_HOP_01GTGT] [int] NULL,
	[IS_IMPORT] [int] NULL,
	[IS_KHACH_LE] [int] NULL,
	[IS_SU_DUNG_NT] [int] NULL,
	[IS_BEN_MUA_KY_SO] [int] NULL,
	[IS_BEN_BAN_KY_SO] [int] NULL,
	[BEN_MUA_KY_SO_NGAY] [date] NULL,
	[BEN_BAN_KY_SO_NGAY] [datetime] NULL,
	[SO_THAM_CHIEU_1] [nvarchar](50) NULL,
	[SO_THAM_CHIEU_2] [nvarchar](50) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_VAT] [numeric](23, 8) NULL,
	[THUE_VAT] [numeric](23, 8) NULL,
	[BAN_IN] [numeric](18, 0) NULL,
	[IS_CHON] [int] NULL,
	[CODE_KHO_NHAP] [nvarchar](255) NULL,
	[CODE_KHO_XUAT] [nvarchar](255) NULL,
	[DMAU_INID] [numeric](18, 0) NULL,
	[PHI_CONG] [numeric](23, 8) NULL,
	[PHI_TRU] [numeric](23, 8) NULL,
	[SO_VE] [nvarchar](255) NULL,
	[HANH_TRINH] [nvarchar](255) NULL,
	[LOAI_HINH_SU_DUNG] [int] NULL,
	[TYPE_HOADON] [numeric](18, 0) NULL,
	[IS_KHONG_CHIU_THUE] [int] NULL,
	[IS_KHONG_TINH] [int] NULL,
	[TIEP_HOA_DON_TRUOC] [nvarchar](255) NULL,
	[IS_TIEP_HOA_DON_TRUOC] [int] NULL,
	[TIEP_HOA_DON_SAU] [nvarchar](50) NULL,
	[IS_TIEP_HOA_DON_SAU] [int] NULL,
	[THUE_KHAC] [numeric](23, 8) NULL,
	[TONG_THUE_KHAC] [numeric](23, 8) NULL,
	[PHI_KHAC] [numeric](23, 8) NULL,
	[MA_SO_TK] [nvarchar](50) NULL,
	[MA_HOA_DON_XK] [nvarchar](50) NULL,
	[PHI_SAN_BAY] [numeric](23, 8) NULL,
	[TONG_PHI_SAN_BAY] [numeric](23, 8) NULL,
	[TEN_HANG_HANG_KHONG] [nvarchar](255) NULL,
	[IS_CHI_HOAN] [int] NULL,
	[TEN_VE] [nvarchar](255) NULL,
	[LOAI_HINH_AP_DUNG] [nvarchar](255) NULL,
	[CHUNG_TU_THANH_TOAN_NGAN_HANG] [nvarchar](255) NULL,
	[SO_LUONG_VE] [numeric](23, 6) NULL,
	[TU_SO_VE] [nvarchar](50) NULL,
	[DEN_SO_VE] [nvarchar](50) NULL,
	[GIA_TIEN_VE] [nvarchar](255) NULL,
	[CANG_GIAO_HANG] [nvarchar](255) NULL,
	[CANG_NHAN_HANG] [nvarchar](255) NULL,
	[NGAY_TAU_CHAY] [datetime] NULL,
	[TEN_TAU] [nvarchar](255) NULL,
	[VAT5] [numeric](23, 8) NULL,
	[TONG_VAT5] [numeric](23, 8) NULL,
	[IS_EXPORT] [numeric](18, 0) NULL,
	[IS_DA_TT] [int] NULL,
	[IS_VE_THANG] [int] NULL,
	[IN_VE_THANG] [numeric](18, 0) NULL,
	[IN_VE_NAM] [numeric](18, 0) NULL,
	[NGAY_TT] [datetime] NULL,
	[SO_PHIEU_TT] [nvarchar](100) NULL,
	[DHOADONID_IMPORT] [numeric](18, 0) NULL,
	[HOP_DONG_TYPE] [nvarchar](50) NULL,
	[TONG_VAT_NT] [numeric](23, 8) NULL,
	[TONG_VAT_NT5] [numeric](23, 8) NULL,
	[FAX_NHAN_HANG] [nvarchar](200) NULL,
	[GHI_CHU_GIAO_HANG] [nvarchar](500) NULL,
	[RESCODE] [nvarchar](200) NULL,
	[RECEITP] [varchar](8000) NULL,
	[RESCODE_REF] [nvarchar](200) NULL,
	[CHECK_NO] [varchar](900) NULL,
	[IS_NO_HD] [int] NULL,
	[IS_TACH_HD] [int] NULL,
	[TACH_HDID] [numeric](18, 0) NULL,
	[TACH_HD_STT] [int] NULL,
	[IS_GOP_HD] [int] NULL,
	[CASHIER] [nvarchar](200) NULL,
	[TRAN_STATUS] [int] NULL,
	[REPLY_STATUS] [int] NULL,
	[COUNTGET] [int] NULL,
	[COUNTPOST] [int] NULL,
	[SRV_ERROR] [nvarchar](500) NULL,
	[DATEGET] [datetime] NULL,
	[PRE_DHOADONID] [numeric](18, 0) NULL,
	[IS_HOADON_DIEN_TU] [numeric](18, 0) NULL,
	[IS_XUAT_TU_DONG] [numeric](18, 0) NULL,
	[NGAY_YC_XUAT_TU_DONG] [datetime] NULL,
	[NGUOI_YC_XUAT_TU_DONG] [nvarchar](50) NULL,
	[NGAY_XUAT_HOA_DON_TU_DONG] [datetime] NULL,
	[LOI] [ntext] NULL,
	[QUYEN_SO] [nvarchar](255) NULL,
	[SO_BIEN_LAI] [nvarchar](255) NULL,
	[TAM_UNG] [numeric](23, 3) NULL,
	[SO_HOA_DON_MISA] [nvarchar](50) NULL,
	[NGAY_HOA_DON_MISA] [datetime] NULL,
	[ERROR_LOG_MISA] [nvarchar](255) NULL,
	[CONVERT_MISA] [int] NULL,
	[MAU_SO_MISA] [nvarchar](50) NULL,
	[KY_HIEU_MISA] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](50) NULL,
	[SO_LINE_HANG] [numeric](18, 0) NULL,
	[MA_PICKING] [nvarchar](50) NULL,
	[TIEN_COUPON] [decimal](23, 8) NULL,
	[IS_DONG_BO_WEBSITE] [int] NULL,
	[IS_DONG_BO_SERVER] [int] NULL,
	[SELLER_IS_SIGN] [int] NULL,
	[BUYER_IS_SIGN] [int] NULL,
	[KY_HOC] [nvarchar](255) NULL,
	[NAM_HOC] [decimal](18, 0) NULL,
	[NHOM_DOI_TUONG] [nvarchar](255) NULL,
	[LOP_HOC] [nvarchar](255) NULL,
	[BIEN_SO_XE] [nvarchar](255) NULL,
	[NamSinh] [datetime] NULL,
	[NgayNhapVien] [datetime] NULL,
	[MA_GIAO_DICH] [nvarchar](250) NULL,
	[TEN_GIAO_DICH] [nvarchar](550) NULL,
	[SO_NHAP_VIEN] [nvarchar](550) NULL,
	[REF_NO] [nvarchar](255) NULL,
	[INVOICE_SUBJECT] [nvarchar](500) NULL,
	[SWIFT_CODE] [nvarchar](250) NULL,
	[PROJECT_CODE] [nvarchar](250) NULL,
	[PAYMENT_TYPE_IN_WORDS] [nvarchar](2000) NULL,
	[PAYMENT_NOTES] [nvarchar](2000) NULL,
	[APPLICATION_NAME] [nvarchar](250) NULL,
	[BENEFICIARY_NAME] [nvarchar](250) NULL,
	[INVOICE_SUB_TYPE] [nvarchar](250) NULL,
	[PAY_TO_TYPE] [nvarchar](250) NULL,
	[PROJECT_PHONE] [nvarchar](255) NULL,
	[INVOICE_ID] [nvarchar](255) NULL,
	[TRANG_THAI_KIEM_DUYET] [int] NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](255) NULL,
	[GHI_CHU_DONG_BO] [nvarchar](255) NULL,
	[BILL_TYPE] [smallint] NULL,
	[MA_THOI_HAN_THANH_TOAN] [varchar](10) NULL,
	[SDTNHANSMS1] [nvarchar](50) NULL,
	[SDTNHANSMSKHAC] [nvarchar](50) NULL,
	[LOAI_IN_HOA_DON] [nvarchar](255) NULL,
	[TO_CHUC_BAN_HANG] [nvarchar](255) NULL,
	[KHU_VUC_KINH_DOANH] [nvarchar](255) NULL,
	[SO_BIEN_LAI_GOC] [nvarchar](255) NULL,
	[TONG_TIEN_HANG5] [numeric](23, 8) NULL,
	[TONG_VAT10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANGNO] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN5] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN10] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN0] [numeric](23, 8) NULL,
	[TONG_THANH_TOANNO] [numeric](23, 8) NULL,
	[REF_DOC_NO] [nvarchar](50) NULL,
	[REF_DOC_TYPE] [nvarchar](50) NULL,
	[SO_NO] [nvarchar](255) NULL,
	[DOC_NO] [nvarchar](255) NULL,
	[TRANG_THAI_DONG_BO_THAI_SON] [varchar](5) NULL,
	[GHI_CHU_DONG_BO_THAI_SON] [nvarchar](900) NULL,
	[DHOADON_IMPORT_XML_GOPID] [numeric](18, 0) NULL,
	[TIEN_CHIET_KHAU] [numeric](23, 8) NULL,
	[RECEITP_GOC] [varchar](8000) NULL,
	[TEN_HANG_CHUNG] [nvarchar](500) NULL,
	[FILE_NAME] [nvarchar](255) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_CK] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_KE_KHAI_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE_CK] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_KE_KHAI_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_KHONG_KE_KHAI_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_CK] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_KHONG_CHIU_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE_CK] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_KHONG_CHIU_THUE_CK_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_KHONG_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_0_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_CK_0] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_CK_0_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_0] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_5_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_CK_5] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_CK_5_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_5] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_10] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_CK_10_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_CK_10] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_CK_10_NT] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_10] [numeric](23, 8) NULL,
	[TONG_CHIET_KHAU_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_SAU_CK_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_SAU_CK_TONG] [numeric](23, 8) NULL,
	[IS_GIAM_TRU_30] [int] NULL,
	[BEN_MUA_SO_CCCD] [nvarchar](50) NULL,
	[SO_XAC_THUC] [nvarchar](50) NULL,
	[GUID_DHOADON_GOC] [nvarchar](50) NULL,
	[DHOADONID_GOC] [numeric](18, 0) NULL,
	[MAU_SO_GOC] [nvarchar](50) NULL,
	[KY_HIEU_GOC] [nvarchar](50) NULL,
	[NGAY_HOA_DON_GOC] [datetime] NULL,
	[NGAY_MO_CA] [datetime] NULL,
	[NGAY_CHOT_CA] [datetime] NULL,
 CONSTRAINT [PK_DHOADON_IMPORT] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_DETAIL_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_DETAIL_LOG](
	[DHOADON_IMPORT_XML_DETAIL_LOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XML_LOGID] [numeric](18, 0) NULL,
	[SO_BILL] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[MO_TA_LOI] [nvarchar](4000) NULL,
	[GHI_CHU] [nvarchar](250) NULL,
	[STATUS] [numeric](18, 0) NULL,
 CONSTRAINT [PK_DHOADON_IMPORT_XML_DETAIL_LOG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XML_DETAIL_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_DONG_BO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_DONG_BO](
	[DHOADON_IMPORT_XML_DONG_BOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) NULL,
	[SO_HOA_DON] [nvarchar](255) NULL,
	[KY_HIEU_HOA_DON] [nvarchar](255) NULL,
	[MAU_SO_HOA_DON] [nvarchar](255) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](255) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_FAX] [nvarchar](255) NULL,
	[BEN_BAN_MA_DON_VI] [nvarchar](255) NULL,
	[BEN_BAN_MA_SO_THUE] [nvarchar](255) NULL,
	[BEN_BAN_TAI_KHOAN_NGAN_HANG] [nvarchar](255) NULL,
	[BEN_BAN_TEN_DON_VI] [nvarchar](255) NULL,
	[BEN_BAN_TEN_NGAN_HANG] [nvarchar](255) NULL,
	[BEN_MUA_DIA_CHI] [nvarchar](255) NULL,
	[BEN_MUA_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_MUA_FAX] [nvarchar](255) NULL,
	[BEN_MUA_HO_TEN] [nvarchar](255) NULL,
	[BEN_MUA_MA_DON_VI] [nvarchar](255) NULL,
	[BEN_MUA_MA_SO_THUE] [nvarchar](255) NULL,
	[BEN_MUA_TAI_KHOAN_NGAN_HANG] [nvarchar](255) NULL,
	[BEN_MUA_TEN_DON_VI] [nvarchar](255) NULL,
	[BEN_MUA_TEN_NGAN_HANG] [nvarchar](255) NULL,
	[DONG_TIEN_THANH_TOAN] [nvarchar](255) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TIEN_THUE_VAT] [numeric](23, 8) NULL,
	[TIEN_CHIET_KHAU] [numeric](23, 8) NULL,
	[TONG_TIEN_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_TIEN_THANH_TOAN_BANG_CHU] [nvarchar](255) NULL,
	[TRANG_THAI_DIEU_CHINH] [numeric](18, 0) NULL,
	[FILE_NAME] [nvarchar](255) NULL,
	[FILE_PATH] [nvarchar](255) NULL,
	[FILE_CONTENT] [ntext] NULL,
	[TRANG_THAI] [int] NULL,
	[MO_TA_LOI] [nvarchar](100) NULL,
	[NGAY_IMPORT] [datetime] NULL,
	[NGAY_TAO_HOA_DON] [datetime] NULL,
	[IS_IMPORT] [numeric](18, 0) NULL,
	[HINH_THUC_THANH_TOAN] [nvarchar](255) NULL,
	[NGUOI_TAO] [nvarchar](255) NULL,
	[DHOADONID] [decimal](18, 0) NULL,
	[QUYEN_SO] [nvarchar](255) NULL,
	[SO_BIEN_LAI] [nvarchar](255) NULL,
	[NGUOI_THU] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[NOI_XUAT_HOA_DON] [nvarchar](255) NULL,
	[TAM_UNG] [decimal](23, 8) NULL,
	[RESCODE] [nvarchar](255) NULL,
	[RECEITP] [nvarchar](255) NULL,
	[DATEOPENEDSHIFT] [datetime] NULL,
	[DATECLOSEDBILL] [datetime] NULL,
	[CHECK] [nvarchar](255) NULL,
	[CASHIER] [nvarchar](255) NULL,
	[GUID_DHOADON_IMPORT_XML] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](255) NULL,
	[CA_LAM_VIEC] [nvarchar](255) NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](50) NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[REFERENCE_DONG_BO] [nvarchar](50) NULL,
	[GHI_CHU_DONG_BO] [nvarchar](500) NULL,
	[SO_VAN_DON] [nvarchar](255) NULL,
	[CHECK_NO] [nvarchar](255) NULL,
	[GHI_CHU_NB] [nvarchar](255) NULL,
	[THOI_HAN_THANH_TOAN] [nvarchar](255) NULL,
	[BEN_MUA_EMAIL] [nvarchar](500) NULL,
	[NAM_HOC] [int] NULL,
	[NHOM_DOI_TUONG] [nvarchar](255) NULL,
	[LOP_HOC] [nvarchar](255) NULL,
	[TIEN_PHI_KHAC] [numeric](23, 8) NULL,
	[CHECKGUID] [nvarchar](255) NULL,
	[COL_EXTENSION] [nvarchar](500) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_EXTENSION](
	[DHOADON_IMPORT_XML_EXTENSIONID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XMLID] [decimal](18, 0) NOT NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_VARCHAR6] [nvarchar](255) NULL,
	[EXT_VARCHAR7] [nvarchar](255) NULL,
	[EXT_VARCHAR8] [nvarchar](255) NULL,
	[EXT_VARCHAR9] [nvarchar](255) NULL,
	[EXT_VARCHAR10] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_INT1] [int] NULL,
	[EXT_INT2] [int] NULL,
	[EXT_INT3] [int] NULL,
	[EXT_INT4] [int] NULL,
	[EXT_INT5] [int] NULL,
	[EXT_TEXT1] [ntext] NULL,
	[EXT_TEXT2] [ntext] NULL,
 CONSTRAINT [PK__DHOADON_IMPORT_XML_EXTENSION___B6A5CAC9292D09F3] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XML_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_HANG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_HANG](
	[DHOADON_IMPORT_XML_HANGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) NULL,
	[IS_DIEU_CHINH] [int] NULL,
	[IS_KHUYEN_MAI] [int] NULL,
	[STT] [numeric](18, 0) NULL,
	[DHANGHOAID] [numeric](18, 0) NULL,
	[MA_HANG] [nvarchar](50) NULL,
	[TEN_HANG] [nvarchar](500) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[TEN_DVT] [nvarchar](255) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[SO_LUONG_NHAP] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[DON_GIA_NT] [numeric](23, 8) NULL,
	[DON_GIA_SAU_THUE] [decimal](23, 8) NULL,
	[DON_GIA_SAU_THUE_NT] [decimal](23, 8) NULL,
	[VAT] [numeric](23, 8) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[THANH_TIEN_NT] [numeric](23, 8) NULL,
	[CHIET_KHAU_PHAN_TRAM] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_NT] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_THUE] [decimal](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_KHO] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](100) NULL,
	[SO_LUONG_GOC] [numeric](23, 8) NULL,
	[DON_GIA_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_TIEN_GOC] [numeric](23, 8) NULL,
	[VAT_GOC] [numeric](23, 8) NULL,
	[DON_GIA_NT_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_NT_GOC] [numeric](23, 8) NULL,
	[MA_LOAI_HANG] [nvarchar](50) NULL,
	[GUID_DHOADON_HANG] [varchar](100) NULL,
	[THANH_TIEN_SAU_CK] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_CK_NT] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_GOC] [numeric](23, 8) NULL,
	[THANH_TIEN_SAU_CK_GOC] [numeric](23, 8) NULL,
	[IS_GIAM_TRU_30] [int] NULL,
	[TINH_CHAT] [int] NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[SLOAI_DIEU_CHINHID] [int] NULL,
 CONSTRAINT [PK_DHOADON_IMPORT_XML_HANG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XML_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_HANG_DONG_BO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_HANG_DONG_BO](
	[DHOADON_IMPORT_XML_HANG_DONG_BOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XML_HANGID] [numeric](18, 0) NULL,
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) NULL,
	[MA_HANG] [nvarchar](50) NULL,
	[TEN_HANG] [nvarchar](255) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[MA_DON_VI_TINH] [nvarchar](50) NULL,
	[DON_VI_TINH] [nvarchar](50) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[DIEU_CHINH_TANG_GIAM] [int] NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[VAT] [nvarchar](50) NULL,
	[STT] [numeric](18, 0) NULL,
	[MA_NHOM] [nvarchar](50) NULL,
	[TEN_NHOM] [nvarchar](255) NULL,
	[MA_DOI_TUONG] [nvarchar](50) NULL,
	[TEN_DOI_TUONG] [nvarchar](255) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[GUID_DHOADON_IMPORT_XML] [nvarchar](50) NULL,
	[DHOADON_IMPORT_XML_DONG_BOID] [numeric](18, 0) NULL,
	[RECEITP_D] [nvarchar](255) NULL,
	[IS_SU_DUNG] [nvarchar](50) NULL,
	[TIEN_CHIET_KHAU] [numeric](23, 8) NULL,
	[TIEN_THANH_TOAN] [numeric](23, 8) NULL,
	[FARE] [numeric](23, 8) NULL,
	[THOI_GIAN_LEN_XE] [datetime] NULL,
	[HE_SO_MON] [decimal](23, 8) NULL,
	[HE_SO] [decimal](23, 8) NULL,
	[DON_VI_PHI] [decimal](23, 8) NULL,
	[TIEN_PHI_KHAC] [numeric](23, 8) NULL,
	[CHECKGUID] [nvarchar](255) NULL,
	[COL_EXTENSION] [nvarchar](500) NULL,
	[SO_LO] [nvarchar](50) NULL,
	[HAN_DUNG] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_HANG_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_HANG_EXTENSION](
	[DHOADON_IMPORT_XML_HANG_EXTENSIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XMLID] [numeric](18, 0) NOT NULL,
	[DHOADON_IMPORT_XML_HANGID] [numeric](18, 0) NOT NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_VARCHAR6] [nvarchar](255) NULL,
	[EXT_VARCHAR7] [nvarchar](255) NULL,
	[EXT_VARCHAR8] [nvarchar](255) NULL,
	[EXT_VARCHAR9] [nvarchar](255) NULL,
	[EXT_VARCHAR10] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_INT1] [int] NULL,
	[EXT_INT2] [int] NULL,
	[EXT_INT3] [int] NULL,
	[EXT_INT4] [int] NULL,
	[EXT_INT5] [int] NULL,
	[GUID_DHOADON_HANG] [varchar](100) NULL,
 CONSTRAINT [PK__DHOADON_IMPORT_XML_HANG_EXTENSION___32082AE82CFD9AD7] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XML_HANG_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_LOG](
	[DHOADON_IMPORT_XML_LOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[FILE_NAME] [nvarchar](255) NULL,
	[NGAY_IMPORT] [datetime] NULL,
	[SO_HOA_DON_THANH_CONG] [numeric](18, 0) NULL,
	[SO_HOA_DON_THAT_BAI] [numeric](18, 0) NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[LAN_IMPORT] [int] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SO_BIEN_LAI] [nvarchar](255) NULL,
	[THOI_GIAN_IMPORT] [datetime] NULL,
	[KET_THUC_IMPORT] [datetime] NULL,
 CONSTRAINT [PK_DHOADON_IMPORT_XML_LOG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XML_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IMPORT_XML_VAT_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IMPORT_XML_VAT_EXTENSION](
	[DHOADON_IMPORT_XML_VAT_EXTENSIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADON_IMPORT_XMLID] [decimal](18, 0) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_NT] [numeric](23, 8) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
 CONSTRAINT [PK_DHOADON_IMPORT_XML_VAT_EXTENSION] PRIMARY KEY CLUSTERED 
(
	[DHOADON_IMPORT_XML_VAT_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_IN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_IN](
	[DHOADON_INID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[LAN_IN] [numeric](18, 0) NULL,
	[NGAY_IN] [datetime] NULL,
	[NGUOI_IN] [nvarchar](50) NULL,
	[MAY_TINH] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHOADON_IN] PRIMARY KEY CLUSTERED 
(
	[DHOADON_INID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_NHAP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_NHAP](
	[DHOADONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NOT NULL,
	[BEN_BAN_TEN_DV] [nvarchar](255) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NULL,
	[BEN_BAN_DIA_CHI] [nvarchar](255) NULL,
	[BEN_BAN_DIEN_THOAI] [nvarchar](255) NULL,
	[BEN_BAN_FAX] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[BEN_BAN_NGAN_HANG_TEN] [nvarchar](255) NULL,
	[MA_HINHTHUCTT] [nvarchar](50) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_VAT] [numeric](23, 8) NULL,
	[TONG_VAT_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_BANG_CHU] [nvarchar](255) NULL,
	[TONG_THANH_TOAN_BANG_CHU_NT] [nvarchar](255) NULL,
	[MA_NT] [nvarchar](255) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGAY_IN] [datetime] NULL,
	[NGAY_IN_BANG_KE] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](255) NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[TONG_CHIET_KHAU] [numeric](23, 8) NULL,
	[CHIET_KHAU] [numeric](23, 8) NULL,
	[MA_BAO_MAT] [nvarchar](255) NULL,
	[MA_BAO_MAT1] [nvarchar](255) NULL,
	[BAN_IN] [numeric](18, 0) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[IS_CHON] [int] NULL,
	[SO_HOP_DONG] [nvarchar](255) NULL,
	[NGAY_HOP_DONG] [datetime] NULL,
	[DIA_DIEM_GIAO_HANG] [nvarchar](255) NULL,
	[DIA_DIEM_NHAN_HANG] [nvarchar](255) NULL,
	[SO_VAN_DON] [nvarchar](255) NULL,
	[SO_CONTAINER] [nvarchar](255) NULL,
	[TEN_DON_VI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_PHUONG_TIEN_VAN_CHUYEN] [nvarchar](255) NULL,
	[SO_HOP_DONG_VAN_CHUYEN] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_SO] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_NGAY] [datetime] NULL,
	[LENH_DIEU_DONG_CUA] [nvarchar](255) NULL,
	[LENH_DIEU_DONG_VE_VIEC] [nvarchar](255) NULL,
	[HO_TEN_NGUOI_VAN_CHUYEN] [nvarchar](255) NULL,
	[MA_KHO_XUAT] [nvarchar](255) NULL,
	[MA_KHO_NHAP] [nvarchar](255) NULL,
	[CODE_KHO_NHAP] [nvarchar](255) NULL,
	[CODE_KHO_XUAT] [nvarchar](255) NULL,
	[NGAY_XUAT_KHO] [datetime] NULL,
	[NGAY_NHAP_KHO] [datetime] NULL,
	[TRANG_THAI] [int] NULL,
	[LY_DO_XU_LY] [nvarchar](255) NULL,
	[NGAY_XU_LY] [datetime] NULL,
	[DMAU_INID] [numeric](18, 0) NULL,
	[PHI_CONG] [numeric](23, 8) NULL,
	[PHI_TRU] [numeric](23, 8) NULL,
	[GHI_CHU_NB] [nvarchar](255) NULL,
	[THUE_KHAC] [numeric](23, 8) NULL,
	[TONG_THUE_KHAC] [numeric](23, 8) NULL,
	[PHI_KHAC] [numeric](23, 8) NULL,
	[TONG_PHI_KHAC] [numeric](23, 8) NULL,
	[MA_SO_TK] [nvarchar](50) NULL,
	[VAT5] [numeric](23, 8) NULL,
	[TONG_VAT5] [numeric](23, 8) NULL,
	[TONG_VAT_NT5] [numeric](23, 8) NULL,
	[GHI_CHU_GIAO_HANG] [nvarchar](500) NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_DHOADON_NHAP] PRIMARY KEY CLUSTERED 
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_NHAP_HANG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_NHAP_HANG](
	[DHOADON_HANGID] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[DHANGHOAID] [numeric](18, 0) NULL,
	[STT] [numeric](18, 0) NULL,
	[TEN_HANG] [nvarchar](255) NULL,
	[MA_DVT] [nvarchar](50) NULL,
	[SO_LUONG] [numeric](23, 8) NULL,
	[SO_LUONG_NHAP] [numeric](23, 8) NULL,
	[DON_GIA] [numeric](23, 8) NULL,
	[CHIET_KHAU_PHAN_TRAM] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN] [numeric](23, 8) NULL,
	[CHIET_KHAU_TIEN_NT] [numeric](23, 8) NULL,
	[THANH_TIEN] [numeric](23, 8) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[VAT] [numeric](23, 8) NULL,
	[VAT_TIEN] [numeric](23, 8) NULL,
	[MA_HANG] [nvarchar](50) NULL,
	[DHOADON_HANGIDTempt] [numeric](18, 0) NULL,
	[DON_GIA_NT] [numeric](23, 8) NULL,
	[THANH_TIEN_NT] [numeric](23, 8) NULL,
	[SO_LO] [nvarchar](50) NULL,
	[HAN_DUNG] [datetime] NULL,
	[IS_TINH_THUE] [int] NULL,
	[IS_GIAM_TRU] [int] NULL,
	[MA_KHO] [nvarchar](50) NULL,
	[SO_LUONG_DN] [nvarchar](50) NULL,
	[SO_DON_HANG] [nvarchar](100) NULL,
	[TEN_HANG_HANG_KHONG] [nvarchar](255) NULL,
	[SO_LUONG_PSC] [numeric](23, 8) NULL,
	[SO_LUONG_BDL] [numeric](23, 8) NULL,
	[DINH_MUC_PSC] [numeric](23, 8) NULL,
 CONSTRAINT [PK_DHOADON_NHAP_HANG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_OUTPUT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_OUTPUT](
	[DHOADON_OUTPUTID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GUID_DHOADON_OUTPUT] [varchar](50) NULL,
	[MA_DV] [varchar](50) NULL,
	[MA_CN] [varchar](50) NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[KIEU] [varchar](10) NULL,
	[TRANG_THAI] [int] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGAY_XU_LY] [datetime] NULL,
	[SO_LAN_THUC_HIEN] [int] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
 CONSTRAINT [PK_DHOADON_OUTPUT] PRIMARY KEY CLUSTERED 
(
	[DHOADON_OUTPUTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_SMS]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_SMS](
	[DMSMID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[SO_DIEN_THOAI] [varchar](50) NULL,
	[NOI_DUNG] [nvarchar](400) NULL,
	[TRANG_THAI] [numeric](18, 0) NULL,
	[NOI_DUNG_LOI] [nvarchar](400) NULL,
	[SO_LAN_GUI] [numeric](18, 0) NULL,
	[NGAY_GUI_THANH_CONG] [datetime] NULL,
	[NGAY_GUI] [datetime] NULL,
	[LOAI_TIN_NHAN] [numeric](18, 0) NULL,
 CONSTRAINT [PK_DSMS] PRIMARY KEY CLUSTERED 
(
	[DMSMID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_SMS_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_SMS_LOG](
	[DHOADON_SMS_LOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[SO_DIEN_THOAI] [varchar](50) NULL,
	[NOI_DUNG] [nvarchar](2000) NULL,
	[NGAY_GUI] [datetime] NULL,
	[TRANG_THAI] [numeric](18, 0) NULL,
	[NOI_DUNG_LOI] [nvarchar](2000) NULL,
 CONSTRAINT [PK_DHOADON_SMS_LOG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_SMS_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_TAOMOI_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_TAOMOI_LOG](
	[DHOADON_TAOMOI_LOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[BEN_BAN_MA_DV] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[MAU_SO] [varchar](20) NULL,
	[DHOADONID_MOI] [numeric](18, 0) NULL,
	[KY_HIEU_MOI] [nvarchar](50) NULL,
	[MAU_SO_MOI] [varchar](20) NULL,
	[NGAY_HOA_DON_MOI] [datetime] NULL,
	[SO_HOA_DON_MOI] [nvarchar](10) NULL,
 CONSTRAINT [PK_DHOADON_TAOMOI_LOG] PRIMARY KEY CLUSTERED 
(
	[DHOADON_TAOMOI_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_TNCN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_TNCN](
	[DHOADON_TNCNID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[MA_QUOC_TICH] [nvarchar](50) NULL,
	[NGUOI_NOP_QUOC_TICH] [nvarchar](50) NULL,
	[IS_CA_NHAN_CU_TRU] [int] NULL,
	[NGUOI_NOP_SO_CMT] [nvarchar](50) NULL,
	[NGUOI_NOP_NOI_CAP] [nvarchar](255) NULL,
	[NGUOI_TAO_NGAY_CAP] [datetime] NULL,
	[KHOAN_THU_NHAP] [nvarchar](255) NULL,
	[NGAY_TINH_THU_NHAP] [datetime] NULL,
	[THU_NHAP_THANG] [nvarchar](50) NULL,
	[THU_NHAP_NAM] [int] NULL,
	[TONG_TN_CHIU_THUE] [numeric](23, 8) NULL,
	[TONG_TN_TINH_THUE] [numeric](23, 8) NULL,
	[TONG_THUE_KHAU_TRU] [numeric](23, 8) NULL,
	[TONG_TN_CHIU_THUE_NT] [numeric](23, 8) NULL,
	[TONG_TN_TINH_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THUE_KHAU_TRU_NT] [numeric](23, 8) NULL,
	[TONG_TN_CHIU_THUE_KHAC] [numeric](23, 8) NULL,
	[TONG_TN_TINH_THUE_KHAC] [numeric](23, 8) NULL,
	[TONG_THUE_KHAU_TRU_KHAC] [numeric](23, 8) NULL,
	[TONG_TN_CHIU_THUE_1PT] [numeric](23, 8) NULL,
	[TONG_TN_TINH_THUE_1PT] [numeric](23, 8) NULL,
	[TONG_THUE_KHAU_TRU_1PT] [numeric](23, 8) NULL,
	[LA_KINH_DOANH] [int] NULL,
	[TONG_TIEN_THUC_NHAN] [numeric](18, 0) NULL,
	[TONG_TN_CHIU_THUE_3PT] [numeric](23, 8) NULL,
	[TONG_TN_TINH_THUE_3PT] [numeric](23, 8) NULL,
	[TONG_THUE_KHAU_TRU_3PT] [numeric](23, 8) NULL,
	[MA_KTN] [nvarchar](50) NULL,
	[TONG_TN_CHIU_THUE_10] [numeric](23, 8) NULL,
	[TONG_TN_TINH_THUE_10] [numeric](23, 8) NULL,
	[TONG_THUE_KHAU_TRU_10] [numeric](23, 8) NULL,
	[TONG_THU_NHAP] [numeric](23, 8) NULL,
	[TONG_THU_NHAP_NT] [numeric](23, 8) NULL,
	[TONG_THUE_TNCN] [numeric](23, 8) NULL,
	[TONG_THUE_TNCN_NT] [numeric](23, 8) NULL,
	[TONG_TNCN_DUOC_NHAN] [numeric](23, 8) NULL,
	[TONG_TNCN_DUOC_NHAN_NT] [numeric](23, 8) NULL,
	[TU_THANG] [int] NULL,
	[DEN_THANG] [int] NULL,
	[KHOAN_DONG_BAOHIEM_BATBUOC] [numeric](23, 8) NULL,
	[IS_CONG_TY_DONG] [int] NULL,
	[GIAM_TRU_BAN_THAN] [numeric](23, 8) NULL,
	[GIAM_TRU_NGUOI_PHU_THUOC] [numeric](23, 8) NULL,
	[CHUC_VU] [nvarchar](50) NULL,
	[NGAY_THUNHAP_TU] [datetime] NULL,
	[NGAY_THUNHAP_DEN] [datetime] NULL,
	[HOP_DONG_LD_SO] [nvarchar](50) NULL,
	[HOP_DONG_LD_NGAY] [datetime] NULL,
	[TIEN_THUE_NHA] [numeric](23, 8) NULL,
	[NGAY_DEN_VN] [datetime] NULL,
	[TONG_THU_NHAP_VN] [numeric](23, 8) NULL,
	[TONG_THU_NHAP_NN] [numeric](23, 8) NULL,
	[DIA_DIEM_PHATHANH_TNCN] [nvarchar](50) NULL,
	[NOI_DUNG_TXN] [image] NULL,
	[TONG_TN_MIEN_THUE] [numeric](23, 6) NULL,
	[STT_BANGKE] [nvarchar](255) NULL,
	[KHOAN_GIAM_TRU_KHAC] [numeric](23, 8) NULL,
 CONSTRAINT [PK_DKHAUTRUTHUE_TNCN] PRIMARY KEY CLUSTERED 
(
	[DHOADON_TNCNID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOADON_VAT_EXTENSION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOADON_VAT_EXTENSION](
	[DHOADON_VAT_EXTENSIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DHOADONID] [decimal](18, 0) NOT NULL,
	[GUID_DHOADON] [varchar](50) NULL,
	[VAT] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG] [numeric](23, 8) NULL,
	[TONG_TIEN_HANG_NT] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE] [numeric](23, 8) NULL,
	[TONG_TIEN_THUE_NT] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN] [numeric](23, 8) NULL,
	[TONG_THANH_TOAN_NT] [numeric](23, 8) NULL,
 CONSTRAINT [PK_DHOADON_VAT_EXTENSION] PRIMARY KEY CLUSTERED 
(
	[DHOADON_VAT_EXTENSIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DHOPDONG_DOITAC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DHOPDONG_DOITAC](
	[DHOPDONG_DOITACID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SO_HOP_DONG] [nvarchar](255) NULL,
	[NGAY_HOP_DONG] [datetime] NULL,
	[THOI_HAN_THANH_TOAN] [nvarchar](255) NULL,
	[MA_KH] [nvarchar](50) NULL,
	[NGAY_HET_HAN] [datetime] NULL,
	[NOI_DUNG_TOM_TAT] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_SO_THUE] [nvarchar](50) NULL,
	[SO_TAI_KHOAN] [nvarchar](50) NULL,
	[TEN_NGAN_HANG] [nvarchar](255) NULL,
	[CHIET_KHAU] [numeric](23, 8) NULL,
	[TIEN_CHIET_KHAU] [numeric](23, 8) NULL,
	[HIEN_THI] [int] NULL,
	[MA_DV_SD] [nvarchar](50) NULL,
 CONSTRAINT [PK_DHOPDONG_DOITAC] PRIMARY KEY CLUSTERED 
(
	[DHOPDONG_DOITACID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DIMPORT_CAU_HINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DIMPORT_CAU_HINH](
	[DIMPORT_CAU_HINHID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[TEN_DV] [nvarchar](250) NULL,
	[TEN_TRUY_CAP] [nvarchar](200) NULL,
	[MAT_KHAU] [nvarchar](200) NULL,
	[TEN_CSDL] [nvarchar](250) NULL,
	[TEN_DANG_NHAP] [nvarchar](150) NULL,
	[TEN_SERVER] [nvarchar](250) NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[CAU_LENH_DANH_SACH] [nvarchar](4000) NULL,
	[IS_QUERY_DANH_SACH] [int] NULL,
	[CAU_LENH_TONG_HOP] [nvarchar](4000) NULL,
	[IS_QUERY_TONG_HOP] [int] NULL,
	[CAU_LENH_CHI_TIET] [nvarchar](4000) NULL,
	[IS_QUERY_CHI_TIET] [int] NULL,
	[CAU_LENH_CAP_NHAT] [nvarchar](4000) NULL,
	[IS_QUERY_CAP_NHAT] [int] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](100) NULL,
	[IS_CONVERT_UNICODE] [int] NULL,
	[IS_EXPORT_EINVOICE] [int] NULL,
	[IS_TINH_TIEN] [int] NULL,
	[MO_TA] [nvarchar](500) NULL,
	[IS_TEMPLATE] [int] NULL,
	[QUERY_TEAMPLATE] [nvarchar](4000) NULL,
	[MA_LOAI_BAO_CAO] [nvarchar](255) NULL,
	[EXPORT_EXCEL_PATH] [nvarchar](255) NULL,
	[REPORT_PATH] [nvarchar](255) NULL,
	[TEN_LOAI_BAO_CAO] [nvarchar](255) NULL,
	[CAU_LENH_CAP_NHAT_IMPORT] [nvarchar](4000) NULL,
	[IS_QUERY_CAP_NHAT_IMPORT] [int] NULL,
	[TEN_HE_THONG] [nvarchar](50) NULL,
	[IS_DOC_TIEN] [int] NULL,
	[MAU_SO] [nvarchar](20) NULL,
	[KY_HIEU] [nvarchar](20) NULL,
 CONSTRAINT [PK_DIMPORT_CAU_HINH] PRIMARY KEY CLUSTERED 
(
	[DIMPORT_CAU_HINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DIMPORT_CAU_HINH_COLUMN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DIMPORT_CAU_HINH_COLUMN](
	[DIMPORT_CAU_HINH_COLUMNID] [int] IDENTITY(1,1) NOT NULL,
	[DIMPORT_CAU_HINHID] [int] NULL,
	[STT] [int] NULL,
	[TIEU_DE] [nvarchar](100) NULL,
	[FIELD_NAME] [nvarchar](150) NULL,
	[TEN_THAM_SO] [nvarchar](250) NULL,
	[KIEU_DU_LIEU] [nvarchar](50) NULL,
	[VISIABLE] [nvarchar](50) NULL,
	[SPLIT] [int] NULL,
	[GIA_TRI_H_ALIGN] [nvarchar](50) NULL,
	[GIA_TRI_V_ALIGN] [nvarchar](50) NULL,
	[TIEU_DE_H_ALIGN] [nvarchar](50) NULL,
	[TIEU_DE_V_ALIGN] [nvarchar](50) NULL,
	[FORMAT_TRING] [nvarchar](150) NULL,
	[LOAI_THAM_SO] [int] NULL,
	[CHIEU_CAO] [int] NULL,
	[CHIEU_RONG] [int] NULL,
	[ISSP] [int] NULL,
 CONSTRAINT [PK_DIMPORT_CAU_HINH_COLUMN] PRIMARY KEY CLUSTERED 
(
	[DIMPORT_CAU_HINH_COLUMNID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DIMPORT_CAU_HINH_DANH_SACH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DIMPORT_CAU_HINH_DANH_SACH](
	[DIMPORT_CAU_HINH_DANH_SACHID] [int] IDENTITY(1,1) NOT NULL,
	[DIMPORT_CAU_HINHID] [int] NULL,
	[TEN_HIEN_THI] [nvarchar](150) NULL,
	[STT] [int] NULL,
	[MA] [nvarchar](150) NULL,
	[DO_RONG] [int] NULL,
	[LINK_EINVOICE] [nvarchar](250) NULL,
	[DAU_PHAN_CACH] [nvarchar](50) NULL,
	[KIEU_DU_LIEU] [nvarchar](150) NULL,
	[VISIABLE] [int] NULL,
	[SPLIT] [int] NULL,
	[GIA_TRI_H_ALIGN] [nvarchar](50) NULL,
	[GIA_TRI_V_ALIGN] [nvarchar](50) NULL,
	[TIEU_DE_H_ALIGN] [nvarchar](50) NULL,
	[TIEU_DE_V_ALIGN] [nvarchar](50) NULL,
	[FORMAT_TRING] [nvarchar](150) NULL,
	[FIELD_NAME] [nvarchar](150) NULL,
	[KIEU_DU_LIEU1] [nvarchar](50) NULL,
	[COLOR] [nvarchar](50) NULL,
 CONSTRAINT [PK_DIMPORT_CAU_HINH_DANH_SACH] PRIMARY KEY CLUSTERED 
(
	[DIMPORT_CAU_HINH_DANH_SACHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DIMPORT_CAU_HINH_MAPPING]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DIMPORT_CAU_HINH_MAPPING](
	[DIMPORT_CAU_HINH_MAPPINGID] [int] IDENTITY(1,1) NOT NULL,
	[DIMPORT_CAU_HINHID] [int] NULL,
	[LOAI_BANG_DL] [int] NULL,
	[TEN_TRUONG_KH] [nvarchar](250) NULL,
	[TEN_TRUONG_EINVOICE] [nvarchar](250) NULL,
	[KIEU_DU_LIEU] [nvarchar](50) NULL,
	[IS_KHOA_CHINH] [bit] NULL,
	[GIA_TRI_MAC_DINH] [nvarchar](250) NULL,
 CONSTRAINT [PK_DIMPORT_CAU_HINH_MAPPING] PRIMARY KEY CLUSTERED 
(
	[DIMPORT_CAU_HINH_MAPPINGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DIMPORT_CAU_HINH_THAM_SO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DIMPORT_CAU_HINH_THAM_SO](
	[DIMPORT_CAU_HINH_THAM_SOID] [int] IDENTITY(1,1) NOT NULL,
	[DIMPORT_CAU_HINHID] [int] NULL,
	[STT] [int] NULL,
	[MA_THAM_SO] [nvarchar](100) NULL,
	[TEN_TRUONG_DS] [nvarchar](150) NULL,
	[TEN_THAM_SO] [nvarchar](250) NULL,
	[LOAI_CONTROL] [nvarchar](50) NULL,
	[KIEU_DU_LIEU] [nvarchar](50) NULL,
	[CAU_LENH_SQL] [nvarchar](500) NULL,
	[GIA_TRI_MAC_DINH] [nvarchar](50) NULL,
	[LOAI_THAM_SO] [int] NULL,
	[CHIEU_CAO] [int] NULL,
	[CHIEU_RONG] [int] NULL,
	[ISSP] [int] NULL,
 CONSTRAINT [PK_DIMPORT_CAU_HINH_THAM_SO] PRIMARY KEY CLUSTERED 
(
	[DIMPORT_CAU_HINH_THAM_SOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DLAM_TRON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DLAM_TRON](
	[ProfileID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NguoiDung] [nvarchar](255) NULL,
	[Ten] [nvarchar](255) NULL,
	[GhiChu] [nvarchar](255) NULL,
 CONSTRAINT [PK_PROFILE] PRIMARY KEY CLUSTERED 
(
	[ProfileID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DLAM_TRON_CHI_TIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DLAM_TRON_CHI_TIET](
	[ProfileValueID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ProfileID] [numeric](18, 0) NULL,
	[Ten] [nvarchar](255) NULL,
	[GiaTri] [nvarchar](1000) NULL,
 CONSTRAINT [PK_PROFILEVALUE] PRIMARY KEY CLUSTERED 
(
	[ProfileValueID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DLIEN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DLIEN](
	[SO_LIEN] [numeric](10, 0) NOT NULL,
	[TEN_LIEN] [nvarchar](255) NULL,
	[NOI_DUNG] [nvarchar](255) NULL,
	[THONG_TIN_LIEN] [nvarchar](255) NULL,
	[NOI_DUNG_ENG] [nvarchar](250) NULL,
 CONSTRAINT [PK_DLIEN] PRIMARY KEY CLUSTERED 
(
	[SO_LIEN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DLOAI_HANG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DLOAI_HANG](
	[MA_LOAI_HANG] [nvarchar](50) NOT NULL,
	[TEN] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_HIENTHI] [int] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[DLOAI_HANGID] [int] NULL,
 CONSTRAINT [PK_DLOAI_HANG] PRIMARY KEY CLUSTERED 
(
	[MA_LOAI_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DMAU_IN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DMAU_IN](
	[DMAU_INID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TEN_MAU] [nvarchar](255) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[FILE_MAU_NAME] [nvarchar](255) NULL,
	[FILE_MAU_DATA] [image] NULL,
	[IS_DEFAULT] [int] NULL,
	[LE_TREN] [float] NULL,
	[LE_DUOI] [float] NULL,
	[LE_TRAI] [float] NULL,
	[LE_PHAI] [float] NULL,
	[IS_TACH_MST] [int] NULL,
	[IS_DIA_CHI_WORDWRAP] [int] NULL,
	[DIA_CHI_WIDTH] [float] NULL,
	[TEN_HANG_SO_KY_TU] [float] NULL,
	[IS_DON_VI_MUA_WORDWRAP] [int] NULL,
	[DON_VI_MUA_WIDTH] [float] NULL,
	[IS_TEN_NGUOI_MUA_WORDWRAP] [int] NULL,
	[TEN_NGUOI_MUA_WIDTH] [float] NULL,
	[IS_LAY_HAI_SO_CUOI_NAM] [int] NULL,
 CONSTRAINT [PK_DMAU_IN] PRIMARY KEY CLUSTERED 
(
	[DMAU_INID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DMAU_IN_CHI_TIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DMAU_IN_CHI_TIET](
	[DAU_IN_CHI_TIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DMAU_INID] [numeric](18, 0) NULL,
	[STT] [numeric](18, 0) NULL,
	[FIELD_INDEX] [numeric](18, 0) NULL,
	[FIELD_NAME] [nvarchar](255) NULL,
	[FIELD_TXT] [nvarchar](255) NULL,
	[FIELD_FONTNAME] [nvarchar](255) NULL,
	[FIELD_FONTSIZE] [float] NULL,
	[FIELD_FONTSTYLE] [numeric](18, 0) NULL,
	[FIELD_X] [numeric](18, 0) NULL,
	[FIELD_Y] [numeric](18, 0) NULL,
	[GHI_CHU] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_DMAU_IN_CHI_TIET] PRIMARY KEY CLUSTERED 
(
	[DAU_IN_CHI_TIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DPHATHANH_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DPHATHANH_CHITIET](
	[DPHATHANH_CHITIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SO_LUONG] [numeric](18, 0) NULL,
	[TU_SO] [numeric](18, 0) NULL,
	[DEN_SO] [numeric](18, 0) NULL,
	[NGAY_BAT_DAU_SU_DUNG] [datetime] NULL,
	[NGAY_LAP_PHIEU] [datetime] NULL,
	[NGAY_CHUNG_TU] [datetime] NULL,
	[MA_CO_QUAN_THUE] [nvarchar](255) NULL,
	[NGUOI_DAI_DIEN_PHAP_LUAT] [nvarchar](255) NULL,
	[TEN_DV_CHU_QUAN] [nvarchar](255) NULL,
	[MA_DV_CHU_QUAN] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_PHAT_HANH] [int] NULL,
	[KY_HIEU_TIEN_TO] [nvarchar](50) NULL,
	[KY_HIEU_HAU_TO] [nvarchar](50) NULL,
	[KY_HIEU_FULL] [nvarchar](50) NULL,
	[IS_CHON] [int] NULL,
	[IS_SEND] [numeric](18, 0) NULL,
	[MAU_SO_HD] [nvarchar](50) NULL,
	[IS_TT_CN] [int] NULL,
	[MA_CN] [nvarchar](50) NULL,
	[TEN_CN] [nvarchar](200) NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[GUID_DPHATHANH_CHITIET] [varchar](50) NULL,
	[IS_DONG_BO_THAI_SON] [int] NULL,
	[NAM_PHAT_HANH] [nvarchar](10) NULL,
	[SU_DUNG_DEN_SO] [decimal](18, 0) NULL,
	[SU_DUNG_DEN_NGAY] [datetime] NULL,
	[IS_BANG_TONG_HOP] [int] NULL,
 CONSTRAINT [PK_DPHATHANH_HOADON_CHITIET] PRIMARY KEY CLUSTERED 
(
	[DPHATHANH_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DPHATHANH_HOADON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DPHATHANH_HOADON](
	[DPHATHANH_HOADONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_CHITIETID] [numeric](18, 0) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[NGAY_SU_DUNG] [datetime] NULL,
	[IS_SU_DUNG] [int] NULL,
	[NGAY_PHAT_HANH] [datetime] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[DCHINHANH_PHANID] [numeric](18, 0) NULL,
	[TRANG_THAI] [numeric](18, 0) NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[GUID_DPHATHANH_HOADON] [varchar](50) NULL,
	[GUID_DPHATHANH_CHITIET] [varchar](50) NULL,
 CONSTRAINT [PK_DPHATHANH_HOADON1] PRIMARY KEY CLUSTERED 
(
	[DPHATHANH_HOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DPHATHANH_KHOITAO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DPHATHANH_KHOITAO](
	[DPHATHANH_KHOITAOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](255) NULL,
	[FAX] [nvarchar](255) NULL,
	[NGAN_HANG_TAI_KHOAN] [nvarchar](255) NULL,
	[NGAN_HANG_TEN] [nvarchar](255) NULL,
	[LAN_KHOI_TAO] [nvarchar](50) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[TEN_LOAI_HOA_DON] [nvarchar](255) NULL,
	[NGAY_KHOI_TAO] [datetime] NULL,
	[MAU_SO] [nvarchar](50) NOT NULL,
	[MAU_SO_HOA_DON_TEMPLATE] [nvarchar](50) NULL,
	[KY_HIEU_TIEN_TO] [nvarchar](50) NOT NULL,
	[KY_HIEU_HAU_TO] [nvarchar](50) NOT NULL,
	[KY_HIEU_FULL] [nvarchar](50) NOT NULL,
	[SO_LIEN] [numeric](18, 0) NULL,
	[HINH_THUC_IN] [nvarchar](255) NULL,
	[IS_PHAT_HANH] [int] NULL,
	[LIEN1] [nvarchar](255) NULL,
	[LIEN2] [nvarchar](255) NULL,
	[LIEN3] [nvarchar](255) NULL,
	[LIEN4] [nvarchar](255) NULL,
	[LIEN5] [nvarchar](255) NULL,
	[LIEN6] [nvarchar](255) NULL,
	[LIEN7] [nvarchar](255) NULL,
	[LIEN8] [nvarchar](255) NULL,
	[LIEN9] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_CHU_QUAN] [int] NULL,
	[MA_DV_CHU_QUAN] [nvarchar](50) NULL,
	[TEN_DV_CHU_QUAN] [nvarchar](255) NULL,
	[DIA_CHI_DV_CHU_QUAN] [nvarchar](255) NULL,
	[DIEN_THOAI_DV_CHU_QUAN] [nvarchar](255) NULL,
	[FAX_DV_CHU_QUAN] [nvarchar](255) NULL,
	[IS_IN_TT_CONG_TY] [int] NULL,
	[IS_A5] [int] NULL,
	[IS_ENG_VIET] [int] NULL,
	[IS_ENG_FULL] [int] NULL,
	[SO_DONG_HANG] [numeric](18, 0) NULL,
	[DON_GIA_VE] [numeric](23, 8) NULL,
	[IS_TT39] [int] NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[IS_HIEN_THI] [numeric](18, 0) NULL,
	[IS_IN_NGANG] [int] NULL,
	[TRANG_THAI_DONG_BO_THAI_SON] [varchar](50) NULL,
	[GHI_CHU_DONG_BO_THAI_SON] [nvarchar](500) NULL,
	[IS_TT68] [int] NULL,
	[NAM_PHAT_HANH] [nvarchar](10) NULL,
 CONSTRAINT [PK_DPHATHANH_KHOITAO] PRIMARY KEY CLUSTERED 
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DPHATHANH_KHOITAO_TEMPLATE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DPHATHANH_KHOITAO_TEMPLATE](
	[DPHATHANH_KHOITAO_TMPLATEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[MA_HOA_DON_TEMPLATE] [nvarchar](50) NULL,
	[STT] [numeric](18, 0) NULL,
	[TEN] [nvarchar](255) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[TEMPLATE_FILE] [nvarchar](255) NULL,
	[TEMPLATE_FILE_DATA] [image] NULL,
	[LOGO_FILE] [nvarchar](255) NULL,
	[LOGO_FILE_DATA] [image] NULL,
	[FILE_REPORT_NAME] [nvarchar](255) NULL,
	[FILE_REPORT_XML] [ntext] NULL,
	[IS_SYSTEM] [int] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[FILE_PREVIEW_NAME1] [nvarchar](255) NULL,
	[FILE_PREVIEW_DATA1] [image] NULL,
	[FILE_PREVIEW_NAME2] [nvarchar](255) NULL,
	[FILE_PREVIEW_DATA2] [image] NULL,
	[VERSION] [numeric](18, 0) NULL,
	[SO_KY_TU_TEN_HANG] [numeric](18, 0) NULL,
	[SO_KY_TU_TIEN_BANG_CHU1] [numeric](18, 0) NULL,
	[SO_KY_TU_TIEN_BANG_CHU2] [numeric](18, 0) NULL,
	[LIEN1_MAU] [nvarchar](255) NULL,
	[LIEN2_MAU] [nvarchar](255) NULL,
	[LIEN3_MAU] [nvarchar](255) NULL,
	[LIEN4_MAU] [nvarchar](255) NULL,
	[LIEN5_MAU] [nvarchar](255) NULL,
	[LIEN6_MAU] [nvarchar](255) NULL,
	[LIEN7_MAU] [nvarchar](255) NULL,
	[LIEN8_MAU] [nvarchar](255) NULL,
	[LIEN9_MAU] [nvarchar](255) NULL,
	[LIEN1_ANH] [nvarchar](255) NULL,
	[LIEN2_ANH] [nvarchar](255) NULL,
	[LIEN3_ANH] [nvarchar](255) NULL,
	[LIEN4_ANH] [nvarchar](255) NULL,
	[LIEN5_ANH] [nvarchar](255) NULL,
	[LIEN6_ANH] [nvarchar](255) NULL,
	[LIEN7_ANH] [nvarchar](255) NULL,
	[LIEN8_ANH] [nvarchar](255) NULL,
	[LIEN9_ANH] [nvarchar](255) NULL,
	[LIEN1_ANH_DATA] [image] NULL,
	[LIEN2_ANH_DATA] [image] NULL,
	[LIEN3_ANH_DATA] [image] NULL,
	[LIEN4_ANH_DATA] [image] NULL,
	[LIEN5_ANH_DATA] [image] NULL,
	[LIEN6_ANH_DATA] [image] NULL,
	[LIEN7_ANH_DATA] [image] NULL,
	[LIEN8_ANH_DATA] [image] NULL,
	[LIEN9_ANH_DATA] [image] NULL,
	[IS_A5] [int] NULL,
	[IS_ENG_VIET] [int] NULL,
	[IS_ENG_FULL] [int] NULL,
	[SO_DONG_HANG] [numeric](18, 0) NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[IS_IN_NGANG] [int] NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](255) NULL,
	[GHI_CHU_DONG_BO] [nvarchar](255) NULL,
 CONSTRAINT [PK_DPHATHANH_KHOITAO_TEMPLATE] PRIMARY KEY CLUSTERED 
(
	[DPHATHANH_KHOITAO_TMPLATEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DPHATHANH_KY_SO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DPHATHANH_KY_SO](
	[DPHATHANH_KY_SOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NGAY_KY_SO] [datetime] NULL,
	[NOI_DUNG] [ntext] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
 CONSTRAINT [PK_DPHATHANH_KY_SO] PRIMARY KEY CLUSTERED 
(
	[DPHATHANH_KY_SOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DPHATHANH_KYHIEU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DPHATHANH_KYHIEU](
	[DPHATHANH_KYHIEUID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[KY_HIEU_TIEN_TO] [nvarchar](50) NULL,
	[KY_HIEU_HAU_TO] [nvarchar](50) NULL,
	[KY_HIEU_FULL] [nvarchar](50) NULL,
	[SO_LUONG_DA_PHAT_HANH] [numeric](18, 0) NULL,
	[SO_LUONG_DA_PHAT_TU_SO] [numeric](18, 0) NULL,
	[SO_LUONG_DA_PHAT_DEN_SO] [numeric](18, 0) NULL,
	[IS_PHAT_HANH] [int] NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
 CONSTRAINT [PK_DPHATHANH_KYHIEU] PRIMARY KEY CLUSTERED 
(
	[DPHATHANH_KYHIEUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DQUYET_DINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DQUYET_DINH](
	[QUYET_DINHID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SO_QUYET_DINH] [nvarchar](50) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[THANH_PHO] [nvarchar](255) NULL,
	[TEN_QUYET_DINH] [nvarchar](255) NULL,
	[GIAM_DOC_DV] [nvarchar](255) NULL,
	[GIAY_KD_SO] [nvarchar](50) NULL,
	[NGUOI_DE_NGHI] [nvarchar](255) NULL,
	[MA_CO_QUAN_THUE] [nvarchar](50) NULL,
	[NGAY_AP_DUNG] [smalldatetime] NULL,
	[NOI_DUNG_DIEU1] [ntext] NULL,
	[MAY_TINH_NAME] [nvarchar](50) NULL,
	[MAY_TINH_MA_HIEU] [nvarchar](125) NULL,
	[HE_DIEU_HANH] [nvarchar](255) NULL,
	[MAY_TINH_CPU] [nvarchar](255) NULL,
	[MAY_TINH_RAM] [nvarchar](50) NULL,
	[MAY_TINH_YEU_CAU] [nvarchar](255) NULL,
	[MAY_IN_NAME] [nvarchar](255) NULL,
	[MAY_IN_NSX] [nvarchar](255) NULL,
	[MAY_IN_YEU_CAU] [nvarchar](255) NULL,
	[PHAN_MEM_UNG_DUNG] [nvarchar](255) NULL,
	[HO_TRO_TRIEN_KHAI1] [ntext] NULL,
	[HO_TRO_TRIEN_KHAI2] [ntext] NULL,
	[LOAI_HOA_DON_IN] [nvarchar](255) NULL,
	[TEN_HOA_DON_IN] [nvarchar](255) NULL,
	[NGAY_HIEU_LUC] [smalldatetime] NULL,
	[MUC_DICH1] [ntext] NULL,
	[MUC_DICH2] [ntext] NULL,
	[MUC_DICH3] [ntext] NULL,
	[MUC_DICH4] [ntext] NULL,
	[MUC_DICH5] [ntext] NULL,
	[MUC_DICH6] [ntext] NULL,
	[HINH_THUC_HOA_DON] [varchar](50) NULL,
	[TEN_DV_LUUTRU] [nvarchar](250) NULL,
	[KY_HIEU_HOA_DON] [nvarchar](50) NULL,
 CONSTRAINT [PK_DQUYET_DINH] PRIMARY KEY CLUSTERED 
(
	[QUYET_DINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DTHONG_BAO_SAI_SOT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DTHONG_BAO_SAI_SOT](
	[DTHONG_BAO_SAI_SOTID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](20) NULL,
	[TEN_DV] [nvarchar](255) NOT NULL,
	[DIA_DANH] [nvarchar](50) NOT NULL,
	[MA_CQT_QUANLY] [nvarchar](50) NOT NULL,
	[CQT_QUANLY] [nvarchar](255) NOT NULL,
	[NGAY_LAP] [date] NOT NULL,
	[NGUOI_LAP] [nvarchar](50) NULL,
	[LOAI_THONG_BAO] [int] NOT NULL,
	[IS_XACNHAN] [int] NULL,
	[IS_KYSO] [int] NULL,
	[NOI_DUNG_XML] [nvarchar](max) NULL,
	[THOI_GIAN_TRUYEN_NHAN] [datetime] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[THONG_BAO_TRUYEN_NHAN] [nvarchar](500) NULL,
	[MA_GIAO_DICH_DIEN_TU] [nvarchar](255) NULL,
	[SO_THONG_BAO] [nvarchar](50) NULL,
	[NGAY_THONG_BAO] [date] NULL,
	[IS_CANCEL] [int] NULL,
 CONSTRAINT [PK_DTHONG_BAO_SAI_SOT] PRIMARY KEY CLUSTERED 
(
	[DTHONG_BAO_SAI_SOTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DTHONG_BAO_SAI_SOT_CHI_TIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DTHONG_BAO_SAI_SOT_CHI_TIET](
	[DTHONG_BAO_SAI_SOT_CHI_TIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DTHONG_BAO_SAI_SOTID] [numeric](18, 0) NOT NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[STT] [int] NULL,
	[SO_HOA_DON] [nvarchar](50) NOT NULL,
	[NGAY_HOA_DON] [date] NOT NULL,
	[MAU_SO] [nvarchar](20) NOT NULL,
	[KY_HIEU] [nvarchar](20) NOT NULL,
	[SO_XAC_THUC] [nvarchar](50) NULL,
	[LY_DO_XU_LY] [nvarchar](250) NULL,
	[TRANG_THAI_DIEU_CHINH] [int] NOT NULL,
	[TINH_CHAT_THONG_BAO] [int] NOT NULL,
	[LOAI_HINH_AP_DUNG] [int] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[THONG_BAO_TRUYEN_NHAN] [nvarchar](500) NULL,
 CONSTRAINT [PK_DTHONG_BAO_SAI_SOT_CHI_TIET] PRIMARY KEY CLUSTERED 
(
	[DTHONG_BAO_SAI_SOT_CHI_TIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DTHONGBAO_HOADON_RASOAT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DTHONGBAO_HOADON_RASOAT](
	[DTHONGBAO_HOADON_RASOATID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NGAY_TAO] [datetime] NULL,
	[LAN_THONG_BAO] [int] NULL,
	[TEN_THONG_BAO] [nvarchar](255) NULL,
	[SO_THONG_BAO] [nvarchar](30) NULL,
	[NGAY_THONG_BAO] [datetime] NULL,
	[THOI_HAN_XU_LY] [int] NULL,
	[MA_CQT] [nvarchar](400) NULL,
	[TEN_CQT] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_DTHONGBAO_HOADON_RASOAT_CHITIET] PRIMARY KEY CLUSTERED 
(
	[DTHONGBAO_HOADON_RASOATID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DTHONGBAO_HOADON_RASOAT_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DTHONGBAO_HOADON_RASOAT_CHITIET](
	[DTHONGBAO_HOADON_RASOAT_CHITIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DTHONGBAO_HOADON_RASOATID] [numeric](18, 0) NULL,
	[STT] [numeric](18, 0) NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[MAU_SO] [nvarchar](11) NULL,
	[KY_HIEU] [nvarchar](8) NULL,
	[SO_HOA_DON] [nvarchar](8) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[LOAI_HOA_DON] [int] NULL,
	[TEN_LOAI_HOA_DON] [nvarchar](50) NULL,
	[LY_DO] [nvarchar](255) NULL,
	[TRANG_THAI_XU_LY] [int] NULL,
	[NGAY_XU_LY] [datetime] NULL,
 CONSTRAINT [PK_DTHONGBAO_HOADON_RASOAT] PRIMARY KEY CLUSTERED 
(
	[DTHONGBAO_HOADON_RASOAT_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DTINH_HINH_XUAT_HOA_DON_CN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DTINH_HINH_XUAT_HOA_DON_CN](
	[DTINH_HINH_XUAT_HOA_DON_CNID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](255) NULL,
	[TEN_CN] [nvarchar](255) NULL,
	[NGAY_CAP_NHAT] [datetime] NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[TU_SO] [nvarchar](50) NULL,
	[DEN_SO] [nvarchar](50) NULL,
	[SL_HD_XUAT] [decimal](18, 0) NULL,
	[SL_HD_SU_DUNG] [decimal](18, 0) NULL,
	[SL_HD_HUY] [decimal](18, 0) NULL,
	[SL_HD_XOA_BO] [decimal](18, 0) NULL,
	[TONG_TIEN] [decimal](23, 5) NULL,
 CONSTRAINT [PK_DTINH_HINH_XUAT_HOA_DON_CN] PRIMARY KEY CLUSTERED 
(
	[DTINH_HINH_XUAT_HOA_DON_CNID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DTOKHAI_01_GTGT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DTOKHAI_01_GTGT](
	[DTOKHAI_01_GTGTID] [int] IDENTITY(1,1) NOT NULL,
	[KIEU_KY] [nvarchar](10) NOT NULL,
	[KY_KE_KHAI] [nvarchar](10) NOT NULL,
	[KY_KE_KHAI_TU_NGAY] [nvarchar](10) NOT NULL,
	[KY_KE_KHAI_DEN_NGAY] [nvarchar](10) NOT NULL,
	[LAN_DAU] [nvarchar](10) NULL,
	[BO_SUNG_LAN_THU] [nvarchar](10) NULL,
	[MA_SO_THUE] [nvarchar](100) NULL,
	[TEN_NGUOI_NOP_THUE] [nvarchar](100) NULL,
	[TEN_DAI_LY_THUE] [nvarchar](100) NULL,
	[MA_SO_THUE_DAI_LY] [nvarchar](100) NULL,
	[DN_VUA_VA_NHO] [nvarchar](10) NULL,
	[DN_SD_NHEU_LD] [nvarchar](10) NULL,
	[GIA_HAN_TT16_CHK] [nvarchar](10) NULL,
	[GIA_HAN_TT16] [nvarchar](200) NULL,
	[CHI_TIEU_21] [numeric](19, 0) NULL,
	[CHI_TIEU_22] [numeric](19, 0) NULL,
	[CHI_TIEU_23] [numeric](19, 0) NULL,
	[CHI_TIEU_24] [numeric](19, 0) NULL,
	[CHI_TIEU_25] [numeric](19, 0) NULL,
	[CHI_TIEU_26] [numeric](19, 0) NULL,
	[CHI_TIEU_27] [numeric](19, 0) NULL,
	[CHI_TIEU_28] [numeric](19, 0) NULL,
	[CHI_TIEU_29] [numeric](19, 0) NULL,
	[CHI_TIEU_30] [numeric](19, 0) NULL,
	[CHI_TIEU_31] [numeric](19, 0) NULL,
	[CHI_TIEU_32] [numeric](19, 0) NULL,
	[CHI_TIEU_33] [numeric](19, 0) NULL,
	[CHI_TIEU_34] [numeric](19, 0) NULL,
	[CHI_TIEU_35] [numeric](19, 0) NULL,
	[CHI_TIEU_36] [numeric](19, 0) NULL,
	[CHI_TIEU_37] [numeric](19, 0) NULL,
	[CHI_TIEU_38] [numeric](19, 0) NULL,
	[CHI_TIEU_39] [numeric](19, 0) NULL,
	[CHI_TIEU_40a] [numeric](19, 0) NULL,
	[CHI_TIEU_40b] [numeric](19, 0) NULL,
	[CHI_TIEU_40] [numeric](19, 0) NULL,
	[CHI_TIEU_41] [numeric](19, 0) NULL,
	[CHI_TIEU_42] [numeric](19, 0) NULL,
	[CHI_TIEU_43] [numeric](19, 0) NULL,
	[NHAN_VIEN] [nvarchar](200) NULL,
	[NGUOI_KY] [nvarchar](200) NULL,
	[CHUNG_CHI_HANH_NGHE] [nvarchar](200) NULL,
	[NGAY_KI] [datetime] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[TIEU_MUC_HACH_TOAN] [nvarchar](50) NULL,
	[CHI_TIEU_32a] [numeric](19, 0) NULL,
 CONSTRAINT [PK__DTOKHAI___45C0F586422DC1E7] PRIMARY KEY CLUSTERED 
(
	[DTOKHAI_01_GTGTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EINVOICE_SEND]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EINVOICE_SEND](
	[EINVOICE_SENDID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_LOAI_GD] [nvarchar](50) NULL,
	[GIAO_DICHID] [numeric](18, 0) NOT NULL,
	[USER_NAME] [nvarchar](100) NULL,
	[THAO_TAC] [nvarchar](255) NULL,
	[TRANG_THAI] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](2000) NULL,
	[REFERENCY] [nvarchar](50) NULL,
	[NGAY_TAO] [datetime] NULL,
	[MA_CN] [nvarchar](50) NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[SO_LAN_LOI] [int] NULL,
 CONSTRAINT [PK_EINVOICE_SEND] PRIMARY KEY CLUSTERED 
(
	[EINVOICE_SENDID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EINVOICE_SEND_TEMPLATE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EINVOICE_SEND_TEMPLATE](
	[EINVOICE_SEND_TEMPLATEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_LOAI_GD] [nvarchar](50) NULL,
	[DPHATHANH_KHOITAO_TMPLATEID] [numeric](18, 0) NOT NULL,
	[USER_NAME] [nvarchar](100) NULL,
	[THAO_TAC] [nvarchar](255) NULL,
	[TRANG_THAI] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](2000) NULL,
	[Reference] [nvarchar](50) NULL,
	[NGAY_TAO] [datetime] NULL,
	[MA_CN] [nvarchar](50) NULL,
	[NGAY_DONG_BO] [datetime] NULL,
 CONSTRAINT [PK_EINVOICE_SEND_TEMPLATE] PRIMARY KEY CLUSTERED 
(
	[EINVOICE_SEND_TEMPLATEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EINVOICE_SEND_WEBSITE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EINVOICE_SEND_WEBSITE](
	[EINVOICE_SEND_WEBSITEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_LOAI_GD] [nvarchar](50) NULL,
	[DHOADONID] [numeric](18, 0) NOT NULL,
	[USER_NAME] [nvarchar](100) NULL,
	[THAO_TAC] [nvarchar](255) NULL,
	[TRANG_THAI] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](2000) NULL,
	[Reference] [nvarchar](50) NULL,
	[NGAY_TAO] [datetime] NULL,
	[MA_CN] [nvarchar](50) NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[TRANG_THAI_TT] [nvarchar](50) NULL,
	[NGAY_DONG_BO_TT] [datetime] NULL,
	[MA_DV] [nvarchar](50) NULL,
	[LAN_DONG_BO] [int] NULL,
	[PC_NAME] [nvarchar](100) NULL,
	[TEN_SERVICE] [nvarchar](250) NULL,
 CONSTRAINT [PK_EINVOICE_SEND_WEBSITE] PRIMARY KEY CLUSTERED 
(
	[EINVOICE_SEND_WEBSITEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EXCEL_TEM_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EXCEL_TEM_LOG](
	[EXCEL_TEM_LOGID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[IMPORT_LOGID] [int] NULL,
	[SO_HOA_DON] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](20) NULL,
	[NGAY_HOA_DON] [datetime] NULL,
	[BEN_MUA_TEN_DV] [nvarchar](250) NULL,
	[TONG_THANH_TOAN] [decimal](23, 6) NULL,
	[MO_TA] [nvarchar](250) NULL,
	[GUID_DHOADON] [nvarchar](50) NULL,
 CONSTRAINT [PK_EXCEL_TEM_LOG] PRIMARY KEY CLUSTERED 
(
	[EXCEL_TEM_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GOPY]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GOPY](
	[GOPYID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NGAY_GUI] [datetime] NULL,
	[NOI_DUNG] [nvarchar](4000) NULL,
	[REF] [nvarchar](100) NULL,
	[NOI_DUNG_PH] [nvarchar](4000) NULL,
	[NGUOI_LH] [nvarchar](100) NULL,
	[DT_LIENHE] [nvarchar](100) NULL,
	[LOAI] [nvarchar](100) NULL,
	[NGAY_NHAN] [datetime] NULL,
	[IS_DANHAN] [int] NULL,
	[IS_HIENTHI] [int] NULL,
	[IS_CO_TRA_LOI] [int] NULL,
	[PC] [nvarchar](255) NULL,
 CONSTRAINT [PK_GOPY] PRIMARY KEY CLUSTERED 
(
	[GOPYID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HIENTHICOT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HIENTHICOT](
	[HIENTHICOTID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[STT] [int] NULL,
	[FieldName] [nvarchar](255) NULL,
	[FieldValue] [nvarchar](500) NULL,
	[FieldValueAS] [nvarchar](500) NULL,
	[FORM_NAME] [nvarchar](50) NOT NULL,
	[CHON] [int] NULL,
	[FieldFormat] [nvarchar](50) NULL,
	[FieldLeft] [int] NULL,
	[ColorName] [nvarchar](255) NULL,
	[colWidth] [int] NULL,
	[colFix] [int] NULL,
	[colDefault] [int] NULL,
	[SplitIndex] [int] NULL,
	[Is_Extension] [int] NULL,
	[ma_dv] [nvarchar](50) NULL,
	[BANG_DU_LIEU] [nvarchar](50) NULL,
	[IS_SUM] [int] NULL,
	[IS_SEARCH] [int] NULL,
 CONSTRAINT [PK_HIENTHICOT] PRIMARY KEY CLUSTERED 
(
	[HIENTHICOTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[LOGIN_INFO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[LOGIN_INFO](
	[LOGIN_INFOID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[DEFAULT_MAUSO_KYHIEU] [nvarchar](50) NULL,
	[UserID] [numeric](18, 0) NULL,
	[DEFAULT_MAUSO_KYHIEU_1] [nvarchar](50) NULL,
	[DEFAULT_MAUSO_KYHIEU_2] [nvarchar](50) NULL,
	[DEFAULT_MAUSO_KYHIEU_3] [nvarchar](50) NULL,
	[DEFAULT_MAUSO_KYHIEU_4] [nvarchar](50) NULL,
	[DEFAULT_MAUSO_KYHIEU_5] [nvarchar](50) NULL,
 CONSTRAINT [PK_LOGIN_INFO] PRIMARY KEY CLUSTERED 
(
	[LOGIN_INFOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MANAGER_DATABASE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MANAGER_DATABASE](
	[MANAGER_DATABASEID] [int] IDENTITY(1,1) NOT NULL,
	[MANAGER_SERVERID] [int] NOT NULL,
	[DATABASE_NAME] [nvarchar](300) NULL,
	[IS_ACTIVE] [int] NOT NULL,
	[CONNECTION_POOL] [int] NULL,
	[CREATE_DATE] [datetime] NULL,
	[CREATE_USER] [nvarchar](150) NULL,
	[SEARCH_PREFIX] [nvarchar](10) NULL,
	[DESCRIPTION] [nvarchar](250) NULL,
 CONSTRAINT [PK_MANAGER_DATABASE] PRIMARY KEY CLUSTERED 
(
	[MANAGER_DATABASEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MANAGER_FILTER]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MANAGER_FILTER](
	[MANAGER_FILTERID] [int] IDENTITY(1,1) NOT NULL,
	[MANAGER_UNITID] [int] NOT NULL,
	[ENTITY_NAME] [nvarchar](250) NULL,
	[DATABASE_FIELD_NAME] [nvarchar](250) NULL,
	[DESCRIPTION] [nvarchar](250) NULL,
 CONSTRAINT [PK_MANAGER_FILTER] PRIMARY KEY CLUSTERED 
(
	[MANAGER_FILTERID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MANAGER_FILTER_VALUE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MANAGER_FILTER_VALUE](
	[MANAGER_FILTER_VALUEID] [int] IDENTITY(1,1) NOT NULL,
	[MANAGER_FILTERID] [int] NOT NULL,
	[FILTED_CONDITION] [int] NULL,
	[FILTER_TYPE] [int] NULL,
	[FILTED_VALUE_TEXT] [nvarchar](250) NULL,
	[FILTED_VALUE_NUMBER] [numeric](18, 6) NULL,
	[FILTED_VALUE_DATE] [date] NULL,
 CONSTRAINT [PK_MANAGER_FILTER_VALUE] PRIMARY KEY CLUSTERED 
(
	[MANAGER_FILTER_VALUEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MANAGER_SERVER]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MANAGER_SERVER](
	[MANAGER_SERVERID] [int] IDENTITY(1,1) NOT NULL,
	[SERVER_NAME] [nvarchar](250) NULL,
	[SERVER_IP] [nvarchar](50) NULL,
	[USERNAME] [nvarchar](250) NULL,
	[PASSWORD] [nvarchar](250) NULL,
	[DESCRIPTION] [nvarchar](250) NULL,
	[SERVER_NAME_API] [nvarchar](250) NULL,
 CONSTRAINT [PK_MANAGER_SERVER] PRIMARY KEY CLUSTERED 
(
	[MANAGER_SERVERID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MANAGER_UNIT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MANAGER_UNIT](
	[MANAGER_UNITID] [int] IDENTITY(1,1) NOT NULL,
	[MANAGER_DATABASEID] [int] NOT NULL,
	[TAX_CODE] [nvarchar](50) NULL,
	[COMPANY_NAME] [nvarchar](250) NULL,
	[DESCRIPTION] [nvarchar](250) NULL,
	[RECEIVE_CODE] [nvarchar](10) NULL,
 CONSTRAINT [PK_MANAGER_UNIT] PRIMARY KEY CLUSTERED 
(
	[MANAGER_UNITID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SBIENBAN_TEMPLATE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SBIENBAN_TEMPLATE](
	[SBIENBAN_TEMPLATEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[STT] [numeric](18, 0) NULL,
	[MA_TEMPLATE] [nchar](10) NULL,
	[TEN_TEMPLATE] [nvarchar](255) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[LOAI_BIEN_BAN] [nvarchar](50) NULL,
	[TEMPLATE_FILE] [nvarchar](255) NULL,
	[TEMPLATE_FILE_DATA] [image] NULL,
	[LOGO_FILE] [nvarchar](255) NULL,
	[LOGO_FILE_DATA] [image] NULL,
	[FILE_REPORT_NAME] [nvarchar](255) NULL,
	[FILE_REPORT_XML] [ntext] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_ENG_VIET] [int] NULL,
	[IS_ENG_FULL] [int] NULL,
	[SO_DONG_HANG] [int] NULL,
	[IS_A5] [int] NULL,
	[IS_IN_NGANG] [int] NULL,
	[GUID_BIENBAN_TEMP] [nvarchar](250) NULL,
	[IS_DONG_BO] [int] NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[TRANG_THAI_DONG_BO] [nvarchar](50) NULL,
	[LOG_DONG_BO] [nvarchar](255) NULL,
 CONSTRAINT [PK_SBIEN_BAN_TEMPLATE_1] PRIMARY KEY CLUSTERED 
(
	[SBIENBAN_TEMPLATEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCANH_BAO_HOA_DON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCANH_BAO_HOA_DON](
	[SCANH_BAO_HOA_DONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[MA_CN] [nvarchar](100) NULL,
	[TEN_CN] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](255) NULL,
	[FAX] [nvarchar](255) NULL,
	[NGUOI_LIEN_HE] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_CANH_BAO] [int] NULL,
	[SO_LUONG_CANH_BAO] [numeric](18, 0) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU] [nvarchar](50) NULL,
	[SO_LUONG] [numeric](18, 0) NULL,
	[TU_SO] [numeric](18, 0) NULL,
	[DEN_SO] [numeric](18, 0) NULL,
	[NGAY_BAT_DAU_SU_DUNG] [datetime] NULL,
	[DATECREATE] [datetime] NULL,
 CONSTRAINT [PK_SCANH_BAO_HOA_DON] PRIMARY KEY CLUSTERED 
(
	[SCANH_BAO_HOA_DONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCANH_BAO_HOA_DON_OPTION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCANH_BAO_HOA_DON_OPTION](
	[SCANH_BAO_HOA_DON_OPTIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SCANH_BAO_HOA_DONID] [numeric](18, 0) NOT NULL,
	[USERNAME] [nvarchar](50) NULL,
	[SO_LUONG_CANH_BAO] [numeric](18, 0) NULL,
	[IS_CANH_BAO] [int] NULL,
	[LOAI_CANH_BAO] [int] NULL,
 CONSTRAINT [PK_SCANH_BAO_HOA_DON_OPTION] PRIMARY KEY CLUSTERED 
(
	[SCANH_BAO_HOA_DON_OPTIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCAU_HINH_HOA_DON_XML]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCAU_HINH_HOA_DON_XML](
	[MA_DV] [nvarchar](50) NOT NULL,
	[TEN_COT] [nvarchar](50) NOT NULL,
	[TEN_XML] [nvarchar](50) NOT NULL,
	[TEN_BANG] [nvarchar](50) NOT NULL,
	[KIEU_DU_LIEU] [nvarchar](50) NULL,
	[LOAI_BANG] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](50) NULL,
 CONSTRAINT [PK_SCAU_HINH__HOA_DON_XML] PRIMARY KEY CLUSTERED 
(
	[MA_DV] ASC,
	[TEN_COT] ASC,
	[TEN_XML] ASC,
	[TEN_BANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL](
	[SCAUHINH_DANHMUC_IMPORT_EXCEL_ID] [int] IDENTITY(1,1) NOT NULL,
	[TEN_DANH_MUC] [nvarchar](255) NOT NULL,
	[TEN_BANG] [nvarchar](255) NOT NULL,
 CONSTRAINT [PK__SCAUHINH__91E1D7D71EE485AA] PRIMARY KEY CLUSTERED 
(
	[SCAUHINH_DANHMUC_IMPORT_EXCEL_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL](
	[SCAUHINH_NHAP_DU_LIEU_EXCELID] [int] IDENTITY(1,1) NOT NULL,
	[LOAI_NHAP] [nvarchar](255) NOT NULL,
	[TEN_TIEU_CHI] [nvarchar](255) NOT NULL,
	[MA_TIEU_CHI] [nvarchar](255) NOT NULL,
	[COT_EXCEL_MACDINH] [nvarchar](255) NULL,
	[COT_EXCEL_SUA] [nvarchar](255) NULL,
	[DU_LIEU_LAP] [int] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGAY_SUA] [datetime] NULL,
	[TEN_BANG] [nvarchar](255) NULL,
	[IS_KEY] [int] NULL,
	[IS_EXTENSION] [int] NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[DANH_MUC] [nvarchar](255) NULL,
	[COT_DANH_MUC] [nvarchar](255) NULL,
	[MA_DANH_MUC] [nvarchar](255) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[MA_LOAI] [nvarchar](200) NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK__SCAUHINH__7A11ABB91B13F4C6] PRIMARY KEY CLUSTERED 
(
	[SCAUHINH_NHAP_DU_LIEU_EXCELID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCAUHINH_PARA_COLUMN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCAUHINH_PARA_COLUMN](
	[SCAUHINH_PARA_COLUMNID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[TABLE_NAME] [nvarchar](50) NULL,
	[COLUMN_NAME] [nvarchar](50) NULL,
	[COLUMN_VALUE] [nvarchar](50) NULL,
	[DATATYPE] [nvarchar](50) NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_SCAUHINH_PARA_COLUMN] PRIMARY KEY CLUSTERED 
(
	[SCAUHINH_PARA_COLUMNID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCHI_NHANH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCHI_NHANH](
	[SCHI_NHANHID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](100) NULL,
	[TEN_CN] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](255) NULL,
	[FAX] [nvarchar](255) NULL,
	[NGUOI_LIEN_HE] [nvarchar](50) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[TRANG_THAI] [nvarchar](20) NULL,
	[SO_LUONG_GIOI_HAN_HD] [numeric](18, 0) NULL,
	[MA_CN_CHA] [nvarchar](100) NULL,
	[MAU_SO_MAC_DINH] [nvarchar](50) NULL,
	[KY_HIEU_MAC_DINH] [nvarchar](50) NULL,
	[MA_NHAN_HANG] [nvarchar](20) NULL,
	[MAU_SO_THAY_THE] [nvarchar](50) NULL,
	[KY_HIEU_THAY_THE] [nvarchar](50) NULL,
	[STHANH_PHOID] [numeric](18, 0) NULL,
	[QUANID] [numeric](18, 0) NULL,
	[MA_CQT] [nvarchar](50) NULL,
	[MA_CQT_ROOT] [nvarchar](50) NULL,
	[MA_DIA_DIEM_KD] [nvarchar](50) NULL,
 CONSTRAINT [PK_SCHI_NHANH] PRIMARY KEY CLUSTERED 
(
	[SCHI_NHANHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCO_QUAN_THUE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCO_QUAN_THUE](
	[MA_CO_QUAN_THUE] [nvarchar](50) NOT NULL,
	[TEN_CO_QUAN_THUE] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](255) NULL,
	[IsHienThi] [int] NULL,
 CONSTRAINT [PK_CO_QUAN_THUE] PRIMARY KEY CLUSTERED 
(
	[MA_CO_QUAN_THUE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCOLUMN_DINH_NGHIA]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCOLUMN_DINH_NGHIA](
	[SCOLUMN_DINH_NGHIAID] [bigint] IDENTITY(1,1) NOT NULL,
	[STABLE_DINH_NGHIAID] [bigint] NULL,
	[STABLE_DINH_NGHIACODE] [varchar](100) NULL,
	[MA_DV] [varchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[COLUMN_CODE] [varchar](255) NULL,
	[COLUMN_NAME] [nvarchar](255) NULL,
	[IS_PRIMARY] [int] NULL,
	[MO_TA] [nvarchar](500) NULL,
 CONSTRAINT [PK_SCOLUMN_DINH_NGHIA] PRIMARY KEY CLUSTERED 
(
	[SCOLUMN_DINH_NGHIAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SCOLUMN_DINH_NGHIA_EXCEL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SCOLUMN_DINH_NGHIA_EXCEL](
	[SCOLUMN_DINH_NGHIA_EXCELID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[STT] [numeric](18, 0) NULL,
	[MA] [nvarchar](50) NULL,
	[COLUMN_CODE] [nvarchar](250) NULL,
	[COLUMN_NAME] [nvarchar](250) NULL,
	[STABLE_DINH_NGHIA] [nvarchar](250) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[USERNAME] [nvarchar](50) NULL,
	[IS_PUBLIC] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDANHMUC_CAC_LOAI]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDANHMUC_CAC_LOAI](
	[SDANHMUC_CAC_LOAIID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA] [nvarchar](250) NULL,
	[TEN] [nvarchar](250) NULL,
	[GHI_CHU] [nvarchar](250) NULL,
	[LOAI_DANH_MUC] [nvarchar](50) NULL,
 CONSTRAINT [PK_SDANHMUC_CAC_LOAI] PRIMARY KEY CLUSTERED 
(
	[SDANHMUC_CAC_LOAIID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDATA_DINH_NGHIA]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDATA_DINH_NGHIA](
	[SDATA_DINH_NGHIAID] [bigint] IDENTITY(1,1) NOT NULL,
	[STABLE_DINH_NGHIACODE] [varchar](50) NOT NULL,
	[MA_DV] [varchar](50) NULL,
	[TEXT1] [nvarchar](255) NULL,
	[TEXT2] [nvarchar](255) NULL,
	[TEXT3] [nvarchar](255) NULL,
	[TEXT4] [nvarchar](255) NULL,
	[TEXT5] [nvarchar](255) NULL,
	[TEXT6] [nvarchar](255) NULL,
	[TEXT7] [nvarchar](255) NULL,
	[TEXT8] [nvarchar](255) NULL,
	[TEXT9] [nvarchar](255) NULL,
	[TEXT10] [nvarchar](255) NULL,
	[TEXT11] [nvarchar](255) NULL,
	[TEXT12] [nvarchar](255) NULL,
	[TEXT13] [nvarchar](255) NULL,
	[TEXT14] [nvarchar](255) NULL,
	[TEXT15] [nvarchar](255) NULL,
	[TEXT16] [nvarchar](255) NULL,
	[TEXT17] [nvarchar](255) NULL,
	[TEXT18] [nvarchar](255) NULL,
	[TEXT19] [nvarchar](255) NULL,
	[TEXT20] [nvarchar](255) NULL,
	[NTEXT1] [ntext] NULL,
	[NTEXT2] [ntext] NULL,
	[NTEXT3] [ntext] NULL,
	[NTEXT4] [ntext] NULL,
	[NTEXT5] [ntext] NULL,
	[NTEXT6] [ntext] NULL,
	[NTEXT7] [ntext] NULL,
	[NTEXT8] [ntext] NULL,
	[NTEXT9] [ntext] NULL,
	[NTEXT10] [ntext] NULL,
	[NUMBER1] [numeric](23, 8) NULL,
	[NUMBER2] [numeric](23, 8) NULL,
	[NUMBER3] [numeric](23, 8) NULL,
	[NUMBER4] [numeric](23, 8) NULL,
	[NUMBER5] [numeric](23, 8) NULL,
	[NUMBER6] [numeric](23, 8) NULL,
	[NUMBER7] [numeric](23, 8) NULL,
	[NUMBER8] [numeric](23, 8) NULL,
	[NUMBER9] [numeric](23, 8) NULL,
	[NUMBER10] [numeric](23, 8) NULL,
	[NUMBER11] [numeric](23, 8) NULL,
	[NUMBER12] [numeric](23, 8) NULL,
	[NUMBER13] [numeric](23, 8) NULL,
	[NUMBER14] [numeric](23, 8) NULL,
	[NUMBER15] [numeric](23, 8) NULL,
	[NUMBER16] [numeric](23, 8) NULL,
	[NUMBER17] [numeric](23, 8) NULL,
	[NUMBER18] [numeric](23, 8) NULL,
	[NUMBER19] [numeric](23, 8) NULL,
	[NUMBER20] [numeric](23, 8) NULL,
	[DATETIME1] [datetime] NULL,
	[DATETIME2] [datetime] NULL,
	[DATETIME3] [datetime] NULL,
	[DATETIME4] [datetime] NULL,
	[DATETIME5] [datetime] NULL,
	[DATETIME6] [datetime] NULL,
	[DATETIME7] [datetime] NULL,
	[DATETIME8] [datetime] NULL,
	[DATETIME9] [datetime] NULL,
	[DATETIME10] [datetime] NULL,
	[DATETIME11] [datetime] NULL,
	[DATETIME12] [datetime] NULL,
	[DATETIME13] [datetime] NULL,
	[DATETIME14] [datetime] NULL,
	[DATETIME15] [datetime] NULL,
	[DATETIME16] [datetime] NULL,
	[DATETIME17] [datetime] NULL,
	[DATETIME18] [datetime] NULL,
	[DATETIME19] [datetime] NULL,
	[DATETIME20] [datetime] NULL,
	[INT1] [int] NULL,
	[INT2] [int] NULL,
	[INT3] [int] NULL,
	[INT4] [int] NULL,
	[INT5] [int] NULL,
	[INT6] [int] NULL,
	[INT7] [int] NULL,
	[INT8] [int] NULL,
	[INT9] [int] NULL,
	[INT10] [int] NULL,
 CONSTRAINT [PK_SDATA_DINH_NGHIA] PRIMARY KEY CLUSTERED 
(
	[SDATA_DINH_NGHIAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDOITAC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDOITAC](
	[SDOITACID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[TEN_DV_EN] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[DIA_CHI_EN] [nvarchar](255) NULL,
	[MA_SO_THUE] [nvarchar](255) NULL,
	[NGUOI_GIAO_DICH] [nvarchar](255) NULL,
	[NGUOI_GIAO_DICH_EN] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](255) NULL,
	[FAX] [nvarchar](255) NULL,
	[WEBSITE] [nvarchar](255) NULL,
	[EMAIL] [nvarchar](255) NULL,
	[NGAN_HANG_TEN1] [nvarchar](255) NULL,
	[NGAN_HANG_TAI_KHOAN1] [nvarchar](255) NULL,
	[NGAN_HANG_CHU_TAI_KHOAN1] [nvarchar](255) NULL,
	[NGAN_HANG_TEN2] [nvarchar](255) NULL,
	[NGAN_HANG_TAI_KHOAN2] [nvarchar](255) NULL,
	[NGAN_HANG_CHU_TAI_KHOAN2] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_CURRENT] [int] NULL,
	[IS_HIENTHI] [int] NULL,
	[MA_DV_SD] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[DIEN_THOAI_LIEN_HE] [nvarchar](50) NULL,
	[NAM_SINH] [datetime] NULL,
	[MA_GIAO_DICH] [nvarchar](255) NULL,
	[IS_MAC_DINH] [int] NULL,
	[DIA_CHI_GIAO_HANG] [nvarchar](255) NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_INT1] [int] NULL,
	[EXT_INT2] [int] NULL,
	[EXT_INT3] [int] NULL,
	[EXT_INT4] [int] NULL,
	[EXT_INT5] [int] NULL,
 CONSTRAINT [PK_SDOITAC] PRIMARY KEY CLUSTERED 
(
	[SDOITACID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDOITAC_CHITIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDOITAC_CHITIET](
	[SDOITAC_CHITIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SDOITACID] [numeric](18, 0) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[EMAIL] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[EXT_VARCHAR1] [nvarchar](255) NULL,
	[EXT_VARCHAR2] [nvarchar](255) NULL,
	[EXT_VARCHAR3] [nvarchar](255) NULL,
	[EXT_VARCHAR4] [nvarchar](255) NULL,
	[EXT_VARCHAR5] [nvarchar](255) NULL,
	[EXT_DATE1] [datetime] NULL,
	[EXT_DATE2] [datetime] NULL,
	[EXT_DATE3] [datetime] NULL,
	[EXT_DATE4] [datetime] NULL,
	[EXT_DATE5] [datetime] NULL,
	[EXT_NUMBER1] [numeric](23, 8) NULL,
	[EXT_NUMBER2] [numeric](23, 8) NULL,
	[EXT_NUMBER3] [numeric](23, 8) NULL,
	[EXT_NUMBER4] [numeric](23, 8) NULL,
	[EXT_NUMBER5] [numeric](23, 8) NULL,
	[EXT_INT1] [int] NULL,
	[EXT_INT2] [int] NULL,
	[EXT_INT3] [int] NULL,
	[EXT_INT4] [int] NULL,
	[EXT_INT5] [int] NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_SDOITAC_CHITIET] PRIMARY KEY CLUSTERED 
(
	[SDOITAC_CHITIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDONVI]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDONVI](
	[SDONVIID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NOT NULL,
	[TEN_DV] [nvarchar](255) NULL,
	[TEN_DV_TIENG_ANH] [nvarchar](255) NULL,
	[TEN_GD] [nvarchar](255) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](255) NULL,
	[FAX] [nvarchar](255) NULL,
	[EMAIL] [nvarchar](255) NULL,
	[NGUOI_LIEN_HE] [nvarchar](255) NULL,
	[NGUOI_LIEN_HE_DIEN_THOAI] [nvarchar](255) NULL,
	[NGAN_HANG_TEN1] [nvarchar](255) NULL,
	[NGAN_HANG_TAI_KHOAN1] [nvarchar](255) NULL,
	[NGAN_HANG_CHU_TAI_KHOAN1] [nvarchar](255) NULL,
	[NGAN_HANG_TEN2] [nvarchar](255) NULL,
	[NGAN_HANG_TAI_KHOAN2] [nvarchar](255) NULL,
	[NGAN_HANG_CHU_TAI_KHOAN2] [nvarchar](255) NULL,
	[FILE_LOGO_TEN] [nvarchar](255) NULL,
	[FILE_LOGO_DATA] [image] NULL,
	[LINH_VUC_HOAT_DONG] [nvarchar](255) NULL,
	[NGANH_NGHE] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_CURRENT] [int] NULL,
	[MA_CO_QUAN_THUE] [nvarchar](50) NULL,
	[NGUOI_DAI_DIEN_PHAP_LUAT] [nvarchar](255) NULL,
	[DIA_CHI_TIENG_ANH] [nvarchar](255) NULL,
	[NGUOI_KY_HOA_DON] [nvarchar](255) NULL,
	[CKS_SERIAL] [nvarchar](200) NULL,
	[LOAI_HINH_KINH_DOANH] [int] NULL,
	[MA_CQT] [nvarchar](50) NULL,
 CONSTRAINT [PK_SDONVI] PRIMARY KEY CLUSTERED 
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDONVI_MA_CQT_MTT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDONVI_MA_CQT_MTT](
	[SDONVI_MA_CQT_MTTID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[NAM_PHAT_HANH] [nvarchar](10) NULL,
	[MA_CQT] [nvarchar](50) NULL,
	[SU_DUNG_DEN_SO] [numeric](18, 0) NULL,
	[SU_DUNG_DEN_NGAY] [datetime] NULL,
	[TU_SO] [numeric](18, 0) NULL,
	[DEN_SO] [numeric](18, 0) NULL,
	[MA_CN] [nvarchar](100) NULL,
	[DAI_SO_DIEU_CHINH] [int] NULL,
	[MAU_SO] [nvarchar](10) NULL,
	[KY_HIEU] [nvarchar](20) NULL,
 CONSTRAINT [PK_SDONVI_MA_CQT_MTT] PRIMARY KEY CLUSTERED 
(
	[SDONVI_MA_CQT_MTTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SDVT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SDVT](
	[MA_DVT] [nvarchar](50) NOT NULL,
	[TEN_DVT] [nvarchar](255) NOT NULL,
	[MA_STD] [nvarchar](100) NULL,
	[TL_QUYDOI] [numeric](18, 6) NULL,
	[IS_HIENTHI] [int] NULL,
 CONSTRAINT [PK_SDVT] PRIMARY KEY CLUSTERED 
(
	[MA_DVT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SERVERMAIL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SERVERMAIL](
	[MA_DV] [nvarchar](50) NOT NULL,
	[ServerMailIP] [nvarchar](255) NULL,
	[ServerMailAddress] [nvarchar](255) NULL,
	[ServerMailPassword] [nvarchar](255) NULL,
	[ServerMailPort] [nvarchar](255) NULL,
 CONSTRAINT [PK_SERVERMAIL] PRIMARY KEY CLUSTERED 
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SHAN_THANH_TOAN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SHAN_THANH_TOAN](
	[MA_THANH_TOAN] [varchar](10) NOT NULL,
	[TEN_THANH_TOAN] [nvarchar](250) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SHINHTHUCTT]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SHINHTHUCTT](
	[MA_HINHTHUCTT] [nvarchar](50) NOT NULL,
	[TEN_HINHTHUCTT] [nvarchar](255) NULL,
	[IS_HIENTHI] [int] NULL,
	[IS_MAC_DINH] [int] NULL,
 CONSTRAINT [PK_SHINHTHUCTT] PRIMARY KEY CLUSTERED 
(
	[MA_HINHTHUCTT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SHOADON_TEMPLATE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SHOADON_TEMPLATE](
	[MA_HOA_DON_TEMPLATE] [nvarchar](50) NOT NULL,
	[STT] [numeric](18, 0) NULL,
	[TEN] [nvarchar](255) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[TEMPLATE_FILE] [nvarchar](255) NULL,
	[TEMPLATE_FILE_DATA] [image] NULL,
	[LOGO_FILE] [nvarchar](255) NULL,
	[LOGO_FILE_DATA] [image] NULL,
	[FILE_REPORT_NAME] [nvarchar](255) NULL,
	[FILE_REPORT_XML] [ntext] NULL,
	[IS_SYSTEM] [int] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[FILE_PREVIEW_NAME1] [nvarchar](255) NULL,
	[FILE_PREVIEW_DATA1] [image] NULL,
	[FILE_PREVIEW_NAME2] [nvarchar](255) NULL,
	[FILE_PREVIEW_DATA2] [image] NULL,
	[VERSION] [numeric](18, 0) NULL,
	[SO_KY_TU_TEN_HANG] [numeric](18, 0) NULL,
	[SO_KY_TU_TIEN_BANG_CHU1] [numeric](18, 0) NULL,
	[SO_KY_TU_TIEN_BANG_CHU2] [numeric](18, 0) NULL,
	[LIEN1_MAU] [nvarchar](255) NULL,
	[LIEN2_MAU] [nvarchar](255) NULL,
	[LIEN3_MAU] [nvarchar](255) NULL,
	[LIEN4_MAU] [nvarchar](255) NULL,
	[LIEN5_MAU] [nvarchar](255) NULL,
	[LIEN6_MAU] [nvarchar](255) NULL,
	[LIEN7_MAU] [nvarchar](255) NULL,
	[LIEN8_MAU] [nvarchar](255) NULL,
	[LIEN9_MAU] [nvarchar](255) NULL,
	[LIEN1_ANH] [nvarchar](255) NULL,
	[LIEN2_ANH] [nvarchar](255) NULL,
	[LIEN3_ANH] [nvarchar](255) NULL,
	[LIEN4_ANH] [nvarchar](255) NULL,
	[LIEN5_ANH] [nvarchar](255) NULL,
	[LIEN6_ANH] [nvarchar](255) NULL,
	[LIEN7_ANH] [nvarchar](255) NULL,
	[LIEN8_ANH] [nvarchar](255) NULL,
	[LIEN9_ANH] [nvarchar](255) NULL,
	[LIEN1_ANH_DATA] [image] NULL,
	[LIEN2_ANH_DATA] [image] NULL,
	[LIEN3_ANH_DATA] [image] NULL,
	[LIEN4_ANH_DATA] [image] NULL,
	[LIEN5_ANH_DATA] [image] NULL,
	[LIEN6_ANH_DATA] [image] NULL,
	[LIEN7_ANH_DATA] [image] NULL,
	[LIEN8_ANH_DATA] [image] NULL,
	[LIEN9_ANH_DATA] [image] NULL,
	[IS_A5] [int] NULL,
	[IS_ENG_VIET] [int] NULL,
	[IS_ENG_FULL] [int] NULL,
	[SO_DONG_HANG] [numeric](18, 0) NULL,
	[GUID_DPHATHANH_KHOITAO] [varchar](50) NULL,
	[IS_XAC_THUC] [int] NULL,
	[IS_IN_NGANG] [int] NULL,
	[HINH_THUC_IN] [varchar](50) NULL,
	[IS_TT68] [int] NULL,
 CONSTRAINT [PK_SHOADON_TEMPLATE] PRIMARY KEY CLUSTERED 
(
	[MA_HOA_DON_TEMPLATE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SKHO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SKHO](
	[MA_KHO] [nvarchar](550) NOT NULL,
	[LOAI_KHO] [nvarchar](550) NULL,
	[TEN_KHO] [nvarchar](955) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_HIENTHI] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SKHOAN_THU_NHAP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SKHOAN_THU_NHAP](
	[MA_KTN] [nvarchar](50) NOT NULL,
	[TEN_KTN] [nvarchar](255) NOT NULL,
	[HienThi] [int] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
PRIMARY KEY CLUSTERED 
(
	[MA_KTN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SKIEU_DU_LIEU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SKIEU_DU_LIEU](
	[SKIEU_DU_LIEUID] [int] IDENTITY(1,1) NOT NULL,
	[MA_KIEU] [int] NOT NULL,
	[TEN_KIEU] [nvarchar](255) NOT NULL,
	[TEN_KIEU_DATABASE] [nvarchar](255) NULL,
 CONSTRAINT [PK__SKIEU_DU__14AE4DD6062D8E4F] PRIMARY KEY CLUSTERED 
(
	[SKIEU_DU_LIEUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SKY_HIEU_TIEN_TO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SKY_HIEU_TIEN_TO](
	[MA] [varchar](50) NOT NULL,
	[IS_HIENTHI] [int] NULL,
 CONSTRAINT [PK_KY_HIEU] PRIMARY KEY CLUSTERED 
(
	[MA] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SLIEN_DIEN_TU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SLIEN_DIEN_TU](
	[MA_DV] [nvarchar](50) NOT NULL,
	[MA_LIEN] [nvarchar](50) NOT NULL,
	[TEN_LIEN] [nvarchar](250) NULL,
	[TEN_LIEN_EN] [nvarchar](250) NULL,
	[GHI_CHU] [nvarchar](250) NULL,
 CONSTRAINT [PK_SLIEN_DIEN_TU] PRIMARY KEY CLUSTERED 
(
	[MA_DV] ASC,
	[MA_LIEN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SLOAI_CHUNG_TU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SLOAI_CHUNG_TU](
	[SLOAI_CHUNG_TUID] [int] IDENTITY(1,1) NOT NULL,
	[MA_LOAI_CT] [nvarchar](50) NOT NULL,
	[TEN_CHUNG_TU] [nvarchar](200) NOT NULL,
	[GHI_CHU] [nvarchar](200) NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SLOAI_DIEU_CHINH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SLOAI_DIEU_CHINH](
	[SLOAI_DIEU_CHINHID] [int] IDENTITY(1,1) NOT NULL,
	[TEN_DIEU_CHINH] [nvarchar](250) NULL,
	[DC_SO_LUONG] [int] NULL,
	[DC_DON_GIA] [int] NULL,
	[DC_TIEN_THUE] [int] NULL,
	[DC_THANH_TIEN] [int] NULL,
	[DC_CHIET_KHAU] [int] NULL,
	[STT] [int] NULL,
 CONSTRAINT [PK_SLOAI_DIEU_CHINH] PRIMARY KEY CLUSTERED 
(
	[SLOAI_DIEU_CHINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SLOAI_HOA_DON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SLOAI_HOA_DON](
	[MA_LOAI_HOA_DON] [nvarchar](50) NOT NULL,
	[TEN_LOAI_HOA_DON] [nvarchar](255) NULL,
	[MAU_SO_HOA_DON] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[PHIEN_BAN_XML] [nvarchar](50) NULL,
 CONSTRAINT [PK_SLOAI_HOA_DON] PRIMARY KEY CLUSTERED 
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SNAM]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SNAM](
	[Nam] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_SNAM] PRIMARY KEY CLUSTERED 
(
	[Nam] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SNGTE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SNGTE](
	[MA_NT] [nvarchar](255) NOT NULL,
	[TEN_NT] [nvarchar](255) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[IsHienThi] [int] NULL,
	[NGAY_NHAP] [datetime] NULL,
	[TEN_NT_ENG] [nvarchar](50) NULL,
	[IS_MAC_DINH] [int] NULL,
 CONSTRAINT [PK_SNGTE] PRIMARY KEY CLUSTERED 
(
	[MA_NT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SNGTE_NGAY]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SNGTE_NGAY](
	[SNGTE_NGAYID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_NT] [nvarchar](255) NOT NULL,
	[TEN_NT] [nvarchar](255) NULL,
	[TY_GIA] [numeric](23, 8) NULL,
	[IsHienThi] [int] NULL,
	[NGAY_NHAP] [datetime] NULL,
 CONSTRAINT [PK_SNGTE_NGAY] PRIMARY KEY CLUSTERED 
(
	[SNGTE_NGAYID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SNHAN_VIEN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SNHAN_VIEN](
	[SNHAN_VIENID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_NV] [nvarchar](50) NULL,
	[TEN_NV] [nvarchar](255) NULL,
	[FULL_NAME] [nvarchar](255) NULL,
	[DIEN_THOAI] [nvarchar](50) NULL,
	[DIA_CHI] [nvarchar](255) NULL,
	[PHUONG_XA] [nvarchar](255) NULL,
	[QUAN_HUYEN] [nvarchar](255) NULL,
	[TINH_TP] [nvarchar](255) NULL,
	[CMT_SO] [nvarchar](50) NULL,
	[CMT_NOI_CAP] [nvarchar](50) NULL,
	[CMT_NGAY_CAP] [datetime] NULL,
	[QUOC_TICH] [nvarchar](50) NULL,
	[MA_SO_THUE] [nvarchar](50) NULL,
	[NGAY_SINH] [datetime] NULL,
	[GIOI_TINH] [int] NULL,
	[NGAY_VAO_LAM] [datetime] NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[EMAIL] [nvarchar](50) NULL,
	[NGUOI_NUOC_NGOAI] [int] NULL,
	[CHUC_VU] [nvarchar](50) NULL,
	[NGAN_HANG_TAI_KHOAN] [nvarchar](50) NULL,
	[NGAN_HANG_TEN] [nvarchar](50) NULL,
 CONSTRAINT [PK_SNHAN_VIEN] PRIMARY KEY CLUSTERED 
(
	[SNHAN_VIENID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SNUOC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SNUOC](
	[MA_NUOC] [nvarchar](50) NOT NULL,
	[TEN_NUOC] [nvarchar](50) NOT NULL,
	[MA_NT] [nvarchar](50) NULL,
	[HienThi] [int] NULL,
 CONSTRAINT [PK_SNUOC] PRIMARY KEY CLUSTERED 
(
	[MA_NUOC] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STABLE_DINH_NGHIA]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STABLE_DINH_NGHIA](
	[STABLE_DINH_NGHIAID] [bigint] IDENTITY(1,1) NOT NULL,
	[STABLE_DINH_NGHIACODE] [varchar](100) NOT NULL,
	[TEN_TABLE] [nvarchar](200) NULL,
	[MO_TA] [nvarchar](500) NULL,
	[MA_DV] [varchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[LOAI_CN] [varchar](50) NULL,
 CONSTRAINT [PK_STABLE_DINH_NGHIA] PRIMARY KEY CLUSTERED 
(
	[STABLE_DINH_NGHIAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STHANH_PHO]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STHANH_PHO](
	[STHANH_PHOID] [numeric](23, 0) IDENTITY(1,1) NOT NULL,
	[MA_THANH_PHO] [nvarchar](250) NULL,
	[TEN_THANH_PHO] [nvarchar](250) NULL,
	[GHI_CHU] [nvarchar](550) NULL,
 CONSTRAINT [PK_STHANH_PHO] PRIMARY KEY CLUSTERED 
(
	[STHANH_PHOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STHUE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STHUE](
	[STHUEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[LOAI] [nvarchar](50) NULL,
	[VAT_NAME] [nvarchar](50) NULL,
	[VAT] [numeric](18, 6) NULL,
	[VAT_ORDER] [int] NULL,
	[IS_EXTENSION] [int] NULL,
	[IS_SU_DUNG] [int] NULL,
	[IS_XML] [int] NULL,
	[MO_TA] [nvarchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STIEU_CHI_PHAN_HOI]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STIEU_CHI_PHAN_HOI](
	[STIEU_CHI_PHAN_HOIID] [int] IDENTITY(1,1) NOT NULL,
	[MA_TIEU_CHI] [varchar](10) NULL,
	[TEN_TIEU_CHI] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[IS_MASTER] [int] NULL,
	[NGAY_TAO] [datetime] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_SUA] [datetime] NULL,
	[NGUOI_SUA] [nvarchar](50) NULL,
 CONSTRAINT [PK_STIEU_CHI_PHAN_HOI] PRIMARY KEY CLUSTERED 
(
	[STIEU_CHI_PHAN_HOIID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STRANG_THAI_HOA_DON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STRANG_THAI_HOA_DON](
	[TRANG_THAI_DIEU_CHINH] [int] NOT NULL,
	[MO_TA] [nvarchar](255) NULL,
 CONSTRAINT [PK_STRANG_THAI_HOA_DON] PRIMARY KEY CLUSTERED 
(
	[TRANG_THAI_DIEU_CHINH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYS_GROUP_PERMISSIONS]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYS_GROUP_PERMISSIONS](
	[SYS_GROUP_PERMISSIONSID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GROUP_NAME] [nvarchar](50) NULL,
	[GROUP_ORDER] [int] NULL,
	[Username] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[IS_SU_DUNG] [int] NULL,
	[MA_CN] [nvarchar](50) NULL,
 CONSTRAINT [PK_SYSPERMISSIONSID_GRUOP] PRIMARY KEY CLUSTERED 
(
	[SYS_GROUP_PERMISSIONSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYS_PERMISSIONS]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYS_PERMISSIONS](
	[SYS_PERMISSIONSID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[PER_NAME] [nvarchar](250) NULL,
	[PER_CODE] [nvarchar](50) NULL,
	[PARENTID] [numeric](18, 0) NULL,
 CONSTRAINT [PK_SYS_PERMISSIONS] PRIMARY KEY CLUSTERED 
(
	[SYS_PERMISSIONSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYS_PERMISSIONS_GROUP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYS_PERMISSIONS_GROUP](
	[SYS_PERMISSIONS_GROUPID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SYS_PERMISSIONSID] [numeric](18, 0) NOT NULL,
	[SYS_GROUP_PERMISSIONSID] [numeric](18, 0) NOT NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_SYS_PERMISSIONSID_GROUP] PRIMARY KEY CLUSTERED 
(
	[SYS_PERMISSIONS_GROUPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYS_PERMISSIONS_USER]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYS_PERMISSIONS_USER](
	[SYS_PERMISSIONS_USERID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SYS_PERMISSIONSID] [numeric](18, 0) NOT NULL,
	[SYS_GROUP_PERMISSIONSID] [numeric](18, 0) NOT NULL,
	[USERNAME] [nvarchar](250) NOT NULL,
	[IS_SU_DUNG] [int] NULL,
 CONSTRAINT [PK_SYS_PERMISSIONS_USER] PRIMARY KEY CLUSTERED 
(
	[SYS_PERMISSIONS_USERID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYS_SERVICE_MONITOR]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYS_SERVICE_MONITOR](
	[SYS_SERVICE_MONITORID] [bigint] IDENTITY(1,1) NOT NULL,
	[SERVICE_NAME] [nvarchar](250) NULL,
	[SERVICE_DISPLAY_NAME] [nvarchar](250) NULL,
	[DESCRIPTION] [nvarchar](500) NULL,
	[STATUS] [nvarchar](50) NULL,
	[TIME_RUN] [nvarchar](250) NULL,
	[ERROR_NEW] [nvarchar](1000) NULL,
 CONSTRAINT [PK_SYS_SERVICE_MONITOR] PRIMARY KEY CLUSTERED 
(
	[SYS_SERVICE_MONITORID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYS_SERVICE_MONITOR_DETAIL]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYS_SERVICE_MONITOR_DETAIL](
	[SYS_SERVICE_MONITOR_DETAILID] [bigint] IDENTITY(1,1) NOT NULL,
	[SYS_SERVICE_MONITORID] [bigint] NOT NULL,
	[ERROR_DESCRIPTION] [nvarchar](2000) NULL,
	[ERROR_TIME] [datetime] NULL,
	[ERROR_TYPE] [nvarchar](50) NULL,
 CONSTRAINT [PK_SYS_SERVICE_MONITOR_DETAIL] PRIMARY KEY CLUSTERED 
(
	[SYS_SERVICE_MONITOR_DETAILID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSACTION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSACTION](
	[ACTION_CODE] [nvarchar](50) NOT NULL,
	[DESCRIPTION] [nvarchar](255) NULL,
 CONSTRAINT [PK_SYSACTION] PRIMARY KEY CLUSTERED 
(
	[ACTION_CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSACTION_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSACTION_LOG](
	[SYSACTION_LOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[FUNCTION_CODE] [nvarchar](50) NULL,
	[ACTION_CODE] [nvarchar](50) NULL,
	[ACTION_TIME] [datetime] NULL,
	[REFERENCE] [nvarchar](255) NULL,
	[DESCRIPTION] [nvarchar](255) NULL,
	[USER_NAME] [nvarchar](50) NULL,
	[SESSIONID] [nvarchar](50) NULL,
	[PC_NAME] [nvarchar](255) NULL,
 CONSTRAINT [PK_SYSACTION_LOG] PRIMARY KEY CLUSTERED 
(
	[SYSACTION_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSAPP_MENU]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSAPP_MENU](
	[MENU_NAME] [nvarchar](50) NOT NULL,
	[MENU_CAPTION] [nvarchar](255) NULL,
	[MENU_BAR] [nvarchar](255) NULL,
	[MENU_PARENT] [nvarchar](255) NULL,
	[FRM] [nvarchar](255) NULL,
	[IS_ACCESS_ENABLE] [int] NULL,
	[IS_CREATE_ENABLE] [int] NULL,
	[IS_EDIT_ENABLE] [int] NULL,
	[IS_DELETE_ENABLE] [int] NULL,
	[IS_VIEW_ENABLE] [int] NULL,
	[IS_PRINT_ENABLE] [int] NULL,
	[IS_EXPORT_ENABLE] [int] NULL,
	[IS_IMPORT_ENABLE] [int] NULL,
	[IS_ISSUE_INVOICE_ENABLE] [int] NULL,
	[IS_PROCESS_INVOICE_ENABLE] [int] NULL,
	[IS_PROCESS_INVOICE_SPECIAL_ENABLE] [int] NULL,
 CONSTRAINT [PK_SYS_APP_MENU] PRIMARY KEY CLUSTERED 
(
	[MENU_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSAPP_MENU_GROUP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSAPP_MENU_GROUP](
	[SYSAPP_MENU_GROUPID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MENU_NAME] [nvarchar](50) NOT NULL,
	[SYSGROUPID] [numeric](18, 0) NOT NULL,
	[IS_ALL] [int] NULL,
	[IS_ACCESS] [int] NULL,
	[IS_CREATE] [int] NULL,
	[IS_EDIT] [int] NULL,
	[IS_DELETE] [int] NULL,
	[IS_VIEW] [int] NULL,
	[IS_PRINT] [int] NULL,
	[IS_EXPORT] [int] NULL,
	[IS_IMPORT] [int] NULL,
	[IS_ISSUE_INVOICE] [int] NULL,
	[IS_PROCESS_INVOICE] [int] NULL,
	[IS_PROCESS_INVOICE_SPECIAL] [int] NULL,
 CONSTRAINT [PK_SYS_APP_MENU_GOUP] PRIMARY KEY CLUSTERED 
(
	[SYSAPP_MENU_GROUPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSAPP_MENU_USER]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSAPP_MENU_USER](
	[SYSAPP_MENU_USERID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MENU_NAME] [nvarchar](50) NULL,
	[USER_NAME] [nvarchar](50) NULL,
	[IS_ALL] [int] NULL,
	[IS_ACCESS] [int] NULL,
	[IS_CREATE] [int] NULL,
	[IS_EDIT] [int] NULL,
	[IS_DELETE] [int] NULL,
	[IS_VIEW] [int] NULL,
	[IS_PRINT] [int] NULL,
	[IS_EXPORT] [int] NULL,
	[IS_IMPORT] [int] NULL,
	[IS_ISSUE_INVOICE] [int] NULL,
	[IS_PROCESS_INVOICE] [int] NULL,
	[IS_PROCESS_INVOICE_SPECIAL] [int] NULL,
 CONSTRAINT [PK_SYS_APP_MENU_USER] PRIMARY KEY CLUSTERED 
(
	[SYSAPP_MENU_USERID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSAPP_UPDATE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSAPP_UPDATE](
	[SYSAPP_UPDATEID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[NGAY_CAP_NHAT] [datetime] NOT NULL,
	[MO_TA] [nvarchar](255) NULL,
	[TEN_FILE] [nvarchar](255) NULL,
	[NOI_DUNG] [image] NULL,
	[NGUOI_TAO] [nvarchar](50) NULL,
	[NGAY_TAO] [datetime] NULL,
 CONSTRAINT [PK_SYSAPP_UPDATE] PRIMARY KEY CLUSTERED 
(
	[SYSAPP_UPDATEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSAPPU_KH]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSAPPU_KH](
	[UserName] [varchar](50) NOT NULL,
	[Ma_CN] [varchar](50) NOT NULL,
	[SYSAPPU_KHID] [int] IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_SYSAPPU_KH] PRIMARY KEY CLUSTERED 
(
	[SYSAPPU_KHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSAPPUSER]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSAPPUSER](
	[SYSAPPUSERID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[FULL_NAME] [nvarchar](100) NOT NULL,
	[USERNAME] [varchar](50) NOT NULL,
	[PASSWORD] [varchar](50) NOT NULL,
	[IS_ACTIVE] [int] NOT NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[NGUOI_LAP_HOA_DON] [nvarchar](255) NULL,
	[SNHAN_VIENID] [numeric](18, 0) NULL,
	[SYSGROUPID] [numeric](18, 0) NULL,
	[IS_SYSTEM] [numeric](18, 0) NULL,
	[PHAM_VI_SU_DUNG] [numeric](18, 0) NULL,
	[HE_THONG_TICH_HOPID] [nvarchar](225) NULL,
	[FullName] [nvarchar](100) NULL,
	[IsActive] [tinyint] NULL,
	[DATE_PASSWORD] [date] NULL,
	[OLD_PASSWORD] [varchar](100) NULL,
 CONSTRAINT [PK_SYSAPPUSER] PRIMARY KEY CLUSTERED 
(
	[SYSAPPUSERID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSERROR_CODE]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSERROR_CODE](
	[SYSERRORID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ERROR_CODE] [nvarchar](50) NOT NULL,
	[ERROR_NAME] [nvarchar](255) NULL,
	[ERROR_DESCRIPTION_VN] [nvarchar](4000) NULL,
	[ERROR_DESCRIPTION_EN] [nvarchar](4000) NULL,
 CONSTRAINT [PK_SYSERROR_CODE] PRIMARY KEY CLUSTERED 
(
	[SYSERRORID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSGROUP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSGROUP](
	[SYSGROUPID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GROUP_NAME] [nvarchar](255) NULL,
	[DESCRIPTION] [nvarchar](255) NULL,
	[IS_SHOW] [numeric](18, 0) NULL,
	[IS_SYSTEM] [numeric](18, 0) NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_SYSGROUP] PRIMARY KEY CLUSTERED 
(
	[SYSGROUPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSPARA]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSPARA](
	[Code] [nvarchar](255) NOT NULL,
	[ECUSValue] [datetime] NULL,
	[ECUSNumber] [numeric](10, 0) NULL,
	[ECUSString] [nvarchar](4000) NULL,
	[DNCODE] [nvarchar](255) NULL,
	[LICENSECODE] [nvarchar](255) NULL,
	[SYSPARAID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_SYSPARA] PRIMARY KEY CLUSTERED 
(
	[SYSPARAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSPARA_USER]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSPARA_USER](
	[SYSPARA_USERID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](50) NULL,
	[PARA_NAME] [nvarchar](50) NULL,
	[PARA_VALUE] [ntext] NULL,
	[MA_DV] [nvarchar](50) NULL,
 CONSTRAINT [PK_SYSPARA_USER] PRIMARY KEY CLUSTERED 
(
	[SYSPARA_USERID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSPC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSPC](
	[SYSPCID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[PC_NAME] [nvarchar](255) NOT NULL,
	[PC_INFO] [nvarchar](255) NULL,
	[PKEY] [nvarchar](255) NULL,
	[DATE_ACCESS] [datetime] NULL,
	[ACC_COUNT] [numeric](18, 0) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[MA_DV] [nvarchar](255) NULL,
	[OpenKey] [nvarchar](255) NULL,
	[OpenKeyType] [nvarchar](255) NULL,
 CONSTRAINT [PK_SYSPC] PRIMARY KEY CLUSTERED 
(
	[SYSPCID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSER_CKS]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSER_CKS](
	[SYSUSER_CKSID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[USER_NAME] [nvarchar](50) NULL,
	[SERIAL] [nvarchar](250) NULL,
	[SUBJECT] [nvarchar](250) NULL,
	[MST] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[NGAY_HET_HAN] [datetime] NULL,
	[GHI_CHU] [nvarchar](250) NULL,
	[USER_FULL_NAME] [nvarchar](250) NULL,
 CONSTRAINT [PK_SYSUSER_CKS] PRIMARY KEY CLUSTERED 
(
	[SYSUSER_CKSID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSER_DONVI]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSER_DONVI](
	[UserName] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSER_EDITLOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSER_EDITLOG](
	[ID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ChungTuID] [numeric](18, 0) NULL,
	[FormName] [nvarchar](100) NULL,
	[FormText] [nvarchar](300) NULL,
	[FieldName] [nvarchar](100) NULL,
	[FieldNameDes] [nvarchar](255) NULL,
	[Value1] [nvarchar](300) NULL,
	[Value2] [nvarchar](300) NULL,
	[ThoiGian] [datetime] NULL,
	[GhiChu] [nvarchar](500) NULL,
	[UserName] [nvarchar](255) NULL,
	[PCName] [nvarchar](255) NULL,
	[LanSua] [numeric](18, 0) NULL,
 CONSTRAINT [PK_SYSUSER_EDITLOG] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSER_HOADON]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSER_HOADON](
	[SYSUSER_HOADONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[MA_LOAI_HOA_DON] [nvarchar](50) NULL,
	[MAU_SO] [nvarchar](50) NULL,
	[KY_HIEU_FULL] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_CN] [nvarchar](50) NULL,
	[TEN_CN] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
	[DPHATHANH_KHOITAOID] [numeric](18, 0) NULL,
	[QUYEN] [int] NULL,
	[IS_TT68] [int] NULL,
 CONSTRAINT [PK_SYSUSER_HOADON] PRIMARY KEY CLUSTERED 
(
	[SYSUSER_HOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSER_PHANQUYEN_LOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSER_PHANQUYEN_LOG](
	[SYSUSER_PHANQUYEN_LOGID] [numeric](23, 0) IDENTITY(1,1) NOT NULL,
	[NGAY_DONG_BO] [datetime] NULL,
	[NGAY_CAP_NHAT] [datetime] NULL,
	[TEN_DV] [nvarchar](550) NULL,
	[MA_DV] [nvarchar](250) NULL,
	[MA_CN] [nvarchar](250) NOT NULL,
	[TEN_CN] [nvarchar](550) NULL,
	[UserName] [nvarchar](250) NULL,
	[TRANG_THAI] [int] NULL,
	[GHI_CHU] [nvarchar](550) NULL,
 CONSTRAINT [PK_SYSUSER_PHANQUYEN_LOG] PRIMARY KEY CLUSTERED 
(
	[SYSUSER_PHANQUYEN_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSER_PHANQUYENRIENG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSER_PHANQUYENRIENG](
	[SYSUSER_PHANQUYENRIENGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[IS_SU_DUNG] [int] NULL,
	[IS_HIEN_THI] [int] NULL,
	[NAME] [nvarchar](255) NULL,
	[PARENTNAME] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](255) NULL,
 CONSTRAINT [PK_SYSUSER_PHANQUYENRIENG] PRIMARY KEY CLUSTERED 
(
	[SYSUSER_PHANQUYENRIENGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SYSUSERLOG]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SYSUSERLOG](
	[USERLOGID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[USERNAME] [nvarchar](255) NOT NULL,
	[THAO_TAC] [nvarchar](255) NOT NULL,
	[MUC_VIEC] [nvarchar](255) NOT NULL,
	[CHUNG_TU] [nvarchar](255) NULL,
	[THOI_GIAN] [datetime] NOT NULL,
	[GHI_CHU] [nvarchar](500) NULL,
	[PC_NAME] [nvarchar](255) NULL,
	[SESSIONID] [nvarchar](100) NULL,
 CONSTRAINT [PK_SYSUSERLOG] PRIMARY KEY CLUSTERED 
(
	[USERLOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TIEUCHI_DASHBOARD]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TIEUCHI_DASHBOARD](
	[TIEUCHIID] [int] NOT NULL,
	[TEN_TIEU_CHI] [nvarchar](150) NULL,
	[SQL_DANH_SACH_HOA_DON] [nvarchar](max) NULL,
	[HIEN_THI] [bit] NULL,
	[SQL_PARAM] [nvarchar](max) NULL,
	[MA_DON_VI] [nvarchar](50) NULL,
	[FORM] [nvarchar](100) NULL,
	[GRID] [nvarchar](100) NULL,
 CONSTRAINT [PK_TIEUCHI_DASHBOARD] PRIMARY KEY CLUSTERED 
(
	[TIEUCHIID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TINTUC]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TINTUC](
	[TinTucID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](1000) NULL,
	[link] [nvarchar](255) NULL,
	[guid] [nvarchar](50) NULL,
	[description] [nvarchar](2000) NULL,
	[pubDate] [datetime] NULL,
	[isRead] [int] NULL,
 CONSTRAINT [PK_TINTUC] PRIMARY KEY CLUSTERED 
(
	[TinTucID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TINTUC_READ]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TINTUC_READ](
	[TinTuc_Read] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Ten_May] [nvarchar](50) NULL,
	[isRead] [int] NULL,
	[Ngay_Read] [datetime] NULL,
	[TinTucID] [numeric](18, 0) NULL,
 CONSTRAINT [PK_TINTUC_READ] PRIMARY KEY CLUSTERED 
(
	[TinTuc_Read] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRINH_KY]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRINH_KY](
	[TRINH_KYID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[PC_YC] [nvarchar](255) NULL,
	[PC_KY] [nvarchar](255) NULL,
	[USER_NAME_YC] [nvarchar](255) NULL,
	[NGAY_YC] [datetime] NULL,
	[NGAY_KY] [datetime] NULL,
	[NOI_DUNG_YC] [ntext] NOT NULL,
	[NOI_DUNG_YC_PH] [ntext] NULL,
	[NOI_DUNG_YC_PH_ALL] [ntext] NULL,
	[CHU_KY] [ntext] NULL,
	[URI] [varchar](255) NULL,
	[FILE_CERT] [ntext] NULL,
	[IS_DA_KY] [numeric](18, 0) NULL,
	[IS_DA_NHAN] [numeric](18, 0) NULL,
	[MSG_REF] [nvarchar](255) NULL,
	[DHOADONID] [numeric](18, 0) NULL,
	[LOAI_CT] [nvarchar](255) NULL,
	[GHI_CHU] [nvarchar](2000) NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SerialCKS] [nvarchar](250) NULL,
	[SubjectCKS] [nvarchar](2000) NULL,
	[isVNACCS] [int] NULL,
 CONSTRAINT [PK_TRINH_KY] PRIMARY KEY CLUSTERED 
(
	[TRINH_KYID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_BANG_TONG_HOP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_BANG_TONG_HOP](
	[TRUYEN_NHAN_BANG_TONG_HOPID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[SO_THU_TU] [int] NULL,
	[LOAI_KY] [nvarchar](5) NULL,
	[KY_DU_LIEU] [nvarchar](10) NULL,
	[LAN_TONG_HOP] [int] NULL,
	[NGAY_TONG_HOP] [datetime] NULL,
	[SO_LUONG] [int] NULL,
	[SO_LUONG_DONG_BO] [int] NULL,
	[SO_LUONG_DONG_BO_LOI] [int] NULL,
	[TRANG_THAI_XAC_NHAN_GUI] [int] NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[THONG_BAO_TRUYEN_NHAN] [nvarchar](500) NULL,
	[NAM_TONG_HOP] [int] NULL,
	[QQ_MM_TONG_HOP] [int] NULL,
	[DD_TONG_HOP] [int] NULL,
	[GUI_BO_SUNG] [int] NULL,
 CONSTRAINT [PK_TRUYEN_NHAN_BANG_TONG_HOP] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_BANG_TONG_HOPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET](
	[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIETID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[TRUYEN_NHAN_BANG_TONG_HOPID] [decimal](18, 0) NULL,
	[DHOADONID] [decimal](18, 0) NULL,
	[TRANG_THAI_TRUYEN_NHAN] [int] NULL,
	[TINH_CHAT_THONG_BAO] [int] NULL,
	[XAC_NHAN_GUI_LAI] [int] NULL,
 CONSTRAINT [PK_TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP](
	[TRUYEN_NHAN_LOAI_THONG_DIEPID] [int] NOT NULL,
	[TEN_THONG_DIEP] [nvarchar](250) NULL,
	[LOAI_THONG_DIEP] [int] NULL,
	[PHIEN_BAN_XML] [nvarchar](50) NULL,
	[PHIEN_BAN_NOI_DUNG] [nvarchar](50) NULL,
 CONSTRAINT [PK_TRUYEN_NHAN_LOAI_THONG_DIEP] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_LOAI_THONG_DIEPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_THONG_BAO_GUI]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_THONG_BAO_GUI](
	[TRUYEN_NHAN_THONG_BAO_GUIID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_LOAI] [int] NULL,
	[MA_THONG_DIEP] [varchar](100) NULL,
	[MA_THONG_DIEP_THAM_CHIEU] [varchar](100) NULL,
	[SO_LUONG] [int] NULL,
	[DUNG_LUONG] [decimal](18, 4) NULL,
	[THOI_GIAN_GUI] [datetime] NULL,
	[NGUOI_GUI] [nvarchar](50) NULL,
	[TRANG_THAI_GUI] [int] NULL,
	[TRANG_THAI_PHAN_HOI] [int] NULL,
	[THOI_GIAN_PH_TVAN_KT] [datetime] NULL,
	[THOI_GIAN_PH_TVAN_NV] [datetime] NULL,
	[THOI_GIAN_PH_THUE_KT] [datetime] NULL,
	[THOI_GIAN_PH_THUE_TIEP_NHAN] [datetime] NULL,
	[THOI_GIAN_PH_THUE_CHAP_NHAN] [datetime] NULL,
	[NOI_DUNG_PH_TVAN] [image] NULL,
	[NOI_DUNG_PH_TVAN_NV] [image] NULL,
	[NOI_DUNG_PH_THUE_KT] [image] NULL,
	[NOI_DUNG_PH_THUE_TIEP_NHAN] [image] NULL,
	[NOI_DUNG_PH_THUE_CHAP_NHAN] [image] NULL,
	[THONG_BAO_PHAN_HOI] [nvarchar](1000) NULL,
	[NOI_DUNG_GUI] [nvarchar](max) NULL,
	[NOI_DUNG_GUI_THUE] [image] NULL,
	[TRUYEN_NHAN_THONG_BAO_GUI_CHAID] [numeric](18, 0) NULL,
	[PHIEN_BAN_TD] [nvarchar](50) NULL,
	[PHIEN_BAN_NOI_DUNG] [nvarchar](500) NULL,
	[TONG_HOA_DON_LOI] [int] NULL,
 CONSTRAINT [PK_LOG_GUI_THONG_BAO] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_THONG_BAO_GUIID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET](
	[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIETID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TRUYEN_NHAN_THONG_BAO_GUIID] [numeric](18, 0) NULL,
	[NGHIEP_VUID] [numeric](18, 0) NULL,
	[NGHIEP_VU_GUID] [nvarchar](50) NULL,
	[MA_LOAI] [int] NULL,
	[GUI_LAI] [int] NULL,
 CONSTRAINT [PK_LOG_GUI_THONG_BAO_CHI_TIET] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIETID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_THONG_BAO_NHAN]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_THONG_BAO_NHAN](
	[TRUYEN_NHAN_THONG_BAO_NHANID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_LOAI] [int] NULL,
	[MA_THONG_DIEP] [varchar](100) NULL,
	[MA_THONG_DIEP_THAM_CHIEU] [varchar](100) NULL,
	[NOI_GUI] [nvarchar](50) NULL,
	[THOI_GIAN_NHAN] [datetime] NULL,
	[TRANG_THAI_XU_LY] [int] NULL,
	[NOI_DUNG_NHAN] [image] NULL,
 CONSTRAINT [PK_LOG_THONG_BAO_NHAN] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_THONG_BAO_NHANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRUYEN_NHAN_TRANSACTION]    Script Date: 05/08/2024 2:42:19 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRUYEN_NHAN_TRANSACTION](
	[TRUYEN_NHAN_TRANSACTIONID] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[MA_DV] [nvarchar](50) NULL,
	[MA_LOAI_THONG_DIEP] [int] NULL,
	[NGUOI_XU_LY] [nvarchar](50) NULL,
	[NGAY_XU_LY] [datetime] NULL,
	[TRANG_THAI] [int] NULL,
 CONSTRAINT [PK_TRUYEN_NHAN_TRANSACTION] PRIMARY KEY CLUSTERED 
(
	[TRUYEN_NHAN_TRANSACTIONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[ANH] ON 

INSERT [dbo].[ANH] ([ANHID], [CODE], [TEN_FILE], [DU_LIEU1], [DU_LIEU2], [GHI_CHU]) VALUES (CAST(6 AS Numeric(18, 0)), N'Key_AnhMau', N'PicMau.GIF',  , 0x, NULL)
SET IDENTITY_INSERT [dbo].[ANH] OFF
GO
SET IDENTITY_INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ON 

INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(106 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'MA_HANG', NULL, N'Mã hàng hóa', N'DHOADON_HANG', N'A', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(107 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'TEN_HANG', NULL, N'Tên hàng hóa, dịch vụ', N'DHOADON_HANG', N'B', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(108 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'MA_DVT', NULL, N'Đơn vị tính', N'DHOADON_HANG', N'C', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(109 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'SO_LUONG', NULL, N'Số lượng', N'DHOADON_HANG', N'D', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(110 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'DON_GIA', NULL, N'Đơn giá', N'DHOADON_HANG', N'E', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(111 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'THANH_TIEN', NULL, N'Thành Tiền', N'DHOADON_HANG', N'F', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(112 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'VAT', NULL, N'Thuế suất', N'DHOADON_HANG', N'G', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(113 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'VAT_TIEN', NULL, N'Tiền thuế', N'DHOADON_HANG', N'H', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(114 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'CHIET_KHAU_PHAN_TRAM', NULL, N'Chiết khấu hàng hóa(%)', N'DHOADON_HANG', N'AL', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(115 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'CHIET_KHAU_TIEN', NULL, N'Chiết khấu hàng hóa(tiền)', N'DHOADON_HANG', N'AM', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(116 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR1', NULL, N'Dữ liệu hàng hóa kiểu ký tự 1', N'DHOADON_HANG', N'I', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(117 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR2', NULL, N'Dữ liệu hàng hóa kiểu ký tự 2', N'DHOADON_HANG', N'K', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(118 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR3', NULL, N'Dữ liệu hàng hóa kiểu ký tự 3', N'DHOADON_HANG', N'L', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(119 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR4', NULL, N'Dữ liệu hàng hóa kiểu ký tự 4', N'DHOADON_HANG', N'M', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(120 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR5', NULL, N'Dữ liệu hàng hóa kiểu ký tự 5', N'DHOADON_HANG', N'N', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(121 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR6', NULL, N'Dữ liệu hàng hóa kiểu ký tự 6', N'DHOADON_HANG', N'O', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(122 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR7', NULL, N'Dữ liệu hàng hóa kiểu ký tự 7', N'DHOADON_HANG', N'P', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(123 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR8', NULL, N'Dữ liệu hàng hóa kiểu ký tự 8', N'DHOADON_HANG', N'Q', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(124 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_VARCHAR9', NULL, N'Dữ liệu hàng hóa kiểu ký tự 9', N'DHOADON_HANG', N'R', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(125 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE1', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 1', N'DHOADON_HANG', N'S', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(126 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE2', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 2', N'DHOADON_HANG', N'T', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(127 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE3', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 3', N'DHOADON_HANG', N'U', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(128 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE4', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 4', N'DHOADON_HANG', N'V', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(129 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE5', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 5', N'DHOADON_HANG', N'W', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(130 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE6', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 6', N'DHOADON_HANG', N'S', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(131 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE7', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 7', N'DHOADON_HANG', N'Y', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(132 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE8', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 8', N'DHOADON_HANG', N'Z', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(133 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_DATE9', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 9', N'DHOADON_HANG', N'AA', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(134 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER1', NULL, N'Dữ liệu hàng hóa kiểu số 1', N'DHOADON_HANG', N'AB', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(135 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER2', NULL, N'Dữ liệu hàng hóa kiểu số 2', N'DHOADON_HANG', N'AC', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(136 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER3', NULL, N'Dữ liệu hàng hóa kiểu số 3', N'DHOADON_HANG', N'AD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(137 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER4', NULL, N'Dữ liệu hàng hóa kiểu số 4', N'DHOADON_HANG', N'AE', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(138 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER5', NULL, N'Dữ liệu hàng hóa kiểu số 5', N'DHOADON_HANG', N'AF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(139 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER6', NULL, N'Dữ liệu hàng hóa kiểu số 6', N'DHOADON_HANG', N'AG', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(140 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER7', NULL, N'Dữ liệu hàng hóa kiểu số 7', N'DHOADON_HANG', N'AH', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(141 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER8', NULL, N'Dữ liệu hàng hóa kiểu số 8', N'DHOADON_HANG', N'AI', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(142 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'EXT_NUMBER9', NULL, N'Dữ liệu hàng hóa kiểu số 9', N'DHOADON_HANG', N'AK', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(143 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'MA_DV', NULL, N'Mã đơn vị', N'SDOITAC', N'A', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(144 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'TEN_DV', NULL, N'Tên đơn vị', N'SDOITAC', N'B', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(145 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'MA_SO_THUE', NULL, N'Mã số thuế', N'SDOITAC', N'C', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(146 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'NGUOI_GIAO_DICH', NULL, N'Người giao dịch', N'SDOITAC', N'D', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(147 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'DIA_CHI', NULL, N'Địa chỉ', N'SDOITAC', N'E', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(148 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'DIEN_THOAI', NULL, N'Điện thoại', N'SDOITAC', N'F', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(149 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'EMAIL', NULL, N'Email', N'SDOITAC', N'G', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(150 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'NGAN_HANG_TEN1', NULL, N'Tên ngân hàng', N'SDOITAC', N'H', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(151 AS Numeric(18, 0)), N'IMPORT_DOITAC', N'NGAN_HANG_TAI_KHOAN1', NULL, N'Số tài khoản', N'SDOITAC', N'I', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(152 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'MA_HANG', NULL, N'Mã hàng', N'DHANGHOA', N'A', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(153 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'TEN_HANG', NULL, N'Tên hàng', N'DHANGHOA', N'B', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(154 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'MA_LOAI_HANG', NULL, N'Loại hàng', N'DHANGHOA', N'C', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(155 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'MA_DVT', NULL, N'Đơn vị tính', N'DHANGHOA', N'D', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(156 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'GIA_NHAP', NULL, N'Giá nhập', N'DHANGHOA', N'E', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(157 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'GIA_XUAT', NULL, N'Giá xuất', N'DHANGHOA', N'F', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(158 AS Numeric(18, 0)), N'IMPORT_HANGHOA', N'VAT', NULL, N'VAT', N'DHANGHOA', N'G', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(300 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_HOA_DON', NULL, N'Ngày hóa đơn', N'DHOADON', N'A', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(301 AS Numeric(18, 0)), N'IMPORT_HOADON', N'SO_HOA_DON', NULL, N'Số hóa đơn', N'DHOADON', N'B', 1, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(302 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_MA', NULL, N'Mã khách hàng', N'DHOADON', N'C', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(303 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_HO_TEN', NULL, N'Họ tên khách hàng', N'DHOADON', N'D', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(304 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_MA_DV', NULL, N'Mã số thuế', N'DHOADON', N'E', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(305 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_TEN_DV', NULL, N'Tên Công ty', N'DHOADON', N'F', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(306 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_DIA_CHI', NULL, N'Địa chỉ', N'DHOADON', N'G', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(307 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_HINHTHUCTT', NULL, N'Hình thức thanh toán ', N'DHOADON', N'H', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(308 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_NGAN_HANG_TAI_KHOAN', NULL, N'Số tài khoản', N'DHOADON', N'I', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(309 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_NGAN_HANG_TEN', NULL, N'Tên Ngân hàng', N'DHOADON', N'J', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(310 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_DIEN_THOAI', NULL, N'Tel', N'DHOADON', N'K', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(311 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BEN_MUA_EMAIL', NULL, N'Email', N'DHOADON', N'L', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(312 AS Numeric(18, 0)), N'IMPORT_HOADON', N'VAT_TIEN', NULL, N'Tiền Thuế', N'DHOADON', N'M', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(313 AS Numeric(18, 0)), N'IMPORT_HOADON', N'THANH_TIEN', NULL, N'Thành tiền', N'DHOADON', N'N', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(314 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_NT', NULL, N'Đồng tiền thanh toán', N'DHOADON', N'O', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(315 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TY_GIA', NULL, N'Tỉ giá', N'DHOADON', N'P', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(316 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_DVT', NULL, N'Đơn vị tính', N'DHOADON_HANG', N'Q', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(317 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_HANG', NULL, N'Mã Hàng hóa', N'DHOADON_HANG', N'R', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(318 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TEN_HANG', NULL, N'Tên hàng hóa dịch vụ', N'DHOADON_HANG', N'S', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(319 AS Numeric(18, 0)), N'IMPORT_HOADON', N'SO_LUONG', NULL, N'Số lượng', N'DHOADON_HANG', N'T', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(320 AS Numeric(18, 0)), N'IMPORT_HOADON', N'DON_GIA', NULL, N'Đơn giá', N'DHOADON_HANG', N'U', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(321 AS Numeric(18, 0)), N'IMPORT_HOADON', N'THANH_TIEN', NULL, N'Thành tiền', N'DHOADON_HANG', N'V', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(322 AS Numeric(18, 0)), N'IMPORT_HOADON', N'VAT', NULL, N'Thuế suất', N'DHOADON_HANG', N'W', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(323 AS Numeric(18, 0)), N'IMPORT_HOADON', N'VAT_TIEN', NULL, N'Tiền Thuế', N'DHOADON_HANG', N'X', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(324 AS Numeric(18, 0)), N'IMPORT_HOADON', N'CHIET_KHAU_PHAN_TRAM', NULL, N'Chiết khấu hàng hóa(%)', N'DHOADON_HANG', N'Y', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(325 AS Numeric(18, 0)), N'IMPORT_HOADON', N'CHIET_KHAU_TIEN', NULL, N'Chiết khấu hàng hóa(tiền)', N'DHOADON_HANG', N'Z', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(326 AS Numeric(18, 0)), N'IMPORT_HOADON', N'CHIET_KHAU', NULL, N'Chiết khấu (%)', N'DHOADON', N'Y', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(327 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_CHIET_KHAU', NULL, N'Chiết khấu tiền', N'DHOADON', N'Z', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(328 AS Numeric(18, 0)), N'IMPORT_HOADON', N'GHI_CHU', NULL, N'Ghi chú', N'DHOADON', N'AA', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(329 AS Numeric(18, 0)), N'IMPORT_HOADON', N'GHI_CHU_NB', NULL, N'Ghi chú nội bộ', N'DHOADON', N'AB', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(330 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MAU_SO', NULL, N'Mẫu số', N'DHOADON', N'AC', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(331 AS Numeric(18, 0)), N'IMPORT_HOADON', N'KY_HIEU', NULL, N'Ký hiệu', N'DHOADON', N'AD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(332 AS Numeric(18, 0)), N'IMPORT_HOADON', N'IS_DIEU_CHINH', NULL, N'Loại điều chỉnh', N'DHOADON_HANG', N'V', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(333 AS Numeric(18, 0)), N'IMPORT_HOADON', N'SO_LUONG_NHAP', NULL, N'Số lượng thực nhập', N'DHOADON_HANG', N'V', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(334 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_CN', NULL, N'Mã chi nhánh', N'DHOADON', N'AE', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(335 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TEN_CN', NULL, N'Tên chi nhánh', N'DHOADON', N'AF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(336 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TRANG_THAI_DIEU_CHINH', NULL, N'Trạng thái điều chỉnh', N'DHOADON', N'AG', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(337 AS Numeric(18, 0)), N'IMPORT_HOADON', N'SO_HOA_DON_GOC', NULL, N'Số hóa đơn gốc', N'DHOADON', N'AH', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(338 AS Numeric(18, 0)), N'IMPORT_HOADON', N'KY_HIEU_GOC', NULL, N'Ký hiệu gốc', N'DHOADON', N'AI', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(339 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MAU_SO_GOC', NULL, N'Mẫu số gốc', N'DHOADON', N'AJ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(340 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_HOA_DON_GOC', NULL, N'Ngày hóa đơn gốc', N'DHOADON', N'AK', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(341 AS Numeric(18, 0)), N'IMPORT_HOADON', N'LENH_DIEU_DONG_SO', NULL, N'Lệnh điều động số', N'DHOADON', N'D', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(342 AS Numeric(18, 0)), N'IMPORT_HOADON', N'LENH_DIEU_DONG_NGAY', NULL, N'Lệnh điều động ngày', N'DHOADON', N'C', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(343 AS Numeric(18, 0)), N'IMPORT_HOADON', N'LENH_DIEU_DONG_CUA', NULL, N'Lệnh điều động của', N'DHOADON', N'E', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(344 AS Numeric(18, 0)), N'IMPORT_HOADON', N'LENH_DIEU_DONG_VE_VIEC', NULL, N'Lệnh điều động về việc', N'DHOADON', N'F', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(345 AS Numeric(18, 0)), N'IMPORT_HOADON', N'SO_HOP_DONG_VAN_CHUYEN', NULL, N'Hợp đồng số', N'DHOADON', N'G', NULL, NULL)
GO
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(346 AS Numeric(18, 0)), N'IMPORT_HOADON', N'HO_TEN_NGUOI_VAN_CHUYEN', NULL, N'Người vận chuyển', N'DHOADON', N'H', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(347 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_PHUONG_TIEN_VAN_CHUYEN', NULL, N'Phương tiện vận chuyển', N'DHOADON', N'I', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(348 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BIEN_SO_XE', NULL, N'Biển số xe', N'DHOADON', N'J', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(349 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_KHO_XUAT', NULL, N'Kho xuất', N'DHOADON', N'K', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(350 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_KHO_NHAP', NULL, N'Kho nhập', N'DHOADON', N'L', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(351 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_XUAT_KHO', NULL, N'Ngày xuất kho', N'DHOADON', N'M', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(352 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_NHAP_KHO', NULL, N'Ngày nhập kho', N'DHOADON', N'N', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(353 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR1', NULL, N'Dữ liệu hóa đơn kiểu ký tự 1', N'DHOADON', N'AL', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(354 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR2', NULL, N'Dữ liệu hóa đơn kiểu ký tự 2', N'DHOADON', N'AM', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(355 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR3', NULL, N'Dữ liệu hóa đơn kiểu ký tự 3', N'DHOADON', N'AN', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(356 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR4', NULL, N'Dữ liệu hóa đơn kiểu ký tự 4', N'DHOADON', N'AO', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(357 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR5', NULL, N'Dữ liệu hóa đơn kiểu ký tự 5', N'DHOADON', N'AP', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(358 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR6', NULL, N'Dữ liệu hóa đơn kiểu ký tự 6', N'DHOADON', N'AQ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(359 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR7', NULL, N'Dữ liệu hóa đơn kiểu ký tự 7', N'DHOADON', N'AR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(360 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR8', NULL, N'Dữ liệu hóa đơn kiểu ký tự 8', N'DHOADON', N'AS', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(361 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR9', NULL, N'Dữ liệu hóa đơn kiểu ký tự 9', N'DHOADON', N'AT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(362 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE1', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 1', N'DHOADON', N'AU', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(363 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE2', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 2', N'DHOADON', N'AV', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(364 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE3', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 3', N'DHOADON', N'AW', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(365 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE4', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 4', N'DHOADON', N'BA', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(366 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE5', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 5', N'DHOADON', N'BB', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(367 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE6', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 6', N'DHOADON', N'BC', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(368 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE7', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 7', N'DHOADON', N'BD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(369 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE8', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 8', N'DHOADON', N'BE', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(370 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE9', NULL, N'Dữ liệu hóa đơn kiểu ngày tháng 9', N'DHOADON', N'BF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(371 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER1', NULL, N'Dữ liệu hóa đơn kiểu số 1', N'DHOADON', N'BR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(372 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER2', NULL, N'Dữ liệu hóa đơn kiểu số 2', N'DHOADON', N'AR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(373 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER3', NULL, N'Dữ liệu hóa đơn kiểu số 3', N'DHOADON', N'BT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(374 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER4', NULL, N'Dữ liệu hóa đơn kiểu số 4', N'DHOADON', N'AT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(375 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER5', NULL, N'Dữ liệu hóa đơn kiểu số 5', N'DHOADON', N'BV', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(376 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER6', NULL, N'Dữ liệu hóa đơn kiểu số 6', N'DHOADON', N'AV', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(377 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER7', NULL, N'Dữ liệu hóa đơn kiểu số 7', N'DHOADON', N'BX', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(378 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER8', NULL, N'Dữ liệu hóa đơn kiểu số 8', N'DHOADON', N'AX', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(379 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER9', NULL, N'Dữ liệu hóa đơn kiểu số 9', N'DHOADON', N'BZ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(380 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR1', NULL, N'Dữ liệu hàng hóa kiểu ký tự 1', N'DHOADON_HANG', N'AZ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(381 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR2', NULL, N'Dữ liệu hàng hóa kiểu ký tự 2', N'DHOADON_HANG', N'Z', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(382 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR3', NULL, N'Dữ liệu hàng hóa kiểu ký tự 3', N'DHOADON_HANG', N'BB', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(383 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR4', NULL, N'Dữ liệu hàng hóa kiểu ký tự 4', N'DHOADON_HANG', N'AB', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(384 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR5', NULL, N'Dữ liệu hàng hóa kiểu ký tự 5', N'DHOADON_HANG', N'BD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(385 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR6', NULL, N'Dữ liệu hàng hóa kiểu ký tự 6', N'DHOADON_HANG', N'AD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(386 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR7', NULL, N'Dữ liệu hàng hóa kiểu ký tự 7', N'DHOADON_HANG', N'BF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(387 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR8', NULL, N'Dữ liệu hàng hóa kiểu ký tự 8', N'DHOADON_HANG', N'AF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(388 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_VARCHAR9', NULL, N'Dữ liệu hàng hóa kiểu ký tự 9', N'DHOADON_HANG', N'BH', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(389 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE1', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 1', N'DHOADON_HANG', N'AH', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(390 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE2', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 2', N'DHOADON_HANG', N'BJ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(391 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE3', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 3', N'DHOADON_HANG', N'AJ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(392 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE4', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 4', N'DHOADON_HANG', N'BL', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(393 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE5', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 5', N'DHOADON_HANG', N'AL', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(394 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE6', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 6', N'DHOADON_HANG', N'BN', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(395 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE7', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 7', N'DHOADON_HANG', N'AN', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(396 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE8', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 8', N'DHOADON_HANG', N'BP', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(397 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_DATE9', NULL, N'Dữ liệu hàng hóa kiểu ngày tháng 9', N'DHOADON_HANG', N'AP', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(398 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER1', NULL, N'Dữ liệu hàng hóa kiểu số 1', N'DHOADON_HANG', N'BR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(399 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER2', NULL, N'Dữ liệu hàng hóa kiểu số 2', N'DHOADON_HANG', N'AR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(400 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER3', NULL, N'Dữ liệu hàng hóa kiểu số 3', N'DHOADON_HANG', N'BT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(401 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER4', NULL, N'Dữ liệu hàng hóa kiểu số 4', N'DHOADON_HANG', N'AT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(402 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER5', NULL, N'Dữ liệu hàng hóa kiểu số 5', N'DHOADON_HANG', N'BV', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(403 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER6', NULL, N'Dữ liệu hàng hóa kiểu số 6', N'DHOADON_HANG', N'AV', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(404 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER7', NULL, N'Dữ liệu hàng hóa kiểu số 7', N'DHOADON_HANG', N'BX', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(405 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER8', NULL, N'Dữ liệu hàng hóa kiểu số 8', N'DHOADON_HANG', N'AX', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(406 AS Numeric(18, 0)), N'IMPORT_HOADON', N'EXT_NUMBER9', NULL, N'Dữ liệu hàng hóa kiểu số 9', N'DHOADON_HANG', N'BZ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(407 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_HOP_DONG', NULL, N'Ngày hợp đồng', N'DHOADON', N'O', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(408 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'NGAY_BIEN_BAN', NULL, N'Ngày biên bản', N'DHOADON_BIENBAN', N'A', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(409 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'SO_BIEN_BAN', NULL, N'Số biên bản', N'DHOADON_BIENBAN', N'B', 1, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(410 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'MAU_SO_BIEN_BAN', NULL, N'Mẫu biên bản', N'DHOADON_BIENBAN', N'C', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(411 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'LOAI_BIEN_BAN', NULL, N'Loại biên bản', N'DHOADON_BIENBAN', N'D', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(412 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'NGAY_HOA_DON', NULL, N'Ngày hóa đơn', N'DHOADON_BIENBAN', N'E', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(413 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'MAU_SO', NULL, N'Mẫu số', N'DHOADON_BIENBAN', N'G', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(414 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'KY_HIEU', NULL, N'Ký hiệu', N'DHOADON_BIENBAN', N'H', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(415 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'SO_HOA_DON', NULL, N'Số hóa đơn', N'DHOADON_BIENBAN', N'F', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(416 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_BAN_NGUOI_DAI_DIEN', NULL, N'Người đại diện pháp luật', N'DHOADON_BIENBAN', N'I', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(417 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_BAN_NGUOI_DAI_DIEN_CV', NULL, N'Người đại chức vụ', N'DHOADON_BIENBAN', N'J', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(418 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_MA', NULL, N'Mã khách hàng', N'DHOADON_BIENBAN', N'K', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(419 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_MA_DV', NULL, N'Mã số thuế', N'DHOADON_BIENBAN', N'L', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(420 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_TEN_DV', NULL, N'Tên công ty', N'DHOADON_BIENBAN', N'M', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(421 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_DIA_CHI', NULL, N'địa chỉ', N'DHOADON_BIENBAN', N'N', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(422 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_NGUOI_DAI_DIEN', NULL, N'Bên mua người đại diện pháp luật', N'DHOADON_BIENBAN', N'O', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(423 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_NGUOI_DAI_DIEN_CV', NULL, N'Bên mua chức vụ người đại diện pháp luật', N'DHOADON_BIENBAN', N'P', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(424 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_DIEN_THOAI', NULL, N'Bên mua điện thoại', N'DHOADON_BIENBAN', N'Q', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(425 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'BEN_MUA_EMAIL', NULL, N'Bên mua email', N'DHOADON_BIENBAN', N'R', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(426 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'LI_DO_DIEU_CHINH', NULL, N'Lý do điều chỉnh', N'DHOADON_BIENBAN', N'S', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(427 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'NOI_DUNG_SAI', NULL, N'Nội dung cần điều chỉnh', N'DHOADON_BIENBAN', N'T', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(428 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'NOI_DUNG_DUNG', NULL, N'Nội dung điều chỉnh', N'DHOADON_BIENBAN', N'U', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(429 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'GIA_TRI_HOA_DON', NULL, N'Giá trị hóa đơn', N'DHOADON_BIENBAN', N'V', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(430 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'MA_HANG', NULL, N'Mã hàng', N'DHOADON_BIENBAN_CHITIET', N'W', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(431 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'TEN_HANG', NULL, N'Tên hàng', N'DHOADON_BIENBAN_CHITIET', N'X', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(432 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'MA_DVT', NULL, N'đơn vị tính', N'DHOADON_BIENBAN_CHITIET', N'Y', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(433 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'SO_LUONG', NULL, N'Số lượng', N'DHOADON_BIENBAN_CHITIET', N'Z', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(434 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'DON_GIA', NULL, N'Đơn giá', N'DHOADON_BIENBAN_CHITIET', N'AA', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(435 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'VAT', NULL, N'Thuế xuất', N'DHOADON_BIENBAN_CHITIET', N'AB', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(436 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'THANH_TIEN', NULL, N'Thành tiền', N'DHOADON_BIENBAN_CHITIET', N'AC', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(437 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'VAT_TIEN', NULL, N'Tiền thuế', N'DHOADON_BIENBAN_CHITIET', N'AD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(438 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'SO_LUONG_DC', NULL, N'Số lượng DC', N'DHOADON_BIENBAN_CHITIET', N'AE', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(439 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'DON_GIA_DC', NULL, N'Đơn giá DC', N'DHOADON_BIENBAN_CHITIET', N'AF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(440 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'VAT_DC', NULL, N'Thuế xuất DC', N'DHOADON_BIENBAN_CHITIET', N'AG', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(441 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'THANH_TIEN_DC', NULL, N'Thành tiền DC', N'DHOADON_BIENBAN_CHITIET', N'AH', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(442 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'VAT_TIEN_DC', NULL, N'Tiền thuế DC', N'DHOADON_BIENBAN_CHITIET', N'AI', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(443 AS Numeric(18, 0)), N'IMPORT_BIENBAN', N'IS_DIEU_CHINH', NULL, N'Tăng giảm', N'DHOADON_BIENBAN_CHITIET', N'AM', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(444 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGUOI_NOP_QUOC_TICH', NULL, N'Quốc tịch', N'DHOADON_TNCN', N'CA', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(445 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_QUOC_TICH', NULL, N'Mã quốc tịch', N'DHOADON_TNCN', N'CB', NULL, NULL)
GO
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(446 AS Numeric(18, 0)), N'IMPORT_HOADON', N'IS_CA_NHAN_CU_TRU', NULL, N'Cá nhân cư trú', N'DHOADON_TNCN', N'CC', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(447 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGUOI_NOP_SO_CMT', NULL, N'Số CMT', N'DHOADON_TNCN', N'CD', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(448 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGUOI_NOP_NOI_CAP', NULL, N'Nơi cấp CMT', N'DHOADON_TNCN', N'CE', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(449 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGUOI_TAO_NGAY_CAP', NULL, N'Ngày cấp CMT', N'DHOADON_TNCN', N'CF', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(450 AS Numeric(18, 0)), N'IMPORT_HOADON', N'MA_KTN', NULL, N'Khoản thu nhập', N'DHOADON_TNCN', N'CG', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(451 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_TINH_THU_NHAP', NULL, N'Ngày tính thu nhập', N'DHOADON_TNCN', N'CH', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(452 AS Numeric(18, 0)), N'IMPORT_HOADON', N'THU_NHAP_THANG', NULL, N'Thu nhập tháng', N'DHOADON_TNCN', N'CI', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(453 AS Numeric(18, 0)), N'IMPORT_HOADON', N'THU_NHAP_NAM', NULL, N'Thu nhập năm', N'DHOADON_TNCN', N'CJ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(454 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_TN_CHIU_THUE', NULL, N'Tổng TN chịu thuế', N'DHOADON_TNCN', N'CK', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(455 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_TN_TINH_THUE', NULL, N'Tổng TN tính thuế', N'DHOADON_TNCN', N'CL', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(456 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_THUE_KHAU_TRU', NULL, N'Tổng khoản giảm trừ', N'DHOADON_TNCN', N'CM', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(457 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_TNCN_DUOC_NHAN', NULL, N'Tổng tiền thực nhận', N'DHOADON_TNCN', N'CN', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(458 AS Numeric(18, 0)), N'IMPORT_HOADON', N'BIEN_SO_XE', NULL, N'Biển số xe', N'DHOADON', N'CA', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(459 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'TINH_CHAT', NULL, N'Tính chất hàng hóa', N'DHOADON_HANG', N'AP', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(460 AS Numeric(18, 0)), N'IMPORT_HOADON_HANG', N'TINH_CHAT', NULL, N'Tính chất hàng hóa', N'DHOADON_HANG', N'AP', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(461 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'DTHONG_BAO_SAI_SOTID', NULL, N'Số sai sót', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'A', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(462 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'NGAY_HOA_DON', NULL, N'Ngày hóa đơn', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'B', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(463 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'SO_HOA_DON', NULL, N'Số hóa đơn', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'C', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(464 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'MAU_SO', NULL, N'Mẫu số hóa đơn', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'D', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(465 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'KY_HIEU', NULL, N'Ký hiệu hóa đơn', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'E', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(466 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'SO_XAC_THUC', NULL, N'Mã CQT cấp', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'F', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(467 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'TEN_TINH_CHAT_THONG_BAO', NULL, N'Tính chất thông báo', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'G', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(468 AS Numeric(18, 0)), N'IMPORT_HOADON_SAISOT', N'LY_DO_XU_LY', NULL, N'Lý do', N'DTHONG_BAO_SAI_SOT_CHI_TIET', N'H', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(469 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TINH_CHAT', NULL, N'Tính chất hàng hóa', N'DHOADON_HANG', N'AP', NULL, 1)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(470 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TU_THANG', NULL, N'Từ tháng', N'DHOADON_TNCN', N'AB', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(471 AS Numeric(18, 0)), N'IMPORT_HOADON', N'DEN_THANG', NULL, N'Đến tháng', N'DHOADON_TNCN', N'AC', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(472 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_THUE_TNCN', NULL, N'Tổng thuế TNCN', N'DHOADON_TNCN', N'AQ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(473 AS Numeric(18, 0)), N'IMPORT_HOADON', N'KHOAN_DONG_BAOHIEM_BATBUOC', NULL, N'Khoản đóng bảo hiểm bắt buộc', N'DHOADON_TNCN', N'AR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(474 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_THU_NHAP', NULL, N'Tổng thu nhập', N'DHOADON_TNCN', N'AS', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(475 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'MA_NV', NULL, N'Mã nhân viên', N'SNHAN_VIEN', N'A', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(476 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'FULL_NAME', NULL, N'Họ và tên nhân viên', N'SNHAN_VIEN', N'B', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(477 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'DIEN_THOAI', NULL, N'Điện thoại', N'SNHAN_VIEN', N'C', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(478 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'DIA_CHI', NULL, N'Địa chỉ nhân viên', N'SNHAN_VIEN', N'D', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(479 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'CMT_SO', NULL, N'CMT/CCCD/Hộ chiếu', N'SNHAN_VIEN', N'E', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(480 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'CMT_NOI_CAP', NULL, N'Nơi cấp', N'SNHAN_VIEN', N'F', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(481 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'CMT_NGAY_CAP', NULL, N'Ngày cấp', N'SNHAN_VIEN', N'G', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(482 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'QUOC_TICH', NULL, N'Quốc tịch', N'SNHAN_VIEN', N'H', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(483 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'MA_SO_THUE', NULL, N'Mã số thuế', N'SNHAN_VIEN', N'I', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(484 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'NGAY_SINH', NULL, N'Ngày sinh', N'SNHAN_VIEN', N'J', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(485 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'GIOI_TINH', NULL, N'Giới tính', N'SNHAN_VIEN', N'L', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(486 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'NGAY_VAO_LAM', NULL, N'Ngày vào làm', N'SNHAN_VIEN', N'L', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(487 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'GHI_CHU', NULL, N'Ghi chú', N'SNHAN_VIEN', N'M', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(488 AS Numeric(18, 0)), N'IMPORT_NHANVIEN', N'MA_DV', NULL, N'Mã số thuế đơn vị', N'SNHAN_VIEN', N'N', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(489 AS Numeric(18, 0)), N'IMPORT_HOADON', N'IS_CONG_TY_DONG', NULL, N'Công ty đóng', N'DHOADON_TNCN', N'AT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(490 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_THU_NHAP_VN', NULL, N'Tổng thu nhập tại việt nam', N'DHOADON_TNCN', N'CO', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(491 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_THU_NHAP_NN', NULL, N'Tổng thu nhập nước ngoài', N'DHOADON_TNCN', N'CP', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(492 AS Numeric(18, 0)), N'IMPORT_HOADON', N'GIAM_TRU_BAN_THAN', NULL, N'Giảm trừ bản thân', N'DHOADON_TNCN', N'CQ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(493 AS Numeric(18, 0)), N'IMPORT_HOADON', N'GIAM_TRU_NGUOI_PHU_THUOC', NULL, N'Giảm trừ người phụ thuộc', N'DHOADON_TNCN', N'CR', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(494 AS Numeric(18, 0)), N'IMPORT_HOADON', N'KHOAN_GIAM_TRU_KHAC', NULL, N'Khoản giảm trừ khác', N'DHOADON_TNCN', N'CS', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(495 AS Numeric(18, 0)), N'IMPORT_HOADON', N'CHUC_VU', NULL, N'Chức vụ', N'DHOADON_TNCN', N'CT', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(496 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_THUNHAP_TU', NULL, N'Ngày thu nhập từ', N'DHOADON_TNCN', N'CU', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(497 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_THUNHAP_DEN', NULL, N'Ngày thu nhập đến', N'DHOADON_TNCN', N'CV', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(498 AS Numeric(18, 0)), N'IMPORT_HOADON', N'HOP_DONG_LD_SO', NULL, N'Hợp đồng lao động số', N'DHOADON_TNCN', N'CW', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(499 AS Numeric(18, 0)), N'IMPORT_HOADON', N'HOP_DONG_LD_NGAY', NULL, N'Hợp đồng lao động ngày', N'DHOADON_TNCN', N'CX', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(500 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TIEN_THUE_NHA', NULL, N'Tiền thuê nhà', N'DHOADON_TNCN', N'CY', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(501 AS Numeric(18, 0)), N'IMPORT_HOADON', N'STT_BANGKE', NULL, N'Số thứ tự bảng kê 05', N'DHOADON_TNCN', N'CZ', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(502 AS Numeric(18, 0)), N'IMPORT_HOADON', N'NGAY_DEN_VN', NULL, N'Ngày đến việt nam', N'DHOADON_TNCN', N'DA', NULL, NULL)
INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] ([DCAU_HINH_COT_MAC_DINHID], [LOAI], [TEN_COT], [KIEU_DU_LIEU], [MO_TA], [BANG_DU_LIEU], [COT_EXCEL_MAC_DINH], [IS_KEY], [IS_SU_DUNG]) VALUES (CAST(503 AS Numeric(18, 0)), N'IMPORT_HOADON', N'TONG_TN_MIEN_THUE', NULL, N'Tổng TN miễn thuế', N'DHOADON_TNCN', N'DB', NULL, NULL)
SET IDENTITY_INSERT [dbo].[DCAU_HINH_COT_MAC_DINH] OFF
GO
SET IDENTITY_INSERT [dbo].[DCAUHINH_MORONG] ON 

INSERT [dbo].[DCAUHINH_MORONG] ([DCAUHINH_MORONGID], [BANG_DU_LIEU], [MA_DV], [EXT_VARCHAR1_LABEL], [EXT_VARCHAR2_LABEL], [EXT_VARCHAR3_LABEL], [EXT_VARCHAR4_LABEL], [EXT_VARCHAR5_LABEL], [EXT_VARCHAR6_LABEL], [EXT_VARCHAR7_LABEL], [EXT_VARCHAR8_LABEL], [EXT_VARCHAR9_LABEL], [EXT_NUMBER1_LABEL], [EXT_NUMBER2_LABEL], [EXT_NUMBER3_LABEL], [EXT_NUMBER4_LABEL], [EXT_NUMBER5_LABEL], [EXT_NUMBER6_LABEL], [EXT_NUMBER7_LABEL], [EXT_NUMBER8_LABEL], [EXT_NUMBER9_LABEL], [EXT_DATE1_LABEL], [EXT_DATE2_LABEL], [EXT_DATE3_LABEL], [EXT_DATE4_LABEL], [EXT_DATE5_LABEL], [EXT_DATE6_LABEL], [EXT_DATE7_LABEL], [EXT_DATE8_LABEL], [EXT_DATE9_LABEL], [EXT_VARCHAR1_ACTIVE], [EXT_VARCHAR2_ACTIVE], [EXT_VARCHAR3_ACTIVE], [EXT_VARCHAR4_ACTIVE], [EXT_VARCHAR5_ACTIVE], [EXT_VARCHAR6_ACTIVE], [EXT_VARCHAR7_ACTIVE], [EXT_VARCHAR8_ACTIVE], [EXT_VARCHAR9_ACTIVE], [EXT_NUMBER1_ACTIVE], [EXT_NUMBER2_ACTIVE], [EXT_NUMBER3_ACTIVE], [EXT_NUMBER4_ACTIVE], [EXT_NUMBER5_ACTIVE], [EXT_NUMBER6_ACTIVE], [EXT_NUMBER7_ACTIVE], [EXT_NUMBER8_ACTIVE], [EXT_NUMBER9_ACTIVE], [EXT_DATE6_ACTIVE], [EXT_DATE7_ACTIVE], [EXT_DATE8_ACTIVE], [EXT_DATE9_ACTIVE], [EXT_DATE1_ACTIVE], [EXT_DATE2_ACTIVE], [EXT_DATE3_ACTIVE], [EXT_DATE4_ACTIVE], [EXT_DATE5_ACTIVE], [EXT_VARCHAR1_ORDER_NO], [EXT_VARCHAR2_ORDER_NO], [EXT_VARCHAR3_ORDER_NO], [EXT_VARCHAR4_ORDER_NO], [EXT_VARCHAR5_ORDER_NO], [EXT_VARCHAR6_ORDER_NO], [EXT_VARCHAR7_ORDER_NO], [EXT_VARCHAR8_ORDER_NO], [EXT_VARCHAR9_ORDER_NO], [EXT_NUMBER1_ORDER_NO], [EXT_NUMBER2_ORDER_NO], [EXT_NUMBER3_ORDER_NO], [EXT_NUMBER4_ORDER_NO], [EXT_NUMBER5_ORDER_NO], [EXT_NUMBER6_ORDER_NO], [EXT_NUMBER7_ORDER_NO], [EXT_NUMBER8_ORDER_NO], [EXT_NUMBER9_ORDER_NO], [EXT_DATE1_ORDER_NO], [EXT_DATE2_ORDER_NO], [EXT_DATE3_ORDER_NO], [EXT_DATE4_ORDER_NO], [EXT_DATE5_ORDER_NO], [EXT_DATE6_ORDER_NO], [EXT_DATE7_ORDER_NO], [EXT_DATE8_ORDER_NO], [EXT_DATE9_ORDER_NO], [EXT_VARCHAR1_IS_REQUIRED], [EXT_VARCHAR2_IS_REQUIRED], [EXT_VARCHAR3_IS_REQUIRED], [EXT_VARCHAR4_IS_REQUIRED], [EXT_VARCHAR5_IS_REQUIRED], [EXT_VARCHAR6_IS_REQUIRED], [EXT_VARCHAR7_IS_REQUIRED], [EXT_VARCHAR8_IS_REQUIRED], [EXT_VARCHAR9_IS_REQUIRED], [EXT_NUMBER1_IS_REQUIRED], [EXT_NUMBER2_IS_REQUIRED], [EXT_NUMBER3_IS_REQUIRED], [EXT_NUMBER4_IS_REQUIRED], [EXT_NUMBER5_IS_REQUIRED], [EXT_NUMBER6_IS_REQUIRED], [EXT_NUMBER7_IS_REQUIRED], [EXT_NUMBER8_IS_REQUIRED], [EXT_NUMBER9_IS_REQUIRED], [EXT_DATE1_IS_REQUIRED], [EXT_DATE2_IS_REQUIRED], [EXT_DATE3_IS_REQUIRED], [EXT_DATE4_IS_REQUIRED], [EXT_DATE5_IS_REQUIRED], [EXT_DATE6_IS_REQUIRED], [EXT_DATE7_IS_REQUIRED], [EXT_DATE8_IS_REQUIRED], [EXT_DATE9_IS_REQUIRED], [EXT_VARCHAR1_FORMAT], [EXT_VARCHAR2_FORMAT], [EXT_VARCHAR3_FORMAT], [EXT_VARCHAR4_FORMAT], [EXT_VARCHAR5_FORMAT], [EXT_VARCHAR6_FORMAT], [EXT_VARCHAR7_FORMAT], [EXT_VARCHAR8_FORMAT], [EXT_VARCHAR9_FORMAT], [EXT_NUMBER1_FORMAT], [EXT_NUMBER2_FORMAT], [EXT_NUMBER3_FORMAT], [EXT_NUMBER4_FORMAT], [EXT_NUMBER5_FORMAT], [EXT_NUMBER6_FORMAT], [EXT_NUMBER7_FORMAT], [EXT_NUMBER8_FORMAT], [EXT_NUMBER9_FORMAT], [EXT_DATE1_FORMAT], [EXT_DATE2_FORMAT], [EXT_DATE3_FORMAT], [EXT_DATE4_FORMAT], [EXT_DATE5_FORMAT], [EXT_DATE6_FORMAT], [EXT_DATE7_FORMAT], [EXT_DATE8_FORMAT], [EXT_DATE9_FORMAT], [EXT_NUMBER10_ACTIVE], [EXT_NUMBER11_ACTIVE], [EXT_NUMBER12_ACTIVE], [EXT_NUMBER13_ACTIVE], [EXT_NUMBER14_ACTIVE], [EXT_NUMBER15_ACTIVE], [EXT_NUMBER10_ORDER_NO], [EXT_NUMBER11_ORDER_NO], [EXT_NUMBER12_ORDER_NO], [EXT_NUMBER13_ORDER_NO], [EXT_NUMBER14_ORDER_NO], [EXT_NUMBER15_ORDER_NO], [EXT_NUMBER10_IS_REQUIRED], [EXT_NUMBER11_IS_REQUIRED], [EXT_NUMBER12_IS_REQUIRED], [EXT_NUMBER13_IS_REQUIRED], [EXT_NUMBER14_IS_REQUIRED], [EXT_NUMBER15_IS_REQUIRED], [EXT_NUMBER10_FORMAT], [EXT_NUMBER11_FORMAT], [EXT_NUMBER12_FORMAT], [EXT_NUMBER13_FORMAT], [EXT_NUMBER14_FORMAT], [EXT_NUMBER15_FORMAT]) VALUES (1, N'DHOADON', N'0101300842-999', N'Biển số xe', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DCAUHINH_MORONG] ([DCAUHINH_MORONGID], [BANG_DU_LIEU], [MA_DV], [EXT_VARCHAR1_LABEL], [EXT_VARCHAR2_LABEL], [EXT_VARCHAR3_LABEL], [EXT_VARCHAR4_LABEL], [EXT_VARCHAR5_LABEL], [EXT_VARCHAR6_LABEL], [EXT_VARCHAR7_LABEL], [EXT_VARCHAR8_LABEL], [EXT_VARCHAR9_LABEL], [EXT_NUMBER1_LABEL], [EXT_NUMBER2_LABEL], [EXT_NUMBER3_LABEL], [EXT_NUMBER4_LABEL], [EXT_NUMBER5_LABEL], [EXT_NUMBER6_LABEL], [EXT_NUMBER7_LABEL], [EXT_NUMBER8_LABEL], [EXT_NUMBER9_LABEL], [EXT_DATE1_LABEL], [EXT_DATE2_LABEL], [EXT_DATE3_LABEL], [EXT_DATE4_LABEL], [EXT_DATE5_LABEL], [EXT_DATE6_LABEL], [EXT_DATE7_LABEL], [EXT_DATE8_LABEL], [EXT_DATE9_LABEL], [EXT_VARCHAR1_ACTIVE], [EXT_VARCHAR2_ACTIVE], [EXT_VARCHAR3_ACTIVE], [EXT_VARCHAR4_ACTIVE], [EXT_VARCHAR5_ACTIVE], [EXT_VARCHAR6_ACTIVE], [EXT_VARCHAR7_ACTIVE], [EXT_VARCHAR8_ACTIVE], [EXT_VARCHAR9_ACTIVE], [EXT_NUMBER1_ACTIVE], [EXT_NUMBER2_ACTIVE], [EXT_NUMBER3_ACTIVE], [EXT_NUMBER4_ACTIVE], [EXT_NUMBER5_ACTIVE], [EXT_NUMBER6_ACTIVE], [EXT_NUMBER7_ACTIVE], [EXT_NUMBER8_ACTIVE], [EXT_NUMBER9_ACTIVE], [EXT_DATE6_ACTIVE], [EXT_DATE7_ACTIVE], [EXT_DATE8_ACTIVE], [EXT_DATE9_ACTIVE], [EXT_DATE1_ACTIVE], [EXT_DATE2_ACTIVE], [EXT_DATE3_ACTIVE], [EXT_DATE4_ACTIVE], [EXT_DATE5_ACTIVE], [EXT_VARCHAR1_ORDER_NO], [EXT_VARCHAR2_ORDER_NO], [EXT_VARCHAR3_ORDER_NO], [EXT_VARCHAR4_ORDER_NO], [EXT_VARCHAR5_ORDER_NO], [EXT_VARCHAR6_ORDER_NO], [EXT_VARCHAR7_ORDER_NO], [EXT_VARCHAR8_ORDER_NO], [EXT_VARCHAR9_ORDER_NO], [EXT_NUMBER1_ORDER_NO], [EXT_NUMBER2_ORDER_NO], [EXT_NUMBER3_ORDER_NO], [EXT_NUMBER4_ORDER_NO], [EXT_NUMBER5_ORDER_NO], [EXT_NUMBER6_ORDER_NO], [EXT_NUMBER7_ORDER_NO], [EXT_NUMBER8_ORDER_NO], [EXT_NUMBER9_ORDER_NO], [EXT_DATE1_ORDER_NO], [EXT_DATE2_ORDER_NO], [EXT_DATE3_ORDER_NO], [EXT_DATE4_ORDER_NO], [EXT_DATE5_ORDER_NO], [EXT_DATE6_ORDER_NO], [EXT_DATE7_ORDER_NO], [EXT_DATE8_ORDER_NO], [EXT_DATE9_ORDER_NO], [EXT_VARCHAR1_IS_REQUIRED], [EXT_VARCHAR2_IS_REQUIRED], [EXT_VARCHAR3_IS_REQUIRED], [EXT_VARCHAR4_IS_REQUIRED], [EXT_VARCHAR5_IS_REQUIRED], [EXT_VARCHAR6_IS_REQUIRED], [EXT_VARCHAR7_IS_REQUIRED], [EXT_VARCHAR8_IS_REQUIRED], [EXT_VARCHAR9_IS_REQUIRED], [EXT_NUMBER1_IS_REQUIRED], [EXT_NUMBER2_IS_REQUIRED], [EXT_NUMBER3_IS_REQUIRED], [EXT_NUMBER4_IS_REQUIRED], [EXT_NUMBER5_IS_REQUIRED], [EXT_NUMBER6_IS_REQUIRED], [EXT_NUMBER7_IS_REQUIRED], [EXT_NUMBER8_IS_REQUIRED], [EXT_NUMBER9_IS_REQUIRED], [EXT_DATE1_IS_REQUIRED], [EXT_DATE2_IS_REQUIRED], [EXT_DATE3_IS_REQUIRED], [EXT_DATE4_IS_REQUIRED], [EXT_DATE5_IS_REQUIRED], [EXT_DATE6_IS_REQUIRED], [EXT_DATE7_IS_REQUIRED], [EXT_DATE8_IS_REQUIRED], [EXT_DATE9_IS_REQUIRED], [EXT_VARCHAR1_FORMAT], [EXT_VARCHAR2_FORMAT], [EXT_VARCHAR3_FORMAT], [EXT_VARCHAR4_FORMAT], [EXT_VARCHAR5_FORMAT], [EXT_VARCHAR6_FORMAT], [EXT_VARCHAR7_FORMAT], [EXT_VARCHAR8_FORMAT], [EXT_VARCHAR9_FORMAT], [EXT_NUMBER1_FORMAT], [EXT_NUMBER2_FORMAT], [EXT_NUMBER3_FORMAT], [EXT_NUMBER4_FORMAT], [EXT_NUMBER5_FORMAT], [EXT_NUMBER6_FORMAT], [EXT_NUMBER7_FORMAT], [EXT_NUMBER8_FORMAT], [EXT_NUMBER9_FORMAT], [EXT_DATE1_FORMAT], [EXT_DATE2_FORMAT], [EXT_DATE3_FORMAT], [EXT_DATE4_FORMAT], [EXT_DATE5_FORMAT], [EXT_DATE6_FORMAT], [EXT_DATE7_FORMAT], [EXT_DATE8_FORMAT], [EXT_DATE9_FORMAT], [EXT_NUMBER10_ACTIVE], [EXT_NUMBER11_ACTIVE], [EXT_NUMBER12_ACTIVE], [EXT_NUMBER13_ACTIVE], [EXT_NUMBER14_ACTIVE], [EXT_NUMBER15_ACTIVE], [EXT_NUMBER10_ORDER_NO], [EXT_NUMBER11_ORDER_NO], [EXT_NUMBER12_ORDER_NO], [EXT_NUMBER13_ORDER_NO], [EXT_NUMBER14_ORDER_NO], [EXT_NUMBER15_ORDER_NO], [EXT_NUMBER10_IS_REQUIRED], [EXT_NUMBER11_IS_REQUIRED], [EXT_NUMBER12_IS_REQUIRED], [EXT_NUMBER13_IS_REQUIRED], [EXT_NUMBER14_IS_REQUIRED], [EXT_NUMBER15_IS_REQUIRED], [EXT_NUMBER10_FORMAT], [EXT_NUMBER11_FORMAT], [EXT_NUMBER12_FORMAT], [EXT_NUMBER13_FORMAT], [EXT_NUMBER14_FORMAT], [EXT_NUMBER15_FORMAT]) VALUES (2, N'DHOADON_HANG', N'0100507058', N'Dữ liệu hàng mở rộng 1', N'Dữ liệu hàng mở rộng 2', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DCAUHINH_MORONG] ([DCAUHINH_MORONGID], [BANG_DU_LIEU], [MA_DV], [EXT_VARCHAR1_LABEL], [EXT_VARCHAR2_LABEL], [EXT_VARCHAR3_LABEL], [EXT_VARCHAR4_LABEL], [EXT_VARCHAR5_LABEL], [EXT_VARCHAR6_LABEL], [EXT_VARCHAR7_LABEL], [EXT_VARCHAR8_LABEL], [EXT_VARCHAR9_LABEL], [EXT_NUMBER1_LABEL], [EXT_NUMBER2_LABEL], [EXT_NUMBER3_LABEL], [EXT_NUMBER4_LABEL], [EXT_NUMBER5_LABEL], [EXT_NUMBER6_LABEL], [EXT_NUMBER7_LABEL], [EXT_NUMBER8_LABEL], [EXT_NUMBER9_LABEL], [EXT_DATE1_LABEL], [EXT_DATE2_LABEL], [EXT_DATE3_LABEL], [EXT_DATE4_LABEL], [EXT_DATE5_LABEL], [EXT_DATE6_LABEL], [EXT_DATE7_LABEL], [EXT_DATE8_LABEL], [EXT_DATE9_LABEL], [EXT_VARCHAR1_ACTIVE], [EXT_VARCHAR2_ACTIVE], [EXT_VARCHAR3_ACTIVE], [EXT_VARCHAR4_ACTIVE], [EXT_VARCHAR5_ACTIVE], [EXT_VARCHAR6_ACTIVE], [EXT_VARCHAR7_ACTIVE], [EXT_VARCHAR8_ACTIVE], [EXT_VARCHAR9_ACTIVE], [EXT_NUMBER1_ACTIVE], [EXT_NUMBER2_ACTIVE], [EXT_NUMBER3_ACTIVE], [EXT_NUMBER4_ACTIVE], [EXT_NUMBER5_ACTIVE], [EXT_NUMBER6_ACTIVE], [EXT_NUMBER7_ACTIVE], [EXT_NUMBER8_ACTIVE], [EXT_NUMBER9_ACTIVE], [EXT_DATE6_ACTIVE], [EXT_DATE7_ACTIVE], [EXT_DATE8_ACTIVE], [EXT_DATE9_ACTIVE], [EXT_DATE1_ACTIVE], [EXT_DATE2_ACTIVE], [EXT_DATE3_ACTIVE], [EXT_DATE4_ACTIVE], [EXT_DATE5_ACTIVE], [EXT_VARCHAR1_ORDER_NO], [EXT_VARCHAR2_ORDER_NO], [EXT_VARCHAR3_ORDER_NO], [EXT_VARCHAR4_ORDER_NO], [EXT_VARCHAR5_ORDER_NO], [EXT_VARCHAR6_ORDER_NO], [EXT_VARCHAR7_ORDER_NO], [EXT_VARCHAR8_ORDER_NO], [EXT_VARCHAR9_ORDER_NO], [EXT_NUMBER1_ORDER_NO], [EXT_NUMBER2_ORDER_NO], [EXT_NUMBER3_ORDER_NO], [EXT_NUMBER4_ORDER_NO], [EXT_NUMBER5_ORDER_NO], [EXT_NUMBER6_ORDER_NO], [EXT_NUMBER7_ORDER_NO], [EXT_NUMBER8_ORDER_NO], [EXT_NUMBER9_ORDER_NO], [EXT_DATE1_ORDER_NO], [EXT_DATE2_ORDER_NO], [EXT_DATE3_ORDER_NO], [EXT_DATE4_ORDER_NO], [EXT_DATE5_ORDER_NO], [EXT_DATE6_ORDER_NO], [EXT_DATE7_ORDER_NO], [EXT_DATE8_ORDER_NO], [EXT_DATE9_ORDER_NO], [EXT_VARCHAR1_IS_REQUIRED], [EXT_VARCHAR2_IS_REQUIRED], [EXT_VARCHAR3_IS_REQUIRED], [EXT_VARCHAR4_IS_REQUIRED], [EXT_VARCHAR5_IS_REQUIRED], [EXT_VARCHAR6_IS_REQUIRED], [EXT_VARCHAR7_IS_REQUIRED], [EXT_VARCHAR8_IS_REQUIRED], [EXT_VARCHAR9_IS_REQUIRED], [EXT_NUMBER1_IS_REQUIRED], [EXT_NUMBER2_IS_REQUIRED], [EXT_NUMBER3_IS_REQUIRED], [EXT_NUMBER4_IS_REQUIRED], [EXT_NUMBER5_IS_REQUIRED], [EXT_NUMBER6_IS_REQUIRED], [EXT_NUMBER7_IS_REQUIRED], [EXT_NUMBER8_IS_REQUIRED], [EXT_NUMBER9_IS_REQUIRED], [EXT_DATE1_IS_REQUIRED], [EXT_DATE2_IS_REQUIRED], [EXT_DATE3_IS_REQUIRED], [EXT_DATE4_IS_REQUIRED], [EXT_DATE5_IS_REQUIRED], [EXT_DATE6_IS_REQUIRED], [EXT_DATE7_IS_REQUIRED], [EXT_DATE8_IS_REQUIRED], [EXT_DATE9_IS_REQUIRED], [EXT_VARCHAR1_FORMAT], [EXT_VARCHAR2_FORMAT], [EXT_VARCHAR3_FORMAT], [EXT_VARCHAR4_FORMAT], [EXT_VARCHAR5_FORMAT], [EXT_VARCHAR6_FORMAT], [EXT_VARCHAR7_FORMAT], [EXT_VARCHAR8_FORMAT], [EXT_VARCHAR9_FORMAT], [EXT_NUMBER1_FORMAT], [EXT_NUMBER2_FORMAT], [EXT_NUMBER3_FORMAT], [EXT_NUMBER4_FORMAT], [EXT_NUMBER5_FORMAT], [EXT_NUMBER6_FORMAT], [EXT_NUMBER7_FORMAT], [EXT_NUMBER8_FORMAT], [EXT_NUMBER9_FORMAT], [EXT_DATE1_FORMAT], [EXT_DATE2_FORMAT], [EXT_DATE3_FORMAT], [EXT_DATE4_FORMAT], [EXT_DATE5_FORMAT], [EXT_DATE6_FORMAT], [EXT_DATE7_FORMAT], [EXT_DATE8_FORMAT], [EXT_DATE9_FORMAT], [EXT_NUMBER10_ACTIVE], [EXT_NUMBER11_ACTIVE], [EXT_NUMBER12_ACTIVE], [EXT_NUMBER13_ACTIVE], [EXT_NUMBER14_ACTIVE], [EXT_NUMBER15_ACTIVE], [EXT_NUMBER10_ORDER_NO], [EXT_NUMBER11_ORDER_NO], [EXT_NUMBER12_ORDER_NO], [EXT_NUMBER13_ORDER_NO], [EXT_NUMBER14_ORDER_NO], [EXT_NUMBER15_ORDER_NO], [EXT_NUMBER10_IS_REQUIRED], [EXT_NUMBER11_IS_REQUIRED], [EXT_NUMBER12_IS_REQUIRED], [EXT_NUMBER13_IS_REQUIRED], [EXT_NUMBER14_IS_REQUIRED], [EXT_NUMBER15_IS_REQUIRED], [EXT_NUMBER10_FORMAT], [EXT_NUMBER11_FORMAT], [EXT_NUMBER12_FORMAT], [EXT_NUMBER13_FORMAT], [EXT_NUMBER14_FORMAT], [EXT_NUMBER15_FORMAT]) VALUES (3, N'DHOADON_HANG', N'0101300842-999', N'so po', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[DCAUHINH_MORONG] OFF
GO
SET IDENTITY_INSERT [dbo].[DCAUHINHCKS] ON 

INSERT [dbo].[DCAUHINHCKS] ([CAUHINHCKSID], [MA_DV], [leDoc], [leNgang], [trang], [image_DATA], [image_NAME], [renderMode], [signHeight], [signWidth]) VALUES (CAST(1 AS Numeric(18, 0)), N'0312650437', 1, 1, 1, NULL, N'', 0, 20, 300)
SET IDENTITY_INSERT [dbo].[DCAUHINHCKS] OFF
GO
SET IDENTITY_INSERT [dbo].[DCONFIG_BIEU_MAU_MAPPING] ON 

INSERT [dbo].[DCONFIG_BIEU_MAU_MAPPING] ([CONFIG_BIEU_MAU_MAPPINGID], [FORM_NAME], [MA_DV], [LOAI_BANG_DL], [TEN_COT_BM], [TEN_TRUONG_EINVOICE], [KIEU_DU_LIEU], [GIA_TRI_MAC_DINH]) VALUES (1, N'frmThongKeHangHoaGTGT', N'0100507058', 1, N'A', N'DHOADONID', N'decimal', N'')
SET IDENTITY_INSERT [dbo].[DCONFIG_BIEU_MAU_MAPPING] OFF
GO
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0100774381', N'LHD', N'a', N'', N'', N'', N'', N'', NULL, N'0', N'', N'')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0101300842', N'LHD', N'x', N'', N'', N'', N'', N'', NULL, N'1', N'', N'')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (CAST(N'2019-03-01T00:00:00.000' AS DateTime), N'0101300842-999', N'LHD', N'555j9', N'32323239', N'9', N'KdXhYWv2dtU=', N'9', N'net.tcp://192.168.1.223:9001/CKSService', CAST(910 AS Numeric(18, 0)), N'1', N'fdhfhfhsdfh', N'tsd3')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (CAST(N'2017-04-15T11:10:16.493' AS DateTime), N'0101585210', N'LHD', N'S', N'', N'', N'', N'', N'', CAST(10 AS Numeric(18, 0)), N'0', N'', N'S')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0102721191-001', N'LHD', N'1', N'', N'', N'', N'', N'net.tcp://192.168.1.223:9001/CKSService', NULL, N'1', N'', N'')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0306182043', N'LHD', N'f', N'', N'', N'', N'', N'', NULL, N'0', N'', N'')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0307933662', N'LHD', N'1', N'', N'', N'', N'', N'net.tcp://192.168.1.223:9001/CKSService', NULL, N'1', N'', N'')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0310362754', N'LHD', N'sd', N'dsd', N'', N'', N'', N'', NULL, N'0', N'', N'HAA')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'0311928129', N'LHD', N'1', N'', N'', N'', N'', N'', NULL, N'1', N'', N'')
INSERT [dbo].[DCONFIG_XACTHUC] ([NGAY_KICH_HOAT], [MA_SO_THUE], [PRE_SYSTEMCODE], [CHUOI_BAO_MAT], [URL_SEND], [USER_VAN], [PASSWORD_VAN], [URL_VAN], [URI_CKS_SERVICE], [MAX_INV], [IS_SU_DUNG_POST], [URL_WEB_POST], [SYSTEM_CODE]) VALUES (NULL, N'3500614363', N'LHD', N'xxx', N'', N'', N'', N'', N'', NULL, N'1', N'', N'')
GO
SET IDENTITY_INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ON 

INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(1 AS Numeric(18, 0)), 0, N'CHON', N'', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(2 AS Numeric(18, 0)), 1, N'SDOITACID', N'SDOITACID', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(3 AS Numeric(18, 0)), 2, N'MA_DV', N'Mã khách hàng', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(4 AS Numeric(18, 0)), 3, N'TEN_DV', N'Tên Khách hàng', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(5 AS Numeric(18, 0)), 4, N'TEN_DV_EN', N'Tên tiếng anh', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(6 AS Numeric(18, 0)), 5, N'DIA_CHI', N'Địa chỉ', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(7 AS Numeric(18, 0)), 6, N'DIA_CHI_EN', N'Địa chỉ tiếng anh', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(8 AS Numeric(18, 0)), 7, N'MA_SO_THUE', N'Mã số thuế', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(9 AS Numeric(18, 0)), 8, N'NGUOI_GIAO_DICH', N'Người giao dịch', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(10 AS Numeric(18, 0)), 9, N'NGUOI_GIAO_DICH_EN', N'NGUOI_GIAO_DICH_EN', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(11 AS Numeric(18, 0)), 10, N'DIEN_THOAI', N'Số điện thoại', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(12 AS Numeric(18, 0)), 11, N'FAX', N'Số Fax', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(13 AS Numeric(18, 0)), 12, N'WEBSITE', N'Website', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(14 AS Numeric(18, 0)), 13, N'EMAIL', N'Email', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(15 AS Numeric(18, 0)), 14, N'NGAN_HANG_TEN1', N'Tên ngân hàng', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(16 AS Numeric(18, 0)), 15, N'NGAN_HANG_TAI_KHOAN1', N'Tài khoản', N'SDOITAC', 1, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(21 AS Numeric(18, 0)), 20, N'GHI_CHU', N'GHI_CHU', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(23 AS Numeric(18, 0)), 22, N'IS_HIENTHI', N'IS_HIENTHI', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(24 AS Numeric(18, 0)), 23, N'MA_DV_SD', N'Mã số thuế sử dụng', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(25 AS Numeric(18, 0)), 24, N'MA_CN', N'Mã chi nhánh', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] ([DHIEN_THI_COT_MAC_DINHID], [STT], [TEN_COT], [TEN_HIEN_THI], [TEN_BANG], [CHON], [FORMAT], [FIELDLEFT], [COLORNAME], [COLWIDTH], [COLFIX], [COLDEFAULT], [SPLITINDEX], [IS_EXTENSION], [LOAI], [MA_DV], [MA_CN], [DHOADON_COLUMN]) VALUES (CAST(26 AS Numeric(18, 0)), 25, N'DIEN_THOAI_LIEN_HE', N'Điện thoại liên hệ', N'SDOITAC', 0, NULL, 1, N'', 0, 0, 0, NULL, NULL, NULL, N'0101300842-999', NULL, NULL)
SET IDENTITY_INSERT [dbo].[DHIEN_THI_COT_MAC_DINH] OFF
GO
SET IDENTITY_INSERT [dbo].[DHOADON_BIENBAN] ON 

INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(1 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-28T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-04T00:00:00.000' AS DateTime), N'0000012', NULL, NULL, N'sai TT ABC D', N'XB', NULL, 1, NULL, CAST(N'2019-05-30T23:22:11.990' AS DateTime), NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000012</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN HỦY HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>04/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>Nguyễn Văn A</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Phạm Quỳnh Anh</inv:buyerDisplayName> <inv:buyerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0978973722</inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>sai TT ABC D</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>14888500</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>rlwx3dY/qKSf46Dlgzv1E/1nTuI=</DigestValue></Reference></SignedInfo><SignatureValue>MYcmInNkaB3QxGmDpSyIpzqaS6KRGYBZBlbUOzwCUaHC1vdoSd9FI2o0OAsoYogw43QgroBmB8GRXqwhS8QG+/lSlHndpluJHcicVbkKiw5aapf9R65IBTu9Ak6UHLjQt4RBKuXBeLRtPVz/0vATClUHIUtxHurMZRJqUTjwdM4=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(2 AS Decimal(23, 0)), CAST(4 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh', N'nhân viên', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000024', NULL, NULL, N'Hóa đơn sai -', N'XB', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.007' AS DateTime), NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'dịch vụ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000024</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN HỦY HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Phạm Quỳnh Anh</inv:buyerDisplayName> <inv:buyerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0978973722</inv:buyerPhoneNumber> <inv:CHUC_VU_BM>nhân viên</inv:CHUC_VU_BM> <inv:invoiceNote>Hóa đơn sai -</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName>dịch vụ</inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>14888500</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>pBLdQMGQcQEzNR34iDCB7jlcl6w=</DigestValue></Reference></SignedInfo><SignatureValue>YeKhFpXI7gzSJPvTDOx9ixItG9xgh3FZ9KoPX+h3M8+GfGM1aUpP2yKK3GSsRWirc86AsRE80LKmJRQ3Q6gCkDTV25l0uQNgJz1xu9aOt9ODvLxMHkhEnOGqIj5anJzbZsjWTwmn+vQu7vedKwanOx5CPBpc5gdP0aKOVrskino=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(3 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh', N'VVVV', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000025', NULL, NULL, N'a', N'XB', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.020' AS DateTime), NULL, NULL, NULL, NULL, CAST(777777.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000025</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN HỦY HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Phạm Quỳnh Anh</inv:buyerDisplayName> <inv:buyerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0978973722</inv:buyerPhoneNumber> <inv:CHUC_VU_BM>VVVV</inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>777777</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>GpQhBw+M9IV9ujl/Vp+HKD0XNHg=</DigestValue></Reference></SignedInfo><SignatureValue>CGas7rEXAYgkdSfljp64IxmYeoSuHXlhUoWG2L1sOuOlX0og0NHM8M24LUvjabZZRPnEHCSyR0DY5PLbetH1c7aTvPiBWNELbVwPrqgQn23i6yTzJt1kDeFQ/Ngq7Z1ug3MOAAAIaTBm8L9vRm2YDnnAwh/Awkr119hE4fEpxYo=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(4 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000023', NULL, NULL, N'dsadas', N'XB', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.027' AS DateTime), NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000023</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN HỦY HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>Nguyễn Văn A</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Phạm Quỳnh Anh</inv:buyerDisplayName> <inv:buyerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0978973722</inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>dsadas</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>14888500</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>OgZ7eFEdiwCGJGbZS16yw5trG/E=</DigestValue></Reference></SignedInfo><SignatureValue>gBDRAZtFi+GL6Nl2o0O/l6/EdCmEM6Xp9R4jkei/6xX13x1ht+/DflGmRRl/f9BdeHILn/Vkpmx7IYNzXC/L2c6JMtNm0xa5f5PQidmW3s7qNmNfHEyxe2m4a5p0fc9PvIsUtVAT6rPCVESBi3MmWuWexLFUXd8Ng1nMqu136R0=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(5 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'VVVV', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000029', NULL, NULL, N'a', N'XB', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.037' AS DateTime), NULL, NULL, NULL, NULL, CAST(116550.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000029</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN HỦY HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>Nguyễn Văn A</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Trần Văn Minh</inv:buyerDisplayName> <inv:buyerLegalName>CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM</inv:buyerLegalName> <inv:buyerTaxCode>0106840873</inv:buyerTaxCode> <inv:buyerAddressLine>Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0989657483</inv:buyerPhoneNumber> <inv:CHUC_VU_BM>VVVV</inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>116550</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>z30yYxoXJeMElfuOmqte2ALZxw4=</DigestValue></Reference></SignedInfo><SignatureValue>YNVKbi1VVP59WcmFbURpkE/Vi2LdicupDVlOMmsMFhL3GsYvxxV9OyvHnYxpDclXoix2MelpQphOLjke0WBysj11KjyZYRHXLGE+8MrlXpjd6053dMYHHuX8Rm01P2HLu+NEpakgl/XWRGoYqyV8WOTwcllh71+gssR99N0IMs0=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(6 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh', N'VVVV', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000030', NULL, NULL, N'a', N'XB', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.050' AS DateTime), NULL, NULL, NULL, NULL, CAST(44665500.00 AS Numeric(18, 2)), N'sss', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000030</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN HỦY HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Phạm Quỳnh Anh</inv:buyerDisplayName> <inv:buyerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0978973722</inv:buyerPhoneNumber> <inv:CHUC_VU_BM>VVVV</inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName>sss</inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>44665500</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>/EcCy+8BMgI2oE+/VJYicCPpg5w=</DigestValue></Reference></SignedInfo><SignatureValue>gOgDeSSFA8zXzacy4peH7SvyaKWfsNoUgQRj0atnUdZK4X5P8jvbMLpAg5NSOB+jiNi08Ob5I6mJivuWIL2R2CdS/GEgQtxtZJVvei+btn3lyVJkob+9BNFnfwmGNDsnYZrr0OjqOiva6ciDxYufB4iglHDY3duKZa1VXOXHNkw=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(7 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'VVVV', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000026', NULL, NULL, N'a', N'TT', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.060' AS DateTime), NULL, NULL, NULL, NULL, CAST(116550.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000026</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN THAY THẾ HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>Nguyễn Văn A</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Trần Văn Minh</inv:buyerDisplayName> <inv:buyerLegalName>CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM</inv:buyerLegalName> <inv:buyerTaxCode>0106840873</inv:buyerTaxCode> <inv:buyerAddressLine>Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0989657483</inv:buyerPhoneNumber> <inv:CHUC_VU_BM>VVVV</inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>116550</inv:totalAmountWithVAT><inv:TruocGhi></inv:TruocGhi><inv:SauGhi></inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>qFHAr/C/24vfL/pzGGi20Ny+KCE=</DigestValue></Reference></SignedInfo><SignatureValue>eKxMCBiua6cgEnmjJeEj9kTerkklnUxFRSAYdUMMG3RmYQU1RcfcR7WAZ2vAIxmcvCETejurIS8x2CVq9clIMi7ON62dDOX+ZvRtoQwLD/U3fUZd1GJz2uKWlMe26kZJtFzQuE8J+9l6nwr4f82w9+CBqbWYDSgUFT2+hPQy2GI=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(8 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'3', N'0102721191', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ CỔNG VÀNG', N'Số 60, Giang Văn Minh, Ba Đình, Hà Nội', N'0985657483', N'Nguyễn Thị Hằng', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000031', NULL, NULL, N'A', N'DC', NULL, 1, NULL, CAST(N'2019-05-30T23:22:12.073' AS DateTime), NULL, NULL, NULL, NULL, CAST(1650000.00 AS Numeric(18, 2)), N'D', N'C', N'B', NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000031</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 30 tháng 05 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>30/05/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Nguyễn Thị Hằng</inv:buyerDisplayName> <inv:buyerLegalName>CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ CỔNG VÀNG</inv:buyerLegalName> <inv:buyerTaxCode>0102721191</inv:buyerTaxCode> <inv:buyerAddressLine>Số 60, Giang Văn Minh, Ba Đình, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0985657483</inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>A</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName>D</inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>1650000</inv:totalAmountWithVAT><inv:TruocGhi>B</inv:TruocGhi><inv:SauGhi>C</inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>Rbzvncs8USgQ7H5VifWeQ7GQpfI=</DigestValue></Reference></SignedInfo><SignatureValue>FUjoYMB/U7Yc/akPpHcaRAeRESrXb3FWGrbIinCb7U5vF89sffnnkuH3ZZ2WIPXHCG7i9pmQr1wq30+nJ1A3FBmQp974R1+ICTb/yTfaJvDAhHC3YW+9J7NOigg9R4hQpW4wvuypB2mxYtoujrtKOp/gAZf7CZ07iRlQfmBA1T8=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(9 AS Decimal(23, 0)), CAST(4 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh22222222', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000014', NULL, NULL, N'xb', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(10 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000002', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh22222222', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000014', NULL, NULL, N'21212', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'33333', N'112', N'11', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(11 AS Decimal(23, 0)), CAST(4 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000016', NULL, NULL, N'xb', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(12 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000016', NULL, NULL, N'212', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'21212', N'212', N'212', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(13 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'3', N'0102721191', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ CỔNG VÀNG', N'Số 60, Giang Văn Minh, Ba 222Đình, Hà Nội', N'0985657483', N'Nguyễn Thị Hằng', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-28T00:00:00.000' AS DateTime), N'0000013', NULL, NULL, N'Hóa đơn sai', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(1488850000.00 AS Numeric(18, 2)), N'dịch vụ 01', N'hàng hóa', N'Sai tên hàng hóa', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(14 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'23 Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'', N'Vũ Minh', N'', NULL, N'01GTKT0/004', N'AA/19E', CAST(N'2019-05-27T00:00:00.000' AS DateTime), N'0000006', NULL, NULL, N'dsadas', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(29700000.00 AS Numeric(18, 2)), N'21212', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(15 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000002', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'23 Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'', N'Vũ Minh', N'', NULL, N'01GTKT0/004', N'AA/19E', CAST(N'2019-05-27T00:00:00.000' AS DateTime), N'0000006', NULL, NULL, N'sai TT', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(29700000.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(16 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000003', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'23 Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'', N'Vũ Minh', N'', NULL, N'01GTKT0/004', N'AA/19E', CAST(N'2019-05-27T00:00:00.000' AS DateTime), N'0000006', NULL, NULL, N'ko biet', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(29700000.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(17 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'2', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'0978973722', N'Phạm Quỳnh Anh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000030', NULL, NULL, N'aa', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(44665500.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(18 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'', N'sadasd', N'dsad', N'', N'fsd', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000034', NULL, NULL, N'll', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(19 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000002', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'', N'sadasd', N'dsad', N'', N'fsd', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000034', NULL, NULL, N'lll', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(20 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000003', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'', N'sadasd', N'dsad', N'', N'fsd', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000034', NULL, NULL, N'hhhh', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'kkkk', N'hhhh', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(21 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000004', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'', N'sadasd', N'dsad', N'', N'fsd', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000034', NULL, NULL, N'hhhhdd', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'kkkk', N'hhhh', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(22 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000005', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'', N'sadasd', N'dsad', N'', N'fsd', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000034', NULL, NULL, N'5555', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'dd', N'dd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(23 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000006', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'', N'sadasd', N'dsad', N'', N'fsd', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000034', NULL, NULL, N'hhh', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'hhhh', N'hhhhh', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(24 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'024.37545222', N'Nguyễn Văn Khiêm', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000015', NULL, NULL, N'Hóa đơn sai số lượng', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'3', N'2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(25 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000002', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'nhân vime', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000015', NULL, NULL, N'2', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(26 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'024.37545222', N'Nguyễn Văn Khiêm', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000015', NULL, NULL, N'Hóa đơn sai số lượng', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'3', N'2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(27 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000003', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'nhân vime', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-29T00:00:00.000' AS DateTime), N'0000015', NULL, NULL, N'34', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(30 AS Decimal(23, 0)), CAST(4 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'Giám đốc', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000033', NULL, NULL, N'Hóa đơn lập sai', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(116550.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(31 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000007', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-30T00:00:00.000' AS DateTime), N'0000021', NULL, NULL, N'77', N'DC', NULL, 1, NULL, CAST(N'2019-06-01T10:10:48.013' AS DateTime), NULL, NULL, NULL, NULL, CAST(14888500.00 AS Numeric(18, 2)), N'', N'7777', N'7777', NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000021</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 01 tháng 06 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>5/30/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Trần Văn Minh</inv:buyerDisplayName> <inv:buyerLegalName>CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM</inv:buyerLegalName> <inv:buyerTaxCode>0106840873</inv:buyerTaxCode> <inv:buyerAddressLine>Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0989657483</inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>77</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>14888500</inv:totalAmountWithVAT><inv:TruocGhi>7777</inv:TruocGhi><inv:SauGhi>7777</inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>H0Np67zU96p61Q6KtFK1HiJdFbc=</DigestValue></Reference></SignedInfo><SignatureValue>zVPzb/f+2MmvtaExNq352Q4TVGnwXZEAldvuxtwDXtyPVASZbOpVyTy/3Q6MSgPZ17LC/9Sjn3o42DfLv06JGzXvB20kCbkyEytKQcpweYvvyy1y6rCg4yHebb2MHT2D3G4/LCGeki8PnymxIb3T/HDr2lq0BQPgI/Iim0Hdklg=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHLzCCBhegAwIBAgIQVAK8XKzOZpwgFQAAAALWyjANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE3MTEwMTA3MjkyM1oXDTE4MDUwOTA3MjkyM1owggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEdMBsGA1UECxMUVGVzdCAgRVRBWCwgRUlOVk9JQ0UxPDA6BgNVBAMMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEnMCUGCSqGSIb3DQEJARYYdGhhaXNvbm1pZW5iYWNAZ21haWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDhxgvHEXOgGTw7pCGWqR2CZL/LwVmFLVqKnHNzkRiu/YX0OZPedM7OS/ddWW/O7ktuBl2WjOx/sNers6HjkFUNAMzlAnvOJtBkimWaNH+tL6peBssi1Wk8jXv6XRyMu8z/gnvgTPTNFGvKKfzPLVOXzcx7v9Uu0rS0bRzWFwlmPwIDAQABo4IDrjCCA6owDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4LYvQeD78IaAgFkAgEDMIGUBgkqhkiG9w0BCQ8EgYYwgYMwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBzALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBFjALBglghkgBZQMEARkwCwYJYIZIAWUDBAECMAsGCWCGSAFlAwQBBTAdBgNVHQ4EFgQUlbSs0O7MgSIIlZFKyrj/JRuhx6QwHwYDVR0jBBgwFoAUFbpaDOIM92POqZl7fmLcRdYk4wAwgfUGA1UdHwSB7TCB6jCB56CB5KCB4YaBomxkYXA6Ly8vQ049Q0EyLENOPXd3dyxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1jYXZuLERDPXZuP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFzZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIYaaHR0cDovL2Nhdm4udm4vbmV3L0NBMi5jcmyGHmh0dHA6Ly93d3cuY2F2bi52bi9uZXcvQ0EyLmNybDCCAVYGCCsGAQUFBwEBBIIBSDCCAUQwgZ4GCCsGAQUFBzAChoGRbGRhcDovLy9DTj1DQTIsQ049QUlBLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jQUNlcnRpZmljYXRlP2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNhdGlvbkF1dGhvcml0eTA9BggrBgEFBQcwAoYxaHR0cDovL3d3dy5jYXZuLnZuL0NlcnRFbnJvbGwvd3d3LmNhdm4udm5fQ0EyLmNydDAuBggrBgEFBQcwAYYiaHR0cDovL29jc3AuY2F2bi52bjo2NjY2L29jc3Avb2NzcDAyBggrBgEFBQcwAoYmaHR0cDovL3d3dy5jYXZuLnZuL3d3dy5jYXZuLnZuX0NBMi5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwQwGwYJKwYBBAGCNxUKBA4wDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQUFAAOCAQEAKG7QyiSp20p9yFaQPjDaT9WQBm1HXAnrO/5/97LTHm4a7MbxUxeH0KL3vdXA75JLQaudbekyW0yXkz1yccCfuNAx5QiUYL63BVScrPu6i2ayfLDWvFXh4De4jokadh24oMYE5alv48+Rtv/rD2SBwK+9g/X4qMYp2JDMLcewxDzvNboOouviZCBqM7KtcfhrxcBAH9vGkIA/nqwFROONYkw8oZ+2sODsOLpnhojPngxn+wJacMIDPyYrYDNKZ/r60gKrycCDtyTLHanMnTdGeuhyd+EuKvpVtJIUbocnXEnhx1cX2YloWO/S7aEH/5Slkl49WS898ckL/j3XalXU3A==</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(32 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000008', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 99B, Tổ 70, Hồ Quỳnh, Phường Thanh Nhàn, Quận Hai Bà Trưng, Thành phố Hà Nội', N'024.37545222', N'Nguyễn Văn Khiêm', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000048', NULL, NULL, N'Hóa đơn không có hàng hóa', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(0.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(33 AS Decimal(23, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'23 Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'', N'Vũ Minh', N'', NULL, N'01GTKT0/004', N'AA/19E', CAST(N'2019-05-27T00:00:00.000' AS DateTime), N'0000006', NULL, NULL, N'fdsfsd', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(29700000.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(34 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'23 Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'', N'Vũ Minh', N'', NULL, N'01GTKT0/004', N'AA/19E', CAST(N'2019-05-27T00:00:00.000' AS DateTime), N'0000006', NULL, NULL, N'212', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(29700000.00 AS Numeric(18, 2)), N'212', N'212', N'212', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(35 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000063', NULL, NULL, N'gdfg', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(29777000.00 AS Numeric(18, 2)), N'l', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(36 AS Decimal(23, 0)), CAST(4 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'3', N'0102721191', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ CỔNG VÀNG', N'Số 60, Giang Văn Minh, Ba Đình, Hà Nội', N'0985657483', N'Nguyễn Thị Hằng', N'', NULL, N'01GTKT0/002', N'AA/19E', CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000004', NULL, NULL, N'1', N'XB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(58756997.00 AS Numeric(18, 2)), N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(37 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'3', N'0102721191', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ CỔNG VÀNG', N'Số 60, Giang Văn Minh, Ba Đình, Hà Nội', N'0985657483', N'Nguyễn Thị Hằng', N'', NULL, N'01GTKT0/002', N'AA/19E', CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000004', NULL, NULL, N'a', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(58756997.00 AS Numeric(18, 2)), N'd', N'b', N'c', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(38 AS Decimal(23, 0)), CAST(6 AS Numeric(18, 0)), NULL, CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'3', N'0102721191', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ CỔNG VÀNG', N'Số 60, Giang Văn Minh, Ba Đình, Hà Nội', N'0985657483', N'Nguyễn Thị Hằng', N'', NULL, N'01GTKT0/002', N'AA/19E', CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000004', NULL, NULL, N'0', N'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(58756997.00 AS Numeric(18, 2)), N'2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(39 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000009', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-06-01T00:00:00.000' AS DateTime), N'0000063', NULL, NULL, N'a', N'DC', NULL, 1, NULL, CAST(N'2019-06-02T11:17:26.827' AS DateTime), NULL, NULL, NULL, NULL, CAST(29777000.00 AS Numeric(18, 2)), N'd', N'c', N'b', NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000063</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 02 tháng 06 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>6/1/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Trần Văn Minh</inv:buyerDisplayName> <inv:buyerLegalName>CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM</inv:buyerLegalName> <inv:buyerTaxCode>0106840873</inv:buyerTaxCode> <inv:buyerAddressLine>Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0989657483</inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName>d</inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>29777000</inv:totalAmountWithVAT><inv:TruocGhi>b</inv:TruocGhi><inv:SauGhi>c</inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>Jf2z0uadR8r343aDtenDTYvhV94=</DigestValue></Reference></SignedInfo><SignatureValue>D6BFfbTA2RyvYR3WqKBHu0zIdhhdZDLCIEqjaoecyncPRKSMvUH9IOofAelsyetd9Es07nBabIS69/I0Bkn1mJmTS2Srz51kbxT3oXvo3yz5yfOK11A0IYj20fNYFYzZsidqb1+FldBdM7h7VY8wKqVvSwz8H9KH9F+tembYkMk=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(40 AS Decimal(23, 0)), CAST(5 AS Numeric(18, 0)), NULL, CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000001', NULL, NULL, N'0100507058', N'Công ty cổ phần Diana Unicharm', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'x', NULL, N'DNKH', N'0101300842', N'Trần Văn Hoàng', N'hn', N'', N'Trần Văn Hoàng', N'', NULL, N'01GTKT0/002', N'AA/19E', CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000002', NULL, NULL, N'a', N'DC', NULL, 1, NULL, CAST(N'2019-06-02T18:08:51.470' AS DateTime), NULL, NULL, NULL, NULL, CAST(275000.00 AS Numeric(18, 2)), N'd', N'c', N'b', NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/002</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000002</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 02 tháng 06 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName><inv:sellerTaxCode>0100507058</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>6/2/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>x</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Trần Văn Hoàng</inv:buyerDisplayName> <inv:buyerLegalName>Trần Văn Hoàng</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>hn</inv:buyerAddressLine> <inv:buyerPhoneNumber></inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName>d</inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>275000</inv:totalAmountWithVAT><inv:TruocGhi>b</inv:TruocGhi><inv:SauGhi>c</inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>jLWP+sEMMl5nyU6n9seJYbqSmoU=</DigestValue></Reference></SignedInfo><SignatureValue>Mh0ueBsSL1kxOHZSUC9wX3KQqDX0786IMyBlkPHTYNuivqMDNk0K2jsV6Hz0+ZUXGLk5P3atn3SQPszKUlR8iq7H/hkIW2YmVo8YFHgP1lmtEBhMKMXkHi/FpoWwSBIXBToPjdxv2D2I0K+evGbNRHRv7JrUrw3qaiTCe9HNfYg=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(41 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-05-31T00:00:00.000' AS DateTime), N'0000051', NULL, NULL, N'a', N'DC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(253000.00 AS Numeric(18, 2)), N'a', N'a', N'a', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(42 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000010', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'a', N'0101300842', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'15 Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'', N'Vũ Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000073', NULL, NULL, N'a', N'DC', NULL, 1, NULL, CAST(N'2019-06-02T18:21:05.297' AS DateTime), NULL, NULL, NULL, NULL, CAST(96360000.00 AS Numeric(18, 2)), N'', N's', N'd', NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000073</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 02 tháng 06 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>02/06/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>Nguyễn Văn A</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Vũ Minh</inv:buyerDisplayName> <inv:buyerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:buyerLegalName> <inv:buyerTaxCode>0101300842</inv:buyerTaxCode> <inv:buyerAddressLine>15 Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber></inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>96360000</inv:totalAmountWithVAT><inv:TruocGhi>d</inv:TruocGhi><inv:SauGhi>s</inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>JlmYM8wr614skTiHxy3xumsATyw=</DigestValue></Reference></SignedInfo><SignatureValue>fYcyMkqCJj09zVbMNHlsSsvjtt+xmrK+xaK64Bgtj9Oc5avxzUgkRZ++v87kms7euVGIApn/eiuQkqcDmz1abWyuG3575FUJhE/RIfaai6ip4BU3Pg/eUm+eqqgAS5Fe6E7BoKgmLS7EmrNE6VHoBhaNgWuHbnHNhiMeOI+vhn4=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID], [SBIENBAN_TEMPLATEID], [GUID_BIENBAN_TEMP], [NGAY_BIEN_BAN], [SO_BIEN_BAN], [NGAY_IN], [MA_CN], [BEN_BAN_MA_DV], [BEN_BAN_TEN_DV], [BEN_BAN_DIA_CHI], [BEN_BAN_DIEN_THOAI], [BEN_BAN_NGUOI_DAI_DIEN], [BEN_BAN_NGUOI_DAI_DIEN_CV], [BEN_MUA_MA], [BEN_MUA_MA_DV], [BEN_MUA_TEN_DV], [BEN_MUA_DIA_CHI], [BEN_MUA_DIEN_THOAI], [BEN_MUA_NGUOI_DAI_DIEN], [BEN_MUA_NGUOI_DAI_DIEN_CV], [DHOADONID], [MAU_SO], [KY_HIEU], [NGAY_HOA_DON], [SO_HOA_DON], [GUID_DHOADON_BIENBAN], [GUID_DHOADON], [LI_DO_DIEU_CHINH], [LOAI_BIEN_BAN], [TRANG_THAI], [TRANG_THAI_KY], [TRANG_THAI_DIEU_CHINH], [NGAY_KY], [NGAY_DONG_BO], [IS_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO], [GIA_TRI_HOA_DON], [TEN_DICH_VU], [NOI_DUNG_DUNG], [NOI_DUNG_SAI], [MAU_SO_MOI], [KY_HIEU_MOI], [NGAY_HOA_DON_MOI], [DHOADONID_MOI], [SO_HOA_DON_MOI], [NOI_DUNG_XML], [TIEN_TRUOC_THUE], [TIEN_THUE], [TIEN_TRUOC_THUE_MOI], [TIEN_THUE_MOI], [GIA_TRI_HOA_DON_MOI], [MA_NT], [TY_GIA], [TONG_VAT], [TONG_VAT5], [TONG_TIEN_THUE_5], [TONG_TIEN_THUE_10], [TONG_TIEN_THUE], [TONG_TIEN_HANG_KHONG_KHAI_THUE], [TONG_TIEN_HANG_KHONG_CHIU_THUE], [TONG_TIEN_HANG_0], [TONG_TIEN_HANG_5], [TONG_TIEN_HANG_10], [TONG_TIEN_HANG], [TONG_THANH_TOAN], [TONG_THANH_TOAN_BANG_CHU], [TONG_TIEN_THUE_5_DC], [TONG_TIEN_THUE_10_DC], [TONG_TIEN_THUE_DC], [TONG_TIEN_HANG_KHONG_KHAI_THUE_DC], [TONG_TIEN_HANG_KHONG_CHIU_THUE_DC], [TONG_TIEN_HANG_0_DC], [TONG_TIEN_HANG_5_DC], [TONG_TIEN_HANG_10_DC], [TONG_TIEN_HANG_DC], [TONG_THANH_TOAN_DC], [TONG_THANH_TOAN_BANG_CHU_DC], [IS_DONG_HANG], [MAU_SO_DC], [KY_HIEU_DC], [SO_HOA_DON_DC], [NGAY_HOA_DON_DC], [LOAI_DIEU_CHINH], [NOI_DUNG_XML_KH], [KHACH_HANG_KY], [NGAY_KHACH_HANG_KY], [IS_SENDEMAIL], [IS_ACCEPTEMAIL], [BEN_MUA_EMAIL], [TONG_VAT5_DC], [TONG_VAT_DC], [MA_LOAI_HOA_DON], [BEN_MUA_NGUOI_DAI_DIEN_DV]) VALUES (CAST(43 AS Decimal(23, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000011', NULL, NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội', N'024.37545222', N'Nguyễn Văn A', NULL, N'1', N'0106840873', N'CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM', N'Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội', N'0989657483', N'Trần Văn Minh', N'', NULL, N'01GTKT0/001', N'AA/19E', CAST(N'2019-06-02T00:00:00.000' AS DateTime), N'0000075', NULL, NULL, N'a', N'DC', NULL, 1, NULL, CAST(N'2019-06-02T18:21:44.863' AS DateTime), NULL, NULL, NULL, NULL, CAST(116550.00 AS Numeric(18, 2)), N'', N'c', N'c', NULL, NULL, NULL, NULL, NULL, N'<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1"><inv:invoiceData id="data"> <inv:sellerAppRecordId /><inv:invoiceAppRecordId>3459</inv:invoiceAppRecordId><inv:templateCode>01GTKT0/001</inv:templateCode><inv:invoiceSeries>AA/19E</inv:invoiceSeries><inv:invoiceNumber>0000075</inv:invoiceNumber>  <inv:payments> <inv:payment> </inv:payment> </inv:payments><inv:invoiceName>BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN</inv:invoiceName><inv:invoiceDate>Hôm nay, ngày 02 tháng 06 năm 2019 chúng tôi gồm có:</inv:invoiceDate><inv:currencyCode>VND</inv:currencyCode><inv:adjustmentType>1</inv:adjustmentType><inv:sellerLegalName>Công ty TNHH Phát triển Công nghệ Thái Sơn</inv:sellerLegalName><inv:sellerTaxCode>0101300842-999</inv:sellerTaxCode> <inv:sellerAddressLine>Số 11, Đặng Thùy Trâm, Cầu Giấy, Hà Nội</inv:sellerAddressLine><inv:sellerPhoneNumber>024.37545222</inv:sellerPhoneNumber><inv:CHUC_VU_BB></inv:CHUC_VU_BB><inv:invoiceIssuedDate>02/06/2019</inv:invoiceIssuedDate><inv:NGUOI_BAN>Nguyễn Văn A</inv:NGUOI_BAN><inv:sellerEmail></inv:sellerEmail><inv:sellerBankName> </inv:sellerBankName> <inv:sellerBankAccount> </inv:sellerBankAccount> <inv:buyerDisplayName>Trần Văn Minh</inv:buyerDisplayName> <inv:buyerLegalName>CÔNG TY CỔ PHẦN THƯƠNG MẠI VÀ DỊCH VỤ SBO VIỆT NAM</inv:buyerLegalName> <inv:buyerTaxCode>0106840873</inv:buyerTaxCode> <inv:buyerAddressLine>Số 11, nhà H9, TT trường ĐHSP Hà Nội, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội</inv:buyerAddressLine> <inv:buyerPhoneNumber>0989657483</inv:buyerPhoneNumber> <inv:CHUC_VU_BM></inv:CHUC_VU_BM> <inv:invoiceNote>a</inv:invoiceNote> <inv:buyerBankName></inv:buyerBankName> <inv:buyerBankAccount></inv:buyerBankAccount><inv:items><inv:item><inv:lineNumber>1</inv:lineNumber><inv:itemName></inv:itemName></inv:item></inv:items><inv:totalAmountWithVAT>116550</inv:totalAmountWithVAT><inv:TruocGhi>c</inv:TruocGhi><inv:SauGhi>c</inv:SauGhi> </inv:invoiceData><Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>WVG6dlqO5vJx5XtrA4IutaQw/PU=</DigestValue></Reference></SignedInfo><SignatureValue>Ai+Zlhvxmc2NyJRl8Lo6NhqPo9aLhM0d4oER3ynS+pSBNkWL3+MSZdx0zBEoDK4zTLLbtg6KoDwZG9x2S5NTySzgB+purq2n8Ie8wUz35uQqi24ibvVC/gWfE7/4lFvYFx1HcBa6KydqKJe64bJ1Lty+3yNId9azkZZRo/N812A=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHITCCBgmgAwIBAgIQVAK8XKzOZpwgFQAAAAOJGDANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE5MDMxMzAzMTQ1NloXDTE5MDYxMjAzMTQ1NlowggE2MQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEWMBQGA1UECwwNQ8OzIEJIIC0gVGVzdDE8MDoGA1UEAwwzQ8O0bmcgdHkgVE5ISCBQaMOhdCBUcmnhu4NuIEPDtG5nIE5naOG7hyBUaMOhaSBTxqFuMSAwHgYJKoZIhvcNAQkBFhFob2Fkb25AdGhhaXNvbi52bjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkiNfTRoB7lyNQmpeAXpuuLXhygVj/RHe5lhMo1feYe6CByLnH9I7lx1YUpja8Xb3qBeXdpPxb5+SKGWh9oYJfVZH6lBkx5SfHkWHqnLmUCmMkMv5cLx4EtVNalFqYWzO/aptYqZncQyAn/AbT06VhLvX1kyy3BiNbyeHybQicd0CAwEAAaOCA64wggOqMA4GA1UdDwEB/wQEAwIF4DA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFj88QgYOfI4e5hTKHisJQp/9/gXuFn4E3hNuIAAIBZAIBBDCBlAYJKoZIhvcNAQkPBIGGMIGDMA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQMEARYwCwYJYIZIAWUDBAEZMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwHQYDVR0OBBYEFJwRZySmGdCmcdyRvVHB9FtXgpEPMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAAk2mb5+ks/c6eAhUszA7C/0q8Za4v5AKtQEqNU1YA2no11oU+NbmfA/JRcesvV/doB9JlIu4Dpdkk9A9FvM+ZozQ0AhNqeWvcRtfGSc+RPXbxXT31yDdFS7uW9jAGB7Aurp2HWjWJKdEGkifeurpsTDgo7n0Xe+iWnIeSuwmLS2XbrImTw693vB6r386F6kXGp5dkzgGEpB5CLRn6X8ZgLDKEzTxEQJtkvhDC3VtHCUf20eYqgrZoLRUjrljjscLFVyt/ZRldnyfLdT9DiAJBnoyuHegUiimk87enhLnjtXbXHHLgEdtjoDT/ybMspDxM6CuR5zzpssG2JG6QaY36c=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[DHOADON_BIENBAN] OFF
GO
SET IDENTITY_INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ON 

INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (1, N'0101300842', N'EXT_VARCHAR2', 1, 4, N'Số vận đơn', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (2, N'0101300842', N'EXT_DATE1', 2, 3, N'Ngày abc', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (4, N'0100777512', N'Ten_don_vi_nhan_hang', 1, 3, N'Tên đơn vị nhận hàng', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (7, N'0101766545', N'ABC', 1, 4, N'abc', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (8, N'0106039092', N'SO_LUONG_VAN_DON', 1, 2, N'Số vận đơn', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (9, N'0106039092', N'THOI_HAN_THANH_TOAN', 2, 3, N'Thời hạn thanh toán', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (10, N'2300771159', N'MA_GIA', 1, 4, N'Mã giá', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (11, N'2300771159', N'LO', 2, 4, N'Lô', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (12, N'2300771159', N'SO_CONG_TO', 3, 4, N'Số công tơ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (13, N'2300771159', N'MA_TRAM', 4, 4, N'Mã trạm', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (14, N'2300771159', N'CAP_DA', 5, 4, N'Cấp ĐA', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (15, N'2300771159', N'MA_DIEM_DO', 6, 4, N'Mã điểm đo', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (16, N'0100971460', N'BG_SO', 1, 4, N'Số báo giá', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (17, N'0106039092', N'SO_TIEN_QUA_HAN_TT', 3, 4, N'Tiền quá hạn', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (18, N'0312721085', N'DIA_CHI_GIAO_HANG', 1, 4, N'Địa chỉ giao hàng', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (19, N'0305024358', N'SO_MASTER', 1, 4, N'Số Master', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (20, N'0305024358', N'SO_BILL', 2, 4, N'Số_Bill', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (22, N'1101273830', N'SO_DO', 1, 1, N'So DO', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (23, N'1101273830', N'SO_HOP_DONG', 2, 1, N'Số hợp đồng', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (24, N'1101273830', N'NGAY_HOP_DONG', 3, 3, N'Ngày hợp đồng', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (25, N'0304789298', N'DBO', 1, 4, N'SDB (DBO)', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (26, N'0304789298', N'MLT', 2, 4, N'MLT (“NB” + DOT + CUON_GCS + CUON_STT )', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (27, N'0304789298', N'SHD', 3, 4, N'Số hợp đồng', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (28, N'0304789298', N'MGB', 4, 4, N'MGB', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (29, N'0304789298', N'DMKH', 5, 4, N'DMKH (TGDM)', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (30, N'0304789298', N'MTT', 6, 4, N'MTT (code)', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (31, N'0304789298', N'CSM', 7, 4, N'Chỉ số mới', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (32, N'0304789298', N'CSC', 8, 4, N'Chỉ số cũ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (33, N'0304789298', N'TT', 9, 4, N'Tiêu thụ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (37, N'0304789298', N'KY', 13, 4, N'Kỳ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (38, N'0304789298', N'DAU_KY', 14, 4, N'Đầu kỳ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (39, N'0304789298', N'CUOI_KY', 15, 4, N'Cuối kỳ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (40, N'0311928129', N'JOB_NO', 1, 4, N'ABC', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (41, N'1101273830', N'A_B', 4, 1, N'êrer', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (48, N'0301129247', N'NGAY_INPUT', 1, 3, N'NGAY_INPUT', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (49, N'0301129247', N'SO_INPUT', 2, 2, N'SO_INPUT', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (50, N'0301129247', N'TEXT_INPUT', 3, 4, N'TEXT_IMPUT', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (51, N'0303072476', N'CHUNG_TU_THANH_TOAN_SO', 1, 4, N'chung tu', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (52, N'0303072476', N'SO_BILL', 2, 4, N'Số  bill', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (53, N'0100774617', N'SO_BILL', 1, 4, N'SO_BILL', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (54, N'0307933662', N'CHI_SO_MOI', 1, 5, N'Chỉ số mới', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (55, N'0307933662', N'CHI_SO_CU', 2, 5, N'Chỉ Số cũ', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (58, N'1800156801', N'TIEU_CHI_MO_RONG', 1, 4, N'Tiêu chí mở rộng', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (59, N'1800156801', N'NGAY_HET_HAN', 2, 3, N'Ngày hết hạn', NULL, NULL, NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (90, N'0100773885', N'EXT_INT1', 1, 2, N'SO_BILL', N'SO_BILL', N'HOADON', NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (91, N'0100773885', N'EXT_INT2', 2, 2, N'NGAY_BILL', N'NGAY_BILL', N'HOADON', NULL)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (122, N'0101300842-999', N'EXT_TEXT1', 1, 1, N'Note', NULL, NULL, 1)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (123, N'0101300842-999', N'EXT_TEXT2', 2, 1, N'Ghi chú3', NULL, NULL, 1)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (124, N'0101300842-999', N'EXT_DATE1', 3, 3, N'Ngày hóa đơn', NULL, NULL, 1)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (125, N'0101300842-999', N'EXT_INT1', 4, 2, N'Số lượng tổng mặt hàng', NULL, NULL, 1)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (126, N'0101300842-999', N'EXT_INT2', 5, 2, N'Số lượng tổng mặt hàng', NULL, NULL, 1)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (127, N'0101300842-999', N'EXT_INT3', NULL, 2, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (128, N'0101300842-999', N'EXT_INT4', NULL, 2, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (129, N'0101300842-999', N'EXT_INT5', NULL, 2, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (130, N'0101300842-999', N'EXT_DATE2', NULL, 3, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (131, N'0101300842-999', N'EXT_DATE3', NULL, 3, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (132, N'0101300842-999', N'EXT_DATE4', NULL, 3, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (133, N'0101300842-999', N'EXT_DATE5', NULL, 3, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (134, N'0101300842-999', N'EXT_VARCHAR1', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (135, N'0101300842-999', N'EXT_VARCHAR2', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (136, N'0101300842-999', N'EXT_VARCHAR3', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (137, N'0101300842-999', N'EXT_VARCHAR4', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (138, N'0101300842-999', N'EXT_VARCHAR5', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (139, N'0101300842-999', N'EXT_VARCHAR6', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (140, N'0101300842-999', N'EXT_VARCHAR7', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (141, N'0101300842-999', N'EXT_VARCHAR8', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (142, N'0101300842-999', N'EXT_VARCHAR9', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (143, N'0101300842-999', N'EXT_VARCHAR10', NULL, 4, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (144, N'0101300842-999', N'EXT_NUMBER1', NULL, 5, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (145, N'0101300842-999', N'EXT_NUMBER2', NULL, 5, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (146, N'0101300842-999', N'EXT_NUMBER3', NULL, 5, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (147, N'0101300842-999', N'EXT_NUMBER4', NULL, 5, NULL, NULL, NULL, 0)
INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] ([DHOADON_EXTENSION_CAUHINHID], [MA_DV], [MA_TIEU_CHI], [STT], [KIEU_DU_LIEU], [TEN_TIEU_CHI], [TEN_THE_XML], [LOAI_BANG], [IS_SU_DUNG]) VALUES (148, N'0101300842-999', N'EXT_NUMBER5', NULL, 5, NULL, NULL, NULL, 0)
SET IDENTITY_INSERT [dbo].[DHOADON_EXTENSION_CAUHINH] OFF
GO
SET IDENTITY_INSERT [dbo].[DHOADON_HANG_DONG_BO] ON 

INSERT [dbo].[DHOADON_HANG_DONG_BO] ([DHOADON_HANG_DONG_BOID], [DHOADON_DONG_BOID], [DHANGHOAID], [STT], [TEN_HANG], [MA_DVT], [SO_LUONG], [SO_LUONG_NHAP], [DON_GIA], [CHIET_KHAU_PHAN_TRAM], [CHIET_KHAU_TIEN], [THANH_TIEN], [GHI_CHU], [VAT], [VAT_TIEN], [MA_HANG], [DON_GIA_NT], [THANH_TIEN_NT], [DHOADON_HANGIDTempt], [SO_LO], [HAN_DUNG], [IS_TINH_THUE], [SO_VE], [HANH_TRINH], [IS_GIAM_TRU], [CHIET_KHAU_TIEN_NT], [MA_KHO], [SO_LUONG_DN], [SO_DON_HANG], [TEN_HANG_HANG_KHONG], [SO_LUONG_PSC], [SO_LUONG_BDL], [DINH_MUC_PSC], [GUID_DHOADON_HANG_DONG_BO], [IS_DIEU_CHINH], [SO_LUONG_GOC], [DON_GIA_GOC], [THANH_TIEN_GOC], [VAT_TIEN_GOC], [VAT_GOC], [DON_GIA_NT_GOC], [THANH_TIEN_NT_GOC], [MA_NHOM], [TEN_NHOM], [MA_DOI_TUONG], [TEN_DOI_TUONG], [VI_TRI], [DHOADONID], [GUID_DHOADON], [TRANG_THAI_DONG_BO], [GHI_CHU_DONG_BO], [VINPOINT_THANH_TIEN], [VINPOINT_VAT_TIEN], [VINPOINT_TIEN_THANH_TOAN], [NOI_DUNG_TEMP]) VALUES (CAST(1 AS Numeric(10, 0)), CAST(1 AS Numeric(18, 0)), NULL, CAST(1 AS Numeric(18, 0)), N'Dịch vụ ăn uống', NULL, NULL, NULL, NULL, NULL, NULL, CAST(1426000.00000000 AS Numeric(23, 8)), NULL, CAST(10.00000000 AS Numeric(23, 8)), CAST(142600.00000000 AS Numeric(23, 8)), NULL, NULL, CAST(1426000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(12191 AS Numeric(18, 0)), N'a350e91d-07da-4b7e-b0b9-d6c749f30421', NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_HANG_DONG_BO] ([DHOADON_HANG_DONG_BOID], [DHOADON_DONG_BOID], [DHANGHOAID], [STT], [TEN_HANG], [MA_DVT], [SO_LUONG], [SO_LUONG_NHAP], [DON_GIA], [CHIET_KHAU_PHAN_TRAM], [CHIET_KHAU_TIEN], [THANH_TIEN], [GHI_CHU], [VAT], [VAT_TIEN], [MA_HANG], [DON_GIA_NT], [THANH_TIEN_NT], [DHOADON_HANGIDTempt], [SO_LO], [HAN_DUNG], [IS_TINH_THUE], [SO_VE], [HANH_TRINH], [IS_GIAM_TRU], [CHIET_KHAU_TIEN_NT], [MA_KHO], [SO_LUONG_DN], [SO_DON_HANG], [TEN_HANG_HANG_KHONG], [SO_LUONG_PSC], [SO_LUONG_BDL], [DINH_MUC_PSC], [GUID_DHOADON_HANG_DONG_BO], [IS_DIEU_CHINH], [SO_LUONG_GOC], [DON_GIA_GOC], [THANH_TIEN_GOC], [VAT_TIEN_GOC], [VAT_GOC], [DON_GIA_NT_GOC], [THANH_TIEN_NT_GOC], [MA_NHOM], [TEN_NHOM], [MA_DOI_TUONG], [TEN_DOI_TUONG], [VI_TRI], [DHOADONID], [GUID_DHOADON], [TRANG_THAI_DONG_BO], [GHI_CHU_DONG_BO], [VINPOINT_THANH_TIEN], [VINPOINT_VAT_TIEN], [VINPOINT_TIEN_THANH_TOAN], [NOI_DUNG_TEMP]) VALUES (CAST(2 AS Numeric(10, 0)), CAST(2 AS Numeric(18, 0)), NULL, CAST(1 AS Numeric(18, 0)), N'Dịch vụ ăn uống', NULL, NULL, NULL, NULL, NULL, NULL, CAST(1426000.00000000 AS Numeric(23, 8)), NULL, CAST(10.00000000 AS Numeric(23, 8)), CAST(142600.00000000 AS Numeric(23, 8)), NULL, NULL, CAST(1426000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(12240 AS Numeric(18, 0)), N'5a991a81-5c54-4b8e-8f2a-c81320f6c733', NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DHOADON_HANG_DONG_BO] ([DHOADON_HANG_DONG_BOID], [DHOADON_DONG_BOID], [DHANGHOAID], [STT], [TEN_HANG], [MA_DVT], [SO_LUONG], [SO_LUONG_NHAP], [DON_GIA], [CHIET_KHAU_PHAN_TRAM], [CHIET_KHAU_TIEN], [THANH_TIEN], [GHI_CHU], [VAT], [VAT_TIEN], [MA_HANG], [DON_GIA_NT], [THANH_TIEN_NT], [DHOADON_HANGIDTempt], [SO_LO], [HAN_DUNG], [IS_TINH_THUE], [SO_VE], [HANH_TRINH], [IS_GIAM_TRU], [CHIET_KHAU_TIEN_NT], [MA_KHO], [SO_LUONG_DN], [SO_DON_HANG], [TEN_HANG_HANG_KHONG], [SO_LUONG_PSC], [SO_LUONG_BDL], [DINH_MUC_PSC], [GUID_DHOADON_HANG_DONG_BO], [IS_DIEU_CHINH], [SO_LUONG_GOC], [DON_GIA_GOC], [THANH_TIEN_GOC], [VAT_TIEN_GOC], [VAT_GOC], [DON_GIA_NT_GOC], [THANH_TIEN_NT_GOC], [MA_NHOM], [TEN_NHOM], [MA_DOI_TUONG], [TEN_DOI_TUONG], [VI_TRI], [DHOADONID], [GUID_DHOADON], [TRANG_THAI_DONG_BO], [GHI_CHU_DONG_BO], [VINPOINT_THANH_TIEN], [VINPOINT_VAT_TIEN], [VINPOINT_TIEN_THANH_TOAN], [NOI_DUNG_TEMP]) VALUES (CAST(3 AS Numeric(10, 0)), CAST(3 AS Numeric(18, 0)), NULL, CAST(1 AS Numeric(18, 0)), N'Dịch vụ ăn uống', NULL, NULL, NULL, NULL, NULL, NULL, CAST(876000.00000000 AS Numeric(23, 8)), NULL, CAST(10.00000000 AS Numeric(23, 8)), CAST(87600.00000000 AS Numeric(23, 8)), NULL, NULL, CAST(876000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(12254 AS Numeric(18, 0)), N'43422cef-2ee3-41cc-a02f-46af40d70336', NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[DHOADON_HANG_DONG_BO] OFF
GO
SET IDENTITY_INSERT [dbo].[DHOPDONG_DOITAC] ON 

INSERT [dbo].[DHOPDONG_DOITAC] ([DHOPDONG_DOITACID], [SO_HOP_DONG], [NGAY_HOP_DONG], [THOI_HAN_THANH_TOAN], [MA_KH], [NGAY_HET_HAN], [NOI_DUNG_TOM_TAT], [GHI_CHU], [MA_SO_THUE], [SO_TAI_KHOAN], [TEN_NGAN_HANG], [CHIET_KHAU], [TIEN_CHIET_KHAU], [HIEN_THI], [MA_DV_SD]) VALUES (CAST(2 AS Numeric(18, 0)), N'3', CAST(N'2017-08-25T00:00:00.000' AS DateTime), N'1', N'4545', CAST(N'2017-08-17T00:00:00.000' AS DateTime), N'4', NULL, N'5454', N'2', N'3', NULL, NULL, 1, N'0100774617')
SET IDENTITY_INSERT [dbo].[DHOPDONG_DOITAC] OFF
GO
SET IDENTITY_INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ON 

INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (1, 18, NULL, N'DHOADONID', N'DHOADONID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (2, 18, NULL, N'DPHATHANH_HOADONID', N'DPHATHANH_HOADONID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (3, 18, NULL, N'DPHATHANH_KHOITAOID', N'DPHATHANH_KHOITAOID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (4, 18, NULL, N'MA_LOAI_HOA_DON', N'MA_LOAI_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (5, 18, NULL, N'SO_HOA_DON', N'SO_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (6, 18, NULL, N'KY_HIEU', N'KY_HIEU', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (7, 18, NULL, N'MAU_SO', N'MAU_SO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (8, 18, NULL, N'NGAY_HOA_DON', N'NGAY_HOA_DON', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (9, 18, NULL, N'BEN_BAN_TEN_DV', N'BEN_BAN_TEN_DV', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (10, 18, NULL, N'BEN_BAN_MA_DV', N'BEN_BAN_MA_DV', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (11, 18, NULL, N'BEN_BAN_DIA_CHI', N'BEN_BAN_DIA_CHI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (12, 18, NULL, N'BEN_BAN_DIEN_THOAI', N'BEN_BAN_DIEN_THOAI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (13, 18, NULL, N'BEN_BAN_FAX', N'BEN_BAN_FAX', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (14, 18, NULL, N'BEN_BAN_NGAN_HANG_TAI_KHOAN', N'BEN_BAN_NGAN_HANG_TAI_KHOAN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (15, 18, NULL, N'BEN_BAN_NGAN_HANG_TEN', N'BEN_BAN_NGAN_HANG_TEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (16, 18, NULL, N'BEN_MUA_HO_TEN', N'BEN_MUA_HO_TEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (17, 18, NULL, N'BEN_MUA_TEN_DV', N'BEN_MUA_TEN_DV', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (18, 18, NULL, N'BEN_MUA_MA', N'BEN_MUA_MA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (19, 18, NULL, N'BEN_MUA_MA_DV', N'BEN_MUA_MA_DV', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (20, 18, NULL, N'BEN_MUA_DIA_CHI', N'BEN_MUA_DIA_CHI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (21, 18, NULL, N'BEN_MUA_DIEN_THOAI', N'BEN_MUA_DIEN_THOAI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (22, 18, NULL, N'BEN_MUA_FAX', N'BEN_MUA_FAX', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (23, 18, NULL, N'MA_HINHTHUCTT', N'MA_HINHTHUCTT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (24, 18, NULL, N'BEN_MUA_NGAN_HANG_TAI_KHOAN', N'BEN_MUA_NGAN_HANG_TAI_KHOAN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (25, 18, NULL, N'BEN_MUA_NGAN_HANG_TEN', N'BEN_MUA_NGAN_HANG_TEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (26, 18, NULL, N'TONG_TIEN_HANG', N'TONG_TIEN_HANG', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (27, 18, NULL, N'TONG_TIEN_HANG_NT', N'TONG_TIEN_HANG_NT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (28, 18, NULL, N'VAT', N'VAT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (29, 18, NULL, N'TONG_VAT', N'TONG_VAT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (30, 18, NULL, N'TONG_THANH_TOAN', N'TONG_THANH_TOAN', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (31, 18, NULL, N'TONG_THANH_TOAN_NT', N'TONG_THANH_TOAN_NT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (32, 18, NULL, N'TONG_THANH_TOAN_BANG_CHU', N'TONG_THANH_TOAN_BANG_CHU', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (33, 18, NULL, N'TONG_THANH_TOAN_BANG_CHU_NT', N'TONG_THANH_TOAN_BANG_CHU_NT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (34, 18, NULL, N'MA_NT', N'MA_NT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (35, 18, NULL, N'TY_GIA', N'TY_GIA', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (36, 18, NULL, N'GHI_CHU', N'GHI_CHU', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (37, 18, NULL, N'NGAY_TAO', N'NGAY_TAO', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (38, 18, NULL, N'NGAY_SUA', N'NGAY_SUA', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (39, 18, NULL, N'NGAY_IN', N'NGAY_IN', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (40, 18, NULL, N'NGAY_IN_BANG_KE', N'NGAY_IN_BANG_KE', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (41, 18, NULL, N'NGUOI_TAO', N'NGUOI_TAO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (42, 18, NULL, N'NGUOI_SUA', N'NGUOI_SUA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (43, 18, NULL, N'HINH_THUC_IN', N'HINH_THUC_IN', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (44, 18, NULL, N'THONG_BAO_BANG_KE', N'THONG_BAO_BANG_KE', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (45, 18, NULL, N'THUE_VAT', N'THUE_VAT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (46, 18, NULL, N'TONG_CHIET_KHAU', N'TONG_CHIET_KHAU', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (47, 18, NULL, N'CHIET_KHAU', N'CHIET_KHAU', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (48, 18, NULL, N'MA_BAO_MAT', N'MA_BAO_MAT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (49, 18, NULL, N'MA_BAO_MAT1', N'MA_BAO_MAT1', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (50, 18, NULL, N'BAN_IN', N'BAN_IN', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (51, 18, NULL, N'MA_CN', N'MA_CN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (52, 18, NULL, N'IS_CHON', N'IS_CHON', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (53, 18, NULL, N'SO_HOP_DONG', N'SO_HOP_DONG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (54, 18, NULL, N'NGAY_HOP_DONG', N'NGAY_HOP_DONG', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (55, 18, NULL, N'DIA_DIEM_GIAO_HANG', N'DIA_DIEM_GIAO_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (56, 18, NULL, N'DIA_DIEM_NHAN_HANG', N'DIA_DIEM_NHAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (57, 18, NULL, N'SO_VAN_DON', N'SO_VAN_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (58, 18, NULL, N'SO_CONTAINER', N'SO_CONTAINER', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (59, 18, NULL, N'TEN_DON_VI_VAN_CHUYEN', N'TEN_DON_VI_VAN_CHUYEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (60, 18, NULL, N'MA_PHUONG_TIEN_VAN_CHUYEN', N'MA_PHUONG_TIEN_VAN_CHUYEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (61, 18, NULL, N'SO_HOP_DONG_VAN_CHUYEN', N'SO_HOP_DONG_VAN_CHUYEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (62, 18, NULL, N'LENH_DIEU_DONG_SO', N'LENH_DIEU_DONG_SO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (63, 18, NULL, N'LENH_DIEU_DONG_NGAY', N'LENH_DIEU_DONG_NGAY', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (64, 18, NULL, N'LENH_DIEU_DONG_CUA', N'LENH_DIEU_DONG_CUA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (65, 18, NULL, N'LENH_DIEU_DONG_VE_VIEC', N'LENH_DIEU_DONG_VE_VIEC', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (66, 18, NULL, N'HO_TEN_NGUOI_VAN_CHUYEN', N'HO_TEN_NGUOI_VAN_CHUYEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (67, 18, NULL, N'MA_KHO_XUAT', N'MA_KHO_XUAT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (68, 18, NULL, N'MA_KHO_NHAP', N'MA_KHO_NHAP', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (69, 18, NULL, N'CODE_KHO_NHAP', N'CODE_KHO_NHAP', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (70, 18, NULL, N'CODE_KHO_XUAT', N'CODE_KHO_XUAT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (71, 18, NULL, N'NGAY_XUAT_KHO', N'NGAY_XUAT_KHO', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (72, 18, NULL, N'NGAY_NHAP_KHO', N'NGAY_NHAP_KHO', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (73, 18, NULL, N'TRANG_THAI', N'TRANG_THAI', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (74, 18, NULL, N'LY_DO_XU_LY', N'LY_DO_XU_LY', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (75, 18, NULL, N'NGAY_XU_LY', N'NGAY_XU_LY', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (76, 18, NULL, N'DMAU_INID', N'DMAU_INID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (77, 18, NULL, N'PHI_CONG', N'PHI_CONG', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (78, 18, NULL, N'PHI_TRU', N'PHI_TRU', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (79, 18, NULL, N'SO_VE', N'SO_VE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (80, 18, NULL, N'HANH_TRINH', N'HANH_TRINH', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (81, 18, NULL, N'LOAI_HINH_SU_DUNG', N'LOAI_HINH_SU_DUNG', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (82, 18, NULL, N'TYPE_HOADON', N'TYPE_HOADON', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (83, 18, NULL, N'IS_KHONG_CHIU_THUE', N'IS_KHONG_CHIU_THUE', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (84, 18, NULL, N'IS_KHONG_TINH', N'IS_KHONG_TINH', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (85, 18, NULL, N'GHI_CHU_NB', N'GHI_CHU_NB', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (86, 18, NULL, N'TIEP_HOA_DON_TRUOC', N'TIEP_HOA_DON_TRUOC', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (87, 18, NULL, N'IS_TIEP_HOA_DON_TRUOC', N'IS_TIEP_HOA_DON_TRUOC', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (88, 18, NULL, N'TIEP_HOA_DON_SAU', N'TIEP_HOA_DON_SAU', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (89, 18, NULL, N'IS_TIEP_HOA_DON_SAU', N'IS_TIEP_HOA_DON_SAU', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (90, 18, NULL, N'THUE_KHAC', N'THUE_KHAC', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (91, 18, NULL, N'TONG_THUE_KHAC', N'TONG_THUE_KHAC', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (92, 18, NULL, N'PHI_KHAC', N'PHI_KHAC', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (93, 18, NULL, N'TONG_PHI_KHAC', N'TONG_PHI_KHAC', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (94, 18, NULL, N'MA_NT_QD', N'MA_NT_QD', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (95, 18, NULL, N'MA_SO_TK', N'MA_SO_TK', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (96, 18, NULL, N'IS_IMPORT', N'IS_IMPORT', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (97, 18, NULL, N'SO_HOA_DON_IMPORT', N'SO_HOA_DON_IMPORT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (98, 18, NULL, N'THOI_HAN_THANH_TOAN', N'THOI_HAN_THANH_TOAN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (99, 18, NULL, N'THOI_HAN_THANH_TOAN_NGAY', N'THOI_HAN_THANH_TOAN_NGAY', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (100, 18, NULL, N'IS_KHONG_TONG_HOP_01GTGT', N'IS_KHONG_TONG_HOP_01GTGT', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (101, 18, NULL, N'MA_HOA_DON_XK', N'MA_HOA_DON_XK', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (102, 18, NULL, N'PHI_SAN_BAY', N'PHI_SAN_BAY', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (103, 18, NULL, N'TONG_PHI_SAN_BAY', N'TONG_PHI_SAN_BAY', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (104, 18, NULL, N'DIEU_KIEN_GIAO_HANG', N'DIEU_KIEN_GIAO_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (105, 18, NULL, N'DON_VI_NHAN_HANG', N'DON_VI_NHAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (106, 18, NULL, N'DIA_CHI_DON_VI_NHAN_HANG', N'DIA_CHI_DON_VI_NHAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (107, 18, NULL, N'TEN_HANG_HANG_KHONG', N'TEN_HANG_HANG_KHONG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (108, 18, NULL, N'IS_CHI_HOAN', N'IS_CHI_HOAN', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (109, 18, NULL, N'TEN_VE', N'TEN_VE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (110, 18, NULL, N'LOAI_HINH_AP_DUNG', N'LOAI_HINH_AP_DUNG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (111, 18, NULL, N'BIEN_BAN_GIAO_HANG_SO', N'BIEN_BAN_GIAO_HANG_SO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (112, 18, NULL, N'CHUNG_TU_THANH_TOAN_SO', N'CHUNG_TU_THANH_TOAN_SO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (113, 18, NULL, N'CHUNG_TU_THANH_TOAN_NGAY', N'CHUNG_TU_THANH_TOAN_NGAY', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (114, 18, NULL, N'CHUNG_TU_THANH_TOAN_NGAN_HANG', N'CHUNG_TU_THANH_TOAN_NGAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (115, 18, NULL, N'SO_LUONG_VE', N'SO_LUONG_VE', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (116, 18, NULL, N'TU_SO_VE', N'TU_SO_VE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (117, 18, NULL, N'DEN_SO_VE', N'DEN_SO_VE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (118, 18, NULL, N'GIA_TIEN_VE', N'GIA_TIEN_VE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (119, 18, NULL, N'CANG_GIAO_HANG', N'CANG_GIAO_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (120, 18, NULL, N'CANG_NHAN_HANG', N'CANG_NHAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (121, 18, NULL, N'NGAY_TAU_CHAY', N'NGAY_TAU_CHAY', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (122, 18, NULL, N'TEN_TAU', N'TEN_TAU', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (123, 18, NULL, N'VAT5', N'VAT5', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (124, 18, NULL, N'TONG_VAT5', N'TONG_VAT5', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (125, 18, NULL, N'IS_EXPORT', N'IS_EXPORT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (126, 18, NULL, N'IS_DA_TT', N'IS_DA_TT', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (127, 18, NULL, N'HINH_THUC_TT', N'HINH_THUC_TT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (128, 18, NULL, N'IS_VE_THANG', N'IS_VE_THANG', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (129, 18, NULL, N'IN_VE_THANG', N'IN_VE_THANG', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (130, 18, NULL, N'IN_VE_NAM', N'IN_VE_NAM', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (131, 18, NULL, N'NGAY_TT', N'NGAY_TT', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (132, 18, NULL, N'SO_PHIEU_TT', N'SO_PHIEU_TT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (133, 18, NULL, N'TONG_DA_THANH_TOAN', N'TONG_DA_THANH_TOAN', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (134, 18, NULL, N'DHOADONID_IMPORT', N'DHOADONID_IMPORT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (135, 18, NULL, N'HOP_DONG_TYPE', N'HOP_DONG_TYPE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (136, 18, NULL, N'IS_DA_DONG_BO', N'IS_DA_DONG_BO', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (137, 18, NULL, N'DIA_CHI_GUI_HOA_DON', N'DIA_CHI_GUI_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (138, 18, NULL, N'NGUOI_LIEN_HE_GUI_HOA_DON', N'NGUOI_LIEN_HE_GUI_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (139, 18, NULL, N'DIEN_THOAI_GUI_HOA_DON', N'DIEN_THOAI_GUI_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (140, 18, NULL, N'EMAIL_GUI_HOA_DON', N'EMAIL_GUI_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (141, 18, NULL, N'TONG_VAT_NT', N'TONG_VAT_NT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (142, 18, NULL, N'TONG_VAT_NT5', N'TONG_VAT_NT5', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (143, 18, NULL, N'TONG_CHIET_KHAU_NT', N'TONG_CHIET_KHAU_NT', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (144, 18, NULL, N'DIEN_THOAI_NHAN_HANG', N'DIEN_THOAI_NHAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (145, 18, NULL, N'FAX_NHAN_HANG', N'FAX_NHAN_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (146, 18, NULL, N'GHI_CHU_GIAO_HANG', N'GHI_CHU_GIAO_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (147, 18, NULL, N'RESCODE', N'RESCODE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (148, 18, NULL, N'RECEITP', N'RECEITP', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (149, 18, NULL, N'RESCODE_REF', N'RESCODE_REF', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (150, 18, NULL, N'CHECK_NO', N'CHECK_NO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (151, 18, NULL, N'IS_NO_HD', N'IS_NO_HD', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (152, 18, NULL, N'IS_TACH_HD', N'IS_TACH_HD', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (153, 18, NULL, N'TACH_HDID', N'TACH_HDID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (154, 18, NULL, N'TACH_HD_STT', N'TACH_HD_STT', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (155, 18, NULL, N'IS_GOP_HD', N'IS_GOP_HD', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (156, 18, NULL, N'IS_KHACH_LE', N'IS_KHACH_LE', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (157, 18, NULL, N'NGUOI_IN', N'NGUOI_IN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (158, 18, NULL, N'CASHIER', N'CASHIER', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (159, 18, NULL, N'GUID_DPHATHANH_KHOITAO', N'GUID_DPHATHANH_KHOITAO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (160, 18, NULL, N'GUID_DPHATHANH_HOADON', N'GUID_DPHATHANH_HOADON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (161, 18, NULL, N'GUID_DHOADON', N'GUID_DHOADON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (162, 18, NULL, N'BEN_MUA_EMAIL', N'BEN_MUA_EMAIL', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (163, 18, NULL, N'TRAN_STATUS', N'TRAN_STATUS', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (164, 18, NULL, N'REPLY_STATUS', N'REPLY_STATUS', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (165, 18, NULL, N'TEN_CN', N'TEN_CN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (166, 18, NULL, N'COUNTGET', N'COUNTGET', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (167, 18, NULL, N'COUNTPOST', N'COUNTPOST', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (168, 18, NULL, N'SRV_ERROR', N'SRV_ERROR', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (169, 18, NULL, N'DATEGET', N'DATEGET', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (170, 18, NULL, N'PRE_DHOADONID', N'PRE_DHOADONID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (171, 18, NULL, N'IS_HOADON_DIEN_TU', N'IS_HOADON_DIEN_TU', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (172, 18, NULL, N'IS_XUAT_TU_DONG', N'IS_XUAT_TU_DONG', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (173, 18, NULL, N'NGAY_YC_XUAT_TU_DONG', N'NGAY_YC_XUAT_TU_DONG', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (174, 18, NULL, N'NGUOI_YC_XUAT_TU_DONG', N'NGUOI_YC_XUAT_TU_DONG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (175, 18, NULL, N'NGAY_XUAT_HOA_DON_TU_DONG', N'NGAY_XUAT_HOA_DON_TU_DONG', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (176, 18, NULL, N'LOI', N'LOI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (177, 18, NULL, N'MA_NHAN_HOA_DON', N'MA_NHAN_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (178, 18, NULL, N'QUYEN_SO', N'QUYEN_SO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (179, 18, NULL, N'SO_BIEN_LAI', N'SO_BIEN_LAI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (180, 18, NULL, N'NGUOI_THU', N'NGUOI_THU', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (181, 18, NULL, N'DHOADON_IMPORT_XMLID', N'DHOADON_IMPORT_XMLID', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (182, 18, NULL, N'NGAY_IN_HD_CHUYEN_DOI', N'NGAY_IN_HD_CHUYEN_DOI', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (183, 18, NULL, N'LAN_IN', N'LAN_IN', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (184, 18, NULL, N'TAM_UNG', N'TAM_UNG', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (185, 18, NULL, N'NOI_XUAT_HOA_DON', N'NOI_XUAT_HOA_DON', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (186, 18, NULL, N'SO_HOA_DON_MISA', N'SO_HOA_DON_MISA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (187, 18, NULL, N'NGAY_HOA_DON_MISA', N'NGAY_HOA_DON_MISA', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (188, 18, NULL, N'ERROR_LOG_MISA', N'ERROR_LOG_MISA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (189, 18, NULL, N'CONVERT_MISA', N'CONVERT_MISA', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (190, 18, NULL, N'MAU_SO_MISA', N'MAU_SO_MISA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (191, 18, NULL, N'KY_HIEU_MISA', N'KY_HIEU_MISA', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (192, 18, NULL, N'SO_DON_HANG', N'SO_DON_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (193, 18, NULL, N'NGAY_NHAN_DON_HANG', N'NGAY_NHAN_DON_HANG', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (194, 18, NULL, N'SO_LINE_HANG', N'SO_LINE_HANG', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (195, 18, NULL, N'NGAY_GIAO_HANG', N'NGAY_GIAO_HANG', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (196, 18, NULL, N'THONG_TIN_GIAO_HANG', N'THONG_TIN_GIAO_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (197, 18, NULL, N'MA_PICKING', N'MA_PICKING', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (198, 18, NULL, N'CA_LAM_VIEC', N'CA_LAM_VIEC', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (199, 18, NULL, N'TIEN_COUPON', N'TIEN_COUPON', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (200, 18, NULL, N'IS_DONG_BO_WEBSITE', N'IS_DONG_BO_WEBSITE', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (201, 18, NULL, N'IS_DONG_BO_SERVER', N'IS_DONG_BO_SERVER', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (202, 18, NULL, N'SELLER_IS_SIGN', N'SELLER_IS_SIGN', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (203, 18, NULL, N'BUYER_IS_SIGN', N'BUYER_IS_SIGN', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (204, 18, NULL, N'KY_HOC', N'KY_HOC', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (205, 18, NULL, N'NAM_HOC', N'NAM_HOC', NULL, N'System.Decimal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (206, 18, NULL, N'NHOM_DOI_TUONG', N'NHOM_DOI_TUONG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (207, 18, NULL, N'LOP_HOC', N'LOP_HOC', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (208, 18, NULL, N'TRANG_THAI_THANH_TOAN', N'TRANG_THAI_THANH_TOAN', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (209, 18, NULL, N'BIEN_SO_XE', N'BIEN_SO_XE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (210, 18, NULL, N'NamSinh', N'NamSinh', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (211, 18, NULL, N'NgayNhapVien', N'NgayNhapVien', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (212, 18, NULL, N'MA_GIAO_DICH', N'MA_GIAO_DICH', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (213, 18, NULL, N'TEN_GIAO_DICH', N'TEN_GIAO_DICH', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (214, 18, NULL, N'SO_NHAP_VIEN', N'SO_NHAP_VIEN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (215, 18, NULL, N'BEN_BAN_NGAN_HANG_DIA_CHI', N'BEN_BAN_NGAN_HANG_DIA_CHI', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (216, 18, NULL, N'REF_NO', N'REF_NO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (217, 18, NULL, N'INVOICE_SUBJECT', N'INVOICE_SUBJECT', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (218, 18, NULL, N'SWIFT_CODE', N'SWIFT_CODE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (219, 18, NULL, N'PROJECT_CODE', N'PROJECT_CODE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (220, 18, NULL, N'PAYMENT_TYPE_IN_WORDS', N'PAYMENT_TYPE_IN_WORDS', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (221, 18, NULL, N'PAYMENT_NOTES', N'PAYMENT_NOTES', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (222, 18, NULL, N'APPLICATION_NAME', N'APPLICATION_NAME', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (223, 18, NULL, N'BENEFICIARY_NAME', N'BENEFICIARY_NAME', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (224, 18, NULL, N'INVOICE_SUB_TYPE', N'INVOICE_SUB_TYPE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (225, 18, NULL, N'PAY_TO_TYPE', N'PAY_TO_TYPE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (226, 18, NULL, N'PROJECT_PHONE', N'PROJECT_PHONE', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (227, 18, NULL, N'INVOICE_ID', N'INVOICE_ID', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (228, 18, NULL, N'TRANG_THAI_KIEM_DUYET', N'TRANG_THAI_KIEM_DUYET', NULL, N'System.Int32', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (229, 18, NULL, N'NGAY_DONG_BO', N'NGAY_DONG_BO', NULL, N'System.DateTime', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (230, 18, NULL, N'TRANG_THAI_DONG_BO', N'TRANG_THAI_DONG_BO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (231, 18, NULL, N'GHI_CHU_DONG_BO', N'GHI_CHU_DONG_BO', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (232, 18, NULL, N'BILL_TYPE', N'BILL_TYPE', NULL, N'System.Int16', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (233, 18, NULL, N'LOAI_HANG', N'LOAI_HANG', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (234, 18, NULL, N'MA_THOI_HAN_THANH_TOAN', N'MA_THOI_HAN_THANH_TOAN', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (235, 18, NULL, N'SDTNHANSMS1', N'SDTNHANSMS1', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] ([DIMPORT_CAU_HINH_COLUMNID], [DIMPORT_CAU_HINHID], [STT], [TIEU_DE], [FIELD_NAME], [TEN_THAM_SO], [KIEU_DU_LIEU], [VISIABLE], [SPLIT], [GIA_TRI_H_ALIGN], [GIA_TRI_V_ALIGN], [TIEU_DE_H_ALIGN], [TIEU_DE_V_ALIGN], [FORMAT_TRING], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (236, 18, NULL, N'SDTNHANSMSKHAC', N'SDTNHANSMSKHAC', NULL, N'System.String', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[DIMPORT_CAU_HINH_COLUMN] OFF
GO
SET IDENTITY_INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ON 

INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (1, 1, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (2, 1, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (3, 1, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (4, 1, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (5, 1, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (7, 1, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (8, 1, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (9, 1, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (10, 1, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (11, 1, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (12, 1, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (13, 1, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (52, 2, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (53, 2, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (54, 2, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (55, 2, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (56, 2, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (57, 2, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (58, 2, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (59, 2, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (60, 2, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (61, 2, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (62, 2, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (63, 2, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (64, 3, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (65, 3, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (66, 3, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (67, 3, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (68, 3, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (69, 3, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (70, 3, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (71, 3, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (72, 3, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (73, 3, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (74, 3, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (75, 3, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (77, 4, 2, N'stt_rec', N'', N'Số rec', N'TextBox', N'text', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (80, 4, 5, N'nguoi_gd', N'', N'Người giao dịch', N'TextBox', N'text', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (81, 4, 1, N'stt_rec', N'stt_rec', N'stt_rec', NULL, N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (83, 4, 1, N'stt_rec', N'stt_rec', N'stt_rec', NULL, N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (85, 4, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (86, 4, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (87, 4, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (89, 4, 1, N'ngay_ct', N'', N'Ngày chứng từ', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (90, 4, 3, N'so_ct', N'', N'Số chứng từ', N'TextBox', N'text', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (92, 4, 0, N'ma_ct', N'', N'Loại chứng từ', N'TextBox', N'text', N'', N'', 1, 20, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (93, 5, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (94, 5, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (95, 5, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (96, 5, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (97, 5, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (98, 5, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (99, 5, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (100, 5, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (101, 5, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (102, 5, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (103, 5, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (104, 5, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (105, 6, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (106, 6, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (107, 6, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (108, 6, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (109, 6, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (110, 6, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (111, 6, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (112, 6, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (113, 6, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (114, 6, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (115, 6, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (116, 6, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (117, 7, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (118, 7, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (119, 7, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (120, 7, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (121, 7, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (122, 7, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (123, 7, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (124, 7, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (125, 7, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (129, 7, 0, N'strSoChungTu', N'CHECK_NO', N'strSoChungTu', N'DHOADON', N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (130, 7, 0, N'strSoHoaDon', N'SO_HOA_DON', N'strSoHoaDon', N'DHOADON', N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (131, 7, 0, N'strKyHieuHoaDon', N'KY_HIEU', N'strKyHieuHoaDon', N'DHOADON', N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (132, 7, 0, N'intNam', N'YEAR(NGAY_HOA_DON)', N'intNam', N'DHOADON', N'text', N'', N'2017', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (137, 8, 1, N'From_Posting_Date', N'Posting Date', N'Từ ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (139, 8, 1, N'No', N'No_', N'[No_]', N'TextBox', N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (142, 8, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (143, 8, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (144, 8, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (145, 8, 2, N'To_Posting_Date', N'Posting Date', N'Đến ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (146, 8, 0, N'No_1', N'No_1', N'No_1', NULL, N'decimal', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (147, 9, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (148, 9, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (149, 9, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (150, 9, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (151, 9, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (152, 9, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (153, 9, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (154, 9, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (155, 9, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
GO
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (156, 9, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (157, 9, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (158, 9, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (159, 10, 1, N'MA', N'Bill-to Customer No_', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (160, 10, 2, N'From_Posting_Date', N'Posting Date', N'Từ Ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (161, 10, 3, N'To_Posting_Date', N'Posting Date', N'Đến ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (162, 10, 4, N'SO_DONVI', N'Bill-to Name 2', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (164, 10, 1, N'No_', N'No_', N'So', N'TextBox', N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (166, 10, 1, N'No_', N'No_', N'So', N'TextBox', N'text', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (168, 10, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (169, 10, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (170, 10, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (171, 11, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (172, 11, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (173, 11, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (174, 11, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (175, 11, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (176, 11, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (177, 11, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (178, 11, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (179, 11, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (180, 11, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (181, 11, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (182, 11, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (183, 12, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (184, 12, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (185, 12, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (186, 12, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (187, 12, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (188, 12, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (189, 12, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (190, 12, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (191, 12, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (192, 12, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (193, 12, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (194, 12, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (196, 10, 5, N'MA_USERS', N'Bill-to Name', N'Tên người dùng', N'TextBox', N'text', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (206, 13, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (207, 13, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (209, 14, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (210, 14, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (211, 14, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (212, 14, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (213, 14, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (214, 14, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (215, 14, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (216, 14, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (217, 14, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (218, 14, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (219, 14, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (220, 14, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (225, 15, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (226, 15, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (227, 15, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (228, 15, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (229, 15, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (230, 15, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (231, 15, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (232, 15, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (233, 15, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (234, 15, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (235, 15, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (236, 15, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (241, 13, 0, N'SoHDDT', N'SoHDDT', N'So', N'TextBox', N'int', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (242, 13, 0, N'SoHDDT', N'SoHDDT', N'SoHDDT', N'TextBox', N'int', N'', N'', 1, 0, 0, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (243, 13, 0, N'NgayXuat', N'NgayXuat', N'Tháng Xuất', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (244, 16, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (245, 16, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (246, 16, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (247, 16, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (248, 16, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (249, 16, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (250, 16, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (251, 16, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (252, 16, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (253, 16, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (254, 16, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (255, 16, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (256, 17, 1, N'MA', N'', N'Mã', N'TextBox', N'text', N'', N'', 1, 21, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (257, 17, 2, N'TUNGAY', NULL, N'Từ Ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (258, 17, 3, N'DENNGAY', NULL, N'Đến ngày', N'C1DateEdit', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (259, 17, 4, N'SO_DONVI', N'', N'Đơn vị', N'TextBox', N'int', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (260, 17, 5, N'MA_USERS', NULL, N'Tên người dùng', N'TextBox', N'text', NULL, NULL, 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (261, 17, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (262, 17, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (263, 17, 1, N'SO', N'SO', N'So', NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (264, 17, 1, N'SO_DONVI', N'SO_DONVI', N'', N'TextBox', N'int', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (265, 17, 1, N'SO_HOA_DON', NULL, NULL, N'DHOADON', N'text', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (266, 17, 1, N'RECEITP', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (267, 17, 1, N'CASHIER', NULL, NULL, NULL, N'decimal', NULL, NULL, 1, NULL, NULL, NULL)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (268, 18, 1, N'TuNgay', N'NGAY_HOA_DON', N'Từ ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (269, 18, 2, N'DenNgay', N'NGAY_HOA_DON', N'Đến ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (270, 18, 3, N'MA_DV', N'', N'Mã số thuế', N'TextBox', N'text', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (271, 19, 1, N'TuNgay', N'TuNgay', N'Từ ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (272, 19, 2, N'DenNgay', N'DenNgay', N'Đến ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 22, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (273, 20, 1, N'TuNgay', N'', N'Từ Ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 20, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (274, 20, 2, N'DenNgay', N'', N'Đến ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 20, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (275, 24, 0, N'TuNgay', N'', N'Từ ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 25, 100, 0)
INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] ([DIMPORT_CAU_HINH_THAM_SOID], [DIMPORT_CAU_HINHID], [STT], [MA_THAM_SO], [TEN_TRUONG_DS], [TEN_THAM_SO], [LOAI_CONTROL], [KIEU_DU_LIEU], [CAU_LENH_SQL], [GIA_TRI_MAC_DINH], [LOAI_THAM_SO], [CHIEU_CAO], [CHIEU_RONG], [ISSP]) VALUES (276, 24, 2, N'DenNgay', N'', N'Đến ngày', N'C1DateEdit', N'DateTime', N'', N'', 1, 25, 100, 0)
SET IDENTITY_INSERT [dbo].[DIMPORT_CAU_HINH_THAM_SO] OFF
GO
SET IDENTITY_INSERT [dbo].[DLAM_TRON] ON 

INSERT [dbo].[DLAM_TRON] ([ProfileID], [NguoiDung], [Ten], [GhiChu]) VALUES (CAST(1 AS Numeric(18, 0)), N'root', N'', NULL)
INSERT [dbo].[DLAM_TRON] ([ProfileID], [NguoiDung], [Ten], [GhiChu]) VALUES (CAST(2 AS Numeric(18, 0)), N'sonnt', N'', NULL)
INSERT [dbo].[DLAM_TRON] ([ProfileID], [NguoiDung], [Ten], [GhiChu]) VALUES (CAST(3 AS Numeric(18, 0)), N'qa', N'', NULL)
INSERT [dbo].[DLAM_TRON] ([ProfileID], [NguoiDung], [Ten], [GhiChu]) VALUES (CAST(4 AS Numeric(18, 0)), N'thungan1', N'', NULL)
SET IDENTITY_INSERT [dbo].[DLAM_TRON] OFF
GO
SET IDENTITY_INSERT [dbo].[DLAM_TRON_CHI_TIET] ON 

INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(1 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_LUONG', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(2 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_DON_GIA_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(3 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_DON_GIA_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(4 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_THANH_TIEN_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(5 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_THANH_TIEN_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(6 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_CONG_TIEN_HANG_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(7 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_CONG_TIEN_HANG_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(8 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_CHIET_KHAU_NT', N'1')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(9 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_CHIET_KHAU_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(10 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_GTGT_NT', N'1')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(11 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_GTGT_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(12 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TONG_THANH_TOAN_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(13 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TONG_THANH_TOAN_NT', N'1')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(14 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(15 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(16 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_10_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(17 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_10_NT', N'1')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(18 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_LUONG', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(19 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_DON_GIA_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(20 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_DON_GIA_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(21 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_THANH_TIEN_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(22 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_THANH_TIEN_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(23 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_CONG_TIEN_HANG_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(24 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_CONG_TIEN_HANG_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(25 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_CHIET_KHAU_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(26 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_CHIET_KHAU_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(27 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_GTGT_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(28 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_GTGT_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(29 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TONG_THANH_TOAN_VND', N'0')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(30 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TONG_THANH_TOAN_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(31 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_NT', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(32 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(33 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_10_VND', N'2')
INSERT [dbo].[DLAM_TRON_CHI_TIET] ([ProfileValueID], [ProfileID], [Ten], [GiaTri]) VALUES (CAST(34 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'LAM_TRON_TIEN_THUE_10_NT', N'2')
SET IDENTITY_INSERT [dbo].[DLAM_TRON_CHI_TIET] OFF
GO
INSERT [dbo].[DLIEN] ([SO_LIEN], [TEN_LIEN], [NOI_DUNG], [THONG_TIN_LIEN], [NOI_DUNG_ENG]) VALUES (CAST(1 AS Numeric(10, 0)), N'Liên 1:', N'Lưu', NULL, NULL)
GO
INSERT [dbo].[DLOAI_HANG] ([MA_LOAI_HANG], [TEN], [GHI_CHU], [IS_HIENTHI], [MA_DV], [MA_CN], [DLOAI_HANGID]) VALUES (N'14', N'Khám bệnh', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DLOAI_HANG] ([MA_LOAI_HANG], [TEN], [GHI_CHU], [IS_HIENTHI], [MA_DV], [MA_CN], [DLOAI_HANGID]) VALUES (N'15', N'Thuốc', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DLOAI_HANG] ([MA_LOAI_HANG], [TEN], [GHI_CHU], [IS_HIENTHI], [MA_DV], [MA_CN], [DLOAI_HANGID]) VALUES (N'19', N'Điện tử', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DLOAI_HANG] ([MA_LOAI_HANG], [TEN], [GHI_CHU], [IS_HIENTHI], [MA_DV], [MA_CN], [DLOAI_HANGID]) VALUES (N'20', N'Gia dụng', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[DLOAI_HANG] ([MA_LOAI_HANG], [TEN], [GHI_CHU], [IS_HIENTHI], [MA_DV], [MA_CN], [DLOAI_HANGID]) VALUES (N'21', N'Quần áo', NULL, NULL, NULL, NULL, NULL)
GO
SET IDENTITY_INSERT [dbo].[DMAU_IN] ON 

INSERT [dbo].[DMAU_IN] ([DMAU_INID], [TEN_MAU], [MA_LOAI_HOA_DON], [GHI_CHU], [FILE_MAU_NAME], [FILE_MAU_DATA], [IS_DEFAULT], [LE_TREN], [LE_DUOI], [LE_TRAI], [LE_PHAI], [IS_TACH_MST], [IS_DIA_CHI_WORDWRAP], [DIA_CHI_WIDTH], [TEN_HANG_SO_KY_TU], [IS_DON_VI_MUA_WORDWRAP], [DON_VI_MUA_WIDTH], [IS_TEN_NGUOI_MUA_WORDWRAP], [TEN_NGUOI_MUA_WIDTH], [IS_LAY_HAI_SO_CUOI_NAM]) VALUES (CAST(1 AS Numeric(18, 0)), N'Hóa đơn GTGT 01', N'01', N'abc', N'Tien chu 1',  , 0, 0, NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, 0)
SET IDENTITY_INSERT [dbo].[DMAU_IN] OFF
GO
SET IDENTITY_INSERT [dbo].[DMAU_IN_CHI_TIET] ON 

INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(3 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(0 AS Numeric(18, 0)), N'TEN_NGUOI_MUA', N'TEN_NGUOI_MUA', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(209 AS Numeric(18, 0)), CAST(358 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(4 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'TEN_DV_MUA', N'TEN_DV_MUA', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(127 AS Numeric(18, 0)), CAST(382 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(5 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), N'MA_DV_MUA', N'MA_DV_MUA', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(126 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(6 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(4 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'DIA_CHI_DV_MUA', N'DIA_CHI_DV_MUA', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(103 AS Numeric(18, 0)), CAST(426 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(7 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(5 AS Numeric(18, 0)), CAST(4 AS Numeric(18, 0)), N'HINH_THUC_TT', N'HINH_THUC_TT', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(188 AS Numeric(18, 0)), CAST(450 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(8 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(6 AS Numeric(18, 0)), CAST(5 AS Numeric(18, 0)), N'TAI_KHOAN_NH', N'TAI_KHOAN_NH', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(414 AS Numeric(18, 0)), CAST(452 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(9 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(7 AS Numeric(18, 0)), CAST(6 AS Numeric(18, 0)), N'STT1', N'1', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(533 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(10 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(8 AS Numeric(18, 0)), CAST(7 AS Numeric(18, 0)), N'TEN_HANG1', N'TEN_HANG1', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), CAST(531 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(11 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(9 AS Numeric(18, 0)), CAST(8 AS Numeric(18, 0)), N'DVT1', N'DVT1', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(371 AS Numeric(18, 0)), CAST(530 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(12 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(10 AS Numeric(18, 0)), CAST(9 AS Numeric(18, 0)), N'SO_LUONG1', N'SO_LUONG1', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(438 AS Numeric(18, 0)), CAST(529 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(13 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(11 AS Numeric(18, 0)), CAST(10 AS Numeric(18, 0)), N'DON_GIA1', N'DON_GIA1', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(562 AS Numeric(18, 0)), CAST(530 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(14 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(12 AS Numeric(18, 0)), CAST(11 AS Numeric(18, 0)), N'THANH_TIEN1', N'THANH_TIEN1', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(668 AS Numeric(18, 0)), CAST(530 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(15 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(13 AS Numeric(18, 0)), CAST(12 AS Numeric(18, 0)), N'STT2', N'2', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(52 AS Numeric(18, 0)), CAST(559 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(16 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(14 AS Numeric(18, 0)), CAST(13 AS Numeric(18, 0)), N'TEN_HANG2', N'TEN_HANG2', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(17 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(15 AS Numeric(18, 0)), CAST(14 AS Numeric(18, 0)), N'DVT2', N'DVT2', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(370 AS Numeric(18, 0)), CAST(555 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(18 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(16 AS Numeric(18, 0)), CAST(15 AS Numeric(18, 0)), N'SO_LUONG2', N'SO_LUONG2', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(441 AS Numeric(18, 0)), CAST(555 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(19 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(17 AS Numeric(18, 0)), CAST(16 AS Numeric(18, 0)), N'DON_GIA2', N'DON_GIA2', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(564 AS Numeric(18, 0)), CAST(558 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(20 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(18 AS Numeric(18, 0)), CAST(17 AS Numeric(18, 0)), N'THANH_TIEN2', N'THANH_TIEN2', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(667 AS Numeric(18, 0)), CAST(556 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(21 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(19 AS Numeric(18, 0)), CAST(18 AS Numeric(18, 0)), N'STT3', N'3', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(582 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(22 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(20 AS Numeric(18, 0)), CAST(19 AS Numeric(18, 0)), N'TEN_HANG3', N'TEN_HANG3', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), CAST(579 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(23 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(21 AS Numeric(18, 0)), CAST(20 AS Numeric(18, 0)), N'DVT3', N'DVT3', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(370 AS Numeric(18, 0)), CAST(580 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(24 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(22 AS Numeric(18, 0)), CAST(21 AS Numeric(18, 0)), N'SO_LUONG3', N'SO_LUONG3', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(441 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(25 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(23 AS Numeric(18, 0)), CAST(22 AS Numeric(18, 0)), N'DON_GIA3', N'DON_GIA3', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(564 AS Numeric(18, 0)), CAST(580 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(26 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(24 AS Numeric(18, 0)), CAST(23 AS Numeric(18, 0)), N'THANH_TIEN3', N'THANH_TIEN3', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(668 AS Numeric(18, 0)), CAST(580 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(27 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(25 AS Numeric(18, 0)), CAST(24 AS Numeric(18, 0)), N'STT4', N'4', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), CAST(608 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(28 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(26 AS Numeric(18, 0)), CAST(25 AS Numeric(18, 0)), N'TEN_HANG4', N'TEN_HANG4', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), CAST(606 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(29 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(27 AS Numeric(18, 0)), CAST(26 AS Numeric(18, 0)), N'DVT4', N'DVT4', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(369 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(30 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(28 AS Numeric(18, 0)), CAST(27 AS Numeric(18, 0)), N'SO_LUONG4', N'SO_LUONG4', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(437 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(31 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(29 AS Numeric(18, 0)), CAST(28 AS Numeric(18, 0)), N'DON_GIA4', N'DON_GIA4', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(564 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(32 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(30 AS Numeric(18, 0)), CAST(29 AS Numeric(18, 0)), N'THANH_TIEN4', N'THANH_TIEN4', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(668 AS Numeric(18, 0)), CAST(605 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(33 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(31 AS Numeric(18, 0)), CAST(30 AS Numeric(18, 0)), N'STT5', N'5', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), CAST(628 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(34 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(32 AS Numeric(18, 0)), CAST(31 AS Numeric(18, 0)), N'TEN_HANG5', N'TEN_HANG5', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), CAST(628 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(35 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(33 AS Numeric(18, 0)), CAST(32 AS Numeric(18, 0)), N'DVT5', N'DVT5', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(368 AS Numeric(18, 0)), CAST(628 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(36 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(34 AS Numeric(18, 0)), CAST(33 AS Numeric(18, 0)), N'SO_LUONG5', N'SO_LUONG5', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(437 AS Numeric(18, 0)), CAST(629 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(37 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(35 AS Numeric(18, 0)), CAST(34 AS Numeric(18, 0)), N'DON_GIA5', N'DON_GIA5', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(563 AS Numeric(18, 0)), CAST(629 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(38 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(36 AS Numeric(18, 0)), CAST(35 AS Numeric(18, 0)), N'THANH_TIEN5', N'THANH_TIEN5', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(671 AS Numeric(18, 0)), CAST(628 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(39 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(37 AS Numeric(18, 0)), CAST(36 AS Numeric(18, 0)), N'STT6', N'6', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), CAST(654 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(40 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(38 AS Numeric(18, 0)), CAST(37 AS Numeric(18, 0)), N'TEN_HANG6', N'TEN_HANG6', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), CAST(654 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(41 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(39 AS Numeric(18, 0)), CAST(38 AS Numeric(18, 0)), N'DVT6', N'DVT6', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(366 AS Numeric(18, 0)), CAST(654 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(42 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(40 AS Numeric(18, 0)), CAST(39 AS Numeric(18, 0)), N'SO_LUONG6', N'SO_LUONG6', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(438 AS Numeric(18, 0)), CAST(655 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(43 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(41 AS Numeric(18, 0)), CAST(40 AS Numeric(18, 0)), N'DON_GIA6', N'DON_GIA6', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(561 AS Numeric(18, 0)), CAST(654 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(44 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(42 AS Numeric(18, 0)), CAST(41 AS Numeric(18, 0)), N'THANH_TIEN6', N'THANH_TIEN6', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(671 AS Numeric(18, 0)), CAST(654 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(45 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(43 AS Numeric(18, 0)), CAST(42 AS Numeric(18, 0)), N'STT7', N'7', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(55 AS Numeric(18, 0)), CAST(680 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(46 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(44 AS Numeric(18, 0)), CAST(43 AS Numeric(18, 0)), N'TEN_HANG7', N'TEN_HANG7', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(680 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(47 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(45 AS Numeric(18, 0)), CAST(44 AS Numeric(18, 0)), N'DVT7', N'DVT7', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(366 AS Numeric(18, 0)), CAST(680 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(48 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(46 AS Numeric(18, 0)), CAST(45 AS Numeric(18, 0)), N'SO_LUONG7', N'SO_LUONG7', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(441 AS Numeric(18, 0)), CAST(680 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(49 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(47 AS Numeric(18, 0)), CAST(46 AS Numeric(18, 0)), N'DON_GIA7', N'DON_GIA7', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(564 AS Numeric(18, 0)), CAST(678 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(50 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(48 AS Numeric(18, 0)), CAST(47 AS Numeric(18, 0)), N'THANH_TIEN7', N'THANH_TIEN7', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(670 AS Numeric(18, 0)), CAST(678 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(51 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(49 AS Numeric(18, 0)), CAST(48 AS Numeric(18, 0)), N'STT8', N'8', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(55 AS Numeric(18, 0)), CAST(705 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(52 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(49 AS Numeric(18, 0)), N'TEN_HANG8', N'TEN_HANG8', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(53 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(51 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), N'DVT8', N'DVT8', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(367 AS Numeric(18, 0)), CAST(706 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(54 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(52 AS Numeric(18, 0)), CAST(51 AS Numeric(18, 0)), N'SO_LUONG8', N'SO_LUONG8', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(438 AS Numeric(18, 0)), CAST(705 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(55 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(53 AS Numeric(18, 0)), CAST(52 AS Numeric(18, 0)), N'DON_GIA8', N'DON_GIA8', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(561 AS Numeric(18, 0)), CAST(705 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(56 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), CAST(53 AS Numeric(18, 0)), N'THANH_TIEN8', N'THANH_TIEN8', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(669 AS Numeric(18, 0)), CAST(705 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(57 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(55 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), N'STT9', N'9', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(53 AS Numeric(18, 0)), CAST(730 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(58 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(56 AS Numeric(18, 0)), CAST(55 AS Numeric(18, 0)), N'TEN_HANG9', N'TEN_HANG9', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), CAST(727 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(59 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(57 AS Numeric(18, 0)), CAST(56 AS Numeric(18, 0)), N'DVT9', N'DVT9', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(366 AS Numeric(18, 0)), CAST(729 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(60 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(58 AS Numeric(18, 0)), CAST(57 AS Numeric(18, 0)), N'SO_LUONG9', N'SO_LUONG9', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(441 AS Numeric(18, 0)), CAST(729 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(61 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(59 AS Numeric(18, 0)), CAST(58 AS Numeric(18, 0)), N'DON_GIA9', N'DON_GIA9', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(563 AS Numeric(18, 0)), CAST(730 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(62 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(60 AS Numeric(18, 0)), CAST(59 AS Numeric(18, 0)), N'THANH_TIEN9', N'THANH_TIEN9', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(669 AS Numeric(18, 0)), CAST(730 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(63 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(61 AS Numeric(18, 0)), CAST(60 AS Numeric(18, 0)), N'STT10', N'10', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(48 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(64 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(62 AS Numeric(18, 0)), CAST(61 AS Numeric(18, 0)), N'TEN_HANG10', N'TEN_HANG10', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), CAST(751 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(65 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(63 AS Numeric(18, 0)), CAST(62 AS Numeric(18, 0)), N'DVT10', N'DVT10', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(366 AS Numeric(18, 0)), CAST(750 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(66 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(64 AS Numeric(18, 0)), CAST(63 AS Numeric(18, 0)), N'SO_LUONG10', N'SO_LUONG10', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(439 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(67 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(65 AS Numeric(18, 0)), CAST(64 AS Numeric(18, 0)), N'DON_GIA10', N'DON_GIA10', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(556 AS Numeric(18, 0)), CAST(751 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(68 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(66 AS Numeric(18, 0)), CAST(65 AS Numeric(18, 0)), N'THANH_TIEN10', N'THANH_TIEN10', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(660 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(75 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(67 AS Numeric(18, 0)), CAST(66 AS Numeric(18, 0)), N'TONG_TIEN_HANG', N'TONG_TIEN_HANG', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(635 AS Numeric(18, 0)), CAST(771 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(76 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(68 AS Numeric(18, 0)), CAST(67 AS Numeric(18, 0)), N'VAT', N'VAT', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(170 AS Numeric(18, 0)), CAST(791 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(77 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(69 AS Numeric(18, 0)), CAST(68 AS Numeric(18, 0)), N'TIEN_THUE_VAT', N'TIEN_THUE_VAT', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(651 AS Numeric(18, 0)), CAST(794 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(78 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(70 AS Numeric(18, 0)), CAST(69 AS Numeric(18, 0)), N'TONG_THANH_TOAN', N'TONG_THANH_TOAN', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(617 AS Numeric(18, 0)), CAST(816 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(79 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(71 AS Numeric(18, 0)), CAST(70 AS Numeric(18, 0)), N'TIEN_CHU1', N'TIEN_CHU1', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(185 AS Numeric(18, 0)), CAST(838 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(80 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(72 AS Numeric(18, 0)), CAST(71 AS Numeric(18, 0)), N'TIEN_CHU2', N'TIEN_CHU2', N'.VnTime', 8, CAST(3 AS Numeric(18, 0)), CAST(53 AS Numeric(18, 0)), CAST(860 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(81 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(73 AS Numeric(18, 0)), CAST(72 AS Numeric(18, 0)), N'NGAY', N'31', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(318 AS Numeric(18, 0)), CAST(194 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(82 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(74 AS Numeric(18, 0)), CAST(73 AS Numeric(18, 0)), N'THANG', N'12', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(391 AS Numeric(18, 0)), CAST(195 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(83 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(75 AS Numeric(18, 0)), CAST(74 AS Numeric(18, 0)), N'NAM', N'2011', N'.VnTime', 8, CAST(1 AS Numeric(18, 0)), CAST(472 AS Numeric(18, 0)), CAST(193 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(84 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(76 AS Numeric(18, 0)), CAST(75 AS Numeric(18, 0)), N'MST_1', N'1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(437 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(85 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(77 AS Numeric(18, 0)), CAST(76 AS Numeric(18, 0)), N'MST_2', N'2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(461 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(86 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), CAST(77 AS Numeric(18, 0)), N'MST_3', N'3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(482 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(87 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(79 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), N'MST_4', N'4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(503 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(88 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(80 AS Numeric(18, 0)), CAST(79 AS Numeric(18, 0)), N'MST_5', N'5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(524 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(89 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), CAST(80 AS Numeric(18, 0)), N'MST_6', N'6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(544 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(90 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), N'MST_7', N'7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(565 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(91 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), N'MST_8', N'8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(586 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(92 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), N'MST_9', N'9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(607 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(93 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(85 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), N'MST_10', N'0', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(628 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(94 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(86 AS Numeric(18, 0)), CAST(85 AS Numeric(18, 0)), N'MST_11', N'1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(649 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(95 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(87 AS Numeric(18, 0)), CAST(86 AS Numeric(18, 0)), N'MST_12', N'2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(670 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(96 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(88 AS Numeric(18, 0)), CAST(87 AS Numeric(18, 0)), N'MST_13', N'3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(690 AS Numeric(18, 0)), CAST(404 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(97 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(89 AS Numeric(18, 0)), CAST(88 AS Numeric(18, 0)), N'VAT1', N'VAT1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(529 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(98 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(90 AS Numeric(18, 0)), CAST(89 AS Numeric(18, 0)), N'Tien Thue 1', N'Tien Thue 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(529 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(99 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(91 AS Numeric(18, 0)), CAST(90 AS Numeric(18, 0)), N'Tong cong 1', N'Tong cong 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(529 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(100 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(92 AS Numeric(18, 0)), CAST(91 AS Numeric(18, 0)), N'VAT2', N'VAT2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(554 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(101 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(93 AS Numeric(18, 0)), CAST(92 AS Numeric(18, 0)), N'Tien Thue 2', N'Tien Thue 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(554 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(102 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(94 AS Numeric(18, 0)), CAST(93 AS Numeric(18, 0)), N'Tong cong 2', N'Tong cong 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(554 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(103 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(95 AS Numeric(18, 0)), CAST(94 AS Numeric(18, 0)), N'VAT3', N'VAT3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(578 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(104 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(96 AS Numeric(18, 0)), CAST(95 AS Numeric(18, 0)), N'Tien Thue 3', N'Tien Thue 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(578 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(105 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(97 AS Numeric(18, 0)), CAST(96 AS Numeric(18, 0)), N'Tong cong 3', N'Tong cong 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(578 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(106 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(98 AS Numeric(18, 0)), CAST(97 AS Numeric(18, 0)), N'VAT4', N'VAT4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(107 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(99 AS Numeric(18, 0)), CAST(98 AS Numeric(18, 0)), N'Tien Thue 4', N'Tien Thue 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
GO
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(108 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(100 AS Numeric(18, 0)), CAST(99 AS Numeric(18, 0)), N'Tong cong 4', N'Tong cong 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(109 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(101 AS Numeric(18, 0)), CAST(100 AS Numeric(18, 0)), N'VAT5', N'VAT5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(627 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(110 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(102 AS Numeric(18, 0)), CAST(101 AS Numeric(18, 0)), N'Tien Thue 5', N'Tien Thue 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(627 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(111 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(103 AS Numeric(18, 0)), CAST(102 AS Numeric(18, 0)), N'Tong cong 5', N'Tong cong 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(627 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(112 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(104 AS Numeric(18, 0)), CAST(103 AS Numeric(18, 0)), N'VAT6', N'VAT6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(653 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(113 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(105 AS Numeric(18, 0)), CAST(104 AS Numeric(18, 0)), N'Tien Thue 6', N'Tien Thue 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(653 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(114 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(106 AS Numeric(18, 0)), CAST(105 AS Numeric(18, 0)), N'Tong cong 6', N'Tong cong 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(653 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(115 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(107 AS Numeric(18, 0)), CAST(106 AS Numeric(18, 0)), N'VAT7', N'VAT7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(679 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(116 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(108 AS Numeric(18, 0)), CAST(107 AS Numeric(18, 0)), N'Tien Thue 7', N'Tien Thue 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(679 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(117 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(109 AS Numeric(18, 0)), CAST(108 AS Numeric(18, 0)), N'Tong cong 7', N'Tong cong 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(679 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(118 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(110 AS Numeric(18, 0)), CAST(109 AS Numeric(18, 0)), N'VAT8', N'VAT8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(701 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(119 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(111 AS Numeric(18, 0)), CAST(110 AS Numeric(18, 0)), N'Tien Thue 8', N'Tien Thue 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(701 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(120 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(112 AS Numeric(18, 0)), CAST(111 AS Numeric(18, 0)), N'Tong cong 8', N'Tong cong 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(701 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(121 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(113 AS Numeric(18, 0)), CAST(112 AS Numeric(18, 0)), N'VAT9', N'VAT9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(728 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(122 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(114 AS Numeric(18, 0)), CAST(113 AS Numeric(18, 0)), N'Tien Thue 9', N'Tien Thue 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(728 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(123 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(115 AS Numeric(18, 0)), CAST(114 AS Numeric(18, 0)), N'Tong cong 9', N'Tong cong 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(728 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(124 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(116 AS Numeric(18, 0)), CAST(115 AS Numeric(18, 0)), N'VAT10', N'VAT10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(125 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(117 AS Numeric(18, 0)), CAST(116 AS Numeric(18, 0)), N'Tien Thue 10', N'Tien Thue 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(126 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(118 AS Numeric(18, 0)), CAST(117 AS Numeric(18, 0)), N'Tong cong 10', N'Tong cong 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(127 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(119 AS Numeric(18, 0)), CAST(118 AS Numeric(18, 0)), N'Han thanh toan', N'Han thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), CAST(1004 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(128 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(120 AS Numeric(18, 0)), CAST(119 AS Numeric(18, 0)), N'Hinh thuc thanh toan', N'Hinh thuc thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), CAST(1025 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(129 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(121 AS Numeric(18, 0)), CAST(120 AS Numeric(18, 0)), N'Tai khoan thanh toan', N'Tai khoan thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(1043 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(130 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(122 AS Numeric(18, 0)), CAST(121 AS Numeric(18, 0)), N'Ngan hang thanh toan', N'Ngan hang thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(1064 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(131 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(123 AS Numeric(18, 0)), CAST(122 AS Numeric(18, 0)), N'SoDonHang1', N'SoDonHang1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(529 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(132 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(124 AS Numeric(18, 0)), CAST(123 AS Numeric(18, 0)), N'SoDonHang2', N'SoDonHang2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(554 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(133 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(125 AS Numeric(18, 0)), CAST(124 AS Numeric(18, 0)), N'SoDonHang3', N'SoDonHang3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(578 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(134 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(126 AS Numeric(18, 0)), CAST(125 AS Numeric(18, 0)), N'SoDonHang4', N'SoDonHang4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(604 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(135 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(127 AS Numeric(18, 0)), CAST(126 AS Numeric(18, 0)), N'SoDonHang5', N'SoDonHang5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(627 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(136 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(128 AS Numeric(18, 0)), CAST(127 AS Numeric(18, 0)), N'SoDonHang6', N'SoDonHang6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(653 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(137 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(129 AS Numeric(18, 0)), CAST(128 AS Numeric(18, 0)), N'SoDonHang7', N'SoDonHang7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(679 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(138 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(130 AS Numeric(18, 0)), CAST(129 AS Numeric(18, 0)), N'SoDonHang8', N'SoDonHang8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(701 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(139 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(131 AS Numeric(18, 0)), CAST(130 AS Numeric(18, 0)), N'SoDonHang9', N'SoDonHang9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(728 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(140 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(132 AS Numeric(18, 0)), CAST(131 AS Numeric(18, 0)), N'SoDonHang10', N'SoDonHang10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(752 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(141 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(133 AS Numeric(18, 0)), CAST(132 AS Numeric(18, 0)), N'11', N'11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(775 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(142 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(134 AS Numeric(18, 0)), CAST(133 AS Numeric(18, 0)), N'Ten hang 11', N'Ten hang 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(776 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(143 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(135 AS Numeric(18, 0)), CAST(134 AS Numeric(18, 0)), N'SoDonHang11', N'SoDonHang11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(144 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(136 AS Numeric(18, 0)), CAST(135 AS Numeric(18, 0)), N'DVT11', N'DVT11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(145 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(137 AS Numeric(18, 0)), CAST(136 AS Numeric(18, 0)), N'So luong 11', N'So luong 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(146 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(138 AS Numeric(18, 0)), CAST(137 AS Numeric(18, 0)), N'Don gia 11', N'Don gia 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(421 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(147 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(139 AS Numeric(18, 0)), CAST(138 AS Numeric(18, 0)), N'Thanh Tien 11', N'Thanh Tien 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(148 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(140 AS Numeric(18, 0)), CAST(139 AS Numeric(18, 0)), N'VAT11', N'VAT11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(149 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(141 AS Numeric(18, 0)), CAST(140 AS Numeric(18, 0)), N'Tien Thue 11', N'Tien Thue 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(150 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(142 AS Numeric(18, 0)), CAST(141 AS Numeric(18, 0)), N'Tong cong 11', N'Tong cong 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(774 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(151 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(143 AS Numeric(18, 0)), CAST(142 AS Numeric(18, 0)), N'12', N'12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(802 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(152 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(144 AS Numeric(18, 0)), CAST(143 AS Numeric(18, 0)), N'Ten hang 12', N'Ten hang 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(796 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(153 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(145 AS Numeric(18, 0)), CAST(144 AS Numeric(18, 0)), N'SoDonHang12', N'SoDonHang12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(154 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(145 AS Numeric(18, 0)), N'DVT12', N'DVT12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(155 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), N'So luong 12', N'So luong 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(156 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(148 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), N'Don gia 12', N'Don gia 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(421 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(157 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(149 AS Numeric(18, 0)), CAST(148 AS Numeric(18, 0)), N'Thanh Tien 12', N'Thanh Tien 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(158 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(150 AS Numeric(18, 0)), CAST(149 AS Numeric(18, 0)), N'VAT12', N'VAT12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(159 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(151 AS Numeric(18, 0)), CAST(150 AS Numeric(18, 0)), N'Tien Thue 12', N'Tien Thue 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(160 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(152 AS Numeric(18, 0)), CAST(151 AS Numeric(18, 0)), N'Tong cong 12', N'Tong cong 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(798 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(161 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(153 AS Numeric(18, 0)), CAST(152 AS Numeric(18, 0)), N'13', N'13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(824 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(162 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(154 AS Numeric(18, 0)), CAST(153 AS Numeric(18, 0)), N'Ten hang 13', N'Ten hang 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(163 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(155 AS Numeric(18, 0)), CAST(154 AS Numeric(18, 0)), N'SoDonHang13', N'SoDonHang13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(164 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(156 AS Numeric(18, 0)), CAST(155 AS Numeric(18, 0)), N'DVT13', N'DVT13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(165 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(157 AS Numeric(18, 0)), CAST(156 AS Numeric(18, 0)), N'So luong 13', N'So luong 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(166 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(158 AS Numeric(18, 0)), CAST(157 AS Numeric(18, 0)), N'Don gia 13', N'Don gia 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(421 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(167 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(159 AS Numeric(18, 0)), CAST(158 AS Numeric(18, 0)), N'Thanh Tien 13', N'Thanh Tien 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(168 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(160 AS Numeric(18, 0)), CAST(159 AS Numeric(18, 0)), N'VAT13', N'VAT13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(169 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(161 AS Numeric(18, 0)), CAST(160 AS Numeric(18, 0)), N'Tien Thue 13', N'Tien Thue 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(170 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(162 AS Numeric(18, 0)), CAST(161 AS Numeric(18, 0)), N'Tong cong 13', N'Tong cong 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(820 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(171 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(163 AS Numeric(18, 0)), CAST(162 AS Numeric(18, 0)), N'14', N'14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(846 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(172 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(164 AS Numeric(18, 0)), CAST(163 AS Numeric(18, 0)), N'Ten hang 14', N'Ten hang 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(173 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(165 AS Numeric(18, 0)), CAST(164 AS Numeric(18, 0)), N'SoDonHang14', N'SoDonHang14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(174 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(166 AS Numeric(18, 0)), CAST(165 AS Numeric(18, 0)), N'DVT14', N'DVT14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(175 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(167 AS Numeric(18, 0)), CAST(166 AS Numeric(18, 0)), N'So luong 14', N'So luong 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(176 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(168 AS Numeric(18, 0)), CAST(167 AS Numeric(18, 0)), N'Don gia 14', N'Don gia 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(421 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(177 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(169 AS Numeric(18, 0)), CAST(168 AS Numeric(18, 0)), N'Thanh Tien 14', N'Thanh Tien 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(178 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(170 AS Numeric(18, 0)), CAST(169 AS Numeric(18, 0)), N'VAT14', N'VAT14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(179 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(171 AS Numeric(18, 0)), CAST(170 AS Numeric(18, 0)), N'Tien Thue 14', N'Tien Thue 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(180 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(172 AS Numeric(18, 0)), CAST(171 AS Numeric(18, 0)), N'Tong cong 14', N'Tong cong 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(842 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(181 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(173 AS Numeric(18, 0)), CAST(172 AS Numeric(18, 0)), N'15', N'15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(866 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(182 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(174 AS Numeric(18, 0)), CAST(173 AS Numeric(18, 0)), N'Ten hang 15', N'Ten hang 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(183 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(175 AS Numeric(18, 0)), CAST(174 AS Numeric(18, 0)), N'SoDonHang15', N'SoDonHang15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(184 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(176 AS Numeric(18, 0)), CAST(175 AS Numeric(18, 0)), N'DVT15', N'DVT15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(185 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(177 AS Numeric(18, 0)), CAST(176 AS Numeric(18, 0)), N'So luong 15', N'So luong 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(186 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(178 AS Numeric(18, 0)), CAST(177 AS Numeric(18, 0)), N'Don gia 15', N'Don gia 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(421 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(187 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(179 AS Numeric(18, 0)), CAST(178 AS Numeric(18, 0)), N'Thanh Tien 15', N'Thanh Tien 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(188 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(180 AS Numeric(18, 0)), CAST(179 AS Numeric(18, 0)), N'VAT15', N'VAT15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(189 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(181 AS Numeric(18, 0)), CAST(180 AS Numeric(18, 0)), N'Tien Thue 15', N'Tien Thue 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(190 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(182 AS Numeric(18, 0)), CAST(181 AS Numeric(18, 0)), N'Tong cong 15', N'Tong cong 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(862 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(191 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(183 AS Numeric(18, 0)), CAST(182 AS Numeric(18, 0)), N'Phi dich vu', N'Phi dich vu', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(605 AS Numeric(18, 0)), CAST(935 AS Numeric(18, 0)), NULL, N'0102721191-001')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(192 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(0 AS Numeric(18, 0)), N'Nguoi Mua Hang', N'Nguoi Mua Hang', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(426 AS Numeric(18, 0)), CAST(120 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(193 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'Công ty May 10', N'Công ty May 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(406 AS Numeric(18, 0)), CAST(118 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(194 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), N'0100101308', N'0100101308', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(412 AS Numeric(18, 0)), CAST(149 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(195 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(4 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'657 Nguyễn Văn Cừ - Long Biên - Hà Nội', N'657 Nguyễn Văn Cừ - Long Biên - Hà Nội', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(388 AS Numeric(18, 0)), CAST(164 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(196 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(5 AS Numeric(18, 0)), CAST(4 AS Numeric(18, 0)), N'Tiền Mặt', N'Tiền Mặt', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(474 AS Numeric(18, 0)), CAST(191 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(197 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(6 AS Numeric(18, 0)), CAST(5 AS Numeric(18, 0)), N'2533463343643 tại Ngân hàng PTNNNT', N'2533463343643 tại Ngân hàng PTNNNT', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1063 AS Numeric(18, 0)), CAST(263 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(198 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(7 AS Numeric(18, 0)), CAST(6 AS Numeric(18, 0)), N'1', N'1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(99 AS Numeric(18, 0)), CAST(246 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(199 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(8 AS Numeric(18, 0)), CAST(7 AS Numeric(18, 0)), N'Dòng Hàng thứ 1', N'Dòng Hàng thứ 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(157 AS Numeric(18, 0)), CAST(249 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(200 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(9 AS Numeric(18, 0)), CAST(8 AS Numeric(18, 0)), N'DVT1', N'DVT1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(350 AS Numeric(18, 0)), CAST(248 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(201 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(10 AS Numeric(18, 0)), CAST(9 AS Numeric(18, 0)), N'So luong 1', N'So luong 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(395 AS Numeric(18, 0)), CAST(246 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(202 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(11 AS Numeric(18, 0)), CAST(10 AS Numeric(18, 0)), N'Don gia 1', N'Don gia 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(463 AS Numeric(18, 0)), CAST(247 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(203 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(12 AS Numeric(18, 0)), CAST(11 AS Numeric(18, 0)), N'Thanh Tien 1', N'Thanh Tien 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(559 AS Numeric(18, 0)), CAST(248 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(204 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(13 AS Numeric(18, 0)), CAST(12 AS Numeric(18, 0)), N'2', N'2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(100 AS Numeric(18, 0)), CAST(268 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(205 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(14 AS Numeric(18, 0)), CAST(13 AS Numeric(18, 0)), N'Dòng Hàng thứ 2', N'Dòng Hàng thứ 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(144 AS Numeric(18, 0)), CAST(272 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(206 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(15 AS Numeric(18, 0)), CAST(14 AS Numeric(18, 0)), N'DVT2', N'DVT2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(279 AS Numeric(18, 0)), CAST(269 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(207 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(16 AS Numeric(18, 0)), CAST(15 AS Numeric(18, 0)), N'So luong 2', N'So luong 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(393 AS Numeric(18, 0)), CAST(268 AS Numeric(18, 0)), NULL, N'0311854540')
GO
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(208 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(17 AS Numeric(18, 0)), CAST(16 AS Numeric(18, 0)), N'Don gia 2', N'Don gia 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(461 AS Numeric(18, 0)), CAST(266 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(209 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(18 AS Numeric(18, 0)), CAST(17 AS Numeric(18, 0)), N'Thanh Tien 2', N'Thanh Tien 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(558 AS Numeric(18, 0)), CAST(267 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(210 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(19 AS Numeric(18, 0)), CAST(18 AS Numeric(18, 0)), N'3', N'3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(102 AS Numeric(18, 0)), CAST(284 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(211 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(20 AS Numeric(18, 0)), CAST(19 AS Numeric(18, 0)), N'Dòng Hàng thứ 3', N'Dòng Hàng thứ 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(288 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(212 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(21 AS Numeric(18, 0)), CAST(20 AS Numeric(18, 0)), N'DVT3', N'DVT3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(281 AS Numeric(18, 0)), CAST(291 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(213 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(22 AS Numeric(18, 0)), CAST(21 AS Numeric(18, 0)), N'So luong 3', N'So luong 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(393 AS Numeric(18, 0)), CAST(283 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(214 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(23 AS Numeric(18, 0)), CAST(22 AS Numeric(18, 0)), N'Don gia 3', N'Don gia 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(462 AS Numeric(18, 0)), CAST(283 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(215 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(24 AS Numeric(18, 0)), CAST(23 AS Numeric(18, 0)), N'Thanh Tien 3', N'Thanh Tien 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), CAST(285 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(216 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(25 AS Numeric(18, 0)), CAST(24 AS Numeric(18, 0)), N'4', N'4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(987 AS Numeric(18, 0)), CAST(352 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(217 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(26 AS Numeric(18, 0)), CAST(25 AS Numeric(18, 0)), N'Ten hang 4', N'Ten hang 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(915 AS Numeric(18, 0)), CAST(351 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(218 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(27 AS Numeric(18, 0)), CAST(26 AS Numeric(18, 0)), N'DVT4', N'DVT4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1033 AS Numeric(18, 0)), CAST(415 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(219 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(28 AS Numeric(18, 0)), CAST(27 AS Numeric(18, 0)), N'So luong 4', N'So luong 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1027 AS Numeric(18, 0)), CAST(399 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(220 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(29 AS Numeric(18, 0)), CAST(28 AS Numeric(18, 0)), N'Don gia 4', N'Don gia 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(996 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(221 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(30 AS Numeric(18, 0)), CAST(29 AS Numeric(18, 0)), N'Thanh Tien 4', N'Thanh Tien 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1024 AS Numeric(18, 0)), CAST(383 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(222 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(31 AS Numeric(18, 0)), CAST(30 AS Numeric(18, 0)), N'5', N'5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(989 AS Numeric(18, 0)), CAST(410 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(223 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(32 AS Numeric(18, 0)), CAST(31 AS Numeric(18, 0)), N'Ten hang 5', N'Ten hang 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(976 AS Numeric(18, 0)), CAST(420 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(224 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(33 AS Numeric(18, 0)), CAST(32 AS Numeric(18, 0)), N'DVT5', N'DVT5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1174 AS Numeric(18, 0)), CAST(415 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(225 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(34 AS Numeric(18, 0)), CAST(33 AS Numeric(18, 0)), N'So luong 5', N'So luong 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1044 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(226 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(35 AS Numeric(18, 0)), CAST(34 AS Numeric(18, 0)), N'Don gia 5', N'Don gia 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1238 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(227 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(36 AS Numeric(18, 0)), CAST(35 AS Numeric(18, 0)), N'Thanh Tien 5', N'Thanh Tien 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1059 AS Numeric(18, 0)), CAST(402 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(228 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(37 AS Numeric(18, 0)), CAST(36 AS Numeric(18, 0)), N'6', N'6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(935 AS Numeric(18, 0)), CAST(420 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(229 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(38 AS Numeric(18, 0)), CAST(37 AS Numeric(18, 0)), N'Ten hang 6', N'Ten hang 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(934 AS Numeric(18, 0)), CAST(421 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(230 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(39 AS Numeric(18, 0)), CAST(38 AS Numeric(18, 0)), N'DVT6', N'DVT6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(907 AS Numeric(18, 0)), CAST(399 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(231 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(40 AS Numeric(18, 0)), CAST(39 AS Numeric(18, 0)), N'So luong 6', N'So luong 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(940 AS Numeric(18, 0)), CAST(428 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(232 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(41 AS Numeric(18, 0)), CAST(40 AS Numeric(18, 0)), N'Don gia 6', N'Don gia 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1219 AS Numeric(18, 0)), CAST(416 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(233 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(42 AS Numeric(18, 0)), CAST(41 AS Numeric(18, 0)), N'Thanh Tien 6', N'Thanh Tien 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1306 AS Numeric(18, 0)), CAST(300 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(234 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(43 AS Numeric(18, 0)), CAST(42 AS Numeric(18, 0)), N'7', N'7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(930 AS Numeric(18, 0)), CAST(397 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(235 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(44 AS Numeric(18, 0)), CAST(43 AS Numeric(18, 0)), N'Ten hang 7', N'Ten hang 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(961 AS Numeric(18, 0)), CAST(425 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(236 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(45 AS Numeric(18, 0)), CAST(44 AS Numeric(18, 0)), N'DVT7', N'DVT7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1043 AS Numeric(18, 0)), CAST(435 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(237 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(46 AS Numeric(18, 0)), CAST(45 AS Numeric(18, 0)), N'So luong 7', N'So luong 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1000 AS Numeric(18, 0)), CAST(413 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(238 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(47 AS Numeric(18, 0)), CAST(46 AS Numeric(18, 0)), N'Don gia 7', N'Don gia 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1018 AS Numeric(18, 0)), CAST(441 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(239 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(48 AS Numeric(18, 0)), CAST(47 AS Numeric(18, 0)), N'Thanh Tien 7', N'Thanh Tien 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1054 AS Numeric(18, 0)), CAST(399 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(240 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(49 AS Numeric(18, 0)), CAST(48 AS Numeric(18, 0)), N'8', N'8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(992 AS Numeric(18, 0)), CAST(414 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(241 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(49 AS Numeric(18, 0)), N'Ten hang 8', N'Ten hang 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1030 AS Numeric(18, 0)), CAST(441 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(242 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(51 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), N'DVT8', N'DVT8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(919 AS Numeric(18, 0)), CAST(427 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(243 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(52 AS Numeric(18, 0)), CAST(51 AS Numeric(18, 0)), N'So luong 8', N'So luong 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1137 AS Numeric(18, 0)), CAST(408 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(244 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(53 AS Numeric(18, 0)), CAST(52 AS Numeric(18, 0)), N'Don gia 8', N'Don gia 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(930 AS Numeric(18, 0)), CAST(409 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(245 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), CAST(53 AS Numeric(18, 0)), N'Thanh Tien 8', N'Thanh Tien 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(911 AS Numeric(18, 0)), CAST(432 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(246 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(55 AS Numeric(18, 0)), CAST(54 AS Numeric(18, 0)), N'9', N'9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1052 AS Numeric(18, 0)), CAST(497 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(247 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(56 AS Numeric(18, 0)), CAST(55 AS Numeric(18, 0)), N'Ten hang 9', N'Ten hang 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(888 AS Numeric(18, 0)), CAST(449 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(248 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(57 AS Numeric(18, 0)), CAST(56 AS Numeric(18, 0)), N'DVT9', N'DVT9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1011 AS Numeric(18, 0)), CAST(445 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(249 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(58 AS Numeric(18, 0)), CAST(57 AS Numeric(18, 0)), N'So luong 9', N'So luong 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(882 AS Numeric(18, 0)), CAST(442 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(250 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(59 AS Numeric(18, 0)), CAST(58 AS Numeric(18, 0)), N'Don gia 9', N'Don gia 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1017 AS Numeric(18, 0)), CAST(436 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(251 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(60 AS Numeric(18, 0)), CAST(59 AS Numeric(18, 0)), N'Thanh Tien 9', N'Thanh Tien 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1108 AS Numeric(18, 0)), CAST(437 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(252 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(61 AS Numeric(18, 0)), CAST(60 AS Numeric(18, 0)), N'10', N'10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(953 AS Numeric(18, 0)), CAST(535 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(253 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(62 AS Numeric(18, 0)), CAST(61 AS Numeric(18, 0)), N'Ten hang 10', N'Ten hang 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(923 AS Numeric(18, 0)), CAST(450 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(254 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(63 AS Numeric(18, 0)), CAST(62 AS Numeric(18, 0)), N'DVT10', N'DVT10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(910 AS Numeric(18, 0)), CAST(499 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(255 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(64 AS Numeric(18, 0)), CAST(63 AS Numeric(18, 0)), N'So luong 10', N'So luong 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(898 AS Numeric(18, 0)), CAST(479 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(256 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(65 AS Numeric(18, 0)), CAST(64 AS Numeric(18, 0)), N'Don gia 10', N'Don gia 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1021 AS Numeric(18, 0)), CAST(445 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(257 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(66 AS Numeric(18, 0)), CAST(65 AS Numeric(18, 0)), N'Thanh Tien 10', N'Thanh Tien 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1092 AS Numeric(18, 0)), CAST(435 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(258 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(67 AS Numeric(18, 0)), CAST(66 AS Numeric(18, 0)), N'Tien tien hang', N'Tien tien hang', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(508 AS Numeric(18, 0)), CAST(300 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(259 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(68 AS Numeric(18, 0)), CAST(67 AS Numeric(18, 0)), N'VAT', N'VAT', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(316 AS Numeric(18, 0)), CAST(320 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(260 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(69 AS Numeric(18, 0)), CAST(68 AS Numeric(18, 0)), N'Tien Thue VAT', N'Tien Thue VAT', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(514 AS Numeric(18, 0)), CAST(319 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(261 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(70 AS Numeric(18, 0)), CAST(69 AS Numeric(18, 0)), N'Tong thanh toan', N'Tong thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(518 AS Numeric(18, 0)), CAST(336 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(262 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(71 AS Numeric(18, 0)), CAST(70 AS Numeric(18, 0)), N'Tien chu 1', N'Tien chu 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(198 AS Numeric(18, 0)), CAST(353 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(263 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(72 AS Numeric(18, 0)), CAST(71 AS Numeric(18, 0)), N'Tien chu 2', N'Tien chu 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(120 AS Numeric(18, 0)), CAST(371 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(264 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(73 AS Numeric(18, 0)), CAST(72 AS Numeric(18, 0)), N'23', N'23', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(414 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(265 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(74 AS Numeric(18, 0)), CAST(73 AS Numeric(18, 0)), N'12', N'12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(462 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(266 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(75 AS Numeric(18, 0)), CAST(74 AS Numeric(18, 0)), N'2011', N'2011', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(501 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(267 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(76 AS Numeric(18, 0)), CAST(75 AS Numeric(18, 0)), N'MST_1', N'1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(437 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(268 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(77 AS Numeric(18, 0)), CAST(76 AS Numeric(18, 0)), N'MST_2', N'2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(461 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(269 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), CAST(77 AS Numeric(18, 0)), N'MST_3', N'3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(482 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(270 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(79 AS Numeric(18, 0)), CAST(78 AS Numeric(18, 0)), N'MST_4', N'4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(503 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(271 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(80 AS Numeric(18, 0)), CAST(79 AS Numeric(18, 0)), N'MST_5', N'5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(524 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(272 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), CAST(80 AS Numeric(18, 0)), N'MST_6', N'6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(544 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(273 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), CAST(81 AS Numeric(18, 0)), N'MST_7', N'7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(565 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(274 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), CAST(82 AS Numeric(18, 0)), N'MST_8', N'8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(586 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(275 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(83 AS Numeric(18, 0)), N'MST_9', N'9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(607 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(276 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(85 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), N'MST_10', N'0', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(628 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(277 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(86 AS Numeric(18, 0)), CAST(85 AS Numeric(18, 0)), N'MST_11', N'1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(649 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(278 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(87 AS Numeric(18, 0)), CAST(86 AS Numeric(18, 0)), N'MST_12', N'2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(670 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(279 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(88 AS Numeric(18, 0)), CAST(87 AS Numeric(18, 0)), N'MST_13', N'3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(690 AS Numeric(18, 0)), CAST(187 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(280 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(89 AS Numeric(18, 0)), CAST(88 AS Numeric(18, 0)), N'VAT1', N'VAT1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(312 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(281 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(90 AS Numeric(18, 0)), CAST(89 AS Numeric(18, 0)), N'Tien Thue 1', N'Tien Thue 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(312 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(282 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(91 AS Numeric(18, 0)), CAST(90 AS Numeric(18, 0)), N'Tong cong 1', N'Tong cong 1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(312 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(283 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(92 AS Numeric(18, 0)), CAST(91 AS Numeric(18, 0)), N'VAT2', N'VAT2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(337 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(284 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(93 AS Numeric(18, 0)), CAST(92 AS Numeric(18, 0)), N'Tien Thue 2', N'Tien Thue 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(337 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(285 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(94 AS Numeric(18, 0)), CAST(93 AS Numeric(18, 0)), N'Tong cong 2', N'Tong cong 2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(337 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(286 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(95 AS Numeric(18, 0)), CAST(94 AS Numeric(18, 0)), N'VAT3', N'VAT3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(361 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(287 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(96 AS Numeric(18, 0)), CAST(95 AS Numeric(18, 0)), N'Tien Thue 3', N'Tien Thue 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(361 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(288 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(97 AS Numeric(18, 0)), CAST(96 AS Numeric(18, 0)), N'Tong cong 3', N'Tong cong 3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(361 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(289 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(98 AS Numeric(18, 0)), CAST(97 AS Numeric(18, 0)), N'VAT4', N'VAT4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(290 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(99 AS Numeric(18, 0)), CAST(98 AS Numeric(18, 0)), N'Tien Thue 4', N'Tien Thue 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(291 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(100 AS Numeric(18, 0)), CAST(99 AS Numeric(18, 0)), N'Tong cong 4', N'Tong cong 4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(292 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(101 AS Numeric(18, 0)), CAST(100 AS Numeric(18, 0)), N'VAT5', N'VAT5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(410 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(293 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(102 AS Numeric(18, 0)), CAST(101 AS Numeric(18, 0)), N'Tien Thue 5', N'Tien Thue 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(410 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(294 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(103 AS Numeric(18, 0)), CAST(102 AS Numeric(18, 0)), N'Tong cong 5', N'Tong cong 5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(410 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(295 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(104 AS Numeric(18, 0)), CAST(103 AS Numeric(18, 0)), N'VAT6', N'VAT6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(436 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(296 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(105 AS Numeric(18, 0)), CAST(104 AS Numeric(18, 0)), N'Tien Thue 6', N'Tien Thue 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(436 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(297 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(106 AS Numeric(18, 0)), CAST(105 AS Numeric(18, 0)), N'Tong cong 6', N'Tong cong 6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(436 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(298 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(107 AS Numeric(18, 0)), CAST(106 AS Numeric(18, 0)), N'VAT7', N'VAT7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(462 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(299 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(108 AS Numeric(18, 0)), CAST(107 AS Numeric(18, 0)), N'Tien Thue 7', N'Tien Thue 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(462 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(300 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(109 AS Numeric(18, 0)), CAST(108 AS Numeric(18, 0)), N'Tong cong 7', N'Tong cong 7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(462 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(301 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(110 AS Numeric(18, 0)), CAST(109 AS Numeric(18, 0)), N'VAT8', N'VAT8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(484 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(302 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(111 AS Numeric(18, 0)), CAST(110 AS Numeric(18, 0)), N'Tien Thue 8', N'Tien Thue 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(484 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(303 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(112 AS Numeric(18, 0)), CAST(111 AS Numeric(18, 0)), N'Tong cong 8', N'Tong cong 8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(484 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(304 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(113 AS Numeric(18, 0)), CAST(112 AS Numeric(18, 0)), N'VAT9', N'VAT9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(511 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(305 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(114 AS Numeric(18, 0)), CAST(113 AS Numeric(18, 0)), N'Tien Thue 9', N'Tien Thue 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(511 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(306 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(115 AS Numeric(18, 0)), CAST(114 AS Numeric(18, 0)), N'Tong cong 9', N'Tong cong 9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(511 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(307 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(116 AS Numeric(18, 0)), CAST(115 AS Numeric(18, 0)), N'VAT10', N'VAT10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(535 AS Numeric(18, 0)), NULL, N'0311854540')
GO
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(308 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(117 AS Numeric(18, 0)), CAST(116 AS Numeric(18, 0)), N'Tien Thue 10', N'Tien Thue 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(535 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(309 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(118 AS Numeric(18, 0)), CAST(117 AS Numeric(18, 0)), N'Tong cong 10', N'Tong cong 10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(535 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(310 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(119 AS Numeric(18, 0)), CAST(118 AS Numeric(18, 0)), N'Han thanh toan', N'Han thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), CAST(787 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(311 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(120 AS Numeric(18, 0)), CAST(119 AS Numeric(18, 0)), N'Hinh thuc thanh toan', N'Hinh thuc thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), CAST(808 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(312 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(121 AS Numeric(18, 0)), CAST(120 AS Numeric(18, 0)), N'Tai khoan thanh toan', N'Tai khoan thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(826 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(313 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(122 AS Numeric(18, 0)), CAST(121 AS Numeric(18, 0)), N'Ngan hang thanh toan', N'Ngan hang thanh toan', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(847 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(314 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(123 AS Numeric(18, 0)), CAST(122 AS Numeric(18, 0)), N'SoDonHang1', N'SoDonHang1', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(312 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(315 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(124 AS Numeric(18, 0)), CAST(123 AS Numeric(18, 0)), N'SoDonHang2', N'SoDonHang2', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(337 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(316 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(125 AS Numeric(18, 0)), CAST(124 AS Numeric(18, 0)), N'SoDonHang3', N'SoDonHang3', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(361 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(317 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(126 AS Numeric(18, 0)), CAST(125 AS Numeric(18, 0)), N'SoDonHang4', N'SoDonHang4', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(387 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(318 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(127 AS Numeric(18, 0)), CAST(126 AS Numeric(18, 0)), N'SoDonHang5', N'SoDonHang5', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(410 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(319 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(128 AS Numeric(18, 0)), CAST(127 AS Numeric(18, 0)), N'SoDonHang6', N'SoDonHang6', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(436 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(320 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(129 AS Numeric(18, 0)), CAST(128 AS Numeric(18, 0)), N'SoDonHang7', N'SoDonHang7', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(462 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(321 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(130 AS Numeric(18, 0)), CAST(129 AS Numeric(18, 0)), N'SoDonHang8', N'SoDonHang8', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(484 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(322 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(131 AS Numeric(18, 0)), CAST(130 AS Numeric(18, 0)), N'SoDonHang9', N'SoDonHang9', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(511 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(323 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(132 AS Numeric(18, 0)), CAST(131 AS Numeric(18, 0)), N'SoDonHang10', N'SoDonHang10', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(535 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(324 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(133 AS Numeric(18, 0)), CAST(132 AS Numeric(18, 0)), N'11', N'11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(558 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(325 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(134 AS Numeric(18, 0)), CAST(133 AS Numeric(18, 0)), N'Ten hang 11', N'Ten hang 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(559 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(326 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(135 AS Numeric(18, 0)), CAST(134 AS Numeric(18, 0)), N'SoDonHang11', N'SoDonHang11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(327 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(136 AS Numeric(18, 0)), CAST(135 AS Numeric(18, 0)), N'DVT11', N'DVT11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(328 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(137 AS Numeric(18, 0)), CAST(136 AS Numeric(18, 0)), N'So luong 11', N'So luong 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(329 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(138 AS Numeric(18, 0)), CAST(137 AS Numeric(18, 0)), N'Don gia 11', N'Don gia 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(432 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(330 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(139 AS Numeric(18, 0)), CAST(138 AS Numeric(18, 0)), N'Thanh Tien 11', N'Thanh Tien 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(331 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(140 AS Numeric(18, 0)), CAST(139 AS Numeric(18, 0)), N'VAT11', N'VAT11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(332 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(141 AS Numeric(18, 0)), CAST(140 AS Numeric(18, 0)), N'Tien Thue 11', N'Tien Thue 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(333 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(142 AS Numeric(18, 0)), CAST(141 AS Numeric(18, 0)), N'Tong cong 11', N'Tong cong 11', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(557 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(334 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(143 AS Numeric(18, 0)), CAST(142 AS Numeric(18, 0)), N'12', N'12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(585 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(335 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(144 AS Numeric(18, 0)), CAST(143 AS Numeric(18, 0)), N'Ten hang 12', N'Ten hang 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(579 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(336 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(145 AS Numeric(18, 0)), CAST(144 AS Numeric(18, 0)), N'SoDonHang12', N'SoDonHang12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(337 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), CAST(145 AS Numeric(18, 0)), N'DVT12', N'DVT12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(338 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), CAST(146 AS Numeric(18, 0)), N'So luong 12', N'So luong 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(339 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(148 AS Numeric(18, 0)), CAST(147 AS Numeric(18, 0)), N'Don gia 12', N'Don gia 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(432 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(340 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(149 AS Numeric(18, 0)), CAST(148 AS Numeric(18, 0)), N'Thanh Tien 12', N'Thanh Tien 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(341 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(150 AS Numeric(18, 0)), CAST(149 AS Numeric(18, 0)), N'VAT12', N'VAT12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(342 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(151 AS Numeric(18, 0)), CAST(150 AS Numeric(18, 0)), N'Tien Thue 12', N'Tien Thue 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(343 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(152 AS Numeric(18, 0)), CAST(151 AS Numeric(18, 0)), N'Tong cong 12', N'Tong cong 12', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(581 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(344 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(153 AS Numeric(18, 0)), CAST(152 AS Numeric(18, 0)), N'13', N'13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(607 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(345 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(154 AS Numeric(18, 0)), CAST(153 AS Numeric(18, 0)), N'Ten hang 13', N'Ten hang 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(346 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(155 AS Numeric(18, 0)), CAST(154 AS Numeric(18, 0)), N'SoDonHang13', N'SoDonHang13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(347 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(156 AS Numeric(18, 0)), CAST(155 AS Numeric(18, 0)), N'DVT13', N'DVT13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(348 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(157 AS Numeric(18, 0)), CAST(156 AS Numeric(18, 0)), N'So luong 13', N'So luong 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(349 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(158 AS Numeric(18, 0)), CAST(157 AS Numeric(18, 0)), N'Don gia 13', N'Don gia 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(432 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(350 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(159 AS Numeric(18, 0)), CAST(158 AS Numeric(18, 0)), N'Thanh Tien 13', N'Thanh Tien 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(351 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(160 AS Numeric(18, 0)), CAST(159 AS Numeric(18, 0)), N'VAT13', N'VAT13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(352 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(161 AS Numeric(18, 0)), CAST(160 AS Numeric(18, 0)), N'Tien Thue 13', N'Tien Thue 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(353 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(162 AS Numeric(18, 0)), CAST(161 AS Numeric(18, 0)), N'Tong cong 13', N'Tong cong 13', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(603 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(354 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(163 AS Numeric(18, 0)), CAST(162 AS Numeric(18, 0)), N'14', N'14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(629 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(355 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(164 AS Numeric(18, 0)), CAST(163 AS Numeric(18, 0)), N'Ten hang 14', N'Ten hang 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(356 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(165 AS Numeric(18, 0)), CAST(164 AS Numeric(18, 0)), N'SoDonHang14', N'SoDonHang14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(357 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(166 AS Numeric(18, 0)), CAST(165 AS Numeric(18, 0)), N'DVT14', N'DVT14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(358 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(167 AS Numeric(18, 0)), CAST(166 AS Numeric(18, 0)), N'So luong 14', N'So luong 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(359 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(168 AS Numeric(18, 0)), CAST(167 AS Numeric(18, 0)), N'Don gia 14', N'Don gia 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(432 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(360 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(169 AS Numeric(18, 0)), CAST(168 AS Numeric(18, 0)), N'Thanh Tien 14', N'Thanh Tien 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(361 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(170 AS Numeric(18, 0)), CAST(169 AS Numeric(18, 0)), N'VAT14', N'VAT14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(362 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(171 AS Numeric(18, 0)), CAST(170 AS Numeric(18, 0)), N'Tien Thue 14', N'Tien Thue 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(363 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(172 AS Numeric(18, 0)), CAST(171 AS Numeric(18, 0)), N'Tong cong 14', N'Tong cong 14', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(625 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(364 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(173 AS Numeric(18, 0)), CAST(172 AS Numeric(18, 0)), N'15', N'15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(50 AS Numeric(18, 0)), CAST(649 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(365 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(174 AS Numeric(18, 0)), CAST(173 AS Numeric(18, 0)), N'Ten hang 15', N'Ten hang 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(84 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(366 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(175 AS Numeric(18, 0)), CAST(174 AS Numeric(18, 0)), N'SoDonHang15', N'SoDonHang15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(200 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(367 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(176 AS Numeric(18, 0)), CAST(175 AS Numeric(18, 0)), N'DVT15', N'DVT15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(303 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(368 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(177 AS Numeric(18, 0)), CAST(176 AS Numeric(18, 0)), N'So luong 15', N'So luong 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(346 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(369 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(178 AS Numeric(18, 0)), CAST(177 AS Numeric(18, 0)), N'Don gia 15', N'Don gia 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(432 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(370 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(179 AS Numeric(18, 0)), CAST(178 AS Numeric(18, 0)), N'Thanh Tien 15', N'Thanh Tien 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(494 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(371 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(180 AS Numeric(18, 0)), CAST(179 AS Numeric(18, 0)), N'VAT15', N'VAT15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(577 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(372 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(181 AS Numeric(18, 0)), CAST(180 AS Numeric(18, 0)), N'Tien Thue 15', N'Tien Thue 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(618 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(373 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(182 AS Numeric(18, 0)), CAST(181 AS Numeric(18, 0)), N'Tong cong 15', N'Tong cong 15', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(703 AS Numeric(18, 0)), CAST(645 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(374 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(183 AS Numeric(18, 0)), CAST(182 AS Numeric(18, 0)), N'Phi dich vu', N'Phi dich vu', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(1103 AS Numeric(18, 0)), CAST(371 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(376 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(184 AS Numeric(18, 0)), CAST(183 AS Numeric(18, 0)), N'BEN_BAN_MA_DV', N'BEN_BAN_MA_DV', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(155 AS Numeric(18, 0)), CAST(133 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(377 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(185 AS Numeric(18, 0)), CAST(184 AS Numeric(18, 0)), N'BEN_BAN_TEN_DV', N'BEN_BAN_TEN_DV', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(136 AS Numeric(18, 0)), CAST(103 AS Numeric(18, 0)), NULL, N'0311854540')
INSERT [dbo].[DMAU_IN_CHI_TIET] ([DAU_IN_CHI_TIETID], [DMAU_INID], [STT], [FIELD_INDEX], [FIELD_NAME], [FIELD_TXT], [FIELD_FONTNAME], [FIELD_FONTSIZE], [FIELD_FONTSTYLE], [FIELD_X], [FIELD_Y], [GHI_CHU], [MA_DV]) VALUES (CAST(378 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(186 AS Numeric(18, 0)), CAST(185 AS Numeric(18, 0)), N'BEN_BAN_DIA_CHI', N'BEN_BAN_DIA_CHI', N'Microsoft Sans Serif', 8, CAST(1 AS Numeric(18, 0)), CAST(133 AS Numeric(18, 0)), CAST(151 AS Numeric(18, 0)), NULL, N'0311854540')
SET IDENTITY_INSERT [dbo].[DMAU_IN_CHI_TIET] OFF
GO
SET IDENTITY_INSERT [dbo].[DTOKHAI_01_GTGT] ON 

INSERT [dbo].[DTOKHAI_01_GTGT] ([DTOKHAI_01_GTGTID], [KIEU_KY], [KY_KE_KHAI], [KY_KE_KHAI_TU_NGAY], [KY_KE_KHAI_DEN_NGAY], [LAN_DAU], [BO_SUNG_LAN_THU], [MA_SO_THUE], [TEN_NGUOI_NOP_THUE], [TEN_DAI_LY_THUE], [MA_SO_THUE_DAI_LY], [DN_VUA_VA_NHO], [DN_SD_NHEU_LD], [GIA_HAN_TT16_CHK], [GIA_HAN_TT16], [CHI_TIEU_21], [CHI_TIEU_22], [CHI_TIEU_23], [CHI_TIEU_24], [CHI_TIEU_25], [CHI_TIEU_26], [CHI_TIEU_27], [CHI_TIEU_28], [CHI_TIEU_29], [CHI_TIEU_30], [CHI_TIEU_31], [CHI_TIEU_32], [CHI_TIEU_33], [CHI_TIEU_34], [CHI_TIEU_35], [CHI_TIEU_36], [CHI_TIEU_37], [CHI_TIEU_38], [CHI_TIEU_39], [CHI_TIEU_40a], [CHI_TIEU_40b], [CHI_TIEU_40], [CHI_TIEU_41], [CHI_TIEU_42], [CHI_TIEU_43], [NHAN_VIEN], [NGUOI_KY], [CHUNG_CHI_HANH_NGHE], [NGAY_KI], [NGAY_TAO], [NGAY_SUA], [NGUOI_TAO], [NGUOI_SUA], [TIEU_MUC_HACH_TOAN], [CHI_TIEU_32a]) VALUES (1, N'Q', N'2/2019', N'01/04/2019', N'30/06/2019', N'X', NULL, N'0101300842-999', N'Công ty TNHH Phát triển Công nghệ Thái Sơn', N'', N'', N'', N'0', N'0', N'', CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(13444781857 AS Numeric(19, 0)), CAST(755217871 AS Numeric(19, 0)), CAST(344999977 AS Numeric(19, 0)), CAST(69906428 AS Numeric(19, 0)), CAST(3495322 AS Numeric(19, 0)), CAST(7517225452 AS Numeric(19, 0)), CAST(751722549 AS Numeric(19, 0)), CAST(13444781857 AS Numeric(19, 0)), CAST(755217871 AS Numeric(19, 0)), CAST(755217871 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(755217871 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(755217871 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), CAST(0 AS Numeric(19, 0)), N'', N'', N'', CAST(N'2019-06-01T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, N'1701', CAST(5512650000 AS Numeric(19, 0)))
SET IDENTITY_INSERT [dbo].[DTOKHAI_01_GTGT] OFF
GO
SET IDENTITY_INSERT [dbo].[HIENTHICOT] ON 

INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(1 AS Numeric(18, 0)), 3, N'Số hóa đơn', N'SO_HOA_DON', N'SO_HOA_DON', N'frmDanhSachDHDT', 1, N'', 2, N'Red', 70, 1, 1, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(2 AS Numeric(18, 0)), 4, N'Ngày hóa đơn', N'NGAY_HOA_DON', N'NGAY_HOA_DON', N'frmDanhSachDHDT', 1, N'dd/MM/yyyy', 2, N'', 80, 1, 1, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(3 AS Numeric(18, 0)), 5, N'Ký hiệu', N'KY_HIEU', N'KY_HIEU', N'frmDanhSachDHDT', 1, N'', 2, N'', 70, 1, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(4 AS Numeric(18, 0)), 6, N'Mẫu số', N'MAU_SO', N'MAU_SO', N'frmDanhSachDHDT', 1, N'', 2, N'', 80, 1, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(7 AS Numeric(18, 0)), 9, N'Mã số thuế', N'BEN_MUA_MA_DV', N'BEN_MUA_MA_DV', N'frmDanhSachDHDT', 1, N'', 1, N'', 80, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(8 AS Numeric(18, 0)), 8, N'Mã đối tác', N'BEN_MUA_MA', N'BEN_MUA_MA', N'frmDanhSachDHDT', 1, N'', 1, N'', 80, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(9 AS Numeric(18, 0)), 11, N'Tên đơn vị đối tác', N'BEN_MUA_TEN_DV', N'BEN_MUA_TEN_DV', N'frmDanhSachDHDT', 1, N'', 1, N'', 255, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(10 AS Numeric(18, 0)), 10, N'Họ tên người mua', N'BEN_MUA_HO_TEN', N'BEN_MUA_HO_TEN', N'frmDanhSachDHDT', 1, N'', 1, N'', 100, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(11 AS Numeric(18, 0)), 15, N'Tổng tiền hàng', N'TONG_TIEN_HANG', N'TONG_TIEN_HANG', N'frmDanhSachDHDT', 1, N'###,###,###,##0.0###', 0, N'', 110, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(12 AS Numeric(18, 0)), 16, N'Tổng tiền thuế', N'TONG_TIEN_THUE', N'TONG_TIEN_THUE', N'frmDanhSachDHDT', 1, N'###,###,###,##0.0###', 0, N'', 110, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(13 AS Numeric(18, 0)), 17, N'Tổng thanh toán', N'TONG_THANH_TOAN', N'TONG_THANH_TOAN', N'frmDanhSachDHDT', 1, N'###,###,###,##0.0###', 0, N'Blue', 110, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(14 AS Numeric(18, 0)), 18, N'Mã tra cứu', N'MA_NHAN_HOA_DON', N'MA_NHAN_HOA_DON', N'frmDanhSachDHDT', 1, N'', 1, N'', 65, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(15 AS Numeric(18, 0)), 19, N'Phân loại hóa đơn', N'TRANG_THAI_DC', N'TRANG_THAI_DC', N'frmDanhSachDHDT', 1, N'', 1, N'', 90, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(16 AS Numeric(18, 0)), 13, N'Số điện thoại', N'BEN_MUA_DIEN_THOAI', N'BEN_MUA_DIEN_THOAI', N'frmDanhSachDHDT', 1, N'', 1, N'', 80, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(17 AS Numeric(18, 0)), 12, N'Địa chỉ', N'BEN_MUA_DIA_CHI', N'BEN_MUA_DIA_CHI', N'frmDanhSachDHDT', 1, N'', 1, N'', 255, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(18 AS Numeric(18, 0)), 14, N'Email', N'BEN_MUA_EMAIL', N'BEN_MUA_EMAIL', N'frmDanhSachDHDT', 1, N'', 1, N'', 140, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(19 AS Numeric(18, 0)), 21, N'Người lập', N'NGUOI_TAO', N'NGUOI_TAO', N'frmDanhSachDHDT', 1, N'', 1, N'', 100, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(20 AS Numeric(18, 0)), 18, N'Loại hóa đơn', N'TEN_LOAI_HOA_DON', N'TEN_LOAI_HOA_DON', N'frmDanhSachDHDT', 1, N'', 1, N'', 130, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(22 AS Numeric(18, 0)), 23, N'Ghi chú nội bộ', N'GHI_CHU_NB', N'GHI_CHU_NB', N'frmDanhSachDHDT', 1, N'', 1, N'', 80, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(24 AS Numeric(18, 0)), 24, N'Trạng thái chuyển đổi', N'TRANG_THAI_CHUYEN_DOI', N'TRANG_THAI_CHUYEN_DOI', N'frmDanhSachDHDT', 1, N'', 1, N'', 115, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(39 AS Numeric(18, 0)), 7, N'Trạng thái hóa đơn', N'TRANG_THAI_HD', N'TRANG_THAI_HD', N'frmDanhSachDHDT', 1, N'', 1, N'', 160, 0, 1, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(45 AS Numeric(18, 0)), 2, N'Chọn', N'IS_IMPORT', N'IS_IMPORT', N'frmDanhSachDHDT', 1, N'', 2, N'', 40, 1, 1, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(54 AS Numeric(18, 0)), 22, N'Ghi chú hóa đơn', N'A.GHI_CHU', N'GHI_CHU', N'frmDanhSachDHDT', 1, NULL, 1, N'', 80, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(57 AS Numeric(18, 0)), 1, N'số billgggg', N'SO_BILL', N'SO_BILL', N'frmBaoCaoBanHang', 0, NULL, 1, N'', 100, 0, 0, 1, 1, N'0100686209', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(60 AS Numeric(18, 0)), 1, N'Ghi chú nội bộ', N'a.GHI_CHU_NB', N'GHI_CHU_NB', N'frmThongKeHangHoaGTGTByTax', 1, NULL, 1, N'', 0, 0, 0, 2, 0, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(61 AS Numeric(18, 0)), 2, N'cHỨNG TỪ SỐ', N'CHUNG_TU_THANH_TOAN_SO', N'CHUNG_TU_THANH_TOAN_SO', N'frmBaoCaoBanHang', 0, NULL, 1, N'', 0, 0, 0, 1, 1, N'0100686209', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(63 AS Numeric(18, 0)), 2, N'Số tham chiếu', N'a.SO_THAM_CHIEU', N'SO_THAM_CHIEU', N'frmThongKeHangHoaGTGTByTax', 1, NULL, 1, N'', 0, 0, 0, 2, 0, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(65 AS Numeric(18, 0)), 4, N'CHUNG_TU_THANH_TOAN_SO', N'CHUNG_TU_THANH_TOAN_SO', N'CHUNG_TU_THANH_TOAN_SO', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 0, 1, N'0303072476', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(67 AS Numeric(18, 0)), 4, N'Số hóa đơn', N'SO_HOA_DON', N'SO_HOA_DON', N'frmThongKeHangHoaGTGT', 1, N'', 2, N'Red', 75, 1, 1, 1, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(68 AS Numeric(18, 0)), 5, N'Ngày hóa đơn', N'NGAY_HOA_DON', N'NGAY_HOA_DON', N'frmThongKeHangHoaGTGT', 1, N'dd/MM/yyyy', 1, N'', 85, 1, 1, 1, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(69 AS Numeric(18, 0)), 1, N'STT', N'', N'', N'frmThongKeHangHoaGTGT', 1, N'', 2, N'', 40, 1, 1, 1, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(71 AS Numeric(18, 0)), 2, N'Mẫu số', N'MAU_SO', N'MAU_SO', N'frmThongKeHangHoaGTGT', 1, NULL, 1, NULL, 0, 1, 1, 1, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(73 AS Numeric(18, 0)), 3, N'Ký hiệu hóa đơn', N'KY_HIEU', N'KY_HIEU', N'frmThongKeHangHoaGTGT', 1, NULL, 1, NULL, 70, 1, 1, 1, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(74 AS Numeric(18, 0)), 6, N'Tên người mua', N'BEN_MUA_HO_TEN', N'BEN_MUA_HO_TEN', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(75 AS Numeric(18, 0)), 7, N'Mã số thuế', N'BEN_MUA_MA_DV', N'BEN_MUA_MA_DV', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(76 AS Numeric(18, 0)), 8, N'Địa chỉ', N'BEN_MUA_DIA_CHI', N'BEN_MUA_DIA_CHI', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(77 AS Numeric(18, 0)), 9, N'Mặt hàng', N'TEN_HANG', N'TEN_HANG', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(78 AS Numeric(18, 0)), 10, N'Doanh số bán', N'THANH_TIEN', N'THANH_TIEN', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(79 AS Numeric(18, 0)), 11, N'Thuế GTGT', N'VAT_TIEN', N'VAT_TIEN', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(80 AS Numeric(18, 0)), 12, N'Ghi chú', N'GHI_CHU', N'GHI_CHU', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0310939343', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(83 AS Numeric(18, 0)), 10, N'Ghi chú nội bộ', N'a.GHI_CHU_NB', N'GHI_CHU_NB', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(84 AS Numeric(18, 0)), 11, N'Số tham chiếu', N'a.SO_THAM_CHIEU_1', N'SO_THAM_CHIEU_1', N'frmThongKeHangHoaGTGT', 1, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(85 AS Numeric(18, 0)), 1, N'Mẫu số', N'a.MAU_SO', N'MAU_SO', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(86 AS Numeric(18, 0)), 2, N'Ký hiệu', N'a.KY_HIEU', N'KY_HIEU', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(87 AS Numeric(18, 0)), 3, N'Số hóa đơn', N'a.SO_HOA_DON', N'SO_HOA_DON', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(88 AS Numeric(18, 0)), 4, N'Ngày hóa đơn', N'a.NGAY_HOA_DON', N'NGAY_HOA_DON', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 1, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(89 AS Numeric(18, 0)), 5, N'Tên người mua', N'a.BEN_MUA_TEN_DV', N'BEN_MUA_TEN_DV', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(90 AS Numeric(18, 0)), 6, N'Mã số thuế', N'a.BEN_MUA_MA_DV', N'BEN_MUA_MA_DV', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(91 AS Numeric(18, 0)), 6, N'Tên hàng', N'h.TEN_HANG', N'TEN_HANG', N'frmThongKeHangHoaGTGT', 0, NULL, 0, NULL, NULL, 1, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(92 AS Numeric(18, 0)), 7, N'Doanh số bán chưa có thuế', N'a.TONG_TIEN_HANG', N'TONG_TIEN_HANG', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(93 AS Numeric(18, 0)), 8, N'Thuế GTGT', N'a.TONG_TIEN_THUE', N'TONG_TIEN_THUE', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(94 AS Numeric(18, 0)), 9, N'Ghi chú', N'a.GHI_CHU', N'GHI_CHU', N'frmThongKeHangHoaGTGT', 1, NULL, 0, NULL, NULL, 1, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(95 AS Numeric(18, 0)), 1, N'Ngày hóa đơn', N'NGAY_HOA_DON', N'NGAY_HOA_DON', N'frmDanhSachHoaDonCanLap_DienTu', 0, NULL, 1, N'', 0, 0, 0, 1, NULL, N'0101300842', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(97 AS Numeric(18, 0)), 25, N'Dhoadonid', N'DHoaDonID', N'DHoaDonID', N'frmDanhSachDHDT', 0, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(98 AS Numeric(18, 0)), 26, N'LOẠI HÓA ĐƠN', N'MA_LOAI_HOA_DON', N'MA_LOAI_HOA_DON', N'frmDanhSachDHDT', 0, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(99 AS Numeric(18, 0)), 27, N'trạng thái điều chỉnh', N'TRANG_THAI_DIEU_CHINH', N'TRANG_THAI_DIEU_CHINH', N'frmDanhSachDHDT', 0, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(100 AS Numeric(18, 0)), 28, N'DHOADON GỐC', N'DHOADONID_GOC', N'DHOADONID_GOC', N'frmDanhSachDHDT', 0, NULL, 1, N'', 0, 0, 0, 2, NULL, N'0100507058', NULL, NULL, NULL)
INSERT [dbo].[HIENTHICOT] ([HIENTHICOTID], [STT], [FieldName], [FieldValue], [FieldValueAS], [FORM_NAME], [CHON], [FieldFormat], [FieldLeft], [ColorName], [colWidth], [colFix], [colDefault], [SplitIndex], [Is_Extension], [ma_dv], [BANG_DU_LIEU], [IS_SUM], [IS_SEARCH]) VALUES (CAST(109 AS Numeric(18, 0)), 1, N'STT', N'', N'', N'frmDanhSachDHDT', 1, NULL, 2, N'', 40, 1, 1, 1, NULL, N'0100507058', NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[HIENTHICOT] OFF
GO
SET IDENTITY_INSERT [dbo].[SBIENBAN_TEMPLATE] ON 

INSERT [dbo].[SBIENBAN_TEMPLATE] ([SBIENBAN_TEMPLATEID], [STT], [MA_TEMPLATE], [TEN_TEMPLATE], [MAU_SO], [LOAI_BIEN_BAN], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [GHI_CHU], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [IS_A5], [IS_IN_NGANG], [GUID_BIENBAN_TEMP], [IS_DONG_BO], [NGAY_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO]) VALUES (CAST(2 AS Numeric(18, 0)), CAST(0 AS Numeric(18, 0)), N'AA        ', N'DC', N'01GT', N'DC', NULL, NULL, NULL, NULL, N'BB_DieuChinh.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

                            .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:15px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 700px;
							<!--height: 980px;-->
                            font-size: 15px;
                            line-height: 20px;
                            font-family: Times New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 0px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
							text-align: justify;
                            }

                            .invName{text-align:center;font-size:18px;line-height:24px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
							.invNameTA{text-align:center;font-size:16px;line-height:24px;font-weight:700;margin:0 0 3px;}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;

                            }
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}       
							<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}
                            .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td, .table th{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 200px;
                            left: 61px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 400px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -1;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:12px;
                            text-transform: uppercase;
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:100%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            max-width: 179px;image-rendering: optimizequality;
                            }
							.padd20{padding-left:20px;}
							.padd21{padding-left:52px;}
							.BBTH{text-align:center;font-size:22px; font-weight:900;padding-bottom:10px}
							.daidien{font-weight:900;font-size:16px;}
                            .padd5{padding-left:5px}
                            .ckt {font-style:italic}
							.paddcont{padding-left:20px;padding-right:0.5cm;}
                            .tableheader{height:95px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{width:100%;}
                            .tableheader .td3{width:25%;}
                            .logo{width:200px;}
                            .lineh17{line-height:17px !important}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
                            .tbks td{height:122.5px}
							.paddtb{padding:7px 0}
                            .textcd{height:40px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}                
						</style><body style="font-size:8px;"><div class="container"><div class="paddcont"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="ngaybb" select="inv:invoiceData/inv:invoiceDate" /><xsl:if test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"></div><table class="tableheader"><tr><td class="text-center td2" style=""><div class="row"><div class="invName">
													CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
													</div><div class="invNameTA">
													Độc lập - Tự do - Hạnh Phúc<br /><b>_ _ _ _***_ _ _ _</b></div></div></td></tr></table><div class="BBTH">
									BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN
									</div><div class="padd5"><i><div class="padd20"><div class="">
										- Căn cứ Thông tư số 39/2014/TT-BTC ngày 31/03/2014 hướng dẫn thi hành Nghị định số 51/2010/NĐ-CP và Nghị định 04/2014/NĐ-CP về hóa đơn bán hàng hóa, cung ứng dịch vụ.
												</div><div class="">
										- Căn cứ Thông tư 26/2015/TT-BTC ngày 27/02/2015 hướng dẫn về Thuế GTGT, quản lý thuế và hóa đơn có hiệu lực từ ngày 01/01/2015.
												</div><div class=""> - Căn cứ Thông tư 32/2011/TT-BTC ngày 14/03/2011 của Bộ Tài chính Hướng dẫn về khởi tạo, phát hành và sử dụng hóa đơn điện tử bán hàng hóa, cung ứng dịch vụ.</div><div class=""> - Căn cứ thỏa thuận giữa các bên.</div></div></i><div class="paddtb"><i> Hôm nay ngày <xsl:value-of select="concat('''', substring($ngaybb, 9, 2), ''/'', substring($ngaybb, 6, 2), ''/'', substring($ngaybb, 1, 4))" /></i>, chúng tôi gồm có:
										</div><div class="daidien">
										Bên A: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện: <xsl:value-of select="inv:invoiceData/inv:NGUOI_BAN" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:sellerEmail" /></div></div></div><div class="daidien">
										Bên B: <xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:buyerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện:  <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:CHUC_VU_BM" /></div></div></div><br /><div>
										Hai bên, thống nhất lập biên bản này để điều chỉnh hóa đơn GTGT sau:
										</div><div class="padd20"><b>
											- Số hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /><br />
											- Mẫu số: <xsl:value-of select="inv:invoiceData/inv:templateCode" /><br />
											- Ký hiệu: <xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /><br />
											- Ngày lập: <xsl:value-of select="concat('''', substring($issuedDate, 9, 2), ''/'', substring($issuedDate, 6, 2), ''/'', substring($issuedDate, 1, 4))" /><br />
											- Giá trị hóa đơn: <xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:if><br />
											- Tên dịch vụ: <xsl:value-of select="inv:invoiceData/inv:itemName" /><br /></b><div> 
												Lý do điều chỉnh: <xsl:value-of select="inv:invoiceData/inv:invoiceNote" />.  <br />
												- Trước ghi là: <xsl:value-of select="inv:invoiceData/inv:TruocGhi" /><br />
												- Nay điều chỉnh là: <xsl:value-of select="inv:invoiceData/inv:SauGhi" /><br />
											Chúng tôi xin cam kết các thông tin khai ở trên là hoàn toàn chính xác. 
											Nếu có bất kỳ sai sót nào chúng tôi xin chịu trách nhiệm trước pháp luật.<br />
											Biên bản này được lập thành 02 bản, bên A giữ 01 bản, bên B giữ 01 bản.
											</div></div></div><div class="footer"><div class="text-left textcd" style=""><div class="row"><div class="col7"><p class="text-center"><b>ĐẠI DIỆN BÊN A</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div><div class="col6"></div><div class="col7" style=""><p class="text-center"><b>ĐẠI DIỆN BÊN B</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><td style="vertical-align:bottom;"></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"></td></xsl:otherwise></xsl:choose></tr></table></div></div></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="text()" name="split"><xsl:param name="pText" select="inv:itemName" /><xsl:if test="string-length($pText)"><xsl:if test="($pText =.)"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="normalize-space($how-many) &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
				</td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SBIENBAN_TEMPLATE] ([SBIENBAN_TEMPLATEID], [STT], [MA_TEMPLATE], [TEN_TEMPLATE], [MAU_SO], [LOAI_BIEN_BAN], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [GHI_CHU], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [IS_A5], [IS_IN_NGANG], [GUID_BIENBAN_TEMP], [IS_DONG_BO], [NGAY_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO]) VALUES (CAST(3 AS Numeric(18, 0)), CAST(0 AS Numeric(18, 0)), N'AB        ', N'XB', N'01GTKT', N'XB', NULL, NULL, NULL, NULL, N'BB_Huy.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

                            .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:15px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 700px;
							<!--height: 980px;-->
                            font-size: 15px;
                            line-height: 20px;
                            font-family: Times New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 0px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
							text-align: justify;
                            }

                            .invName{text-align:center;font-size:18px;line-height:24px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
							.invNameTA{text-align:center;font-size:16px;line-height:24px;font-weight:700;margin:0 0 3px;}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;

                            }
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}       
							<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}
                            .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td, .table th{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 200px;
                            left: 61px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 400px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -1;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:12px;
                            text-transform: uppercase;
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:100%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            max-width: 179px;image-rendering: optimizequality;
                            }
							.padd20{padding-left:20px;}
							.paddcont{padding-left:20px;padding-right:0.5cm;}
							.padd21{padding-left:52px;}
							.BBTH{text-align:center;font-size:22px; font-weight:900;padding-bottom:10px}
							.daidien{font-weight:900;font-size:16px;}
                            .padd5{padding-left:5px}
                            .ckt {font-style:italic}
                            .tableheader{height:95px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{width:100%;}
                            .tableheader .td3{width:25%;}
                            .logo{width:200px;}
                            .lineh17{line-height:17px !important}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
							.paddtb{padding:7px 0}
                            .tbks td{height:122.5px}
                            .textcd{height:40px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}                
						</style><body style="font-size:8px;"><div class="container"><div class="paddcont"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="ngaybb" select="inv:invoiceData/inv:invoiceDate" /><xsl:if test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"></div><table class="tableheader"><tr><td class="text-center td2" style=""><div class="row"><div class="invName">
													CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
													</div><div class="invNameTA">
													Độc lập - Tự do - Hạnh Phúc<br /><b>_ _ _ _***_ _ _ _</b></div></div></td></tr></table><div class="BBTH">
									BIÊN BẢN HỦY HÓA ĐƠN
									</div><div class="padd5"><i><div class="padd20"><div class="">
										- Căn cứ Thông tư số 39/2014/TT-BTC ngày 31/03/2014 hướng dẫn thi hành Nghị định số 51/2010/NĐ-CP và Nghị định 04/2014/NĐ-CP về hóa đơn bán hàng hóa, cung ứng dịch vụ.
												</div><div class="">
										- Căn cứ Thông tư 26/2015/TT-BTC ngày 27/02/2015 hướng dẫn về Thuế GTGT, quản lý thuế và hóa đơn có hiệu lực từ ngày 01/01/2015.
												</div><div class=""> - Căn cứ Thông tư 32/2011/TT-BTC ngày 14/03/2011 của Bộ Tài chính Hướng dẫn về khởi tạo, phát hành và sử dụng hóa đơn điện tử bán hàng hóa, cung ứng dịch vụ.</div><div class=""> - Căn cứ thỏa thuận giữa các bên.</div></div></i><div class="paddtb"><i> Hôm nay ngày <xsl:value-of select="concat('''', substring($ngaybb, 9, 2), ''/'', substring($ngaybb, 6, 2), ''/'', substring($ngaybb, 1, 4))" /></i>, chúng tôi gồm có:<!--hôm nay--></div><div class="daidien">
										Bên A: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện: <xsl:value-of select="inv:invoiceData/inv:NGUOI_BAN" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:sellerEmail" /></div></div></div><div class="daidien">
										Bên B: <xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:buyerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện:  <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:CHUC_VU_BM" /></div></div></div><br /><div>
										Hai bên, thống nhất lập biên bản này để hủy và thu hồi hóa đơn hóa đơn GTGT với nội dung sau:
										</div><div class="padd20"><b>
											- Số hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /><br />
											- Mẫu số: <xsl:value-of select="inv:invoiceData/inv:templateCode" /><br />
											- Ký hiệu: <xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /><br />
											- Ngày lập: <xsl:value-of select="concat('''', substring($issuedDate, 9, 2), ''/'', substring($issuedDate, 6, 2), ''/'', substring($issuedDate, 1, 4))" /><br />
											- Giá trị hóa đơn: <xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:if><br />
											- Tên dịch vụ: <xsl:value-of select="inv:invoiceData/inv:itemName" /><br /></b><div> 
												Lý do hủy hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNote" />.  <br /> 
											Chúng tôi xin cam kết các thông tin khai ở trên là hoàn toàn chính xác. 
											Nếu có bất kỳ sai sót nào chúng tôi xin chịu trách nhiêm trước pháp luật.<br />
											Biên bản này được lập thành 02 bản, bên A giữ 01 bản, bên B giữ 01 bản.
											</div></div></div><div class="footer"><div class="text-left textcd" style=""><div class="row"><div class="col7"><p class="text-center"><b>ĐẠI DIỆN BÊN A</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div><div class="col6"></div><div class="col7" style=""><p class="text-center"><b>ĐẠI DIỆN BÊN B</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><td style="vertical-align:bottom;"></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"></td></xsl:otherwise></xsl:choose></tr></table></div></div></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="text()" name="split"><xsl:param name="pText" select="inv:itemName" /><xsl:if test="string-length($pText)"><xsl:if test="($pText =.)"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="normalize-space($how-many) &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
				</td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SBIENBAN_TEMPLATE] ([SBIENBAN_TEMPLATEID], [STT], [MA_TEMPLATE], [TEN_TEMPLATE], [MAU_SO], [LOAI_BIEN_BAN], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [GHI_CHU], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [IS_A5], [IS_IN_NGANG], [GUID_BIENBAN_TEMP], [IS_DONG_BO], [NGAY_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO]) VALUES (CAST(4 AS Numeric(18, 0)), CAST(3 AS Numeric(18, 0)), N'XB01      ', N'Biên bản xóa bỏ', N'XB01', N'XB', NULL, NULL, NULL, NULL, N'BB_Huy.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

                            .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:15px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 700px;
							<!--height: 980px;-->
                            font-size: 15px;
                            line-height: 20px;
                            font-family: Times New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 0px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
							text-align: justify;
                            }

                            .invName{text-align:center;font-size:18px;line-height:24px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
							.invNameTA{text-align:center;font-size:16px;line-height:24px;font-weight:700;margin:0 0 3px;}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;

                            }
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}       
							<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}
                            .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td, .table th{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 200px;
                            left: 61px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 400px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -1;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:12px;
                            text-transform: uppercase;
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:100%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            max-width: 179px;image-rendering: optimizequality;
                            }
							.padd20{padding-left:20px;}
							.paddcont{padding-left:20px;padding-right:0.5cm;}
							.padd21{padding-left:52px;}
							.BBTH{text-align:center;font-size:22px; font-weight:900;padding-bottom:10px}
							.daidien{font-weight:900;font-size:16px;}
                            .padd5{padding-left:5px}
                            .ckt {font-style:italic}
                            .tableheader{height:95px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{width:100%;}
                            .tableheader .td3{width:25%;}
                            .logo{width:200px;}
                            .lineh17{line-height:17px !important}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
							.paddtb{padding:7px 0}
                            .tbks td{height:122.5px}
                            .textcd{height:40px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}                
						</style><body style="font-size:8px;"><div class="container"><div class="paddcont"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="ngaybb" select="inv:invoiceData/inv:invoiceDate" /><xsl:if test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"></div><table class="tableheader"><tr><td class="text-center td2" style=""><div class="row"><div class="invName">
													CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
													</div><div class="invNameTA">
													Độc lập - Tự do - Hạnh Phúc<br /><b>_ _ _ _***_ _ _ _</b></div></div></td></tr></table><div class="BBTH">
									BIÊN BẢN HỦY HÓA ĐƠN
									</div><div class="padd5"><i><div class="padd20"><div class="">
										- Căn cứ Thông tư số 39/2014/TT-BTC ngày 31/03/2014 hướng dẫn thi hành Nghị định số 51/2010/NĐ-CP và Nghị định 04/2014/NĐ-CP về hóa đơn bán hàng hóa, cung ứng dịch vụ.
												</div><div class="">
										- Căn cứ Thông tư 26/2015/TT-BTC ngày 27/02/2015 hướng dẫn về Thuế GTGT, quản lý thuế và hóa đơn có hiệu lực từ ngày 01/01/2015.
												</div><div class=""> - Căn cứ Thông tư 32/2011/TT-BTC ngày 14/03/2011 của Bộ Tài chính Hướng dẫn về khởi tạo, phát hành và sử dụng hóa đơn điện tử bán hàng hóa, cung ứng dịch vụ.</div><div class=""> - Căn cứ thỏa thuận giữa các bên.</div></div></i><div class="paddtb"><i> Hôm nay ngày <xsl:value-of select="concat('''', substring($ngaybb, 9, 2), ''/'', substring($ngaybb, 6, 2), ''/'', substring($ngaybb, 1, 4))" /></i>, chúng tôi gồm có:<!--hôm nay--></div><div class="daidien">
										Bên A: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện: <xsl:value-of select="inv:invoiceData/inv:NGUOI_BAN" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:sellerEmail" /></div></div></div><div class="daidien">
										Bên B: <xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:buyerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện:  <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:CHUC_VU_BM" /></div></div></div><br /><div>
										Hai bên, thống nhất lập biên bản này để hủy và thu hồi hóa đơn hóa đơn GTGT với nội dung sau:
										</div><div class="padd20"><b>
											- Số hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /><br />
											- Mẫu số: <xsl:value-of select="inv:invoiceData/inv:templateCode" /><br />
											- Ký hiệu: <xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /><br />
											- Ngày lập: <xsl:value-of select="concat('''', substring($issuedDate, 9, 2), ''/'', substring($issuedDate, 6, 2), ''/'', substring($issuedDate, 1, 4))" /><br />
											- Giá trị hóa đơn: <xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:if><br />
											- Tên dịch vụ: <xsl:value-of select="inv:invoiceData/inv:itemName" /><br /></b><div> 
												Lý do hủy hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNote" />.  <br /> 
											Chúng tôi xin cam kết các thông tin khai ở trên là hoàn toàn chính xác. 
											Nếu có bất kỳ sai sót nào chúng tôi xin chịu trách nhiêm trước pháp luật.<br />
											Biên bản này được lập thành 02 bản, bên A giữ 01 bản, bên B giữ 01 bản.
											</div></div></div><div class="footer"><div class="text-left textcd" style=""><div class="row"><div class="col7"><p class="text-center"><b>ĐẠI DIỆN BÊN A</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div><div class="col6"></div><div class="col7" style=""><p class="text-center"><b>ĐẠI DIỆN BÊN B</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><td style="vertical-align:bottom;"></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"></td></xsl:otherwise></xsl:choose></tr></table></div></div></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="text()" name="split"><xsl:param name="pText" select="inv:itemName" /><xsl:if test="string-length($pText)"><xsl:if test="($pText =.)"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="normalize-space($how-many) &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
				</td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SBIENBAN_TEMPLATE] ([SBIENBAN_TEMPLATEID], [STT], [MA_TEMPLATE], [TEN_TEMPLATE], [MAU_SO], [LOAI_BIEN_BAN], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [GHI_CHU], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [IS_A5], [IS_IN_NGANG], [GUID_BIENBAN_TEMP], [IS_DONG_BO], [NGAY_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO]) VALUES (CAST(5 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), N'DC01      ', N'Biên bản điều chỉnh', N'DC01', N'DC', NULL, NULL, NULL, NULL, N'BB_DieuChinh.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

                            .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:15px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 700px;
							<!--height: 980px;-->
                            font-size: 15px;
                            line-height: 20px;
                            font-family: Times New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 0px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
							text-align: justify;
                            }

                            .invName{text-align:center;font-size:18px;line-height:24px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
							.invNameTA{text-align:center;font-size:16px;line-height:24px;font-weight:700;margin:0 0 3px;}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;

                            }
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}       
							<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}
                            .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td, .table th{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 200px;
                            left: 61px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 400px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -1;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:12px;
                            text-transform: uppercase;
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:100%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            max-width: 179px;image-rendering: optimizequality;
                            }
							.padd20{padding-left:20px;}
							.padd21{padding-left:52px;}
							.BBTH{text-align:center;font-size:22px; font-weight:900;padding-bottom:10px}
							.daidien{font-weight:900;font-size:16px;}
                            .padd5{padding-left:5px}
                            .ckt {font-style:italic}
							.paddcont{padding-left:20px;padding-right:0.5cm;}
                            .tableheader{height:95px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{width:100%;}
                            .tableheader .td3{width:25%;}
                            .logo{width:200px;}
                            .lineh17{line-height:17px !important}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
                            .tbks td{height:122.5px}
							.paddtb{padding:7px 0}
                            .textcd{height:40px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}                
						</style><body style="font-size:8px;"><div class="container"><div class="paddcont"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="ngaybb" select="inv:invoiceData/inv:invoiceDate" /><xsl:if test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"></div><table class="tableheader"><tr><td class="text-center td2" style=""><div class="row"><div class="invName">
													CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
													</div><div class="invNameTA">
													Độc lập - Tự do - Hạnh Phúc<br /><b>_ _ _ _***_ _ _ _</b></div></div></td></tr></table><div class="BBTH">
									BIÊN BẢN ĐIỀU CHỈNH HÓA ĐƠN
									</div><div class="padd5"><i><div class="padd20"><div class="">
										- Căn cứ Thông tư số 39/2014/TT-BTC ngày 31/03/2014 hướng dẫn thi hành Nghị định số 51/2010/NĐ-CP và Nghị định 04/2014/NĐ-CP về hóa đơn bán hàng hóa, cung ứng dịch vụ.
												</div><div class="">
										- Căn cứ Thông tư 26/2015/TT-BTC ngày 27/02/2015 hướng dẫn về Thuế GTGT, quản lý thuế và hóa đơn có hiệu lực từ ngày 01/01/2015.
												</div><div class=""> - Căn cứ Thông tư 32/2011/TT-BTC ngày 14/03/2011 của Bộ Tài chính Hướng dẫn về khởi tạo, phát hành và sử dụng hóa đơn điện tử bán hàng hóa, cung ứng dịch vụ.</div><div class=""> - Căn cứ thỏa thuận giữa các bên.</div></div></i><div class="paddtb"><i> Hôm nay ngày <xsl:value-of select="concat('''', substring($ngaybb, 9, 2), ''/'', substring($ngaybb, 6, 2), ''/'', substring($ngaybb, 1, 4))" /></i>, chúng tôi gồm có:
										</div><div class="daidien">
										Bên A: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện: <xsl:value-of select="inv:invoiceData/inv:NGUOI_BAN" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:sellerEmail" /></div></div></div><div class="daidien">
										Bên B: <xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:buyerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div></div><div class="row"><div class="col13">
												Đại diện:  <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:CHUC_VU_BM" /></div></div></div><br /><div>
										Hai bên, thống nhất lập biên bản này để điều chỉnh hóa đơn GTGT sau:
										</div><div class="padd20"><b>
											- Số hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /><br />
											- Mẫu số: <xsl:value-of select="inv:invoiceData/inv:templateCode" /><br />
											- Ký hiệu: <xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /><br />
											- Ngày lập: <xsl:value-of select="concat('''', substring($issuedDate, 9, 2), ''/'', substring($issuedDate, 6, 2), ''/'', substring($issuedDate, 1, 4))" /><br />
											- Giá trị hóa đơn: <xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:if><br />
											- Tên dịch vụ: <xsl:value-of select="inv:invoiceData/inv:itemName" /><br /></b><div> 
												Lý do điều chỉnh: <xsl:value-of select="inv:invoiceData/inv:invoiceNote" />.  <br />
												- Trước ghi là: <xsl:value-of select="inv:invoiceData/inv:TruocGhi" /><br />
												- Nay điều chỉnh là: <xsl:value-of select="inv:invoiceData/inv:SauGhi" /><br />
											Chúng tôi xin cam kết các thông tin khai ở trên là hoàn toàn chính xác. 
											Nếu có bất kỳ sai sót nào chúng tôi xin chịu trách nhiệm trước pháp luật.<br />
											Biên bản này được lập thành 02 bản, bên A giữ 01 bản, bên B giữ 01 bản.
											</div></div></div><div class="footer"><div class="text-left textcd" style=""><div class="row"><div class="col7"><p class="text-center"><b>ĐẠI DIỆN BÊN A</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div><div class="col6"></div><div class="col7" style=""><p class="text-center"><b>ĐẠI DIỆN BÊN B</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><td style="vertical-align:bottom;"></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"></td></xsl:otherwise></xsl:choose></tr></table></div></div></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="text()" name="split"><xsl:param name="pText" select="inv:itemName" /><xsl:if test="string-length($pText)"><xsl:if test="($pText =.)"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="normalize-space($how-many) &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
				</td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SBIENBAN_TEMPLATE] ([SBIENBAN_TEMPLATEID], [STT], [MA_TEMPLATE], [TEN_TEMPLATE], [MAU_SO], [LOAI_BIEN_BAN], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [GHI_CHU], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [IS_A5], [IS_IN_NGANG], [GUID_BIENBAN_TEMP], [IS_DONG_BO], [NGAY_DONG_BO], [TRANG_THAI_DONG_BO], [LOG_DONG_BO]) VALUES (CAST(6 AS Numeric(18, 0)), CAST(0 AS Numeric(18, 0)), N'TH01      ', N'Biên bản thu hồi', N'TH01', N'TT', NULL, NULL, NULL, NULL, N'BB_ThuHoi.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

                            .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:15px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 700px;
							<!--height: 980px;-->
                            font-size: 15px;
                            line-height: 20px;
                            font-family: Times New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 0px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
							text-align: justify;
                            }

                            .invName{text-align:center;font-size:18px;line-height:24px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
							.invNameTA{text-align:center;font-size:16px;line-height:24px;font-weight:700;margin:0 0 3px;}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;

                            }
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}       
							<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}
                            .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td, .table th{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 200px;
                            left: 61px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 400px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -1;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:12px;
                            text-transform: uppercase;
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:100%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            max-width: 179px;image-rendering: optimizequality;
                            }
							.padd20{padding-left:20px;}
							.padd21{padding-left:52px;}
							.BBTH{text-align:center;font-size:22px; font-weight:900;padding-bottom:10px}
							.daidien{font-weight:900;font-size:16px;}
                            .padd5{padding-left:5px}
							.paddcont{padding-left:20px;padding-right:0.5cm;}
                            .ckt {font-style:italic}
                            .tableheader{height:95px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{width:100%;}
                            .tableheader .td3{width:25%;}
                            .logo{width:200px;}
                            .lineh17{line-height:17px !important}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
							.paddtb{padding:7px 0}
                            .tbks td{height:122.5px}
                            .textcd{height:40px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}                
						</style><body style="font-size:8px;"><div class="container"><div class="paddcont"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="ngaybb" select="inv:invoiceData/inv:invoiceDate" /><xsl:if test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"></div><table class="tableheader"><tr><td class="text-center td2" style=""><div class="row"><div class="invName">
													CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
													</div><div class="invNameTA">
													Độc lập - Tự do - Hạnh Phúc<br /><b>_ _ _ _***_ _ _ _</b></div></div></td></tr></table><div class="BBTH">
									BIÊN BẢN THU HỒI HÓA ĐƠN
									</div><div class="padd5"><i><div class="padd20"><div class="">
										- Căn cứ Thông tư số 39/2014/TT-BTC ngày 31/03/2014 hướng dẫn thi hành Nghị định số 51/2010/NĐ-CP và Nghị định 04/2014/NĐ-CP về hóa đơn bán hàng hóa, cung ứng dịch vụ.
												</div><div class="">
										- Căn cứ Thông tư 26/2015/TT-BTC ngày 27/02/2015 hướng dẫn về Thuế GTGT, quản lý thuế và hóa đơn có hiệu lực từ ngày 01/01/2015.
												</div><div class=""> - Căn cứ Thông tư 32/2011/TT-BTC ngày 14/03/2011 của Bộ Tài chính Hướng dẫn về khởi tạo, phát hành và sử dụng hóa đơn điện tử bán hàng hóa, cung ứng dịch vụ.</div><div class=""> - Căn cứ thỏa thuận giữa các bên.</div></div></i><div class="paddtb"><i> Hôm nay ngày <xsl:value-of select="concat('''', substring($ngaybb, 9, 2), ''/'', substring($ngaybb, 6, 2), ''/'', substring($ngaybb, 1, 4))" /></i>, chúng tôi gồm có:
										</div><div class="daidien">
										Bên A: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></div></div><div class="row"><div class="col13">
												Do Ông (Bà): <xsl:value-of select="inv:invoiceData/inv:NGUOI_BAN" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:sellerEmail" /></div></div></div><div class="daidien">
										Bên B: <xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div class="padd20"><div>
											Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="row"><div class="col13">
												Điện thoại: <xsl:value-of select="inv:invoiceData/inv:buyerPhoneNumber" /></div><div class="col7">
												Mã số thuế: <xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div></div><div class="row"><div class="col13">
												Do Ông (Bà):  <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div class="col7">
												Chức vụ: <xsl:value-of select="inv:invoiceData/inv:CHUC_VU_BM" /></div></div></div><br /><div>
										Hai bên, thống nhất lập biên bản thu hồi hóa đơn GTGT:
										</div><div class="padd20"><b>
											- Số hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /><br />
											- Mẫu số: <xsl:value-of select="inv:invoiceData/inv:templateCode" /><br />
											- Ký hiệu: <xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /><br />
											- Ngày lập: <xsl:value-of select="concat('''', substring($issuedDate, 9, 2), ''/'', substring($issuedDate, 6, 2), ''/'', substring($issuedDate, 1, 4))" /><br />
											- Giá trị hóa đơn: <xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:if><br />
											- Tên dịch vụ: <xsl:value-of select="inv:invoiceData/inv:itemName" /><br /></b><div><b>Lý do hủy hóa đơn: <xsl:value-of select="inv:invoiceData/inv:invoiceNote" />. Hóa đơn đã thu hồi sẽ được xóa bỏ theo quy định và sẽ xuất thay thế bằng hóa đơn mới</b><br />
											Chúng tôi xin cam kết các thông tin khai ở trên là hoàn toàn chính xác. 
											Nếu có bất kỳ sai sót nào chúng tôi xin chịu trách nhiệm trước pháp luật.<br />
											Biên bản này được lập thành 02 bản, bên A giữ 01 bản, bên B giữ 01 bản.
											</div></div></div><div class="footer"><div class="text-left textcd" style=""><div class="row"><div class="col7"><p class="text-center"><b>ĐẠI DIỆN BÊN A</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div><div class="col6"></div><div class="col7" style=""><p class="text-center"><b>ĐẠI DIỆN BÊN B</b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><td style="vertical-align:bottom;"></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"></td></xsl:otherwise></xsl:choose></tr></table></div></div></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="text()" name="split"><xsl:param name="pText" select="inv:itemName" /><xsl:if test="string-length($pText)"><xsl:if test="($pText =.)"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="normalize-space($how-many) &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
				</td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[SBIENBAN_TEMPLATE] OFF
GO
SET IDENTITY_INSERT [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL] ON 

INSERT [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL] ([SCAUHINH_DANHMUC_IMPORT_EXCEL_ID], [TEN_DANH_MUC], [TEN_BANG]) VALUES (1, N'Danh mục khách hàng', N'SDOITAC')
INSERT [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL] ([SCAUHINH_DANHMUC_IMPORT_EXCEL_ID], [TEN_DANH_MUC], [TEN_BANG]) VALUES (3, N'Danh mục hàng hóa', N'DHANGHOA')
INSERT [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL] ([SCAUHINH_DANHMUC_IMPORT_EXCEL_ID], [TEN_DANH_MUC], [TEN_BANG]) VALUES (7, N'Chi tiết hàng hóa', N'DHOADON_HANG')
SET IDENTITY_INSERT [dbo].[SCAUHINH_DANHMUC_IMPORT_EXCEL] OFF
GO
SET IDENTITY_INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ON 

INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (32, N'SDOITAC', N'Mã đơn vị', N'MA_DV', N'A', N'A', 0, N'root', N'Root', CAST(N'2017-01-01T09:15:39.863' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (33, N'SDOITAC', N'Tên đơn vị', N'TEN_DV', N'B', N'B', 0, N'root', N'Root', CAST(N'2017-01-01T09:15:39.867' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (35, N'SDOITAC', N'Mã số thuế', N'MA_SO_THUE', N'C', N'C', 0, N'root', N'Root', CAST(N'2017-01-09T21:21:18.560' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (36, N'DHANGHOA', N'Mã hàng', N'MA_HANG', N'A', N'A', 0, N'root', N'Root', CAST(N'2017-02-05T09:21:41.990' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (38, N'DHANGHOA', N'Tên hàng', N'TEN_HANG', N'B', N'B', 0, N'root', N'Root', CAST(N'2017-02-05T09:21:41.990' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (39, N'DHANGHOA', N'Loại hàng', N'DLOAI_HANGID', N'C', N'C', 0, N'root', N'Root', CAST(N'2017-02-05T09:21:41.990' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, N'DLOAI_HANG', N'TEN', N'DLOAI_HANGID', N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (40, N'DHANGHOA', N'Đơn vị tính', N'MA_DVT', N'D', N'D', 0, N'root', N'Root', CAST(N'2017-02-05T09:21:41.990' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, N'SDVT', N'TEN_DVT', N'MA_DVT', N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (41, N'DHANGHOA', N'Giá nhập', N'GIA_NHAP', N'E', N'E', 0, N'root', N'Root', CAST(N'2017-02-05T09:21:41.990' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (42, N'DHANGHOA', N'Giá xuất', N'GIA_XUAT', N'F', N'F', 0, N'root', N'Root', CAST(N'2017-02-05T09:21:41.990' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (43, N'DHANGHOA', N'VAT', N'MA_DVT', N'G', N'G', 0, N'root', N'Root', CAST(N'2017-02-05T10:03:17.787' AS DateTime), CAST(N'2019-06-02T16:06:04.803' AS DateTime), N'DHANGHOA', 0, 0, NULL, N'', N'', N'', N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (145, N'DPHATHANH_CHITIET', N'Mã số thuế', N'MA_DV', N'A', N'A', 0, N'root', N'root', NULL, NULL, N'DPHATHANH_CHITIET', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (203, N'SDOITAC', N'Người giao dịch', N'NGUOI_GIAO_DICH', N'D', N'D', 0, N'Root', N'Root', CAST(N'2019-05-03T20:36:30.823' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', 0)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (204, N'SDOITAC', N'Địa chỉ', N'DIA_CHI', N'E', N'E', 0, N'Root', N'Root', CAST(N'2019-05-03T20:36:30.823' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', 0)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (205, N'SDOITAC', N'Điện thoại', N'DIEN_THOAI', N'F', N'F', 0, N'Root', N'Root', CAST(N'2019-05-03T20:36:30.823' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', 0)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (206, N'SDOITAC', N'Email', N'EMAIL', N'G', N'G', 0, N'Root', N'Root', CAST(N'2019-05-03T20:36:30.823' AS DateTime), CAST(N'2019-06-02T16:17:22.867' AS DateTime), N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', 0)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (472, N'HOADON', N'STT', N'STT', N'', N'', 1, NULL, NULL, NULL, NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (473, N'HOADON', N'STT', N'STT', N'', N'', 1, NULL, NULL, NULL, NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (474, N'HOADON', N'STT', N'STT', N'', N'', 1, NULL, NULL, NULL, NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (475, N'HOADON', N'STT', N'STT', N'', N'', 1, NULL, NULL, NULL, NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (476, N'HOADON', N'STT', N'STT', N'', N'', 1, NULL, NULL, NULL, NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (488, N'DHOADON_HANG', N'Mã hàng hóa', N'MA_HANG', N'A', N'A', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (489, N'DHOADON_HANG', N'Tên hàng hóa, dịch vụ', N'TEN_HANG', N'B', N'B', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (490, N'DHOADON_HANG', N'Đơn vị tính', N'MA_DVT', N'C', N'C', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (491, N'DHOADON_HANG', N'Số lượng', N'SO_LUONG', N'D', N'D', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (492, N'DHOADON_HANG', N'Đơn giá', N'DON_GIA', N'E', N'E', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (493, N'DHOADON_HANG', N'Thành Tiền', N'THANH_TIEN', N'F', N'F', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (494, N'DHOADON_HANG', N'Thuế suất', N'VAT', N'G', N'G', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (495, N'DHOADON_HANG', N'Tiền thuế', N'VAT_TIEN', N'H', N'H', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (496, N'SDOITAC', N'Tên ngân hàng', N'NGAN_HANG_TEN1', N'H', N'H', 0, N'Root', NULL, CAST(N'2019-06-02T16:17:22.867' AS DateTime), NULL, N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (497, N'SDOITAC', N'Số tài khoản', N'NGAN_HANG_TAI_KHOAN1', N'I', N'I', 0, N'Root', NULL, CAST(N'2019-06-02T16:17:22.867' AS DateTime), NULL, N'SDOITAC', 0, 0, NULL, NULL, NULL, NULL, N'', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (499, N'DHOADON_HANG', N'Mã hàng hóa', N'Mã hàng hóa', N'Mã hàng hóa', N'A', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (500, N'DHOADON_HANG', N'Tên hàng hóa, dịch vụ', N'Tên hàng hóa, dịch vụ', N'Tên hàng hóa, dịch vụ', N'B', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (501, N'DHOADON_HANG', N'Đơn vị tính', N'Đơn vị tính', N'Đơn vị tính', N'C', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (502, N'DHOADON_HANG', N'Số lượng', N'Số lượng', N'Số lượng', N'D', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (503, N'DHOADON_HANG', N'Đơn giá', N'Đơn giá', N'Đơn giá', N'E', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (504, N'DHOADON_HANG', N'Thành Tiền', N'Thành Tiền', N'Thành Tiền', N'F', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (505, N'DHOADON_HANG', N'Thuế suất', N'Thuế suất', N'Thuế suất', N'G', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] ([SCAUHINH_NHAP_DU_LIEU_EXCELID], [LOAI_NHAP], [TEN_TIEU_CHI], [MA_TIEU_CHI], [COT_EXCEL_MACDINH], [COT_EXCEL_SUA], [DU_LIEU_LAP], [NGUOI_TAO], [NGUOI_SUA], [NGAY_TAO], [NGAY_SUA], [TEN_BANG], [IS_KEY], [IS_EXTENSION], [GHI_CHU], [DANH_MUC], [COT_DANH_MUC], [MA_DANH_MUC], [MA_DV], [MA_CN], [MA_LOAI], [IS_SU_DUNG]) VALUES (506, N'DHOADON_HANG', N'Tiền thuế', N'Tiền thuế', N'Tiền thuế', N'H', 1, N'Root', N'abc', CAST(N'2019-06-02T14:02:33.573' AS DateTime), NULL, N'DHOADON_HANG', 0, 0, NULL, NULL, NULL, NULL, N'0311241512', N'', N'', NULL)
SET IDENTITY_INSERT [dbo].[SCAUHINH_NHAP_DU_LIEU_EXCEL] OFF
GO
SET IDENTITY_INSERT [dbo].[SCAUHINH_PARA_COLUMN] ON 

INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(1 AS Numeric(18, 0)), N'0101300842-999', N'DHOADON', N'SO_HOA_DON', NULL, N'String', 1)
INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(2 AS Numeric(18, 0)), N'0101300842-999', N'DHOADON', N'NGAY_HOA_DON', NULL, N'Date', 1)
INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(3 AS Numeric(18, 0)), N'0101300842-999', N'DHOADON', N'MAU_SO', NULL, N'String', 1)
INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(4 AS Numeric(18, 0)), N'0101300842-999', N'DHOADON_BIENBAN', N'DHOADONID', NULL, N'Int', NULL)
INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(5 AS Numeric(18, 0)), N'0101300842-999', N'DHOADON_BIENBAN', N'BEN_BAN_MA_DV', N'BEN_BAN_MA_DV', N'String', 1)
INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(6 AS Numeric(18, 0)), N'0101300842-999', N'DHOADON_BIENBAN', N'NGAY_HOA_DON', N'NGAY_HOA_DON', N'Date', 0)
INSERT [dbo].[SCAUHINH_PARA_COLUMN] ([SCAUHINH_PARA_COLUMNID], [MA_DV], [TABLE_NAME], [COLUMN_NAME], [COLUMN_VALUE], [DATATYPE], [IS_SU_DUNG]) VALUES (CAST(7 AS Numeric(18, 0)), N'0100507058', N'DHOADON_BIENBAN', N'BEN_BAN_MA_DV', N'BEN_BAN_MA_DV', N'Int', 1)
SET IDENTITY_INSERT [dbo].[SCAUHINH_PARA_COLUMN] OFF
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10100', N'Cục Thuế Thành phố Hà Nội', N'187 Giảng Võ, Quận Đống Đa, Hà Nội', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10101', N'Chi cục Thuế Quận Ba Đình', N'20, Cao Bá Quát, Q.Ba Đình', N'3843 2218#', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10103', N'Chi cục Thuế Quận Tây Hồ', N'24, An Dương, Q.Tây Hồ', N'3829 1176#', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10105', N'Chi cục Thuế Quận Hoàn Kiếm', N'35, Hàng Cân, Q.Hoàn Kiếm', N'3923 1702#', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10106', N'Chi cục thuế Quận Long Biên', N'453 Nguyễn Văn Linh Phúc Đồng Long Biên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10107', N'Chi cục Thuế Quận Hai Bà Trưng', N'161B, Triệu Việt Vương, Q.Hai Bà Trưng', N'3976 3485#', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10108', N'Chi cục thuế Quận Hoàng Mai', N'Nhà E Khu Đền Lừ 2 Hoàng Văn Thụ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10109', N'Chi cục Thuế Quận Đống Đa', N'312B, Tôn Đức Thắng, Q.Đống Đa', N'3851 0040#', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10111', N'Chi cục Thuế Quận Thanh Xuân', N'Khu Liên Cơ Nhân Chính Thanh Xuân', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10113', N'Chi cục Thuế Quận Cầu Giấy', N'68 Nguyễn Phong Sắc', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10115', N'Chi cục Thuế Huyện Sóc sơn', N'Thị trấn Sóc Sơn - Sóc Sơn - Hà Nội;', N'359 50255', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10117', N'Chi cục Thuế Huyện Đông Anh', N'Thị trấn Đông Anh - Đông Anh - Hà Nội', N'388 39918', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10119', N'Chi cục Thuế Huyện Gia Lâm', N'Số 55 đường Cổ Bi xã Cổ Bi - Gia Lâm - Hà Nội', N'387 69731', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10121', N'Chi cục Thuế Huyện Từ Liêm', N'Khu liên cơ quan huyện Từ Liêm - Hà Nội', N'376 44220', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10123', N'Chi cục Thuế Huyện Thanh Trì', N'Thị trấn Văn Điển - Thanh Trì - Hà Nội', N'386 14077', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10125', N'Chi cục Thuế Huyện Mê Linh', N'Đại Thịnh - Mê Linh - Hà Nội', N'381 83400', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10127', N'Chi cục Thuế Quận Hà Đông', N'Phố Bà Triệu - Hà Đông - Hà Nội', N'338 24669', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10129', N'Chi cục Thuế Thị xã Sơn Tây', N'Phố Phó Đức Chính - Sơn Tây - Hà Nội', N'338 32188', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10131', N'Chi cục Thuế Huyện Phúc Thọ', N'Thị trấn Phúc Thọ - Phúc Thọ - Hà Nội', N'336 42380', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10133', N'Chi cục Thuế Huyện Đan Phượng', N'Thị trấn Phùng - Đan Phượng - Hà Nội', N'338 86381 ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10135', N'Chi cục Thuế Huyện Thạch Thất', N'Thị trấn Liên Quan - Thạch Thất - Hà Nội', N'338 42262', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10137', N'Chi cục Thuế Huyện Hoài Đức', N'Thị trấn Trôi - Hoài Đức - Hà Nội', N'336 63961', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10139', N'Chi cục Thuế Huyện Quốc Oai', N'Thị trân Quốc Oai - Quốc Oai - Hà Nội', N'338 43141', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10141', N'Chi cục Thuế Huyện Thanh Oai', N'Thị trấn Kim Bài - Thanh Oai - Hà Nội', N'338 73206', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10143', N'Chi cục Thuế Huyện Thường Tín', N'Thị trấn Thường Tín - Thường Tín - Hà Nội', N'337 64446', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10145', N'Chi cục Thuế Huyện Mỹ Đức', N'Thị trấn Tế Tiêu - Mỹ Đức - Hà Nội', N'338 47258 ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10147', N'Chi cục Thuế Huyện ứng Hoà', N'Thị trấn Vân Đình - ứng Hoà - Hà Nội;', N'338 82221', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10149', N'Chi cục Thuế Huyện Phú Xuyên', N'Thị trấn Phú Xuyên - Phú Xuyên - Hà Nội', N'338 54262', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10151', N'Chi cục Thuế Huyện Ba Vì', N'Thị trấn Tây Đằng - Ba Vì - Hà Nội,', N'338 63028', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10153', N'Chi cục Thuế Huyện Chương Mỹ', N'Thị trấn Chúc Sơn - Chương Mỹ - Hà Nội', N'334 72203', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10300', N'Cục Thuế TP Hải Phòng', N'Số 6,Cù Chính Lan, Phường Minh Khải, Hồng Bàng, Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10301', N'Chi cục Thuế Quận Hồng Bàng', N'97B Phố Bạch Đằng, Phường Hạ Lý, Quận Hồng Bàng, Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10303', N'Chi cục Thuế Quận Ngô Quyền', N'12 Kế 24, Phạm Minh Đức,Phường Máy Tơ, Q.Ngô Quyền', N'(031) 355 1762', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10304', N'Chi cục thuế Quận Hải An', N'9B, Ngô Gia Tự,Phường Đằng Lâm, Q.Hải An,TP Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10305', N'Chi cục Thuế Quận Lê Chân', N'200, Tô Hiệu, Q.Lê Chân', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10307', N'Chi cục Thuế Quận Kiến An', N'221, Phố Trần Thành Ngọ,Phường Trần Thành Ngo Q.Kiến An, Hải Phòng', N'(031) 387 6261', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10309', N'Chi cục Thuế Quận Đồ Sơn', N'248 Đường Lý Thánh Tông, Phường Ngọc Hải, Quận Đồ Sơn, Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10311', N'Chi cục Thuế Huyện Thuỷ Nguyên', N'Thị trấn Núi Đèo, Thủy Nguyên, Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10313', N'Chi cục Thuế Huyện An Dương', N'Tỉnh Lộ 351, thị trấn An Dương, huyện An Dương, TP Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10315', N'Chi cục Thuế Huyện An Lão', N'20 Đường Ngô Quyền, Thị trấn An Lão, Huyện An Lão, TP Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10317', N'Chi cục Thuế Huyện Kiến Thuỵ', N'Đường Tiểu khu Hồ sen, thị trấn Núi Đôi, Huyện Kiến Thụy, Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10319', N'Chi cục Thuế Huyện Tiên Lãng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10321', N'Chi cục Thuế Huyện Vĩnh Bảo', N'Phố 3 tháng 2 thị trấn Vĩnh Bảo, Phường Vĩnh Bảo, Hải Phòng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10323', N'Chi cục Thuế Huyện Cát Hải', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10325', N'Chi cục Thuế Huyện Bạch Long Vĩ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10327', N'Chi cục Thuế Quận Dương Kinh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10700', N'Cục Thuế Tỉnh Hải Dương', N'191 Nguyễn Lương Bằng – TP Hải Dương - Tỉnh Hải Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10701', N'Chi cục Thuế Thành phố HảI Dương', N'167 Bạch Đằng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10703', N'Chi cục Thuế Huyện Chí Linh', N'Nguyễn Trãi 1, Sao Đỏ,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10705', N'Chi cục Thuế Huyện Nam Sách', N'La Văn Cầu, TT Nam Sách', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10707', N'Chi cục Thuế Huyện Thanh Hà', N'Khu 1 TT  Thanh Hà', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10709', N'Chi cục Thuế Huyện Kinh Môn', N'Kinh Hạ, Kinh Môn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10711', N'Chi cục Thuế Huyện Kim Thành', N'An Thái, TT Phú Thái', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10713', N'Chi cục Thuế Huyện Gia Lộc', N'Phương Điếm TT Gia Lộc', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10715', N'Chi cục Thuế Huyện Tứ Kỳ', N'La Tỉnh, TT Tứ Kỳ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10717', N'Chi cục Thuế Huyện Cẩm Giàng', N'Khu 16 TT Lai Cách', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10719', N'Chi cục Thuế Huyện Bình Giang', N'Khu mới thống nhất, tt kẻ sặt, bình giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10721', N'Chi cục Thuế Huyện Thanh Miện', N'Khu 1 TT Thanh Miền', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10723', N'Chi cục Thuế Huyện Ninh Giang', N'Khu 4 TT Ninh Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10900', N'Cục Thuế Tỉnh Hưng Yên', N'Số 302 Đường Nguyễn Văn Linh - P. Hiến Nam - TX. Hưng Yên', N'0321 - 865.733', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10901', N'Chi cục Thuế Thành phố Hưng yên', N'302 Nguyễn Văn Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10903', N'Chi cục Thuế Huyện Mỹ Hào', N'Phố Lối, TT Bần, Yên Nhân', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10905', N'Chi cục Thuế Huyện Khoái Châu', N'TT Khoái Châu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10907', N'Chi cục Thuế Huyện Ân Thi', N'số 1 Phạm Ngũ Lão, TT Ân Thi', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10909', N'Chi cục Thuế Huyện Kim Động', N'TT Lwowng Bằng, Kim Động', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10911', N'Chi cục Thuế Huyện Phù Cừ', N'Phố Cao, TT Trần Cao', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10913', N'Chi cục Thuế Huyện Tiên Lữ', N'TT Vương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10915', N'Chi cục Thuế Huyện Văn Giang', N'TT VĂn Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10917', N'Chi cục Thuế Huyện Văn Lâm', N'TT Như Quỳnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'10919', N'Chi cục Thuế Huyện Yên Mỹ', N'Cầu Treo , TT Yên Mỹ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11100', N'Cục Thuế Tỉnh Hà Nam', N'Số 7, đường Trần Phú, phường Quang Trung, thành phố Phủ Lý', N'03513.852.350', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11101', N'Chi cục Thuế Thành phố Phủ Lý', N'37 Đường Biên Hòa, phường Lương Khánh Thiện, thành phố Phủ Lý', N'03513.851.117', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11103', N'Chi cục Thuế Huyện Duy Tiên', N'Phố Thịnh Hoà, thị trấn Hòa Mạc, huyện Duy Tiên', N'03513.830.015', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11105', N'Chi cục Thuế Huyện Kim Bảng', N'Thị trấn Quế, huyện Kim Bảng', N'03513.820.046', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11107', N'Chi cục Thuế Huyện Lý Nhân', N'Thị trấn Vĩnh Trụ, huyện Lý Nhân', N'03513.870.037', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11109', N'Chi cục Thuế Huyện Thanh Liêm', N'Km 05, Quốc lộ 1A, xã Thanh Hà, huyện Thanh Liêm', N'03513.880.138', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11111', N'Chi cục Thuế Huyện Bình Lục', N'Thị trấn Bình Mỹ, huyện Bình Lục', N'03513.860.070', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11300', N'Cục Thuế Tỉnh Nam Định', N'Số 325 Đường Trường Chinh,TP Nam Định', N'0350 - 849.719', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11301', N'Chi cục Thuế Thành phố Nam Đinh', N'73 Quang Trung, Phường Quang Trung, TP Nam Định', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11303', N'Chi cục Thuế Huyện Vụ Bản', N'TT vôi', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11305', N'Chi cục Thuế Huyện Mỹ Lộc', N'Km8 TT Mỹ Lôcc', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11307', N'Chi cục Thuế Huyện ý Yên', N'TT lâm', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11309', N'Chi cục Thuế Huyện Nam Trực', N'Nam giang,nam Trực,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11311', N'Chi cục Thuế Huyện Trực Ninh', N'TT Cổ Lễ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11313', N'Chi cục Thuế Huyện Xuân Trường', N'TT Xuân Trường', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11315', N'Chi cục Thuế Huyện Giao Thuỷ', N'TT Ngô Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11317', N'Chi cục Thuế Huyện Nghĩa Hưng', N'TT Liễu Đề', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11319', N'Chi cục Thuế Huyện Hải Hậu', N'Khu 3 TT Yên Hưng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11500', N'Cục Thuế Tỉnh Thái Bình', N'Số 98 Đường Lê Lợi - TX Thái Bình', N' 036 - 830.662', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11501', N'Chi cục Thuế Thành Phố Thái Bình', N'368 đường Trần Hưng đạo, thành phố Thái Bình, tỉnh Thái Bình ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11503', N'Chi cục Thuế Huyện Quỳnh Phụ', N'Khu 1, Thị trấn Quỳnh Côi, huyện Quỳnh Phụ, tỉnh Thái Bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11505', N'Chi cục Thuế Huyện Hưng Hà', N'Khu Nhân cầu 3 - Thị trấn Hưng Hà - huyện Hưng Hà - tỉnh Thái Bình.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11507', N'Chi cục Thuế Huyện Thái Thuỵ', N'khu 6 - Thị trấn Diêm Điền - huyện Thái Thuỵ - tỉnh Thái Bình.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11509', N'Chi cục Thuế Huyện Đông Hưng', N'Tổ 6 - Thị trấn Đông Hưng - huyện Đông Hưng - tỉnh Thái Bình.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11511', N'Chi cục Thuế Huyện Vũ Thư', N'Tổ Minh Tiến - Thị Trấn Vũ Thư - huyện Vũ Thư - tỉnh Thái Bình.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11513', N'Chi cục Thuế Huyện Kiến Xương', N'Thị trấn Thanh Nê - huyện Kiến Xương - tỉnh Thái Bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11515', N'Chi cục Thuế Huyện Tiền hải', N'Phố Hùng Thắng - thị trấn Tiền Hải - huyện Tiền Hải - tỉnh Thái Bình.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11700', N'Cục Thuế Tỉnh Ninh Bình', N'Đường 1 A - Phường Tân Thành- Thị xã Ninh Bình', N'030 - 872.595', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11701', N'Chi cục Thuế Thành phố Ninh Bình', N'Quốc Lộ 10.Phường Ninh Sơn, TP Ninh Bình, Tỉnh Ninh bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11703', N'Chi cục Thuế Thị xã Tam Điệp', N'Tổ 3 Phường Bắc Sơn TX Tam Điệp', NULL, NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11705', N'Chi cục Thuế Huyện Nho quan', N'Phố Bắc Sơn, TT Nho Quan', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11707', N'Chi cục Thuế Huyện Gia Viễn', N'Phố Me, TT Me', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11709', N'Chi cục Thuế Huyện Hoa Lư', N'TT Thiên Tôn, Huyện Hoa Lư', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11711', N'Chi cục Thuế Huyện Yên Mô', N'TT Yên Thịnh, Yên Mô', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11713', N'Chi cục Thuế Huyện Yên Khánh', N'Phố 1 TT Yên Ninh huyện Yên Khánh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'11715', N'Chi cục Thuế Huyện Kim Sơn', N'TT Phát Diệm , Huyện Kim Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'123', N'12', N'1234', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20100', N'Cục Thuế Tỉnh Hà Giang', N'Số 07 - Yết Kiêu - P.Nguyễn Trãi - Thị xã Hà Giang -  Tỉnh Hà Giang', N'0219.3868.770        ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20101', N'Chi cục Thuế Thị xã Hà Giang', N'298 - Đường Trần Phú - Thị xã Hà Giang - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20103', N'Chi cục Thuế Huyện Đồng Văn', N'Thị trấn Đồng Văn - Huyện Đồng Văn - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20105', N'Chi cục Thuế Huyện Mèo Vạc', N'Thị trấn Mèo Vạc - Huyện Mèo Vạc - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20107', N'Chi cục Thuế Huyện Yên Minh', N'Thị trấn Yên Minh - Huyện Yên Minh - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20109', N'Chi cục Thuế Huyện Quản Bạ', N'Thị trấn Tam Sơn - Huyện Quản Bạ - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20111', N'Chi cục Thuế Huyện Bắc Mê', N'Thị trấn Yên Phú - Huyện Bắc Mê - tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20113', N'Chi cục Thuế Huyện Hoàng Su Phì', N'Thị trấn Vinh Quang - Huyện Hoàng Su Phì - tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20115', N'Chi cục Thuế Huyện Vị Xuyên', N'Tổ 4 - Thị trấn Vị Xuyên - H.Vị Xuyên - Tỉnh Hà Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20117', N'Chi cục Thuế Huyện Xín Mần', N'Thị trấn Cốc Pài - Huyện Xín Mần - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20118', N'Chi cục thuế Huyện Quang Bình', N'Xã Yên Bình - Huyện Quang Bình - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20119', N'Chi cục Thuế Huyện Bắc Quang', N'Tổ 4 - Thị trấn Việt Quang - H.Bắc Quang - Tỉnh Hà Giang.', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20300', N'Cục Thuế Tỉnh Cao Bằng', N'Phố Hoàng Văn Thụ, P. Hợp Giang, TX Cao Bằng', N'026 - 852.727', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20301', N'Chi cục Thuế Thị xã Cao Bằng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20303', N'Chi cục Thuế Huyện Bảo Lạc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20305', N'Chi cục Thuế Huyện Hà Quảng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20307', N'Chi cục Thuế Huyện Thông Nông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20309', N'Chi cục Thuế Huyện Trà Lĩnh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20311', N'Chi cục Thuế Huyện Trùng Khánh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20313', N'Chi cục Thuế Huyện Nguyên Bình', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20315', N'Chi cục Thuế Huyện Hoà An', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20317', N'Chi cục Thuế Huyện Quảng Uyên', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20318', N'Chi cục thuế Huyện Phục Hoà', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20319', N'Chi cục Thuế Huyện Hạ Lang', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20321', N'Chi cục Thuế Huyện Thạch An', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20323', N'Chi cục Thuế Bảo Lâm', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20500', N'Cục Thuế Tỉnh Lào Cai', N'184 Đ.Hoàng Liên, P.Cốc Lếu, TP.Lào Cai, tỉnh Lào Cai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20501', N'Chi cục Thuế Thành phố Lào Cai', N'Ngã 6Đường Lý công uẩn, phường kim tân, tp lào cai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20505', N'Chi cục Thuế Huyện Mường Khương', N'Xã Mường Khương, huyện mường khương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20507', N'Chi cục Thuế Huyện Bát Xát', N'TT bát Xát, huyện Bát Xát', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20509', N'Chi cục Thuế Huyện Bắc Hà', N'TT Bắc hà, huyện Bác Hà', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20511', N'Chi cục Thuế Huyện Bảo Thắng', N'TT Phố Lu, huyện Bảo thắng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20513', N'Chi cục Thuế Huyện Sa Pa', N'Đường Xuân Viên, TT SaPa 3871208', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20515', N'Chi cục Thuế Huyện Bảo Yên', N'Khu 5 TT PHố Làng , Bảo Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20519', N'Chi cục Thuế Huyện Văn Bàn', N'Tiểu khu 4 TT Khánh Yên, huyện VĂn Bản', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20521', N'Chi cục Thuế Huyện Simacai', N'Simacai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20700', N'Cục Thuế Tỉnh Bắc Cạn', N'Phường Phùng Chí Kiên, TX. Bắc Cạn ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20701', N'Chi cục Thuế Thị xã Bắc Cạn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20703', N'Chi cục Thuế Huyện Ba Bể', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20704', N'Chi cục Thuế Huyện Pác Nặm', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20705', N'Chi cục Thuế Huyện Ngân Sơn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20707', N'Chi cục Thuế Huyện Chợ Đồn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20709', N'Chi cục Thuế Huyện Na Rì', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20711', N'Chi cục Thuế Huyện Bạch Thông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20713', N'Chi cục Thuế Huyện Chợ mới', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20900', N'Cục Thuế Tỉnh Lạng Sơn', N'Số 47, Đường Lê Lợi, Phường Vĩnh Trại, TX Lạng Sơn', N'025 - 875.858', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20901', N'Chi cục Thuế Thành phố Lạng Sơn', N'Khối 10 Lê Đại Hành, phường Đông Kinh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20903', N'Chi cục Thuế Huyện Tràng Định', N'TT Huyện Tràng Định, Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20905', N'Chi cục Thuế Huyện Văn Lãng', N'TT Huyện VĂn Lãng, Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20907', N'Chi cục Thuế Huyện Bình Gia', N'TT huyện bình Gia, Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20909', N'Chi cục Thuế Huyện Bắc Sơn', N'TT Huyện Bắc Sơn, Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20911', N'Chi cục Thuế Huyện Văn Quan', N'TT Huyện Văn Quan, Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20913', N'Chi cục Thuế Huyện Cao Lộc', N'TT Huyện Cao Lộc, Lạng sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20915', N'Chi cục Thuế Huyện Lộc Bình', N'TT Huyện Lộc bình. Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20917', N'Chi cục Thuế Huyện Chi Lăng', N'TT Huyên chi Lăng, Lạng Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20919', N'Chi cục Thuế Huyện Đình Lập', N'TT Huyện Đình Lập. Lạng sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'20921', N'Chi cục Thuế Huyện Hữu Lũng', N'TT Huyện Lữu Lũng, Lạng sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21100', N'Cục Thuế Tỉnh Tuyên Quang', N'Phường Minh Xuân - TX. Tuyên Quang, T. Tuyên Quang', N'027 - 822.715', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21101', N'Chi cục Thuế Thị xã Tuyên Quang', N'Số nhà 186 Đường Quang Trung, P Tân Quang, TP Tuyên Quang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21103', N'Chi cục Thuế Huyện Nà Hang', N'Tổ 3, TT Na Hang,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21105', N'Chi cục Thuế Huyện Chiêm Hoá', N'TT Vĩnh Lộc ,Chiêm Hóa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21107', N'Chi cục Thuế Huyện Hàm Yên', N'Xã Tân Thnh, hàm yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21109', N'Chi cục Thuế Huyện Yên Sơn', N'Xã An Tường, Huyện Yên Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21111', N'Chi cục Thuế Huyện Sơn Dương', N'TT Sơn Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21300', N'Cục Thuế Tỉnh Yên Bái', N'Phường Đồng Tâm – TP Yên Bái - T. Yên Bái', N'029 - 856.189', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21301', N'Chi cục Thuế TP Yên Bái', N'Phườn Hồng Hà, TP Yên Bái', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21303', N'Chi cục Thuế Thị xã Nghĩa Lộ', N'Phường Tân An, TX Nghĩa Lộ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21305', N'Chi cục Thuế Huyện Lục Yên', N'TT Yên Thế, Huyện Lục Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21307', N'Chi cục Thuế Huyện Văn Yên', N'TT Mậu A, Huyện Văn Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21309', N'Chi cục Thuế Huyện Mù Cang Chải', N'TT Mù Cang Chải, Huyện Mù Cang Chải', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21311', N'Chi cục Thuế Huyện Trấn Yên', N'TT Cổ phúc, Huyện Trấn Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21313', N'Chi cục Thuế Huyện Yên Bình', N'TT Yên Bình, Huyện Yên Bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21315', N'Chi cục Thuế Huyện Văn Chấn', N'Xã Sơn Thịnh, Huyện Văn Chấn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21317', N'Chi cục Thuế Huyện Trạm Tấu', N'TT Trạm Tấu, Huyện Trạm Tấu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21500', N'Cục Thuế Tỉnh Thái Nguyên', N'Tổ 33 P. Trưng Vương - TP Thái Nguyên', N' 0280 - 851.259', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21501', N'Chi cục Thuế Thành phố Thái Nguyên', N'Tổ 33 P. Trưng Vương - TP Thái Nguyên', N'0280 - 851.259', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21503', N'Chi cục Thuế Thị xã Sông Công', N'TX Sông công', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21505', N'Chi cục Thuế Huyện Định Hoá', N'TT chợ Chu huyện định hóa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21507', N'Chi cục Thuế Huyện Võ Nhai', N'TT Đình Cả, huyện võ nhai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21509', N'Chi cục Thuế Huyện Phú Lương', N'TT Dđu, huyện phú lương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21511', N'Chi cục Thuế Huyện Đồng Hỷ', N'TT chùa hang, huyện đồng hỷ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21513', N'Chi cục Thuế Huyện Đại Từ', N'TT đại từ, huyện đại từ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21515', N'Chi cục Thuế Huyện Phú Bình', N'TT Hương Sơn , huyên Phú bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21517', N'Chi cục Thuế Huyện Phổ Yên', N'TT Ba hàng huyện phổ yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21700', N'Cục Thuế Tỉnh Phú Thọ', N'Phường Gia Cẩm, TP Việt Trì', N'0210 - 844.409', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21701', N'Chi cục Thuế Thành phố Việt Trì', N'Phường Gia Cẩm, TP Việt Trì', N'0210 - 844.409', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21703', N'Chi cục Thuế Thị xã Phú Thọ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21705', N'Chi cục Thuế Huyện Đoan Hùng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21707', N'Chi cục Thuế Huyện Hạ Hoà', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21709', N'Chi cục Thuế Huyện Thanh Ba', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21711', N'Chi cục Thuế Huyện Phù Ninh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21713', N'Chi cục Thuế Huyện Cẩm Khê', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21715', N'Chi cục Thuế Huyện Yên Lập', NULL, NULL, NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21717', N'Chi cục Thuế Huyện Tam Nông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21719', N'Chi cục Thuế Huyện Thanh Sơn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21720', N'Chi cục Thuế Huyện Tân Sơn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21721', N'Chi cục Thuế Huyện Lâm Thao', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21723', N'Chi cục Thuế Huyện Thanh Thuỷ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21900', N'Cục Thuế Tỉnh Vĩnh Phúc', N'sn 42 Đường Nguyễn Trãi, P Đống Đa,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21901', N'Chi cục Thuế Thành phố Vĩnh Yên', N'Đường Lê Lợi Phường Tích Sơn, TP Vĩnh Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21902', N'Chi cục Thuế Thị xã Phúc Yên', N'Số nhà 229 Đường Hai Bà Trưng, P Hùng Vương,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21903', N'Chi cục Thuế Huyện Lập Thạch', N'TT Xuân Hòa, Huyện Lập Thạch', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21904', N'Chi cục Thuế Huyện Tam đảo', N'Km13 Xã Hồ Sơn, Huyện Tam Đảo', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21905', N'Chi cục Thuế Huyện Tam Dương', N'Phố Me, TT Ngọc Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21907', N'Chi cục Thuế Huyện Vĩnh Tường', N'TT Vũ Di, Huyện Vĩnh Tường', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21909', N'Chi cục Thuế Huyện Yên Lạc', N'TT Yên Lạc,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21913', N'Chi cục Thuế Huyện Bình Xuyên', N'Khu 2, TT Hương Canh, Huyện Bình Xuyên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'21915', N'Chi cục thuế Huyện Sông Lô', N'Xã Nhạo Sơn,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22100', N'Cục Thuế Tỉnh Bắc Giang', N'Khu phố 4B, TT Dầu Tiếng, Huyện Dầu Tiếng, Tỉnh Bình Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22101', N'Chi cục Thuế Thành phố Bắc Giang', N'Đường Sương Giang, TP Bắc Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22103', N'Chi cục Thuế Huyện Yên Thế', N'TT Cầu Gỗ, huyện Yên Thế', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22105', N'Chi cục Thuế Huyện Tân Yên', N'TT Cao Thương, huyện tân yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22107', N'Chi cục Thuế Huyện Lục Ngạn', N'Phố Gai , TT Đồi Ngô,huyện Lục Ngạn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22109', N'Chi cục Thuế Huyện Hiệp Hoà', N'Khu 2 TT  Thắng,huyện Hiệp hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22111', N'Chi cục Thuế Huyện Lạng Giang', N'Phố Vôi ,huyện lạng Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22113', N'Chi cục Thuế Huyện Sơn Động', N'Khu 3 TT Lam Châu,huyện Sơn Động', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22115', N'Chi cục Thuế Huyện Lục Nam', N'TT Trũ ,Lục Ngạn,Lục Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22117', N'Chi cục Thuế Huyện Việt Yên', N'Khu 2 TT Bích Động,huyện việt Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22119', N'Chi cục Thuế Huyện Yên Dũng', N'phố Leo, huyện Yên Dũng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22300', N'Cục Thuế Tỉnh Bắc Ninh', N'Số 6, đường Nguyễn Đăng Tạo, Tiền An, thành phố Bắc Ninh, tỉnh  Bắc Ninh', N'0241 - 822.347', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22301', N'Chi cục Thuế Thành phố Bắc Ninh', N'Đường Lý Thái Tông, Phường Suối Hoa, TP Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22303', N'Chi cục Thuế Huyện Yên Phong', N'TT Chờ, Huyện Yên Phong, Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22305', N'Chi cục Thuế Huyện Quế Võ', N'Khu 1 TT Phố Mới, Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22307', N'Chi cục Thuế Huyện Tiên Du', N'TT Lim,Huyện Tiên Du, Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22309', N'Chi cục Thuế Huyện Thuận Thành', N'TT Hồ, Huyện Thuận Thành, Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22311', N'Chi cục Thuế Huyện Lương Tài', N'TT Thứa, huyện Lương Tài, Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22313', N'Chi cục Thuế Thị xã Từ Sơn', N'Đường Trần Phú, TX Từ Sơn,Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22315', N'Chi cục Thuế Huyện Gia Bình', N'TT Đông Bình, Huyện Gia Bình, Bắc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22500', N'Cục Thuế Tỉnh Quảng Ninh', N'Số 423 Lê Thánh Tông, Phường Bạch Đằng, TP Hạ Long', N'033 - 626.634', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22501', N'Chi cục Thuế Thành phố Hạ Long', N'Phường Băch Đằng, TP hạ Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22503', N'Chi cục Thuế Thị xã Cẩm Phả', N'Cẩm Tây, Cẩm Phả', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22505', N'Chi cục Thuế Thị xã Uông Bí', N'Quang Trung, Uông Bí', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22507', N'Chi cục Thuế Huyện Bình Liêu', N'Thị trấn Bình Liêu, Huyện Bình Liêu, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22509', N'Chi cục thuế Thành phố Móng cái', N'Chu Văn an, Hòa Lạc ,Móng Cái', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22511', N'Chi cục Thuế Huyện Hải Hà', N'Quaảng Hà, Hải Hà', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22513', N'Chi cục Thuế Huyện Tiên Yên', N'Thị trấn Tiên Yên, Huyện Tiên Yên, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22515', N'Chi cục Thuế Huyện Ba Chẽ', N'Thị trấn Ba Chẽ, Huyện Ba Chẽ, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22517', N'Chi cục Thuế Huyện Vân Đồn', N'Thị Trấn Cái Rồng, Vân Đồn, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22519', N'Chi cục Thuế Huyện Hoành Bồ', N'Thị Trấn Trới, Huyện Hoành Bồ, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22521', N'Chi cục Thuế Huyện Đông Triều', N'TT Đông Triều', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22523', N'Chi cục Thuế Huyện Cô Tô', N'Huyện Cô Tô Tỉnh Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22525', N'Chi cục Thuế Huyện Yên Hưng', N'Thị trấn Quảng Yên, Huyện Yên Hưng, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'22527', N'Chi cục Thuế Huyện Đầm Hà', N'Thị TrấnĐầm Hà, Huyện Đầm Hà, Quảng Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30100', N'Cục Thuế Tỉnh Điện Biên', N'Thị xã Điện Biên Phủ - T.Điện Biên ', N'023 - 825.465', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30101', N'Chi cục TP Điện Biên Phủ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30103', N'Chi cục Thuế Thị xã Mường Lay', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30104', N'Chi cục thuế Huyện Mường Nhé', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30111', N'Chi cục Thuế Huyện Mường Trà', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30113', N'Chi cục Thuế Huyện Tủa Chùa', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30115', N'Chi cục Thuế Huyện Tuần Giáo', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30117', N'Chi cục Thuế Huyện Điện Biên', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30119', N'Chi cục Thuế Huyện Điện Biên Đông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30121', N'Chi cục Thuế Huyện Mường ảng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30200', N'Cục Thuế Tỉnh Lai Châu', N'Đại lộ Lê Lợi - Phường Tân Phong - Thị xã Lai Châu - Tỉnh Lai Châu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30201', N'Chi cục Thuế Huyện Mường Tè', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30202', N'Chi Cục Thuế Thị Xã Lai Châu.', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30203', N'Chi cục Thuế Huyện Phong Thổ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30205', N'Chi cục Thuế Huyện Tam Đường', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30207', N'Chi cục Thuế Huyện Sìn Hồ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30209', N'Chi cục Thuế Huyện Than Uyên', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30211', N'Chi cục Thuế Huyện Tân Uyên', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30300', N'Cục Thuế Tỉnh Sơn La', N'Đường Hoàng Quốc Việt, Phường Chiềm Cơi,TP Sơn La', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30301', N'Chi cục Thuế Thành phố Sơn La', N'Số 3 - Đường Tô Hiệu - TX. Sơn La', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30303', N'Chi cục Thuế Huyện QUỳnh Nhai', N'Khóm 3 Mường Chiêm, Quỳnh Nhai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30305', N'Chi cục Thuế Huyện Mường La', N'Tiểu khu 2 , TT ít Ong', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30307', N'Chi cục Thuế Huyện Thuận Châu', N'Tiểu khu 15, TT Thuận Châu,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30309', N'Chi cục Thuế Huyện Bắc Yên', N'Phiêng ban 2, TT Bắc Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30311', N'Chi cục Thuế Huyện Phù Yên', N'Khối 4, TT Phù Yên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30313', N'Chi cục Thuế Huyện Mai Sơn', N'Tiểu Khu 4, TT Hát Lót,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30315', N'Chi cục Thuế Huyện Sông Mã', N'Tổ 10,TT Sông Mã', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30317', N'Chi cục Thuế Huyện Yên Châu', N'Tiểu khu 1, TT Yên Châu,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30319', N'Chi cục Thuế Huyện Mộc Châu', N'Tiểu khu 4 TT Mộc châu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30321', N'Chi cục Thuế Huyện Sốp Cộp', N'TT Sốp Cộp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30500', N'Cục Thuế Tỉnh Hoà Bình', N'Trần Hưng Đạo, Phường Phương Lâm, TX Hoà Bình', N'018 - 851.126', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30501', N'Chi cục Thuế Thành phố Hoà Bình', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30503', N'Chi cục Thuế Huyện Đà Bắc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30505', N'Chi cục Thuế Huyện Mai Châu', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30507', N'Chi cục Thuế Huyện Kỳ Sơn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30509', N'Chi cục Thuế Huyện Lương SƠn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30510', N'Chi cục Thuế Huyện Cao Phong', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30511', N'Chi cục Thuế Huyện Kim Bôi', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30513', N'Chi cục Thuế Huyện Tân Lạc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30515', N'Chi cục Thuế Huyện Lạc Sơn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30517', N'Chi cục Thuế Huyện Lạc Thuỷ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'30519', N'Chi cục Thuế Huyện Yên Thuỷ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40100', N'Cục Thuế Tỉnh Thanh Hoá', N'Số 9 Đường Phan Chu Trinh - TP Thanh Hóa', N'037 - 711.994', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40101', N'Chi cục Thuế Thành phố Thanh Hoá', N'660 Bà Triệu, Tp.Thanh Hoá', N'0373.854.679', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40103', N'Chi cục Thuế Thị xã Bỉm Sơn', N'48 Trần Phú Ba Đình Bỉm Sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40105', N'Chi cục Thuế Thị xã Sầm Sơn', N'Khu phố Sơn Thắng P.Trường Sơn - Sầm Sơn', N'0373.821.025', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40107', N'Chi cục Thuế Huyện Mường Lát', N'Thị trấn Mường Lát - Thanh Hoá', N'0373.8997.221', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40109', N'Chi cục Thuế Huyện Quan Hoá', N'Khu 2 Thị trấn Quan Hoá - Thanh Hoá  ', N' 0373.875.008', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40111', N'Chi cục Thuế Huyện Quan Sơn', N'Thị trấn Quan Sơn - Thanh Hoá ', N'0373.590.009', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40113', N'Chi cục Thuế Huyện Bá Thước', N'Khu Phố 1 Thị trấn Cành Nàng- Bá Thước - TH    ', N'0373.880.509', NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40115', N'Chi cục Thuế Huyện Cẩm Thuỷ', N'40 Tổ 2 Thị Trấn Cẩm Thuỷ -Thanh Hoá', N'0373.876.130', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40117', N'Chi cục Thuế Huyện Lang Chánh', N'Phố 2 Thị trấn Lang Chánh -Thanh Hoá', N'0373.874.0.18', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40119', N'Chi cục Thuế Huyện Thạch Thành', N'Khu 6 Thị trấn Kim Tân - Thạch Thành – TH', N'0373.877.605', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40121', N'Chi cục Thuế Huyện Ngọc Lặc', N'Phố Lê Lai Thị trấn Ngọc Lặc- Thanh Hoá', N'0373.871.029.', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40123', N'Chi cục Thuế Huyện Thường Xuân', N'Khu phố 3 Thị trấn Thường Xuân - Thanh Hoá', N'0373.873.020', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40125', N'Chi cục Thuế Huyện Như Xuân', N'Thị trấn Như Xuân - Như Xuân - Thanh Hoá', N'0373.878.018', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40127', N'Chi cục Thuế Huyện Như Thanh', N'Khu phố 1 Thị trấn Bến Sung - Như Thanh- TH', N'0373.848.195', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40129', N'Chi cục Thuế Huyện Vĩnh Lộc', N'Thị trấn Vĩnh Lộc- Thanh Hoá', N'0373.870.375', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40131', N'Chi cục Thuế Huyện Hà Trung', N'hị Trấn Hà Trung - Thanh Hoá', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40133', N'Chi cục Thuế Huyện Nga Sơn', N'Thị trấn Nga Sơn - Thanh Hoá', N' 0373.872.274', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40135', N'Chi cục Thuế Huyện Yên Định', N'Thị Trấn Quán Lào - Yên Định - Thanh Hoá', N'0373.869.314', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40137', N'Chi cục Thuế Huyện Thọ Xuân', N'Khu 2 Thị trấn Thọ Xuân - Thanh Hoá', N'0373.833.209', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40139', N'Chi cục Thuế Huyện Hậu Lộc', N'Thị trấn Hậu Lộc - Thanh Hoá   ', N'0373.832.472', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40141', N'Chi cục Thuế Huyện Thiệu Hoá', N'Thị Trấn Vặn Hà - Thiệu Hoá - Thanh Hoá', N'0373.842.196', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40143', N'Chi cục Thuế Huyện Hoằng Hoá', N'Thị trấn Bút Sơn - Hoằng Hoá', N' 0373.865.185', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40145', N'Chi cục Thuế Huyện Đông Sơn', N'Thị Trấn Rừng Thông - Đông Sơn - Thanh Hoá', N'0373.690.329', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40147', N'Chi cục Thuế Huyện Triệu Sơn', N'72 Phố Giắt - Thị trấn Triệu Sơn - Thanh Hoá', N'0373.867.336', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40149', N'Chi cục Thuế Huyện Quảng Xương', N'Khu phố 2 Thị Trấn Quảng Xương', N'0373.759.810', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40151', N'Chi cục Thuế Huyện Nông Cống', N'Thị trấn Chuối- Nông cống - Thanh Hoá', N'0373.680.313', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40153', N'Chi cục Thuế Huyện Tĩnh Gia', N'Thị Trấn Còng- Tĩnh Gia - Thanh Hoá', N'0373.861.447', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40300', N'Cục Thuế Tỉnh Nghệ An', N'Số 66 Nguyễn Thị Minh Khai - TP Vinh - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40301', N'Chi cục Thuế Thành phố Vinh', N'Số 02 Lê Mao - TP Vinh - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40303', N'Chi cục Thuế Thị xã Cửa Lò', N'Thị xã Cửa Lò - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40305', N'Chi cục Thuế Huyện Quế Phong', N'TT Kim Sơn - huyện Quế Phong - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40307', N'Chi cục Thuế Huyện Quỳ Châu', N'TT Quỳ Châu - huyện Quỳ Châu - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40309', N'Chi cục Thuế Huyện Kỳ Sơn', N'TT Kỳ Sơn - huyện Kỳ Sơn - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40311', N'Chi cục Thuế Huyện Quỳ Hợp', N'TT Quỳ Hợp - huyện Quỳ Hợp - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40313', N'Chị Cục thuế Huyện Nghĩa Đàn', N'Xã Nghĩa Hội - huyện Nghĩa Đàn - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40314', N'Chi cục Thuế Thị xã Thái Hoà', N'TX Thái Hoà - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40315', N'Chi cục Thuế Huyện Tương Dương', N'TT Hoà Bình - huyện Tương Dương - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40317', N'Chi cục Thuế Huyện Quỳnh Lưu', N'TT Quỳnh Lưu - huyện Quỳnh Lưu - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40319', N'Chi cục Thuế Huyện Tân Kỳ', N'TT Tân Kỳ - huyện Tân Kỳ - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40321', N'Chi cục Thuế Huyện Con Cuông', N'TT Con Cuông - huyện Con Cuông - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40323', N'Chi cục Thuế Huyện Yên THành', N'TT Yên Thành - huyện Yên Thành - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40325', N'Chi cục Thuế Huyện Diễn Châu', N'TT Diễn Châu - huyện Diễn Châu - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40327', N'Chi cục Thuế Huyện Anh SƠn', N'TT Anh Sơn - huyện Anh Sơn - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40329', N'Chi cục Thuế Huyện Đô Lương', N'TT Đô Lương - huyện Đô Lương - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40331', N'Chi cục Thuế Huyện Thanh Chương', N'TT Thanh Chương - huyện Thanh Chương - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40333', N'Chi cục Thuế Huyện Nghi Lộc', N'K4 TT Quán Hành - huyện Nghi Lộc - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40335', N'Chi cục Thuế Huyện Nam Đàn', N'TT Nam Đàn - huyện Nam Đàn - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40337', N'Chi cục Thuế Huyện Hưng Nguyên', N'TT Thái Lão - huyện Hưng Nguyên - tỉnh Nghệ An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40500', N'Cục Thuế Tỉnh Hà Tĩnh', N'Số 4 - Đường Trần Phú - Thị xã Hà Tĩnh - tỉnh Hà Tĩnh', N'039 890062', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40501', N'Chi cục Thuế Thành phố Hà Tĩnh', N'04 Đường Đặng Dung', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40503', N'Chi cục Thuế Thị xã Hồng Lĩnh', N'Thị xã Hồng Lĩnh, TP Hà Tĩnh, Tỉnh Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40505', N'Chi cục Thuế Huyện Nghi Xuân', N'TT Nghi Xuân, Huyện Nghi Xuân, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40507', N'Chi cục Thuế Huyện Đức Thọ', N'TT Đức Thọ, Huyên Đức Thọ, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40509', N'Chi cục Thuế Huyện Hương Sơn', N'TT Hương Sơn, Huyện Hương Sơn, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40511', N'Chi cục Thuế Huyện Can Lộc', N'Xóm 1, Quốc lộ 1 Thị Trấn Nghèn, huyện Can Lộc, Tỉnh Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40513', N'Chi cục Thuế Huyện Thạch Hà', N'TT Thạch Hà, Huyện Thạch Hà, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40515', N'Chi cục Thuế Huyện Cẩm Xuyên', N'TT Cẩm Xuyên, Huyện Cẩm Xuyên, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40517', N'Chi cục Thuế Huyện Hương Khê', N'TT Hương Khê, Huyện Hương Khê, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40519', N'Chi cục Thuế Huyện Kỳ Anh', N'TT Kỳ Anh, Huyện Kỳ Anh, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40521', N'Chi cục thuế Huyện Vụ Quang', N'TT Vũ Quang, Huyện Vũ Quang, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40523', N'Chi cục Thuế Huyện Lộc Hà', N'TT Lộc Hà, Huyện Lộc Hà, Hà Tĩnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40700', N'Cục Thuế Tỉnh Quảng Bình', N'Số 18A Quang Trung - TX. Đồng Hới', N' 052 - 823.166', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40701', N'Chi cục Thuế Thành phố Đồng Hới', N'Số 2, Phường Lê Trực, Phường Hải Đình, TP Đồng Hới, Tỉnh Quảng Bình', N'052 38250310 - 0520825091', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40703', N'Chi cục Thuế Huyện Tuyên Hoá', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40705', N'Chi cục Thuế Huyện Minh Hoá', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40707', N'Chi cục Thuế Huyện Quảng Trạch', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40709', N'Chi cục Thuế Huyện Bố Trạch', N'Quốc Lộ 1, Thị Trấn Hoàn Lão, Bố Trạch , Quảng bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40711', N'Chi cục Thuế Huyện Quảng Ninh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40713', N'Chi cục Thuế Huyện Lệ Thuỷ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40900', N'Cục Thuế Tỉnh Quảng Trị', N' Số 91 Đường Lê Duẩn - TX. Đông Hà - Tỉnh Quảng Trị', N'053 - 852.022', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40901', N'Chi cục Thuế Thị xã Đông Hà', N'Đường Lê Duẩn,Phường 1, TP Đông Hà, Quảng Trị', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40903', N'Chi cục Thuế Thị xã Quảng Trị', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40905', N'Chi cục Thuế Huyện Vĩnh Linh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40907', N'Chi cục Thuế Huyện Gio Linh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40909', N'Chi cục Thuế Huyện Cam Lộ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40911', N'Chi cục Thuế Huyện Triệu Phong', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40913', N'Chi cục Thuế Huyện Hải lăng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40915', N'Chi cục Thuế Huyện Hướng Hoá', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40917', N'Chi cục Thuế Huyện Đa Krông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'40919', N'Chi cục Thuế Huyện  Đảo Cồn Cỏ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41100', N'Cục Thuế Tỉnh Thừa Thiên - Huế', N'Số 24 Lê Lợi - TP Huế', N'054 - 829.000    ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41101', N'Chi cục Thuế Thành phố Huế', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41103', N'Chi cục Thuế Huyện Phong ĐIền', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41105', N'Chi cục Thuế Huyện Quảng ĐIền', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41107', N'Chi cục Thuế Huyện Hương Trà', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41109', N'Chi cục Thuế Huyện Phú Vang', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41111', N'Chi cục Thuế Huyện Hương Thuỷ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41113', N'Chi cục Thuế Huyện Phú Lộc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41115', N'Chi cục Thuế Huyện A Lưới', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'41117', N'Chi cục Thuế Huyện Nam Đông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50100', N'Cục Thuế TP Đà Nẵng', N'Số 08 - Trần Phú - Đà Nẵng', N'0511 - 823.556', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50101', N'Chi cục Thuế Quận Hải Châu', N'20 Đường Phan Đình Phùng- Phường Hải Châu 1 - Quận Hải Châu - TP Đà Nẵng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50103', N'Chi cục Thuế Quận Thanh Khê', N'360 Đường Ông ích Khiêm, Phường Vĩnh Trung, Quận Thanh Khê, Đà Nẵng', N'0511 2227851', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50105', N'Chi cục Thuế Quận Sơn Trà', N'273 Đường Hải Phòng - Phường Tân Chính- Quận Thanh Khê - TP Đà Nẵng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50107', N'Chi cục Thuế Quận Ngũ Hành Sơn', N'12 Đường Triệu Việt Vương- Phường An Tây Hải - Quận Sơn Trà - TP Đà Nẵng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50109', N'Chi cục Thuế Quận Liên Chiểu', N'Trung tâm Hành chính Quận Ngũ Hành Sơn - TP Đà Nẵng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50111', N'Chi cục Thuế Huyện Hoà Vang', N'46 Đường Ngô Thì Nhậm- Phường Hòa Khánh Bắc - Quận Thanh Khê - TP Đà Nẵng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50113', N'Chi cục Thuế Huyện Đảo Hoàng Sa', N'Bình Thái 1 - Hoà Thọ Đông - Quận Cẩm Lệ - TP Đà Nẵng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50115', N'Chi cục Thuế Quận cẩm lệ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50300', N'Cục Thuế Tỉnh Quảng Nam', N'Số 37 Đường Trần Hưng Đạo-TX Tam Kỳ-tỉnh Quảng Nam', N'0510 - 852.530', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50301', N'Chi cục Thuế Thành phố Tam Kỳ', N'101 Đường Hùng Vương, TP Tam Kỳ, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50302', N'Chi cục Thuế Huyện Phú Ninh', N'TT Huyện Phú Ninh, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50303', N'Chi cục Thuế Thành phố Hội An', N'03 Nguyễn Huê, TP Hội An, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50304', N'Chi cục Thuế Huyện Tây Giang', N'TT Huyện Tây Giang, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50305', N'Chi cục Thuế Huyện Đông Giang', N'TT Huyện Đông Giang, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50307', N'Chi cục Thuế Huyện Đại Lộc', N'TT Huyện Đại Lộc Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50309', N'Chi cục Thuế Huyện Điện Bàn', N'TT Huyện Điện Bàn,Quảng Nam', NULL, NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50311', N'Chi cục Thuế Huyện Duy Xuyên', N'TT Huyện Duy Xuyên, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50313', N'Chi cục Thuế Huyện Nam Giang', N'TT Huyện Nam Giang, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50315', N'Chi cục Thuế Huyện Thăng Bình', N'TT Huyện  Thăng Bình, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50317', N'Chi cục Thuế Huyện Quế Sơn', N'TT Huyện Quế Sơn, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50318', N'Chi cục thuế Huyện Nông Sơn', N'TT  Huyện Nông sơn, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50319', N'Chi cục Thuế Huyện HIệp Đức', N'TT   Huyện Hiệp Đức, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50321', N'Chi cục Thuế Huyện Tiên Phước', N'TT  Huyện Tiên Phước, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50323', N'Chi cục Thuế Huyện Phước Sơn', N'TT  Huyện Phước Sơn, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50325', N'Chi cục Thuế Huyện Núi Thành', N'TT  Huyện Núi Thành, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50327', N'Chi cục Thuế Huyện Bắc Trà My', N'TT  Huyện Bắc Trà My, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50329', N'Chi cục Thuế Huyện Nam Trà My', N'TT  Huyện Nam Trà My, Quảng Nam', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50500', N'Cục Thuế Tỉnh Quảng Ngãi', N'Số 255 - Đường Nguyễn Nghiêm - TX. Quảng Ngãi', N'055 - 822.017', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50501', N'Chi cục Thuế Thành phố Quảng Ngãi', N'54 Phạm Văn Đồng, Thành phố Quảng Ngãi', N' 055 - 821.071, 055 – 816.566 – 0914.030.506', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50503', N'Chi cục Thuế Huyện Lý Sơn', N'Xã An Vĩnh, huyện Lý Sơn', N'055- 867.449, 055 – 867.227 – 0914.226.634', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50505', N'Chi cục Thuế Huyện Bình Sơn', N'Thị trấn Châu ổ, huyện Bình Sơn', N' 055 – 851.238, 055 – 516.006 – 0913.407.784', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50507', N'Chi cục Thuế Huyện Trà Bồng', N'Thị trấn Trà Xuân, huyện Trà Bồng', N'055 – 865.522, 055 – 865.332 – 0982.091.786', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50508', N'Chi cục Thuế Huyện Tây Trà', N'Xã Trà Phong, huyện Tây Trà', N'055 – 870.223, 055 – 870.153 – 0977.718.149', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50509', N'Chi cục Thuế Huyện Sơn Tịnh', N' Thị trấn Sơn Tịnh, huyện Sơn Tịnh', N'055 – 842. 221, 055 – 245.289 – 0913.418.759', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50511', N'Chi cục Thuế Huyện Sơn Tây', N' Xã Sơn Dung, huyện Sơn Tây', N'055 – 868.271, 055 – 868.271 – 0979.298.779', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50513', N'Chi cục Thuế Huyện SƠn Hà', N'Thị trấn Di Lăng, huyện Sơn Hà', N'055 – 864.255,  055 – 882.327 – 0919.777.310', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50515', N'Chi cục Thuế Huyện Tư Nghĩa', N'Thị trấn La Hà, huyện Tư Nghĩa', N'055 – 845.532, 055 – 845.508 – 0913.415.627', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50517', N'Chi cục Thuế Huyện NGhĩa Hành', N'Thị trấn Chợ Chùa, huyện Nghĩa Hành', N'055 – 960.750, 055 – 215.583 – 0914.241.379', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50519', N'Chi cục Thuế Huyện MInh Long', N' Xã Long Hiệp, huyện Minh Long', N'055 – 866.296, 055 – 866.406 – 0914.737.051', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50521', N'Chi cục Thuế Huyện Mộ Đức', N'Thị trấn Mộ Đức, huyện Mộ Đức', N' 055 – 857.258, 055 – 857. 258 – 200.735', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50523', N'Chi cục Thuế Huyện Đức Phổ', N'Thị trấn Đức Phổ, huyện Đức Phổ', N'055 – 859.402, 055 – 859.402 – 0914.166.872', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50525', N'Chi cục Thuế Huyện Ba Tơ', N' Thị trấn Ba Tơ, huyện Ba Tơ', N'055 – 863.358, 055 – 863.259 – 0914.091.138', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50700', N'Cục Thuế Tỉnh Bình Định', N'Số 236, Đường Phan Bội Châu-TP Quy Nhơn ', N'056 - 821.263', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50701', N'Chi cục Thuế Thành phố Quy Nhơn', N'267 Đường Trần Hưng Đạo,Phường Trần Hưng Đạo, Thành Phố Quy Nhơn , Tỉnh Bình Định', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50703', N'Chi cục Thuế Huyện An Lão', N'TT An Lão, Huyện An Lão, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50705', N'Chi cục Thuế Huyện Hoài Nhơn', N'174 Quang Trung, TT Đồng Sơn, Huyện Hoại Nhơn, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50707', N'Chi cục Thuế Huyện Hoài Ân', N'152 Nguyễn Tất Thành, Hoải Ân,Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50709', N'Chi cục Thuế Huyện Phù Mỹ', N'TT Phù Mỹ, Huyện Phù Mỹ, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50711', N'Chi cục Thuế Huyện Vĩnh Thạnh', N'TT Vĩnh Thanh, Huyện Vĩnh Thạnh, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50713', N'Chi cục Thuế Huyện Phù Cát', N'TT Phù Cát, Huyện Phù Cát, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50715', N'Chi cục Thuế Huyện Tây Sơn', N'TT Tây Sơn, Huyện Tây Sơn, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50717', N'Chi cục Thuế Huyện An Nhơn', N'TT An Nhơn, Huyện An Nhơn, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50719', N'Chi cục Thuế Huyện Tuy Phước', N'TT Tuy Phước,Huyện Tuy Phước, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50721', N'Chi cục Thuế Huyện Vân Canh', N'Tt Vân Canh, Huyện Vân Canh, Quy Nhơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50900', N'Cục Thuế Tỉnh Phú Yên', N'385 Nguyễn Huệ, tx Tuy Hoà, Phú Yên', N'057 - 823.097', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50901', N'Chi cục Thuế TP  Tuy Hoà', N'04 Trần Hưng Đạo Phường 1 TP Tuy Hồ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50903', N'Chi cục Thuế Huyện Đồng Xuân', N'TT La Hai, Huyện Đồng Xuân,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50905', N'Chi cục Thuế thị xã Sông Cầu', N'TX Sông Cầu, Huyện Sông Cầu Tuy Hòa', N'3875475/3875474', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50907', N'Chi cục Thuế Huyện Tuy An', N'TT Trí Thành Huyện Tuy An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50909', N'Chi cục Thuế Huyện Sơn Hoà', N'TT Củ Sơn, Huyện Sơn Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50911', N'Chi cục Thuế Huyện Đông  Hoà', N'Thôn 3, Hòa vinh,Đông Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50912', N'Chi cục thuế Huyện Tây  Hoà', N'Phú Thứ , Hòa bình2, Huyện Tây Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50913', N'Chi cục Thuế Huyện Sông Hinh', N'TT Hai viên, Huyện Sông Hinh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'50915', N'Chi cục Thuế Huyện Phú Hoà', N'Định thọ, Hòa Định Đông, Huyện Phú Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51100', N'Cục Thuế Tỉnh Khánh Hoà', N'Số 1 Lê Lợi, TP Nha Trang', N' 058 - 824.374', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51101', N'Chi cục Thuế Thành phố Nha Trang', N'Số 2, Đường Võ Văn Ký, TP Nha Trang,Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51103', N'Chi cục Thuế Huyện Vạn Ninh', N'Khóm 4 TT Vạn Giã, huyện Vạn Ninh, Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51105', N'Chi cục Thuế Huyện Ninh Hoà', N'126 Trần Quý Cáp TT Ninh Hòa, Huyện Ninh Hòa, Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51107', N'Chi cục Thuế Huyện Diên Khánh', N'Tổ 5 Khóm Phan Bội Châu, TT Diên Khánh,Huyện Diên Khánh, Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51109', N'Chi cục Thuế Thị xã Cam Ranh', N'150 Ql1 Phường Cam Lộc, TX Cam Ranh,Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51111', N'Chi cục Thuế Huyện KHánh Vĩnh', N'56 Lê Hồng Phong TT Khánh Vĩnh, Huyện Khánh Vĩnh, Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51113', N'Chi cục Thuế Huyện Khánh Sơn', N'Đường Lê Duẩn , TT Tô Hạp, huyện khánh sơn,Khánh Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51115', N'Chi cục Thuế Huyện Trường Sa', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'51117', N'Chi cục Thuế Huyện Cam Lâm', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60100', N'Cục Thuế Tỉnh Kon Tum', N' Số 92- Trần Phú - TX Kon Tum - T. Kon Tum', N'060 - 864.658', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60101', N'Chi cục Thuế Thành Phố Kon Tum', N'09 Lê Lợi, TP Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60103', N'Chi cục Thuế Huyện Đắk Glei', N'TT Đăk Glei, Huyện Đăk Glei, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60105', N'Chi cục Thuế Huyện Ngọc Hồi', N'TT Ngọc Hồi, Huyện Ngọc Hồi, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60107', N'Chi cục Thuế Huyện Đắk Tô', N'TT Đắk Tô, Huyện Đắk Tô, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60108', N'Chi cục thuế Huyện Kon Rẫy', N'TT Kon Rẫy, Huyện Kon Rẫy, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60109', N'Chi cục Thuế Huyện Kon Plông', N'TT Kon Plông, Huyện Kon Plông. Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60111', N'Chi cục Thuế Huyện Đak Hà', N'TT  Đắk Hà, Huyện Đăk Hà, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60113', N'Chi cục Thuế Huyện Sa Thầy', N'TT Sa Thầy, Huyện Sa Thầy, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60115', N'Chi cục Thuế Huyện Tu Mơ Rông', N'TT Tu Mơ Rông, Huyện Tu Mơ Rông, Kon Tum', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60300', N'Cục Thuế Tỉnh Gia Lai', N'Số 71B - Hùng Vương - TP Pleiku', N'059 - 871.076', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60301', N'Chi cục Thuế Thành phố Pleiku', N'58 TĂNG BạT Hổ, THàNH PHố PLEIKU', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60303', N'Chi cục Thuế Huyện Kbang', N'Đường Trần Hưng - Thị trấn Kbang – Gia Lai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60305', N'Chi cục Thuế Huyện Mang Yang', N'THị TRấN KON DỡNG – MANG YANG – GIAL AI', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60307', N'Chi cục Thuế Huyện Chư Păh', N'THị TRấN PHú HOà - HUYệN CHƯPĂH', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60309', N'Chi cục Thuế Huyện Ia Grai', N'279 Hùng Vương – TT Iakha - Huyện Iagrai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60311', N'Chi cục Thuế Thị xã An Khê', N'THị Xã AN KHÊ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60313', N'Chi cục Thuế Huyện Kông Chro', N'58 Lê lai, Thị trấn Kôngchoro, Gialai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60315', N'Chi cục Thuế Huyện Đức Cơ', N'Thị trấn Đức Cơ – Gia Lai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60317', N'Chi cục Thuế Huyện Chư Prông', N'Thị trấn Chưprông', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60319', N'Chi cục Thuế Huyện Chư Sê', N'910 Hùng Vương , Thị trấn Chư sê, Gia lai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60320', N'Chi cục thuế Huyện IaPa', N'Trung tâm huyện Iapa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60321', N'Chi cục Thuế Thị xã Ayun Pa', N'36 Trần Hưng Đạo', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60323', N'Chi cục Thuế Huyện Krông Pa', N'Số 02 Đường Hai Bà Trưng – Pleiku – Gialai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60325', N'Chi cục Thuế Huyện Dakdoa', N'532 Nguyễn Huệ - Thị Trấn ĐakĐoa - Tỉnh Gia Lai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60327', N'Chi cục Thuế Huyện Đắk Pơ', N'Thôn 2 – Xã Đakpơ - Tỉnh Gia Lai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60329', N'Chi cục Thuế Huyện Phú Thiện', N'Quốc lộ 25 Thị trấn Phú Thiện . Huyện Phú Thiện . Tỉnh Gia Lai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60331', N'Chi cục Thuế Huyện Chư Pưh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60500', N'Cục Thuế Tỉnh Đắk Lắk', N'Số 12 Trần Hưng Đạo - TP Buôn Ma Thuột', N'050-856.634', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60501', N'Chi cục Thuế Thành phố Buôn Ma Thuột', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60503', N'Chi cục Thuế Huyện Ea Hleo', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60505', N'Chi cục Thuế Huyện Ea Súp', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60507', N'Chi cục Thuế Huyện Krông Năng', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60509', N'Chi cục Thuế Thị xã Buôn Hồ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60511', N'Chi cục Thuế Huyện Buôn Đôn', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60513', N'Chi cục Thuế Huyện Cư Mgar', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60515', N'Chi cục Thuế Huyện Ea Kar', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60517', N'Chi cục Thuế Huyện MĐrắK', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60519', N'Chi cục Thuế Huyện Krông Pắk', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60523', N'Chi cục Thuế Huyện Krông A Na', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60525', N'Chi cục Thuế Huyện Krông Bông', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60531', N'Chi cục Thuế Huyện Lắk', NULL, NULL, NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60537', N'Chi cục Thuế Huyện Cư Kuin', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60539', N'Chi cục Thuế Huyện Krông Buk', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60600', N'Cục Thuế Tỉnh Đắk Nông', N'Số 209 Đường Trần Hưng Đạo - TT. Gia Nghĩa - T. Đăk Nông ', N'050-844.276', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60603', N'Chi cục Thuế Huyện Cư Jút', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60605', N'Chi cục Thuế Huyện Krông Nô', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60607', N'Chi cục Thuế Huyện Đắk Mil', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60609', N'Chi cục Thuế Huyện Đắk Song', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60611', N'Chi cục Thuế Huyện Đắk RLấp', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60613', N'Chi cục thuế Thị xã Gia Nghĩa', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60615', N'Chi cục thuế Huyện Đắk Glong', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'60617', N'Chi cục Thuế Huyện Tuy Đức', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70100', N'Cục Thuế Thành phố Hồ Chí Minh', N'140 Nguyễn Thị Minh Khai, quận 3, Tp. Hồ Chí Minh', N'9.330.608', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70101', N'Chi cục Thuế Quận 1', N'115 Trần Quang Khải, Q.1', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70103', N'Chi cục Thuế Quận 2', N'Đường Liên tỉnh lộ 25B - Khu Hành chính - P.Thạnh Mỹ Lợi - Q2', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70105', N'Chi cục Thuế Quận 3', N'121 Bà Huyện Thanh Quan - Phường 9-Quận 3', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70107', N'Chi cục Thuế Quận 4', N'31-33 Đoàn Như Hài - Phường 12 -Quận 4', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70109', N'Chi cục Thuế Quận 5', N'262-264 Trần Phú - Phường 8 - Quận 5', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70111', N'Chi cục Thuế Quận 6', N'683 Hồng Bàng - Phường 6 - Quận 6', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70113', N'Chi cục Thuế Quận 7', N'350 Huỳnh Tấn Phát - P.Bình Thuận - Quận 7', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70115', N'Chi cục Thuế Quận 8', N'7A-8A Bùi Minh Trực - Phường 5 - Quận 8', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70117', N'Chi cục Thuế Quận 9', N'25 B Lê Văn Duyệt - P.Hiệp Phú - Quận 9', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70119', N'Chi cục Thuế Quận 10', N'3/1 Thành Thái - Phường 14 -Quận 10', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70121', N'Chi cục Thuế Quận 11', N'270 Bình Thới - Phường 10 - Quận 11', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70123', N'Chi cục Thuế Quận 12', N'36 Quốc lộ 1A - Phường Đông Hưng Thuận - Quận 12', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70125', N'Chi cục Thuế Quận Gò Vấp', N'308 Nguyễn Văn Nghi - Phường 7 - Quận Gò Vấp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70127', N'Chi cục Thuế Quận Tân Bình', N'450 Trường Chinh - P13 - Q.Tân Bình', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70128', N'Chi cục thuế Quận Tân phú', N'945 Âu Cơ - P.Tân Sơn Nhì - Quận Tân Phú', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70129', N'Chi cục Thuế Quận Bình Thạnh', N'368 Bạch Đằng - Phường 14 - Quận Bình Thạnh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70131', N'Chi cục Thuế Quận Phú Nhuận', N'145/9 Nguyễn Văn Trỗi - P11-Quận Phú Nhuận', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70133', N'Chi cục Thuế Quận Thủ Đức', N'16 - Đường 6 -KP5 - P.Linh Chiểu - Q.Thủ Đức', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70134', N'Chi cục thuế Quận Bình Tân', N'528 Kinh Dương Vương - Phường An Lạc A - Quận Bình Tân', N'38776151   ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70135', N'Chi cục Thuế Huyện Củ Chi', N'Đường Đào Cử - TT Cần Thạnh - Huyện Cần Giờ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70137', N'Chi cục Thuế Huyện Hóc Môn', N'90 Bà Triệu - TT Hóc Môn - Huyện Hóc Môn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70139', N'Chi cục Thuế Huyện Bình Chánh', N'C11/11 ấp 3 - Xã Tân Quý Tây - Huyện Bình Chánh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70141', N'Chi cục Thuế Huyện Nhà Bè', N'296A ấp 1, Nguyễn Bình - xã Phú Xuân - Huyện Nhà Bè', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70143', N'Chi cục Thuế Huyện Cần Giờ', N'Đường Đào Cử - TT Cần Thạnh - Huyện Cần Giờ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70300', N'Cục Thuế Tỉnh Lâm Đồng', N'Số 01 - đường Trần Phú - TP Đà Lạt', N'063 - 824.468', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70301', N'Chi cục Thuế Thành phố Đà Lạt', N'6 Đường Nam Kỳ Khởi Nghĩa, TP Đà Lạt, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70303', N'Chi cục Thuế Thị xã Bảo Lộc', N'Số 2 Đường Đề Thám, Phường 1,TP Bảo Lộc, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70305', N'Chi cục Thuế Huyện Lạc Dương', N'Thôn Hợp Thành, TT Lạc Dương, Huyện Lạc Dương, Lâm Đồng', N'3839156; 3839030 ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70307', N'Chi cục Thuế Huyện Đơn Dương', N'389 Đường 2/4, Nghĩa Lập TT Thành Mỹ, Huyện Đơn Dương, Lâm Đồng', N'3848594; 3847344 ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70309', N'Chi cục Thuế Huyện Đức Trọng', N'Đường Thôngs nhất TT Liên Nghĩa,Huyện Đức Trọng, Lâm Đồng', N'3841254; 3843110 ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70311', N'Chi cục Thuế Huyện Lâm Hà', N'Thôn Đồng Tâm, TT Đinh Văn, Huyện Lâm Hà, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70313', N'Chi cục Thuế Huyện Bảo Lâm', N'Khu 2 TT Lộc Thắng, Huyện Bảo Lâm, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70315', N'Chi cục Thuế Huyện Di Linh', N'717 Đường Hùng Vương, TT Di Linh, Huyện Di Linh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70317', N'Chi cục Thuế Huyện Đạ Huoai', N'Khu phố 2 TT Madogui, TT Đạ Hoai, Huyện Đạ Huoai, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70319', N'Chi cục Thuế Huyện Đạ Tẻh', N'Khu phố 5 TT Đa Tẻh, Huyện Đa Tẻh, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70321', N'Chi cục Thuế Huyện Cát Tiên', N'Khu 8 TT Đồng Nai huyện Cát Tiên, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70323', N'Chi cục thuế Huyện Đam Rông', N'Thôn Liên Trang 1 , Xã Đatông, Huyện Đam Rông, Lâm Đồng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70500', N'Cục Thuế Tỉnh Ninh Thuận', N'Đường 16 tháng 4, TX Phan Rang - Tháp Chàm', N'068 - 830.98', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70501', N'Chi cục Thuế TP. Phan Rang - Tháp Chàm', N'Đường 16/4 Phường Mỹ Bình, TP Phan Rang, Ninh Thuận', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70503', N'Chi cục Thuế Huyện Ninh Sơn', N'Khu phố 3 TT Văn Sơn, huyện Ninh sơn', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70505', N'Chi cục Thuế Huyện Ninh Hải', N'Huyện Ninh Hải', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70507', N'Chi cục Thuế Huyện Ninh Phước', N'Khu phố 4, TT Phước Dân, Huyện Ninh Phước,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70509', N'Chi cục Thuế Huyện Bác ái', N'Phước Đại Bắc ái', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70511', N'Chi cục Thuế Huyện Thuận Bắc', N'Kiền Kiền ,Lợi Hải huyện thuận Bắc', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70513', N'Chi cục Thuế Huyện Thuận Nam', N'Hiếu Thuyện  phước NinhHuyện Thuận Nam,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70700', N'Cục Thuế Tỉnh Bình Phước', N'QL.14, P. Tân Phú, TX Đồng Xoài', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70701', N'Chi cục Thuế Huyện Đồng Phú', N'Đường Phú Riềng Đỏ, Phường Tân PHú, TX Đồng Xoài Bình Phước', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70703', N'Chi cục Thuế Thị xã Phước Long', N'Khu phố Tân an, TT Tân Phú huyện Đồng Phú', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70705', N'Chi cục Thuế Huyện Lộc Ninh', N'26 Đinh tiên hoàng, phường tháp mơ, tx phước long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70706', N'Chi cục thuế Huyện Bù Đốp', N'ấp 2, TT Lộc Ninh, huyện Lộc Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70707', N'Chi cục Thuế Huyện Bù Đăng', N'ấp 2, TT Thanh bình , huyện Bù Đốp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70709', N'Chi cục Thuế Thị xã Bình Long', N'Khu hòa đồng , TT Đức Phong huyện Bù Đăng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70710', N'Chi cục thuế Huyện Chơn Thành', N'QL 13 Phường an Lộc ,TX Bình Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70711', N'Chi cục thuế Thị xã Đồng Xoài', N'Khu hành chánh huyện chơn Thành,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70713', N'Chi cục thuế Huyện Hớn Quản', N'Ql13 ấp 1 Tân Khai, Hớn Quảng', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70715', N'Chi cục thuế Huyện Bù Gia Mập', N'xã phú nghĩa huyện bù gia mập,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70900', N'Cục Thuế Tỉnh Tây Ninh', N'Số 226 Đại lộ 30-4, Phường III, TX. Tây Ninh', N' 066 - 823.022', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70901', N'Chi cục Thuế Thị xã Tây Ninh', N'036 Đường paster, khu phố 3, Phường 2 TX Tây Ninh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70903', N'Chi cục Thuế Huyện Tân Biên', N'Khu phố 3 TT Tân biên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70905', N'Chi cục Thuế Huyện Tân Châu', N'Khu phố 1 TT Tân Châu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70907', N'Chi cục Thuế Huyện Dương Minh Châu', N'Khu Phố 1 TT Dương Minh Châu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70909', N'Chi cục Thuế Huyện Châu Thành', N'Khu Phố 3 TT châu Thành,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70911', N'Chi cục Thuế Huyện Hoà Thành', N'Khu Phố 4 TT Hòa Thành,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70913', N'Chi cục Thuế Huyện Bến Cầu', N'Khu phố 1, TT Bến Cầu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70915', N'Chi cục thuế huyện Gò Dầu', N'Khu phố 1 TT Gò Dầu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'70917', N'Chi cục Thuế Huyện Trảng Bàng', N'Khu Phố Lộc Du , TT Trảng Bàng,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71100', N'Cục Thuế Tỉnh Bình Dương', N'QL.13, P.Phú Hoà, TX Thủ Dầu Một', N'0650 - 822.854', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71101', N'Chi cục Thuế Thị xã Thủ Dầu Một', N'328 Đại Lộ Bình Dương,Phườn Phú Lợi, Thị xã Thủ Dầu Một, Tỉnh Bình Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71103', N'Chi cục Thuế Huyện Bến Cát', N'số 11 -13-15 Đường Đoàn Trần Nghiệp Phường Phú Cường, TX Thủ Dầu Một, Tỉnh Bình dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71105', N'Chi cục Thuế Huyện Tân Uyên', N'Khu phố 2, TT Mỹ Phước, huyện Bến Cát', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71107', N'Chi cục Thuế Huyện Thuận An', N'Khu phố 5, TT Uyên Hưng , Huyện Tân Uyên  , tỉnh bình Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71109', N'Chi cục Thuế Huyện Dĩ An', N'Đường Nguyễn Văn Tiết, TT Lái Thiêu, Huyện Thuận An , tỉnh bình Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71111', N'Chi cục Thuế Huyện Phú Giáo', N'Khu Trung tâm hành chánh huyện dĩ an, TT dĩ an, huyện dĩ an tỉnh bình dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71113', N'Chi cục Thuế Huyện Dầu Tiếng', N'Khu phố 2 , TT Phước Vĩnh, Huyện Phú giáo, tỉnh Bình Dương', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71300', N'Cục Thuế Tỉnh Đồng Nai', N'87 CMT8 - Phường Hòa Bình - TP Biên Hòa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71301', N'Chi cục Thuế Thành phố Biên Hoà', N'26 Đường Cách Mạng Tháng Tám, Phường Thanh Bình, TP Biên Hòa, Đồng Nai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71302', N'Chi cục thuế TX Long khánh', N'148 Đường Cách Mạng Tháng Tám, Phường  Xuân Hòa,  TX Long Khánh, TP Biên Hòa, Đồng Nai', N'061 3877228 ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71303', N'Chi cục Thuế Huyện Tân Phú', N'Khu 9, TT Tân Phú, Huyện Tân Phú', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71305', N'Chi cục Thuế Huyện Định Quán', N'hiệp tâm 1, TT Định Quán , huyện Định Quán', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71307', N'Chi cục Thuế Huyện Vĩnh Cửu', N'Khu phố 5 TT vĩnh An, huyện vĩnh Cửu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71308', N'Chi cục thuế Huyện Trảng Bom', N'Đường Nguyễn Hữu Cảnh, TT Trảng bom, huyện Trảng Bom', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71309', N'Chi cục Thuế Huyện Thống Nhất', N'Khu Hành Chánh , huyên Thống nhất, ( ấp hưng nhơn, xã hưng lộc, huyện thống nhất)', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71311', N'Chi cục thuế Huyện Cẩm Mỹ', N'ấp Suối Cả, xã Long Giao, huyện Cẩm mỹ,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71313', N'Chi cục Thuế Huyện Xuân Lộc', N'ấp Việt Kiều, xã xuân hiệp, huyện xuân lộc', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71315', N'Chi cục Thuế Huyện Long Thành', N'Xã phước tân, biên hòa,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71317', N'Chi cục Thuế Huyện Nhơn Trạch', N'Xóm Hố, xã Phú Hội, Nhơn Trạch', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71500', N'Cục Thuế Tỉnh Bình Thuận', N'Đường Nguyễn Tất Thành - TP Phan Thiết - Bình Thuận', N' 062 - 822.767', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71501', N'Chi cục Thuế Thành Phố Phan Thiết', N'316 Đường Trần Hưng Đạo, Phường Đức Nghĩa, TP Phan Thiết, Bình Thuận', NULL, NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71503', N'Chi cục Thuế Huyện Tuy Phong', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71505', N'Chi cục Thuế Huyện Bắc Bình', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71507', N'Chi cục Thuế Huyện Hàm Thuận Bắc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71509', N'Chi cục Thuế Huyện Hàm Thuận Nam', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71511', N'Chi cục Thuế Huyện Tánh Linh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71513', N'Chi cục Thuế Thị xã La Gi', N'580 Đường Thống Nhất, Phường Tân An, TX La Gi, Tỉnh Bình Thuận', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71514', N'Chi cục Thuế Huyện Hàm Tân', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71515', N'Chi cục Thuế Huyện Đức Linh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71517', N'Chi cục Thuế Huyện Phú Quý', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71700', N'Cục Thuế Tỉnh Bà Rịa - Vũng Tàu', N'1159 Đường Phú Riềng Đỏ, Phường Tân Phú, Thị xã Đồng Xoài, Tỉnh Bình Phước', N'0651 3879993', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71701', N'Chi cục Thuế Thành phố Vũng Tàu', N'47 Đường Bà Triệu,Phường 4,TP Vũng Tầu, Tỉnh Bà rịa Vũng Tàu', N'0643853260-0673859054', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71703', N'Chi cục Thuế Thị xã Bà Rịa', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71705', N'Chi cục Thuế Huyện Châu Đức', N'Đường số 17 thị trấn Ngãi Giao, Huyện Châu Đức, Tỉnh Bà rịa, vũng tầu', N'0643881395-0643881911', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71707', N'Chi cục Thuế Huyện Xuyên Mộc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71709', N'Chi cục Thuế Huyện Tân Thành', N'Thị trấn Phú Mỹ, Huyện Tân Thành, Tỉnh Bà rịa Vũng Tầu', N'0643876219-0643893349', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71711', N'Chi cục thuế Huyện Long Điền', N'167 Khu phố Long Điền, Phường Mạc Thanh Đạm, Thị trấn Long Điền, huyện Long Điền, Tỉnh Bà rịa Vũng Tầu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71712', N'Chi cục thuế Huyện Đất đỏ', N'Xã Phước Long, Huyện Đất Đỏ, tỉnh Bà rịa Vũng tầu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'71713', N'Chi cục Thuế Huyện Côn Đảo', N'430 Đường Trương Công Đinh, Phường 8,TP Vũng Tầu, Tỉnh Bà rịa vũng tầu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80100', N'Cục Thuế Tỉnh Long An', N'36 Thủ Khoa Huân, phường 1, TP.Tân An, tỉnh Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80101', N'Chi cục Thuế Thị xã Tân An', N'ố 2, Đường số 1, Phường 2, TP Tân An, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80103', N'Chi cục Thuế Huyện Tân Hưng', N'ấp Gò Thiền, TT Tân Hưng, Huyện Tân Hưng,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80105', N'Chi cục Thuế Huyện Vĩnh Hưng', N'Đường CM T8 TT vĩnh Hưng, huyện Vĩnh Hưng, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80107', N'Chi cục Thuế Huyện Mộc Hoá', N'đường 30/4 Khóm 1, TT Mộc Hóa, Huyện Mộc Hóa', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80109', N'Chi cục Thuế Huyện Tân Thạnh', N'KV1 TT Tân Thạnh, Huyện Tân Thanh, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80111', N'Chi cục Thuế Huyện Thạnh Hoá', N'Khóm 3, TT Thạnh Hóa, huyện Thạnh Hóa, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80113', N'Chi cục Thuế Huyện Đức Huệ', N'KV2 TT Đông Thành, Huyện Đức Huệ,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80115', N'Chi cục Thuế Huyện Đức Hoà', N'Ô 7 Khu B TT Hậu Nghĩa, Huyện Đức Hòa, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80117', N'Chi cục Thuế Huyện Bến Lức', N'38 Nguyễn Hữu Thọ , TT Bến Lức, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80119', N'Chi cục Thuế Huyện Thủ Thừa', N'ấp Cầu Xây, TT thủ thừa huyện thủ thừa,Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80121', N'Chi cục Thuế Huyện Châu Thành', N'48A Khóm 3, TT Tầm Vu, huyện Châu Thành,Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80123', N'Chi cục Thuế Huyện Tân Trụ', N'ấp Bình Hòa , TT Tân Trụ , Huyện Tân Trụ, Long An', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80125', N'Chi cục Thuế Huyện Cần Đước', N'Khu 1 TT Cần Đước,huyện Cần đước', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80127', N'Chi cục Thuế Huyện Cần Giuộc', N'Khu vực Chợ mới TT Cần guộc , huyện cần giuộc', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80300', N'Cục Thuế Tỉnh Đồng Tháp', N'Đường Nguyễn Huệ, phường I , TX Cao Lãnh ', N'067 - 870.88', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80301', N'Chi cục Thuế Thành phố Cao Lãnh', N'Số 6 Đường 30/4, Phường 1,TP Cao Lãnh, Tỉnh Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80303', N'Chi cục Thuế Thị xã Sa Đéc', N'Đường Nguyễn Sinh Sắc, Phường 2, Thị xã Sa Đéc , Tỉnh Đồng tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80305', N'Chi cục Thuế Huyện Tân Hồng', N'TT huyện Tân Hồng, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80307', N'Chi cục Thuế Huyện Hồng Ngự', N'TT Huyện Hồng Ngự, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80309', N'Chi cục Thuế Huyện Tam Nông', N'TT Huyện Tam Nông, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80311', N'Chi cục Thuế Huyện Thanh Bình', N'TT Huyện Thanh bình, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80313', N'Chi cục Thuế Huyện Tháp mười', N'TT Huyện Tháp Mười, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80315', N'Chi cục Thuế Huyện Cao Lãnh', N'TT Huyện Cao Lãnh, Đồng tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80317', N'Chi cục Thuế Huyện Lấp Vò', N'TT Huyện Lấp Vò, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80319', N'Chi cục Thuế Huyện Lai Vung', N'TT Huyện Lai Vung, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80321', N'Chi cục Thuế Huyện Châu Thành', N'TT Huyện Châu Thành, Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80323', N'Chi cục Thuế Thị xã Hồng Ngự', N'Thị xã Hồng Ngự Đồng Tháp', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80500', N'Cục Thuế Tỉnh An Giang', N'Số 10 đường Bùi Văn Danh, phường Mỹ Xuyên, thành phố Long Xuyên', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80501', N'Chi cục thuế Tp. Long Xuyên', N'Xã Mỹ Hòa,TP Long Xuyên, An Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80503', N'Chi cục Thuế Thị xã Châu Đốc', N'Số 5, Phan Đình Phùng, Phường Châu Phú B, Thij xã Châu Đốc Tỉnh An Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80505', N'Chi cục Thuế Huyện An Phú', N'Thị Trấn An Phú, Huyện An Phú Tỉnh An Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80507', N'Chi cục Thuế Huyện Tân Châu', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80509', N'Chi cục Thuế Huyện Phú Tân', N'ấp Trung 1,Thị trấn Phú Mỹ, Huyện Phú Tân, Tỉnh An Giang', N'076 385790- 0763827053', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80511', N'Chi cục Thuế Huyện Châu Phú', N'ấp Vĩnh thuận, xã Vĩnh Thạch Trung, Huyện Châu Phú, Tỉnh An Giang', N'076 0689398', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80513', N'Chi cục Thuế Huyện Tịnh Biên', N'ấp Hòa Hưng, Thị Trấn Nhà Bàng, Huyện Tịnh Biên, Tỉnh An Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80515', N'Chi cục Thuế Huyện Tri Tôn', N'Đường Trần Hưng Đạo, Thị trấn Tri Tôn,Huyện Tri Tôn, An Giang', N'076 3874263', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80517', N'Chi cục Thuế Huyện Chợ Mới', N'Thị trấn Chợ Mới, Huyện Chợ Mới , tỉnh An Giang', N'076 3887166', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80519', N'Chi cục Thuế Huyện Châu Thành', N'Thị trấn An Châu, Huyên Châu Thành, Tỉnh An Giang', N'076 0806230', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80521', N'Chi cục Thuế Huyện Thoại Sơn', N'Thị trấn Núi Sập, Huyện Thoại Sơn, Tỉnh An Giang', N'076 3710568', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80700', N'Cục Thuế Tỉnh Tiền Giang', N'Số 900 - Đường Lý Thường Kiệt - phường 5 - TP Mỹ Tho', N'073 - 879.416', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80701', N'Chi cục Thuế Thành phố Mỹ Tho', N'153 Lê Lợi, Phường 7. TP Mỹ Tho, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80703', N'Chi cục Thuế Thị xã Gò Công', N'Số 9 Trần Hưng Đạo, Phường 1 TX Gò Công, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80705', N'Chi cục Thuế Huyện Tân Phước', N'Khu 4 TT Mỹ Phước, Tân Phước,Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80707', N'Chi cục Thuế Huyện Châu Thành', N'ấp Cá TT Tân Hiệp ,Châu Thành, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80709', N'Chi cục Thuế Huyện Cai Lậy', N'Tỉnh lộ 868 Khu 6 Cai Lậy, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80711', N'Chi cục Thuế Huyện Chợ Gạo', N'Long ThanhjLong Bình Điền, Chợ Gạo, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80713', N'Chi cục Thuế Huyện Cái Bè', N'Khu 3 TT Cái Bè , Huyện Cái Bè, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80715', N'Chi cục Thuế Huyện Gò Công Tây', N'Đường ấp Bắc, Vĩnh Bình, Gò Công Tây, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80717', N'Chi cục Thuế Huyện Gò Công Đông', N'Đường Trương Định, TT Tân Hòa, Gò Công Đông, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80719', N'Chi cục Thuế Huyện Tân Phú Đông', N'ấp Tân Phú, Phú Thạnh , Tân Phú Đông, Tiền Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80900', N'Cục Thuế Tỉnh Vĩnh Long', N'Số 33/1-Đường 3/2- phường 1 - TX. Vĩnh Long, T Vĩnh Long', N'070 - 828.087', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80901', N'Chi cục Thuế Thành phố  Vĩnh Long', N'1a18 Lưu Văn Liệt , Phường 2 TP Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80903', N'Chi cục Thuế Huyện Long Hồ', N'Khóm 4 TT Long Hồ, Huyện Long Hồ, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80905', N'Chi cục Thuế Huyện Mang Thít', N'Khóm 1 TT Cái Nhum, Huyện Mang Thít, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80907', N'Chi cục Thuế Huyện Bình Minh', N'Khóm 1 TT Cái Vồn, Huyện Bình Minh, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80908', N'Chi cục Thuế huyện Bình Tân', N'ấp Thân Thuân, Xã Thân Quế, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80909', N'Chi cục Thuế Huyện Tam Bình', N'Khóm 1 TT Tam Bình, Huyện Tam Bình, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80911', N'Chi cục Thuế Huyện Trà Ôn', N'155 Lê Lợi , TT Trà Ôn, Huyện Trà Ôn, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'80913', N'Chi cục Thuế Huyện Vũng Liêm', N'Khóm 1 TT vũng Liêm, Huyện Vũng Liêm, Vĩnh Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81100', N'Cục Thuế Tỉnh Bến Tre', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81101', N'Chi cục Thuế Thành phố Bến Tre', N'51 Đường Tán Kế, Phường 3, TP Bến Tre, Tỉnh Bến Tre', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81103', N'Chi cục Thuế Huyện Châu Thành', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81105', N'Chi cục Thuế Huyện Chợ Lách', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81107', N'Chi cục Thuế Huyện Mỏ Cày Nam', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81108', N'Chi cục thuế Huyện Mỏ Cày Bắc', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81109', N'Chi cục Thuế Huyện Giồng Trôm', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81111', N'Chi cục Thuế Huyện Bình Đại', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81113', N'Chi cục Thuế Huyện Ba Tri', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81115', N'Chi cục Thuế Huyện Thạnh Phú', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81300', N'Cục Thuế Tỉnh Kiên Giang', N'Số 03-05 Đường Mậu Thân - P. Vĩnh Thanh- TX. Rạch Giá', N'077 - 861.615', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81301', N'Chi cục Thuế  Thành phố  Rạch  Giá', N'451 A Nguyễn Văn Trực', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81303', N'Chi cục Thuế Huyện Kiên Lương', N'TT Kiên Lương, Kiên giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81304', N'Chi cục Thuế Huyện Giang Thành', N'TT Huyện Gia Thành, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81305', N'Chi cục Thuế Huyện Hòn Đất', N'TT  Hòn Đật, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81307', N'Chi cục Thuế Huyện Tân Hiệp', N'Khóm B Đường Mai Thị Hồng Hạnh, TT. Tân Hiệp, H. Tân Hiệp, Tỉnh Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81309', N'Chi cục Thuế Huyện Châu Thành', N'TT Châu Thành, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81311', N'Chi cục Thuế Huyện GiồngGiềng', N'TT Giồng Giềng, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81313', N'Chi cục Thuế Huyện Gò Quao', N'TT Gò quao, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81315', N'Chi cục Thuế Huyện An Biên', N'TT An Biên, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81317', N'Chi cục Thuế Huyện An Minh', N'TT an Minh, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81319', N'Chi cục Thuế Huyện Vĩnh Thuận', N'TT Vĩnh Thuận, Kiên Giang', NULL, NULL)
GO
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81321', N'Chi cục Thuế Huyện Phú Quốc', N'TT Phú quốc, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81323', N'Chi cục Thuế Huyện Kiên HảI', N'Tt Kiên Hải, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81325', N'Chi cục thuế Thị xã Hà Tiên', N'ố 6 Tuần Phủ Đạt,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81327', N'Chi cục Thuế Huyện U Minh Thượng', N'TT U Minh Thương, Kiên Giang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81500', N'Cục Thuế Thành Phố Cần Thơ', N'Số 56 Nguyễn Thái Học, TP Cần Thơ', N'071-820.732', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81503', N'Chi cục Thuế  Quận Thốt Nốt', N'Quốc lộ 91, xã Trung Kiên, q. Thốt Nốt', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81505', N'Chi cục Thuế Quận Ô Môn', N'Đường Châu Văn Liêm, Phường Châu Văn Liêm, Quận Ô Môn, TP Cần Thơ', N'071 3861422', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81519', N'Chi cục Thuế Quận Ninh Kiều', N'17 Đường Thủ Khoa Huân, Phường Tân An, Quận Ninh Kiều, Cần Thơ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81521', N'Chi cục Thuế Quận Bình Thuỷ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81523', N'Chi cục Thuế Quận Cái Răng', N'Quốc lộ 10, Phường Lê Bình, Cái Răng, Cần Thơ', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81525', N'Chi cục Thuế Huyện Vĩnh Thạnh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81527', N'Chi cục Thuế Huyện Cờ Đỏ', N'Đường Nguyễn Trãi, Phường Châu Văn Liêm, Quận Ô Môn, TP Cần Thơ', N'071 3860116', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81529', N'Chi cục Thuế Huyện Phong Điền', N'35 ấp Thị Tứ Lộ Vòng Cung (tỉnh lộ 923) Xã Nhơn ái, Huyện Phong Điền,  TP Cần Thơ', N'071 3850366', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81531', N'Chi Cục Thuế Huyện Thới Lai', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81600', N'Cục Thuế Tỉnh Hậu Giang', N'Đường 3/2 khu vực 3. Phường 5, TX. Vị Thanh', N'071-876.743', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81601', N'Chi cục Thuế Thị xã Vị Thanh', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81603', N'Chi cục Thuế Huyện Châu Thành A', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81605', N'Chi cục Thuế Huyện Châu Thành', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81607', N'Chi cục Thuế Thị  Xã Ngã Bảy', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81608', N'Chi cục Thuế huyện Phụng Hiệp', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81609', N'Chi cục Thuế Huyện Vị Thủy', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81611', N'Chi cục Thuế Huyện Long Mỹ', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81700', N'Cục Thuế Tỉnh Trà Vinh', N'Đường 19 tháng 5, TX Trà Vinh', N'074 - 863.228', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81701', N'Chi cục Thuế Thị xã Trà Vinh', N'67 Lý Thường Kiệt, Phường 4 TP Trà Vinh', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81703', N'Chi cục Thuế Huyện Càng Long', N'xóm 3 TT Càng Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81705', N'Chi cục Thuế Huyện Châu Thành', N'xóm 3 TT châu thành', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81707', N'Chi cục Thuế Huyện Cầu Kè', N'xóm 5 TT Cầu Kè', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81709', N'Chi cục Thuế Huyện Tiểu Cần', N'xóm 2 TT Tiểu Cần', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81711', N'Chi cục Thuế Huyện Cầu Ngang', N'xóm Thống Nhất TT Cầu Ngang', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81713', N'Chi cục Thuế Huyện Trà Cú', N'Xóm 7 TT Trà Cú,', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81715', N'Chi cục Thuế Huyện Duyên Hải', N'xóm 2, TT duyên hải', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81900', N'Cục Thuế Tỉnh Sóc Trăng', N'Số 01 - Hồ Hoàn Kiếm - Phường 2 - TX Sóc Trăng', N' 079 - 822.291', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81901', N'Chi cục Thuế Thành phố Sóc Trăng', N'Số 01 - Hồ Hoàn Kiếm - Phường 2 - TX Sóc Trăng', N' 079 - 822.291', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81903', N'Chi cục Thuế Huyện Kế Sách', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81905', N'Chi cục Thuế Huyện Long Phú', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81906', N'Chi cục thuế Huyện Cù Lao Dung', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81907', N'Chi cục Thuế Huyện Mỹ tú', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81909', N'Chi cục Thuế Huyện Mỹ Xuyên', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81911', N'Chi cục Thuế Huyện Thạnh Trị', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81912', N'Chi cục thuế Huyện Ngã Năm', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81913', N'Chi cục Thuế Huyện Vĩnh Châu', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'81915', N'Chi cục Thuế Huyện Châu Thành', NULL, NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82100', N'Cục Thuế Tỉnh Bạc Liêu', N'Số 117-119, Hoàng Văn Thụ, P. 3,TX Bạc Liêu,T. Bạc Liêu ', N'0781 - 823.947  ', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82101', N'Chi cục Thuế Thị xã Bạc Liêu', N'Số 85 Đường Bà Triệu, Phường 3, Thị xã Bạc Liêu, Tỉnh Bạc Liêu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82103', N'Chi cục Thuế Huyện Hồng Dân', N'Khu 2 ấp Nội Ô, TT. Ngan Dừa, H. Hồng Dân, Tỉnh Bạc Liêu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82105', N'Chi cục Thuế Huyện Vĩnh Lợi', N'Nhà Việc Châu thới , Vĩnh Lợi', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82106', N'Chi cục thuế Huyện Hoà Bình', N'ấp TT A Hòa bình , Bạc Liêu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82107', N'Chi cục Thuế Huyện Giá Rai', N'ấp 1 TT Giá rai huyện giá rai', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82109', N'Chi cục Thuế Huyện Phước Long', N'ấp Long Thành , TT Phước Long', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82111', N'Chi cục thuế Huyện Đông Hải', N'KV3 Đường Bà Triệu, TT. Gành Hào, H. Đông Hải, Tỉnh Bạc Liêu', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82300', N'Cục Thuế Tỉnh Cà Mau', N'Số 1, Đường An Dương Vương, P. 7, TP Cà Mau', N'0780 - 836.084', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82301', N'Chi cục Thuế TP Cà Mau', N'140A Đường Phan Ngọc Hiển, Phường 9,TP Cà Mau, Tỉnh Cà Mau', N'780 3831079', NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82303', N'Chi cục Thuế Huyện Thới Bình', N'TT Thới bình, Huyện Thới Bình, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82305', N'Chi cục Thuế Huyện U Minh', N'TT U minh, Huyện U Minh, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82307', N'Chi cục Thuế Huyện Trần Văn Thời', N'TT THuyện Trần Văn Thời, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82308', N'Chi cục thuế Huyện Phú Tân', N'TT  Huyện Phú Tân, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82309', N'Chi cục Thuế Huyện Cái Nước', N'TT , Huyện Cái nước, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82311', N'Chi cục Thuế Huyện Đầm Dơi', N'TT Đầm Dơi, Huyện Đầm Dơi, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82312', N'Chi cục thuế Huyện Năm Căn', N'TT Năm Căn, Huyện Năm Căn, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'82313', N'Chi cục Thuế Huyện Ngọc Hiển', N'Tân Ân ,Ngọc Hiển, Cà Mau', NULL, NULL)
INSERT [dbo].[SCO_QUAN_THUE] ([MA_CO_QUAN_THUE], [TEN_CO_QUAN_THUE], [DIA_CHI], [DIEN_THOAI], [IsHienThi]) VALUES (N'956835683', N'3462436', N'vfbsfdbsgb', N'fdfg', NULL)
GO
SET IDENTITY_INSERT [dbo].[SCOLUMN_DINH_NGHIA] ON 

INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (14, NULL, NULL, N'0101300842', NULL, N'TEXT5', N'Địa chỉ', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (26, 6, N'TABLE_BAN_HANG_DT', N'0101300842', NULL, N'TEXT1', N'Mã khách hàng', 1, N'Customer code')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (27, 6, N'TABLE_BAN_HANG_DT', N'0101300842', NULL, N'TEXT2', N'Tên khách hàng', 0, N'Customer Name')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (28, 6, N'TABLE_BAN_HANG_DT', N'0101300842', NULL, N'TEXT3', N'Số Serial', 0, N'Serial number')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (29, 6, N'TABLE_BAN_HANG_DT', N'0101300842', NULL, N'TEXT4', N'Số hợp đồng', 0, N'Contract No')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (30, 6, N'TABLE_BAN_HANG_DT', N'0101300842', NULL, N'TEXT5', N'Mã sản phẩm', 0, N'Serial Number')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (31, 6, N'TABLE_BAN_HANG_DT', N'0101300842', NULL, N'TEXT6', N'Nhận xét', 0, N'Remark')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (39, 2, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', NULL, N'TEXT1', N'Contract number', 1, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (40, 2, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', NULL, N'TEXT2', N'Customer code', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (41, 2, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', NULL, N'TEXT3', N'Customer name', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (42, 2, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', NULL, N'TEXT4', N'Serial', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (43, 2, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', NULL, N'TEXT5', N'Product code', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (44, 2, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', NULL, N'TEXT6', N'Remark', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (45, 1, N'DANH_SACH_DOI_DVT', N'0101300842', NULL, N'TEXT1', N'Contract number', 1, N'l')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (46, 1, N'DANH_SACH_DOI_DVT', N'0101300842', NULL, N'TEXT2', N'Customer code', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (47, 1, N'DANH_SACH_DOI_DVT', N'0101300842', NULL, N'TEXT3', N'Customer name', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (48, 1, N'DANH_SACH_DOI_DVT', N'0101300842', NULL, N'TEXT4', N'Serial', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (49, 1, N'DANH_SACH_DOI_DVT', N'0101300842', NULL, N'TEXT5', N'Product code', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (50, 1, N'DANH_SACH_DOI_DVT', N'0101300842', NULL, N'TEXT6', N'Remark', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (51, 5, N'FORM_PR', N'0101300842', NULL, N'TEXT1', N'Contract number', 1, N'Số hợp đồng')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (52, 5, N'FORM_PR', N'0101300842', NULL, N'TEXT2', N'Customer code', NULL, N'Mã khách hàng')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (53, 5, N'FORM_PR', N'0101300842', NULL, N'TEXT3', N'Customer name', NULL, N'Tên khách hàng')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (54, 5, N'FORM_PR', N'0101300842', NULL, N'TEXT4', N'Serial', NULL, N'Số Serial')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (55, 5, N'FORM_PR', N'0101300842', NULL, N'TEXT5', N'Product code', NULL, N'Mã sản phẩm')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (56, 5, N'FORM_PR', N'0101300842', NULL, N'TEXT6', N'Remark', NULL, N'Nhận xét')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (60, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT1', N'Mã khách hàng', NULL, N'A')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (61, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT2', N'Tên khách  hàng', NULL, N'B')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (62, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'NUMBER1', N'Dư đầu kỳ', NULL, N'C')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (63, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'NUMBER2', N'Phát sinh nợ', NULL, N'D')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (64, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'NUMBER3', N'Phát sinh có', NULL, N'E')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (65, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'NUMBER4', N'Dư cuối kỳ', NULL, N'F')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (66, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT3', N'Địa chỉ ', NULL, N'G')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (67, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT4', N'Email', NULL, N'H')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (68, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT5', N'Nhóm', NULL, N'I')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (69, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT6', N'Điện thoại', NULL, N'J')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (70, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'TEXT7', N'Fax', NULL, N'K')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (71, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'DATETIME1', N'Ngày thông báo', NULL, N'L')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (72, NULL, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', NULL, N'DATETIME2', N'Ngày thanh toán', NULL, N'M')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (73, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT1', N'Mã khách hàng', NULL, N'A')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (74, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT2', N'Tên khách hàng', NULL, N'B')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (75, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'NUMBER1', N'Dư đầu kỳ', NULL, N'C')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (76, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'NUMBER2', N'Phát sinh nợ', NULL, N'D')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (77, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'NUMBER3', N'Phát sinh có', NULL, N'E')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (78, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'NUMBER4', N'Dư cuối kỳ', NULL, N'F')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (79, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT3', N'Địa chỉ ', NULL, N'G')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (80, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT4', N'Email', NULL, N'H')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (81, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT5', N'Nhóm', NULL, N'I')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (82, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT6', N'Điện thoại', NULL, N'J')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (83, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'TEXT7', N'Fax', NULL, N'K')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (84, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'DATETIME1', N'Ngày thông báo', NULL, N'L')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (85, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'DATETIME2', N'Ngày thanh toán', NULL, N'M')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (86, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'NTEXT1', N'Nội dung', NULL, N'Nội dung ký số')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (87, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'INT1', N'Đã ký', NULL, N'Đã ký file')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (88, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'INT2', N'Trạng thái gửi', NULL, N'True : gửi thành công, False : Gửi lỗi')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (89, NULL, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', NULL, N'NTEXT2', N'Gửi Lỗi', NULL, N'Lỗi khi gửi email')
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (91, NULL, N'ABC', N'0101300842', NULL, N'TEXT1', N'ABC', 1, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (92, 10, N'ECHONG', N'0101300842-999', NULL, N'INT1', N'MA_KHACHHANG', 1, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (93, 10, N'ECHONG', N'0101300842-999', NULL, N'NUMBER4', N'TEN_NGUOI_E', NULL, NULL)
INSERT [dbo].[SCOLUMN_DINH_NGHIA] ([SCOLUMN_DINH_NGHIAID], [STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [MA_CN], [COLUMN_CODE], [COLUMN_NAME], [IS_PRIMARY], [MO_TA]) VALUES (94, 10, N'ECHONG', N'0101300842-999', NULL, N'INT2', N'DO_TUOI', NULL, NULL)
SET IDENTITY_INSERT [dbo].[SCOLUMN_DINH_NGHIA] OFF
GO
SET IDENTITY_INSERT [dbo].[SDANHMUC_CAC_LOAI] ON 

INSERT [dbo].[SDANHMUC_CAC_LOAI] ([SDANHMUC_CAC_LOAIID], [MA], [TEN], [GHI_CHU], [LOAI_DANH_MUC]) VALUES (CAST(1 AS Numeric(18, 0)), N'F15-795-002-457', N'NH Mizuho Bank Ltd- Chi nhánh Hà Nội', N'ÁD', N'TAI_KHOAN_BEN_BAN')
INSERT [dbo].[SDANHMUC_CAC_LOAI] ([SDANHMUC_CAC_LOAIID], [MA], [TEN], [GHI_CHU], [LOAI_DANH_MUC]) VALUES (CAST(2 AS Numeric(18, 0)), N'112000020251', N'NH Vietinbank – Chi nhánh KCN Quế Võ', NULL, N'TAI_KHOAN_BEN_BAN')
INSERT [dbo].[SDANHMUC_CAC_LOAI] ([SDANHMUC_CAC_LOAIID], [MA], [TEN], [GHI_CHU], [LOAI_DANH_MUC]) VALUES (CAST(3 AS Numeric(18, 0)), N'H15-795-002-465', N'NH Mizuho Bank Ltd- Chi nhánh Hà Nội', NULL, N'TAI_KHOAN_BEN_BAN')
INSERT [dbo].[SDANHMUC_CAC_LOAI] ([SDANHMUC_CAC_LOAIID], [MA], [TEN], [GHI_CHU], [LOAI_DANH_MUC]) VALUES (CAST(5 AS Numeric(18, 0)), N'456-HHH-123', NULL, NULL, N'TAI_KHOAN_BEN_BAN')
SET IDENTITY_INSERT [dbo].[SDANHMUC_CAC_LOAI] OFF
GO
SET IDENTITY_INSERT [dbo].[SDATA_DINH_NGHIA] ON 

INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (14, N'TABLE_BAN_HANG_DT', N'0101300842', N'VN03869', N'Thái Sơn1', N'3248742657
', N'F00001684', N'P4600', N'Đạt', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (16, N'TABLE_BAN_HANG_DT', N'0101300842', N'VN03870', N'Thái Sơn2', N'3248742657', N'F00001685', N'P4600', N'Đạt', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (17, N'TABLE_BAN_HANG_DT', N'0101300842', N'VN03871', N'Thái Sơn3', N'3248742657', N'F00001685', N'P4600', N'Đạt', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (18, N'TABLE_BAN_HANG_DT', N'0101300842', N'VN03872', N'Thái Sơn1', N'3248742657', N'F00001685', N'P4600', N'Đạt', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (26, N'TABLE_BAN_HANG_DT', N'0101300842', N'VN03873', N'Thái Sơn 4', N'3248742657', N'F00001685', N'P4600', N'Đạt', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (27, N'TABLE_BAN_HANG_DT', N'0101300842', N'VN03874', N'VN03874', N'ẻtert', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (28, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', N'F00004151', N'VN4338', N'EVN FINANCE JOINT STOCK COMPANY HO CHI MINH BRANCH', N'AP5070CS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(148917.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (29, N'DANH_SACH_HOA_DON_VE_0', N'0101300842', N'F00005075', N'VN03817', N'VIET TIEN_VITEC INVESTMENT AND', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (30, N'DANH_SACH_DOI_DVT', N'0101300842', N'F00001822', N'VN02849', N'ALPHA INDUSTRIES VIETNAM CO.,LT', N'FD4475CS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(726081.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (31, N'DANH_SACH_DOI_DVT', N'0101300842', N'F00000365', N'VN00927', N'ICS VIETNAM CO.,LT', N'2263CPS2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(270464.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (32, N'FORM_PR', N'0101300842', N'F00005135', N'VN04882', N'REGINA MIRACLE INTERNATIONAL HUNG YEN CO.,LT', N'AP5070CS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(151540.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (33, N'FORM_PR', N'0101300842', N'F00004954', N'VN04882', N'REGINA MIRACLE INTERNATIONAL HUNG YEN CO.,LT', N'6A3370CS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(520395.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (34, N'FORM_PR', N'0101300842', N'F00004916', N'VN01931', N'REGINA MIRACLE INTERNATIONAL HUNG YEN CO.,LT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (475, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X1', N'Công ty Thái Sơn', N'số 15 Đặng Thùy Trâm', N'vuthihongvcu@gmail.com', N'CS', N'0948756673', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X1</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>0948756673</inv:DIEN_THOAI>
<inv:FAX>19004767</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>Rc8uUNA232u79oiFoebGkqhKxPM=</DigestValue></Reference></SignedInfo><SignatureValue>DcSiYrF6uQP9YUorh64zVhiNly2IbPmiayKs6eiwV6WeLNVmopB6HtsCeE2LmpRjjpE+QAVBO2kZIscr9uO/tjUyouRQvIMpmkLTpEzWdSOIHyeilYhlA6GUGhvcaWJsA57Bop3/dCnSint+LgdIPAoYEartnt8GbcM8LhVlNuw=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (476, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X2', N'Công ty Thái Sơn', N'số 15 Đặng Thùy Trâm', N'vuthihongvcu@gmail.com', N'CS', N'0948756673', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X2</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>0948756673</inv:DIEN_THOAI>
<inv:FAX>19004767</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>pFx6EbcQLRBLvovm6nBZDx8uMMk=</DigestValue></Reference></SignedInfo><SignatureValue>FVhwgwyhYLZcS1oIcPImXGg1WzQjHk2hl9Te8xf7RDBZ+tmxKnDi7hJ+UL3aqnwOOUsGf8UrTbHyFLxACNhjrgV+uoNkZuLMfLMHPm9RlEr9Ksv3tAaG2whGMCHbRkhrH9w0He3iFsL4s8skVRZT4DK5RT4B0HPIcX8HPHkTSmk=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (477, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X3', N'Công ty Thái Sơn test1', N'số 15 Đặng Thùy Trâm test1', N'vuthihongvcu@gmail.com,hongvt@thaison.vn', N'CS1', N'09487566731', N'190047678', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X3</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn test1</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm test1</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com,hongvt@thaison.vn</inv:EMAIL>
<inv:NHOM>CS1</inv:NHOM>
<inv:DIEN_THOAI>09487566731</inv:DIEN_THOAI>
<inv:FAX>190047678</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>VAnvOtarUaldykipU9Oz7jQrvBk=</DigestValue></Reference></SignedInfo><SignatureValue>SYYMKBvfSkgo3HJBmmny2wtIHF8MoVLu8/p2WPN5NBw4T/nGBaAtZZELt3hA0PwTz/y1IwDdZTrj3+kSaBxlAqt8UbguRC2Y6KoV84DuVmTO6xOJbAoDUErwDxxywK8rL3YaLdHGbKDAZTpWJ91Xt4GI5OLuINMKElsLXFVapww=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (478, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X4', N'Công ty Thái Sơn', N'số 15 Đặng Thùy Trâm', N'vuthihongvcu@gmail.com', N'CS', N'0948756673', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X4</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>0948756673</inv:DIEN_THOAI>
<inv:FAX>19004767</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>B2Kfknoz0ZU99MqjOenpaMKZXmM=</DigestValue></Reference></SignedInfo><SignatureValue>NBzlnhSttQE8XmfESIWLDMNxQPQCBC09TrOii4bzgMsmoNe1rU5odESitK+3WiqyXO+Yk6eHSHHsRPssNaAQ9y09McEo+a05vZdMVKGQbz7p+ED8CylytvB9dWjrTItPAjvfbxWDV4skpeNdUva2nHYiC/WQ1CRyYUKRbJWgIO8=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (479, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X5', N'Công ty Thái Sơn', N'số 15 Đặng Thùy Trâm', N'vuthihongvcu@gmail.com,hongvt@thaison.vn', N'CS', N'0948756673', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X5</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn</inv:TEN_KH>
<inv:SO_DU_DAU_KY>200000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>100000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>400000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com,hongvt@thaison.vn</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>0948756673</inv:DIEN_THOAI>
<inv:FAX>19004767</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>fWjZB3ALxon0Mzlz8tVxyepi/RY=</DigestValue></Reference></SignedInfo><SignatureValue>Mvw/AKrcJY0QF3rKPrvgvRoGt8bSLL5fl7xrHU/SAA5+wVoeA6HARk9/zgHZ4cZDV+wYuXXQ/ymXuLE4v9FJN5UEfvd2iFqRdclWK4NAtD5wrpdhh0LBpEVZQuDg4oj4PXGsmydMOs7rQSUSqPWP+svJrrEKkvNSia0QRFs00OI=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(200000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(100000.00000000 AS Numeric(23, 8)), CAST(400000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (480, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X6', N'Công ty Thái Sơn', N'số 15 Đặng Thùy Trâm', N'vuthihongvcu@gmail.com', N'CS', N'0948756673', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X6</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>0948756673</inv:DIEN_THOAI>
<inv:FAX>19004767</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>A+fG400K0RVG/Fa3HQpFD0+hJOI=</DigestValue></Reference></SignedInfo><SignatureValue>F+5UOwQpucDmLmZTa3V+4VAiGD+U+VpygtnmXBt8jNMVOuscTqU5Yg8PwJLzmrTtOCmyZkLfcIM01JF6S/Byfb3eT9XVLXdgFc96xXLNFfz8BSKjGjP3omFzCTdoaROwPro3oaoSCz8DLIT79B1IA/zwgKKe4XjARBEIq3Jw2wE=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (481, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0401571699', N'CÔNG TY TNHH MỘT THÀNH VIÊN TASECO OCEANVIEW ĐÀ NẴNG', N'200 Võ Nguyên Giáp, Phường Phước Mỹ, Quận Sơn Trà, Thành Phố Đà Nẵng, Việt Nam', N'vuthihongvcu@gmail.com,hongvt@thaison.vn', N'CS', N'(084) 0236 3959 555', N'(084) 0236 3959 557', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0401571699</inv:MA_KH>
<inv:TEN_KH>CÔNG TY TNHH MỘT THÀNH VIÊN TASECO OCEANVIEW ĐÀ NẴNG</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>200 Võ Nguyên Giáp, Phường Phước Mỹ, Quận Sơn Trà, Thành Phố Đà Nẵng, Việt Nam</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com,hongvt@thaison.vn</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>(084) 0236 3959 555</inv:DIEN_THOAI>
<inv:FAX>(084) 0236 3959 557</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>F++l34xddSjEq8PonQkQMjrPBB0=</DigestValue></Reference></SignedInfo><SignatureValue>l9zUxnz2+Ut0XcH9PJrL4760jeiS7MSFrpmGs85TpTcaZ8aSHmVk+cLPP5wiLkMLxbcaDhVAybAvLkI8T23VjwzNFgcEmmGFaCDTd//O/9h6mHHrY1avCGKHc1RBQf016pWskPCAhTS/gP4zDqFKnofs8sT7jJlutvdaQWUHa1E=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHEjCCBfqgAwIBAgIQVAK8XKzOZpwgFQAAAAGSjTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE1MTAyNDAxMzEzMVoXDTE3MTAyODAxMzEzMVowggFEMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVEwTwYDVQQHDEg5OUIgLSBU4buVIDcwIC0gSOG7kyBRdeG7s25oIC0gVGhhbmggTmjDoG4gLSBIYWkgQmHMgCBUcsawbmcgLSBIw6AgTuG7mWkxSDBGBgNVBAoMP0PDtG5nIHR5IFROSEggUGhhzIF0IHRyacOqzIluIGPDtG5nIG5naMOqzKMgVGhhzIFpIFPGoW4gLSB0ZXN0MjESMBAGA1UECwwJS0jDlE5HIEJIMUgwRgYDVQQDDD9Dw7RuZyB0eSBUTkhIIFBoYcyBdCB0cmnDqsyJbiBjw7RuZyBuZ2jDqsyjIFRoYcyBaSBTxqFuIC0gdGVzdDIxHTAbBgkqhkiG9w0BCQEWDmhvcEB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCoKVWsvtUXEGetsBfL+eYJA6Bw65W9gytoVygDGmxlkVcitSXsz4wxlrDe1yxHNwhm+vpFk4O0Z3cnvNm8IpUYWL7PpbNyI/LTjkty9O3Pn03eJDxKS8QWmCqIDTGJ4gyizLsZnAH0ncivzJlxRKJTl4EL1TYr4F9tsDVggI7LfwIDAQABo4IDkTCCA40wDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4PYyBCE3MN+AgFkAgEEMHgGCSqGSIb3DQEJDwRrMGkwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBAjALBglghkgBZQMEAQUwBwYFKw4DAgcwCgYIKoZIhvcNAwcwHQYDVR0OBBYEFNx2Aghs5d3oYUyV2ctNPChTjK2EMB8GA1UdIwQYMBaAFBW6WgziDPdjzqmZe35i3EXWJOMAMIH1BgNVHR8Ege0wgeowgeeggeSggeGGgaJsZGFwOi8vL0NOPUNBMixDTj13d3csQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGGmh0dHA6Ly9jYXZuLnZuL25ldy9DQTIuY3Jshh5odHRwOi8vd3d3LmNhdm4udm4vbmV3L0NBMi5jcmwwggFWBggrBgEFBQcBAQSCAUgwggFEMIGeBggrBgEFBQcwAoaBkWxkYXA6Ly8vQ049Q0EyLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPWNhdm4sREM9dm4/Y0FDZXJ0aWZpY2F0ZT9iYXNlP29iamVjdENsYXNzPWNlcnRpZmljYXRpb25BdXRob3JpdHkwPQYIKwYBBQUHMAKGMWh0dHA6Ly93d3cuY2F2bi52bi9DZXJ0RW5yb2xsL3d3dy5jYXZuLnZuX0NBMi5jcnQwLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3NwLmNhdm4udm46NjY2Ni9vY3NwL29jc3AwMgYIKwYBBQUHMAKGJmh0dHA6Ly93d3cuY2F2bi52bi93d3cuY2F2bi52bl9DQTIuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMEMBsGCSsGAQQBgjcVCgQOMAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQEFBQADggEBAGNPFlsO4aArajwcaAzp/SfnCw+iENd49jUqI858Hdj6dZ5e5xt3OVrFB8iXj2RMqL8bLle18uwyvdFmnOCx8anUU+mxdrArMot/I4+REn5fChaXJK3bGpXqt5NmCVUT2F8tYNtEfUQMIyR4xMp1HbjjSsfzvQuZF9KAsfFTdWI7l19VqMquA5uXZ0BxZKnWOsQHFB/CGbLvfNyu1EpYgAu8qpG/el6Nvqj3GqxthKastyGv/Kl1EBkbTiDZYHvya7ieQqekTK8zy+vVA+1FEVWp42/U07t+obXckqvpKkpG3YGXE+N7lzE4W0U+Y6hAWmMra2Um+2/SD7zPpPZs174=</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (565, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0401571699', N'CÔNG TY TNHH MỘT THÀNH VIÊN TASECO OCEANVIEW ĐÀ NẴNG', N'200 Võ Nguyên Giáp, Phường Phước Mỹ, Quận Sơn Trà, Thành Phố Đà Nẵng, Việt Nam', N'vuthihongvcu@gmail.com,hongvt@thaison.vn', N'CS', N'(084) 0236 3959 555', N'(084) 0236 3959 557', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0401571699</inv:MA_KH>
<inv:TEN_KH>CÔNG TY TNHH MỘT THÀNH VIÊN TASECO OCEANVIEW ĐÀ NẴNG</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>200 Võ Nguyên Giáp, Phường Phước Mỹ, Quận Sơn Trà, Thành Phố Đà Nẵng, Việt Nam</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com,hongvt@thaison.vn</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>(084) 0236 3959 555</inv:DIEN_THOAI>
<inv:FAX>(084) 0236 3959 557</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>F++l34xddSjEq8PonQkQMjrPBB0=</DigestValue></Reference></SignedInfo><SignatureValue>KZ7yWbgFKLPr7t2DqNN+uGWzWPyB3xjglFytKzdIJsbTwXUqXUbM/QiDQEk5Zh2/imYSwc08k5Qob0ZSFxEZ3ecNz1J4v78IfjNi4nkLADJHHUdMc/vefEW0mFSRjsEQjcZ4TI/0ZRSrn3Vhz34YL3ZdD/4PYQVdxCaH9d8S6h4=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHGjCCBgKgAwIBAgIQVAK8XKzOZpwgFQAAAANqcTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE4MTIwNzAyNDMyOFoXDTE5MDMwODAyNDMyOFowggEvMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEPMA0GA1UECwwGQ8OzIEJIMTwwOgYDVQQDDDNDw7RuZyB0eSBUTkhIIFBow6F0IFRyaeG7g24gQ8O0bmcgTmdo4buHIFRow6FpIFPGoW4xIDAeBgkqhkiG9w0BCQEWEWhvYWRvbkB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYvotXWhneLJnxbGWyh+8XjArktwB/9lDtZqd9VyOOgSh8WjXdmFwL5NfvuYpIjv9O7kAKdTdw3OOOIsqnBtOv1yWivIYWS/TVlL/Y3egSsnfv1wL93ZqFZH3zDYl1dc1gLT5nJFF9U93aBmAJaVkgo59i1L0us5vmvKQK0pbISQIDAQABo4IDrjCCA6owDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4WfgTeE24gAAgFkAgEEMIGUBgkqhkiG9w0BCQ8EgYYwgYMwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBzALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBFjALBglghkgBZQMEARkwCwYJYIZIAWUDBAECMAsGCWCGSAFlAwQBBTAdBgNVHQ4EFgQUdYokkytEEzjuqhzCn09EESCg3akwHwYDVR0jBBgwFoAUFbpaDOIM92POqZl7fmLcRdYk4wAwgfUGA1UdHwSB7TCB6jCB56CB5KCB4YaBomxkYXA6Ly8vQ049Q0EyLENOPXd3dyxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1jYXZuLERDPXZuP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFzZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIYaaHR0cDovL2Nhdm4udm4vbmV3L0NBMi5jcmyGHmh0dHA6Ly93d3cuY2F2bi52bi9uZXcvQ0EyLmNybDCCAVYGCCsGAQUFBwEBBIIBSDCCAUQwgZ4GCCsGAQUFBzAChoGRbGRhcDovLy9DTj1DQTIsQ049QUlBLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jQUNlcnRpZmljYXRlP2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNhdGlvbkF1dGhvcml0eTA9BggrBgEFBQcwAoYxaHR0cDovL3d3dy5jYXZuLnZuL0NlcnRFbnJvbGwvd3d3LmNhdm4udm5fQ0EyLmNydDAuBggrBgEFBQcwAYYiaHR0cDovL29jc3AuY2F2bi52bjo2NjY2L29jc3Avb2NzcDAyBggrBgEFBQcwAoYmaHR0cDovL3d3dy5jYXZuLnZuL3d3dy5jYXZuLnZuX0NBMi5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwQwGwYJKwYBBAGCNxUKBA4wDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQUFAAOCAQEAgv5tZyG8UX0p9ghuffpdjvIC2WB13FAEvcSgY+8xdrOTf5WzOoCY8uaoRZ1lYmIPDr2SHApti+ZjAHwg7GKv6evTTMBvoSFJQoqxjlbKJf0e7B5f4MT+NEeymzkrrvdHyEK512bJ79+lVtzJoBHDG+cWc5+QONq992E2vHmQY5nI/Y3kVuVcXgDRxdA+KOBDi7Gn0md1n2O3IocAkdowt89VdNf8c3ekmotWplljOiGA43NCpPPdBQ0+LSTMWkYvy+l9fiw9CCPEr5//NQm5IO43qZPnaS/g6mnepc0iOmELmdZbzPN+KySjJ2BMblSa2f9XGXwrP2HC3Af7FLZjBg==</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (594, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0101300842X1x', N'Công ty Thái Sơn', N'số 15 Đặng Thùy Trâm', N'vuthihongvcu@gmail.com', N'CS', N'0948756673', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0101300842X1x</inv:MA_KH>
<inv:TEN_KH>Công ty Thái Sơn</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>số 15 Đặng Thùy Trâm</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>0948756673</inv:DIEN_THOAI>
<inv:FAX>19004767</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>57QKyieqy9hGNSXjepZ408I8dTY=</DigestValue></Reference></SignedInfo><SignatureValue>PJDptzOlRh+aJKZoyG725dVffi1+FRB4GVFxeDe4aIQ2bqi7KEKzJzJU2NKCpHPHAB1JVL8wNc9XbJa1mWJfQt1IRiznCwRzL/dvchV0aqYCUTIxBXMFdRV4akJBda3Oiu5Dk4d/MqAd8l2nEXqLko2L4cIwF1Pkx5q7gqbvGKQ=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHGjCCBgKgAwIBAgIQVAK8XKzOZpwgFQAAAANqcTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE4MTIwNzAyNDMyOFoXDTE5MDMwODAyNDMyOFowggEvMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEPMA0GA1UECwwGQ8OzIEJIMTwwOgYDVQQDDDNDw7RuZyB0eSBUTkhIIFBow6F0IFRyaeG7g24gQ8O0bmcgTmdo4buHIFRow6FpIFPGoW4xIDAeBgkqhkiG9w0BCQEWEWhvYWRvbkB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYvotXWhneLJnxbGWyh+8XjArktwB/9lDtZqd9VyOOgSh8WjXdmFwL5NfvuYpIjv9O7kAKdTdw3OOOIsqnBtOv1yWivIYWS/TVlL/Y3egSsnfv1wL93ZqFZH3zDYl1dc1gLT5nJFF9U93aBmAJaVkgo59i1L0us5vmvKQK0pbISQIDAQABo4IDrjCCA6owDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4WfgTeE24gAAgFkAgEEMIGUBgkqhkiG9w0BCQ8EgYYwgYMwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBzALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBFjALBglghkgBZQMEARkwCwYJYIZIAWUDBAECMAsGCWCGSAFlAwQBBTAdBgNVHQ4EFgQUdYokkytEEzjuqhzCn09EESCg3akwHwYDVR0jBBgwFoAUFbpaDOIM92POqZl7fmLcRdYk4wAwgfUGA1UdHwSB7TCB6jCB56CB5KCB4YaBomxkYXA6Ly8vQ049Q0EyLENOPXd3dyxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1jYXZuLERDPXZuP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFzZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIYaaHR0cDovL2Nhdm4udm4vbmV3L0NBMi5jcmyGHmh0dHA6Ly93d3cuY2F2bi52bi9uZXcvQ0EyLmNybDCCAVYGCCsGAQUFBwEBBIIBSDCCAUQwgZ4GCCsGAQUFBzAChoGRbGRhcDovLy9DTj1DQTIsQ049QUlBLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jQUNlcnRpZmljYXRlP2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNhdGlvbkF1dGhvcml0eTA9BggrBgEFBQcwAoYxaHR0cDovL3d3dy5jYXZuLnZuL0NlcnRFbnJvbGwvd3d3LmNhdm4udm5fQ0EyLmNydDAuBggrBgEFBQcwAYYiaHR0cDovL29jc3AuY2F2bi52bjo2NjY2L29jc3Avb2NzcDAyBggrBgEFBQcwAoYmaHR0cDovL3d3dy5jYXZuLnZuL3d3dy5jYXZuLnZuX0NBMi5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwQwGwYJKwYBBAGCNxUKBA4wDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQUFAAOCAQEAgv5tZyG8UX0p9ghuffpdjvIC2WB13FAEvcSgY+8xdrOTf5WzOoCY8uaoRZ1lYmIPDr2SHApti+ZjAHwg7GKv6evTTMBvoSFJQoqxjlbKJf0e7B5f4MT+NEeymzkrrvdHyEK512bJ79+lVtzJoBHDG+cWc5+QONq992E2vHmQY5nI/Y3kVuVcXgDRxdA+KOBDi7Gn0md1n2O3IocAkdowt89VdNf8c3ekmotWplljOiGA43NCpPPdBQ0+LSTMWkYvy+l9fiw9CCPEr5//NQm5IO43qZPnaS/g6mnepc0iOmELmdZbzPN+KySjJ2BMblSa2f9XGXwrP2HC3Af7FLZjBg==</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (600, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'0101300842', N'0401571699', N'CÔNG TY TNHH MỘT THÀNH VIÊN TASECO OCEANVIEW ĐÀ NẴNG', N'200 Võ Nguyên Giáp, Phường Phước Mỹ, Quận Sơn Trà, Thành Phố Đà Nẵng, Việt Nam', N'vuthihongvcu@gmail.com,hongvt@thaison.vn', N'CS', N'(084) 0236 3959 555', N'(084) 0236 3959 557', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'<?xml version="1.0" encoding="utf-8"?>
<inv:invoice xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
<inv:viewData>
<inv:printType>HD</inv:printType>
</inv:viewData>
<inv:invoiceData id="data">
<inv:MA_KH>0401571699</inv:MA_KH>
<inv:TEN_KH>CÔNG TY TNHH MỘT THÀNH VIÊN TASECO OCEANVIEW ĐÀ NẴNG</inv:TEN_KH>
<inv:SO_DU_DAU_KY>100000.00000000</inv:SO_DU_DAU_KY>
<inv:PHAT_SINH_NO>300000.00000000</inv:PHAT_SINH_NO>
<inv:PHAT_SINH_CO>200000.00000000</inv:PHAT_SINH_CO>
<inv:SO_DU_CUOI_KY>200000.00000000</inv:SO_DU_CUOI_KY>
<inv:DIA_CHI>200 Võ Nguyên Giáp, Phường Phước Mỹ, Quận Sơn Trà, Thành Phố Đà Nẵng, Việt Nam</inv:DIA_CHI>
<inv:EMAIL>vuthihongvcu@gmail.com,hongvt@thaison.vn</inv:EMAIL>
<inv:NHOM>CS</inv:NHOM>
<inv:DIEN_THOAI>(084) 0236 3959 555</inv:DIEN_THOAI>
<inv:FAX>(084) 0236 3959 557</inv:FAX>
<inv:NGAY_CONG_NO>2018-11-30</inv:NGAY_CONG_NO>
<inv:TEN_NGUOI_LIEN_HE_DN>Ngô Minh Nguyệt - Phòng Kế toán</inv:TEN_NGUOI_LIEN_HE_DN>
<inv:DIA_CHI_DN>KCN Vĩnh Tuy, đường Lĩnh Nam. phường Vĩnh Hưng, quận Hoàng Mai, Hà Nội</inv:DIA_CHI_DN>
<inv:GHI_CHU_TT_DN>Điện thoại: 84-4-36445758 (máy lẻ 1622)- Fax: 84-4-36445777</inv:GHI_CHU_TT_DN>
<inv:NGAY_THONG_BAO>2018-12-15</inv:NGAY_THONG_BAO>
<inv:signedDate>2018-12-15</inv:signedDate>
<inv:HAN_THANH_TOAN>2018-12-31</inv:HAN_THANH_TOAN>
<inv:sellerLegalName>Công ty cổ phần Diana Unicharm</inv:sellerLegalName>
</inv:invoiceData>
<Signature Id="seller" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI="#data"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>F++l34xddSjEq8PonQkQMjrPBB0=</DigestValue></Reference></SignedInfo><SignatureValue>KZ7yWbgFKLPr7t2DqNN+uGWzWPyB3xjglFytKzdIJsbTwXUqXUbM/QiDQEk5Zh2/imYSwc08k5Qob0ZSFxEZ3ecNz1J4v78IfjNi4nkLADJHHUdMc/vefEW0mFSRjsEQjcZ4TI/0ZRSrn3Vhz34YL3ZdD/4PYQVdxCaH9d8S6h4=</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIHGjCCBgKgAwIBAgIQVAK8XKzOZpwgFQAAAANqcTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJWTjEWMBQGA1UEChMNTkFDRU5DT01NIFNDVDEMMAoGA1UEAxMDQ0EyMB4XDTE4MTIwNzAyNDMyOFoXDTE5MDMwODAyNDMyOFowggEvMQswCQYDVQQGEwJWTjEbMBkGA1UECBMSTVNUOjAxMDEzMDA4NDItOTk5MVQwUgYDVQQHDEtT4buRIDExLCDEkOG6t25nIFRow7l5IFRyw6JtLCBIb8OgbmcgUXXhu5FjIFZp4buHdCwgQ+G6p3UgR2nhuqV5LCBIw6AgTuG7mWkxPDA6BgNVBAoMM0PDtG5nIHR5IFROSEggUGjDoXQgVHJp4buDbiBDw7RuZyBOZ2jhu4cgVGjDoWkgU8ahbjEPMA0GA1UECwwGQ8OzIEJIMTwwOgYDVQQDDDNDw7RuZyB0eSBUTkhIIFBow6F0IFRyaeG7g24gQ8O0bmcgTmdo4buHIFRow6FpIFPGoW4xIDAeBgkqhkiG9w0BCQEWEWhvYWRvbkB0aGFpc29uLnZuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYvotXWhneLJnxbGWyh+8XjArktwB/9lDtZqd9VyOOgSh8WjXdmFwL5NfvuYpIjv9O7kAKdTdw3OOOIsqnBtOv1yWivIYWS/TVlL/Y3egSsnfv1wL93ZqFZH3zDYl1dc1gLT5nJFF9U93aBmAJaVkgo59i1L0us5vmvKQK0pbISQIDAQABo4IDrjCCA6owDgYDVR0PAQH/BAQDAgXgMD0GCSsGAQQBgjcVBwQwMC4GJisGAQQBgjcVCIWPzxCBg58jh7mFMoeKwlCn/3+Be4WfgTeE24gAAgFkAgEEMIGUBgkqhkiG9w0BCQ8EgYYwgYMwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBzALBglghkgBZQMEASowCwYJYIZIAWUDBAEtMAsGCWCGSAFlAwQBFjALBglghkgBZQMEARkwCwYJYIZIAWUDBAECMAsGCWCGSAFlAwQBBTAdBgNVHQ4EFgQUdYokkytEEzjuqhzCn09EESCg3akwHwYDVR0jBBgwFoAUFbpaDOIM92POqZl7fmLcRdYk4wAwgfUGA1UdHwSB7TCB6jCB56CB5KCB4YaBomxkYXA6Ly8vQ049Q0EyLENOPXd3dyxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1jYXZuLERDPXZuP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFzZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIYaaHR0cDovL2Nhdm4udm4vbmV3L0NBMi5jcmyGHmh0dHA6Ly93d3cuY2F2bi52bi9uZXcvQ0EyLmNybDCCAVYGCCsGAQUFBwEBBIIBSDCCAUQwgZ4GCCsGAQUFBzAChoGRbGRhcDovLy9DTj1DQTIsQ049QUlBLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9Y2F2bixEQz12bj9jQUNlcnRpZmljYXRlP2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNhdGlvbkF1dGhvcml0eTA9BggrBgEFBQcwAoYxaHR0cDovL3d3dy5jYXZuLnZuL0NlcnRFbnJvbGwvd3d3LmNhdm4udm5fQ0EyLmNydDAuBggrBgEFBQcwAYYiaHR0cDovL29jc3AuY2F2bi52bjo2NjY2L29jc3Avb2NzcDAyBggrBgEFBQcwAoYmaHR0cDovL3d3dy5jYXZuLnZuL3d3dy5jYXZuLnZuX0NBMi5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwQwGwYJKwYBBAGCNxUKBA4wDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQUFAAOCAQEAgv5tZyG8UX0p9ghuffpdjvIC2WB13FAEvcSgY+8xdrOTf5WzOoCY8uaoRZ1lYmIPDr2SHApti+ZjAHwg7GKv6evTTMBvoSFJQoqxjlbKJf0e7B5f4MT+NEeymzkrrvdHyEK512bJ79+lVtzJoBHDG+cWc5+QONq992E2vHmQY5nI/Y3kVuVcXgDRxdA+KOBDi7Gn0md1n2O3IocAkdowt89VdNf8c3ekmotWplljOiGA43NCpPPdBQ0+LSTMWkYvy+l9fiw9CCPEr5//NQm5IO43qZPnaS/g6mnepc0iOmELmdZbzPN+KySjJ2BMblSa2f9XGXwrP2HC3Af7FLZjBg==</X509Certificate></X509Data></KeyInfo></Signature></inv:invoice>
', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(100000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-15T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (615, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'3702128870x1', N'CÔNG TY TNHH NTPM (VIỆT NAM)', N'Số 22, VSIP II-A, Đường số 23. Khu Công Nghiệp Việt Nam - Singapore II-A, Xã Vĩnh Tân. Thị Xã Tân Uyên, Tỉnh Bình Dương, Việt Nam', N'vuthihong.vcu@gmail.com', N'CS', N'0916574770', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(500000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(600000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (616, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'0400528845x2', N'CATHAY PACIFIC HA NOI', N'Lô 10, đường N2, KCN Nhơn Trạch III - Giai đoạn 2, Xã Long Thọ, Huyện Nhơn Trạch, Tỉnh Đồng Nai', N'vuthihong.vcu@gmail.com', N'NTPP', N'0948695528', N'19004768', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(700000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(100000.00000000 AS Numeric(23, 8)), CAST(800000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (617, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'3702128870x3', N'CÔNG TY TNHH NTPM (VIỆT NAM)', N'Số 22, VSIP II-A, Đường số 23. Khu Công Nghiệp Việt Nam - Singapore II-A, Xã Vĩnh Tân. Thị Xã Tân Uyên, Tỉnh Bình Dương, Việt Nam', N'vuthihong.vcu@gmail.com', N'NCC', N'0916574770', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(0.00000000 AS Numeric(23, 8)), CAST(6806173384.00000000 AS Numeric(23, 8)), CAST(11200890223.00000000 AS Numeric(23, 8)), CAST(59037570.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (618, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'0100773885x4', N'CÔNG TY LIÊN DOANH TNHH KFC VIỆT NAM', N'Số 22, VSIP II-A, Đường số 23. Khu Công Nghiệp Việt Nam - Singapore II-A, Xã Vĩnh Tân. Thị Xã Tân Uyên, Tỉnh Bình Dương, Việt Nam', N'vuthihong.vcu@gmail.com', N'CS', N'0948695528', N'19004768', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(700000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(100000.00000000 AS Numeric(23, 8)), CAST(800000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (619, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'0100774381x5', N'CATHAY PACIFIC HA NOI', N'Địa chỉ CATHAY PACIFIC HA NOI', N'vuthihong.vcu@gmail.com', N'CS', N'0916574770', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(51126535.00000000 AS Numeric(23, 8)), CAST(28740096.00000000 AS Numeric(23, 8)), CAST(0.00000000 AS Numeric(23, 8)), CAST(59037570.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (620, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'3702128870x6', N'CÔNG TY TNHH NTPM (VIỆT NAM)', N'Số 22, VSIP II-A, Đường số 23. Khu Công Nghiệp Việt Nam - Singapore II-A, Xã Vĩnh Tân. Thị Xã Tân Uyên, Tỉnh Bình Dương, Việt Nam', N'vuthihong.vcu@gmail.com', N'CS', N'0916574770', N'19004767', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(500000.00000000 AS Numeric(23, 8)), CAST(300000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(600000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SDATA_DINH_NGHIA] ([SDATA_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [MA_DV], [TEXT1], [TEXT2], [TEXT3], [TEXT4], [TEXT5], [TEXT6], [TEXT7], [TEXT8], [TEXT9], [TEXT10], [TEXT11], [TEXT12], [TEXT13], [TEXT14], [TEXT15], [TEXT16], [TEXT17], [TEXT18], [TEXT19], [TEXT20], [NTEXT1], [NTEXT2], [NTEXT3], [NTEXT4], [NTEXT5], [NTEXT6], [NTEXT7], [NTEXT8], [NTEXT9], [NTEXT10], [NUMBER1], [NUMBER2], [NUMBER3], [NUMBER4], [NUMBER5], [NUMBER6], [NUMBER7], [NUMBER8], [NUMBER9], [NUMBER10], [NUMBER11], [NUMBER12], [NUMBER13], [NUMBER14], [NUMBER15], [NUMBER16], [NUMBER17], [NUMBER18], [NUMBER19], [NUMBER20], [DATETIME1], [DATETIME2], [DATETIME3], [DATETIME4], [DATETIME5], [DATETIME6], [DATETIME7], [DATETIME8], [DATETIME9], [DATETIME10], [DATETIME11], [DATETIME12], [DATETIME13], [DATETIME14], [DATETIME15], [DATETIME16], [DATETIME17], [DATETIME18], [DATETIME19], [DATETIME20], [INT1], [INT2], [INT3], [INT4], [INT5], [INT6], [INT7], [INT8], [INT9], [INT10]) VALUES (621, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'0101300842', N'0400528845x7', N'Công ty TNHH khu nghỉ mát P&I Đà Nẵng', N'Số 22, VSIP II-A, Đường số 23. Khu Công Nghiệp Việt Nam - Singapore II-A, Xã Vĩnh Tân. Thị Xã Tân Uyên, Tỉnh Bình Dương, Việt Nam', N'vuthihong.vcu@gmail.com', N'NTPP', N'0948695528', N'19004768', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(700000.00000000 AS Numeric(23, 8)), CAST(200000.00000000 AS Numeric(23, 8)), CAST(100000.00000000 AS Numeric(23, 8)), CAST(800000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2018-12-07T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[SDATA_DINH_NGHIA] OFF
GO
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'', N' ', NULL, NULL, 0)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'ban', N'Bản', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'bang', N'Bảng', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'bao', N'Bao', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'bich', N'Bịch', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'binh', N'Bình', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'bo', N'Bộ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'bong', N'Bông', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'CA1', N'cây', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'CA2', N'cái', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cai', N'Cái', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Cái', N'Cái', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'can', N'Cân', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'canh', N'Cành', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cap', N'Cáp', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'carat', N'Carat', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Caùi', N'Caùi', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cay', N'Cây', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'chai', N'Chai', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'chi', N'Chỉ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Chi?c', N'Chi?c', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'CHIEC', N'CHIEC', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'chiếc', N'chiếc', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'CHIEC1', N'CHIEC', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cm', N'Centimet', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cm2', N'Cm2', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cm3', N'Cm3', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'con', N'Con', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'container', N'Container', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cu', N'Củ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cuc', N'Cục', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cum', N'Cụm', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'cuon', N'Cuộn', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Cuốn', N'Cuốn', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'd', N'444', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'd?ng', N'd?ng', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'dam', N'Dặm', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'dm', N'Dm', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'dm2', N'Dm2', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'doi', N'Đôi', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'đồng', N'đồng', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'feet', N'Feet (dài)', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'gam', N'Gam', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'goi', N'Gói', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'gross', N'Gross', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'gúi', N'gúi', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'hat', N'Hạt', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'HC90', N'HC90', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'HO', N'hộp', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'hop', N'Hộp', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'HỘP', N'HỘP', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'HU', N'hủ', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Hũ', N'Hũ', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'HỦ', N'HỦ', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'inch', N'Inch', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'kg', N'Kg', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'kien', N'Kiện', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'kw', N'kw', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'kwh', N'Kw/h', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'lieu', N'Liều
', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'lit', N'Lít', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'lo', N'Lọ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Lóc', N'Lóc', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'lon', N'Lon', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'ly', N'ly', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'm2', N'M2', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'm3', N'M3', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'manh', N'Mảnh', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'may', N'Máy', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'met', N'Mét', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'mg', N'Miligam', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'mieng', N'Miếng', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'ml', N'Mililit', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'mm', N'Milimet', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'mm2', N'Mm2', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'mm3', N'Mm3', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'ong', N'Ống', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'PCE', N'chiếc', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Phaàn', N'Phaàn', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Phần', N'Phần', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'pound', N'Pound', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'PU', N'PU', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'QA', N'QA', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'qua', N'Quả', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'quyen', N'Quyển', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'soi', N'Sợi', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Sơn', N'Sơn', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'sp', N'Sản phẩm', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'ta', N'Tạ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'ta12', N'Tá (12 cái)', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'tam', N'Tấm', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'tan', N'Tấn', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'tap', N'Tập', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'TH01', N'thùng', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'thanh', N'Thanh', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'the', N'Thẻ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'thung', N'Thùng', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'to', N'Tô', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'tui', N'Túi', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'tut', N'Tút', NULL, NULL, 1)
GO
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'Tuyền', N'Tuyền', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'tuyp', N'Tuýp', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'unit', N'Unit', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N've', N'Vé', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'vi', N'Vỉ', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'vien', N'Viên', NULL, NULL, 1)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'xe', N'xe', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'XXXXX', N'XXXXX', NULL, NULL, NULL)
INSERT [dbo].[SDVT] ([MA_DVT], [TEN_DVT], [MA_STD], [TL_QUYDOI], [IS_HIENTHI]) VALUES (N'yard', N'Yard', NULL, NULL, 1)
GO
INSERT [dbo].[SHINHTHUCTT] ([MA_HINHTHUCTT], [TEN_HINHTHUCTT], [IS_HIENTHI], [IS_MAC_DINH]) VALUES (N'01', N'Tiền mặt', NULL, NULL)
INSERT [dbo].[SHINHTHUCTT] ([MA_HINHTHUCTT], [TEN_HINHTHUCTT], [IS_HIENTHI], [IS_MAC_DINH]) VALUES (N'02', N'Chuyển khoản', NULL, NULL)
INSERT [dbo].[SHINHTHUCTT] ([MA_HINHTHUCTT], [TEN_HINHTHUCTT], [IS_HIENTHI], [IS_MAC_DINH]) VALUES (N'03', N'Thẻ tín dụng', NULL, NULL)
INSERT [dbo].[SHINHTHUCTT] ([MA_HINHTHUCTT], [TEN_HINHTHUCTT], [IS_HIENTHI], [IS_MAC_DINH]) VALUES (N'04', N'TM/CK', NULL, NULL)
INSERT [dbo].[SHINHTHUCTT] ([MA_HINHTHUCTT], [TEN_HINHTHUCTT], [IS_HIENTHI], [IS_MAC_DINH]) VALUES (N'06', N'Bù trừ công nợ', NULL, NULL)
GO
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'Chơn thành', CAST(4 AS Numeric(18, 0)), N'Chơn thành', N'01gtkt', N'01', N'', NULL, N'', NULL, N'PhuocThanh.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="1.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">
                    .line{border-top:1px solid #000;margin:3px 0 !important;line-height:3px !important;}
                    canvas{display:inline-block}html{font-size:100%}i{font-size:14px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                    p{orphans:0;widows:3}
                    body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                    .text-right{text-align:right !important}.text-center{text-align:center !important}
                    legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                    input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                    .container {
                    width: 715px;
                    <!--height: 980px;-->
                    font-size: 14px;
                    line-height: 18px;
                    font-family: Times New Roman;
                    padding: 0px;
                    border-radius: 0px;
                    margin: 0 auto;
                    border: 1px solid #000;
                    margin-top:px;
                    position: relative;
                    display: table;
                    color:#000;
					margin-top: 15px;
                    }

                    .invName{text-align:center;font-size:22px;line-height:px;font-weight:700;text-transform:uppercase}
                    .row {
                    width: 100%;
                    margin: 0;
                    padding: 0;
                    clear: both;
                    display: table;
                    }

                    .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                    display: block;
                    float: left;
                    padding: 0;
                    margin: 0;
        
                    }
                    .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                    .col1  {width: 5%;}                    
                    .col2  {width: 10%;}                    
                    .col3  {width: 15%;}
                    .col23 {width: 23%}                    
                    .col78 {width: 77%}                    
                    .col4  {width: 20%;}                    
                    .col5  {width: 25%;}                    
                    .col6  {width: 30%;}                    
                    .col7  {width: 35%;}                    
                    .col8  {width: 40%;}                    
                    .col9  {width: 45%;}                    
                    .col10 {width: 50%;}                    
                    .col11 {width: 55%;}                    
                    .col12 {width: 60%;}                    
                    .col13 {width: 65%;}                    
                    .col14 {width: 70%;}                    
                    .col15 {width: 75%;}                    
                    .col16 {width: 80%;}                    
                    .col17 {width: 85%;}                    
                    .col18 {width: 90%;}                    
                    .col19 {width: 95%;}                    
                    .col20 {width: 100%;}        
                    <!--Css add them ko danh cho multi page-->
                    .table {border-spacing:0;width:100%;margin-left:px;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:13.5px;color:#000;}
                    .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                    .table th{padding:2px;text-align:center;text-transform:;}
                    .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                    .table th:last-child{border-right:1px solid #000}
                    .table tbody tr th:last-child{border-right:0px solid #000}
                    .table tbody tr th:first-child{border-left:0px solid #000}
                    
        
                    .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                    .table td{border-top:1px solid #DDD}
                    .table tbody tr td:last-child{border-right:0px solid #000}
                    .table tbody tr td:first-child{border-left:0px solid #000}
                    .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                    .table-all-border {border-spacing:0;width:100%}
                    .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                    .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                    .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                    .table td .table th{line-height:18px}
                    table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}
        
                    .abcdef{
                    border: 3px none #000000;
                    font-weight: bold;
                    font-size: 40px;
                    position: absolute;
                    top: 200px;
                    left: 61px;
                    width: 600px;

                    background: none;
                    z-index: -2;
                
                    }
                    .abcdef1{
                    border: 3px none #000000;
                    font-weight: bold;
                    font-size: 40px;
                    position: absolute;
                    top: 400px;
                    left: 57px;
                    width: 600px;

                    background: none;
                    z-index: -1;
                
                    }
                    .next-page { page-break-inside:always;  page-break-after:always}
                
                    .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                    .nom{
                    font-weight:500 !important;
                    font-size:12px;
                    text-transform: uppercase;
                    }
                    .boderTop{
                    border-top: 1px solid #000 !important;
                    }
                    .boderLe{
                    border-left: 1px solid #000 !important;
                    }
                    .boderRi{
                    border-right: 1px solid #000 !important;
                    }
                    .boderBot{
                    border-bottom: 1px solid #000 !important;
                    }
                    .boderAll{border: 1px solid #000 !important;}
                    .textThaiSon{
                    position: absolute;
                    top: 250px;
                    display: block;
                    right:-15px;
                    font-style: italic;
                    font-size: 11px;
                    }
                    .phathanh{
                    position:absolute;
                    opacity:0.8;
                    filter:alpha(opacity=100);
                    top:297px;
                    left:180px;
                    width:300px;
                    height:auto;
                    z-index:1;
                    background: none;
                    }
                    .lineh17{line-height:17px}
                    .logo{width:125px}
                    .tableheader{height:75px;width:100%}
                    .tableheader .td2{line-height:24px;width:50%}
                    .tableheader .td3{line-height:24px;width:25%}
                    .tableheader1{width:100%;margin-top:5px}
                    .tableheader1 .td2{width:75%;}
                    .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                    .tbks{width:100%;}
                    .tbks td{height:78px}
                    .textcd{height:40px;line-height:17px;margin-top:3px}
                    .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 9px; max-width: 250px; text-align: left;line-height: 13px}
                </style><body style="font-size:8px;"><div class="container"><!--<img class="abcdef" src="data:image/gif;base64, "/>--><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div class="" id="thaison"><img class="textThaiSon" style="width:15px" src=" data:image/gif;base64, " /></div><table class="tableheader1"><tr><td class="td2"><div class="row"><div class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div class="col15" style="width: 72%">
                                            Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col7" style="width: 32%">
                                                Điện thoại: <xsl:if test="inv:invoiceData/inv:sellerPhoneNumber !=''x''"><xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></xsl:if></div><div class="col9">
                                                *      Fax: <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div></div><div>
                                            Mã số thuế:  <span style=" font-weight: bold; letter-spacing: 4px"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div></div></td><td class="" style="width:25%; line-height: 24px">
                                  Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
                                    Ký hiệu: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
                                    Số: <span style="color:red ;font-size:26px"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                0000000
                                            </xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></span></td></tr></table><table class="tableheader"><tr><td class="text-center" style="width:25%">
								 
                                </td><td class="text-center td2"><div class="invName"><xsl:value-of select="inv:invoiceData/inv:invoiceName" /></div><div><div><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''">
                                                    Ngày     tháng     năm
                                                </xsl:when><xsl:otherwise><xsl:value-of select="concat(''Ngày '', substring($issuedDate, 9, 2), '' tháng '', substring($issuedDate, 6, 2), '' năm '', substring($issuedDate, 1, 4))" /></xsl:otherwise></xsl:choose></div><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i></xsl:when><xsl:otherwise><i>(BẢN THỂ HIỆN CỦA HÓA ĐƠN ĐIỆN TỬ)</i></xsl:otherwise></xsl:choose></div><div class="xoabo"><xsl:value-of select="inv:StatusDelete" /></div></td><td class="" style="width: 25%">
                                   
                                </td></tr></table><div class="row"><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><div class="col20" style="padding-bottom:5px"><b>Thay thế cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="col20" style="padding-bottom:5px"><b>Điều chỉnh cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="col20" style="padding-bottom:5px"><b>Xóa bỏ cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when></xsl:choose></div><!--<div class="row line" style=""/>--><div class="row "><div class="" style="padding-left:5px"><div>
                                    Họ tên người mua hàng: <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div>
                                    Tên đơn vị: <xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div>
                                    Mã số thuế: <span style="letter-spacing: 4px"><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></span></div><div>
                                    Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="col10">
                                    Hình thức thanh toán:
                                    <xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><xsl:value-of select="inv:paymentMethodName" /></xsl:for-each></div><div>
                                    Số tài khoản:  <xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /><xsl:if test="inv:invoiceData/inv:buyerBankName !=''''">
                                        tại: <xsl:value-of select="inv:invoiceData/inv:buyerBankName" /></xsl:if></div></div></div><table class="table table-bordered table-condensed"><tbody><tr class="thead"><th style="width:25px">
                                        STT<div class="nom"></div></th><th style="width:250px">
                                        Tên hàng hóa, dịch vụ <div class="nom"></div></th><th style="width:55px">
                                        Đơn vị tính<div class="nom"></div></th><th style="width:55px">
                                        Số lượng <div class="nom"></div></th><th style="width:80px">
                                        Đơn giá <div class="nom"></div></th><th style="width:110px">
                                        Thành tiền<div class="nom"></div></th></tr><tr class="thead"><td class="text-center boderBot">1</td><td class="text-center boderBot">2</td><td class="text-center boderBot">3</td><td class="text-center boderBot">4</td><td class="text-center boderBot">5</td><td class="text-center boderBot">6 = 4 x 5</td></tr><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><xsl:choose><xsl:when test="inv:lineNumber =''''"><td class="text-center">
                             
                                                </td></xsl:when><xsl:when test="inv:lineNumber !=''''"><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td></xsl:when></xsl:choose><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                                                            Điều chỉnh tăng: 
                                                        </xsl:when><xsl:otherwise>
                                                            Điều chỉnh giảm: 
                                                        </xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' ">
                                                     (không chịu thuế)
                                                </xsl:when><xsl:when test="inv:vatPercentage = ''-2'' ">
                                                    (không kê khai nộp thuế)
                                                </xsl:when></xsl:choose></td><td class="text-center"><xsl:value-of select="inv:unitName" /></td><td class="text-center"><xsl:if test="inv:quantity != ''''"><xsl:value-of select="format-number(inv:quantity,''##.##0,#####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:unitPrice != ''''"><xsl:value-of select="format-number(inv:unitPrice,''##.##0,#####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemTotalAmountWithoutVat != ''''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,#####'',''number'')" /></xsl:if></td></tr></xsl:for-each><xsl:variable name="tygia"><xsl:choose><xsl:when test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''">
                                            1
                                        </xsl:when><xsl:otherwise>
                                            0
                                        </xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="chietkhau"><xsl:choose><xsl:when test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0">
                                            0
                                        </xsl:when><xsl:otherwise>
                                            0
                                        </xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="lenght" select="51" /><xsl:variable name="kct" select="18" /><xsl:variable name="kkknt" select="25" /><xsl:variable name="tpkhac"><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><tpkhac><xsl:choose><xsl:when test="inv:vatPercentage =''-1''"><xsl:variable name="ktthua" select="(string-length(inv:itemName) + $kct) mod $lenght" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua + $kct) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:when><xsl:when test="inv:vatPercentage =''-2''"><xsl:variable name="ktthua" select="(string-length(inv:itemName) + $kkknt) mod $lenght" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua + $kkknt) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:when><xsl:otherwise><xsl:variable name="ktthua" select="(string-length(inv:itemName) mod $lenght)" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:otherwise></xsl:choose></tpkhac></xsl:for-each></xsl:variable><xsl:variable name="lenghtNote"><xsl:if test="inv:invoiceData/inv:invoiceNote !=''''"><Note><xsl:variable name="ktthua1" select="(string-length(inv:invoiceData/inv:invoiceNote) mod $lenght)" /><xsl:variable name="ktcan1" select="$lenght - $ktthua1" /><xsl:value-of select="((string-length(inv:invoiceData/inv:invoiceNote) - $ktthua1) div $lenght) + (($ktthua1 + $ktcan1) div $lenght)" /></Note></xsl:if></xsl:variable><xsl:variable name="dong" select="sum(exsl:node-set($tpkhac)/tpkhac)" /><xsl:variable name="dongNote" select="sum(exsl:node-set($lenghtNote)/Note)" /><xsl:variable name="du" select="20" /><xsl:if test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''"><tr><td></td><td>Tỷ giá: <xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##.##0,#####'',''number'')" /> VND/<xsl:value-of select="$nguyente" /></td><td></td><td></td><td></td><td class="text-right"></td></tr></xsl:if><xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><tr><td class="text-center"></td><td><xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></td><td></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"></td></tr></xsl:if><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$du - $dong - $dongNote - $tygia - $chietkhau" /></xsl:call-template><xsl:variable name="fullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($fullLoai, 1, 2)" /><xsl:if test="$loaiHoaDon=''01''"><tr><td colspan="6" class="boderTop "><div class="row"><div class="col11">
                             
                                                </div><div class="col5" style="text-left">
                                                   Chiết khấu: 
                                                </div><div class="col4 text-right"><xsl:if test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></xsl:if></div></div></td></tr></xsl:if><xsl:if test="$loaiHoaDon=''01''"><tr><td colspan="6" class="boderTop "><div class="row"><div class="col11">
                             
                                                </div><div class="col5" style="text-left"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                    Điều chỉnh tăng: 
                                                                </xsl:when><xsl:otherwise>
                                                                    Điều chỉnh giảm: 
                                                                </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                            Cộng tiền hàng:
                                                        </xsl:otherwise></xsl:choose></div><div class="col4 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,#####'',''number'')" /></xsl:if></div></div></td></tr></xsl:if><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''"><xsl:if test="$loaiHoaDon=''01''"><tr><td class=" boderTop" colspan="6"><div class="row"><div class="col11">
                                                            Thuế suất GTGT:    
                                   %
                                                        </div><div class="col5 text-left">
                                                            Tiền thuế GTGT:
                                                        </div><div class="col4 text-right">
                                 
                                                        </div></div></td></tr></xsl:if></xsl:when><xsl:otherwise><xsl:if test="$loaiHoaDon=''01''"><xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown"><tr><td class=" boderTop" colspan="6"><div class="row"><div class="col11">
                                                                Thuế suất GTGT:
                                                                <xsl:choose><xsl:when test="inv:vatPercentage = ''-1''">
                                                                        không chịu thuế
                                                                    </xsl:when><xsl:when test="inv:vatPercentage = ''-2''">
                                                                        không kê khai nộp thuế
                                                                    </xsl:when><xsl:otherwise><span class="percentage"><xsl:value-of select="inv:vatPercentage" /> %
                                                                        </span></xsl:otherwise></xsl:choose></div><div class="col5 text-left"><xsl:choose><xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''"><xsl:choose><xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                                                                Điều chỉnh giảm: 
                                                                            </xsl:when><xsl:otherwise>
                                                                                Điều chỉnh tăng: 
                                                                            </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                        Tiền thuế GTGT:
                                                                    </xsl:otherwise></xsl:choose></div><div class="col4 text-right"><xsl:choose><xsl:when test="inv:vatPercentage = ''-1''">
                                                                                                                                            </xsl:when><xsl:when test="inv:vatPercentage = ''0''">
                                                                        0
                                                                    </xsl:when><xsl:otherwise><xsl:if test="inv:vatTaxAmount != ''''"><xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,#####'',''number'')" /></xsl:if></xsl:otherwise></xsl:choose></div></div></td></tr></xsl:for-each></xsl:if></xsl:otherwise></xsl:choose><tr><td colspan="6" class="boderTop" style="border-left:"><div class="row"><div class="col11">
													 
													</div><xsl:choose><xsl:when test="$loaiHoaDon=''02''"><div class="col5 text-left"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                        Điều chỉnh tăng: 
                                                                    </xsl:when><xsl:otherwise>
                                                                        Điều chỉnh giảm: 
                                                                    </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                Cộng tiền hàng hóa, dịch vụ:
                                                            </xsl:otherwise></xsl:choose></div></xsl:when><xsl:otherwise><div class="col5 text-left"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                        Điều chỉnh tăng: 
                                                                    </xsl:when><xsl:otherwise>
                                                                        Điều chỉnh giảm: 
                                                                    </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                Tổng cộng tiền thanh toán: 
                                                            </xsl:otherwise></xsl:choose></div></xsl:otherwise></xsl:choose><div class="col4 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:if></div></div></td></tr><tr><td colspan="6" class="boderTop text-left boderBot"><div class="row" style="height:20px">
                                            Số tiền viết bằng chữ: <xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /><br /></div></td></tr></tbody></table><div class="footer"><div class="text-left textcd" style=""><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row" style="font-size:13px"><div class="col7" style=""><p class="text-center"><b>Người thực hiện chuyển đổi</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col6" style=""><p class="text-center"><b>Người mua hàng </b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col7" style=""><p class="text-center"><b>Người bán hàng<br /></b><i>(Ký, ghi rõ họ tên)</i></p></div></div></xsl:when><xsl:otherwise><div class="row"><div class="col10"><p class="text-center"><b>Người mua hàng</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col10"><p class="text-center"><b>Người bán hàng</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div></div></xsl:otherwise></xsl:choose></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><td style="vertical-align:bottom;"><div class="row text-center" style="font-size:13px;"><div class="col6"><xsl:value-of select="inv:viewData/inv:userPrint" /> 
                                                            <div class="">
                                                                Ngày chuyển đổi: <xsl:choose><xsl:when test="inv:viewData/inv:DateExchange != ''''"><xsl:variable name="dateconvert" select="inv:viewData/inv:DateExchange" /><xsl:value-of select="concat(substring($dateconvert, 9, 2),''/'', substring($dateconvert, 6, 2),''/'', substring($dateconvert, 1, 4))" /></xsl:when><xsl:otherwise>
                                                                            /    /20
                                                                    </xsl:otherwise></xsl:choose></div></div></div></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"><div class="row"><div class="col12">
                                                         
                                                        </div><div class="col8 text-left" style=""><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:6px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                            Signature Valid <br />
                                                                            Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" />
                                                                            ngày:         /         /   
                                                                        </div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                    Signature Valid <br />
                                                                                    Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="//./inv:invoiceData/inv:signedDate" /><xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></td></xsl:otherwise></xsl:choose></tr></table></div></div><div class="row text-center lineh17"><div class="row text-center"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''">
                                        Mã nhận hóa đơn:                     tra cứu tại:
                                    </xsl:when><xsl:otherwise>
                                        Mã nhận hóa đơn:
                                        <b><xsl:value-of select="inv:invoiceData/inv:delivery/inv:containerNumber" /></b> tra cứu tại: <a href="http://hddt.einvoice.vn/">http://hddt.einvoice.vn/</a></xsl:otherwise></xsl:choose></div><div class="text-center row" style=""><i>
                                    (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
                                </i></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></div></body></html></div></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many &gt; 0"><tr><td class="text-center">
                     
                </td><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 0, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'GTGT', CAST(0 AS Numeric(18, 0)), N'GTGT', N'GTGT', N'01', N'', NULL, N'', NULL, N'01GTGT_DEMO.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- EAAiVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA+SURBVHhe7cExAQAAAMKg9U9tCy8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgqAacpAAB5eVcggAAAABJRU5ErkJgggA= --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
  <xsl:template match="/">--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

        canvas{display:inline-block}
        html{font-size:100%}
        input{margin:0;vertical-align:middle}
        tr{page-break-inside:avoid}
        p{orphans:3;widows:3}
        body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}[class*=span]{float:left;min-height:1px;margin-left:20px}
        .container,.span12{width:940px}.span9{width:700px}.span8{width:600px}.span6{width:460px}.span4{width:300px}.span3_1{width:200px}.span3{width:200px}.row-fluid{width:100%}.row-fluid [class*=span]{display:block;float:left;width:100%;margin-left:10px;box-sizing:border-box}.row-fluid .span12{width:100%}.row-fluid .span9{width:74.4681%}.row-fluid .span8{width:53.191%}.row-fluid .span4{width:31.9149%}.row-fluid .span3{width:21.276%}

        .container{margin-right:auto;margin-left:auto}
        p{margin:0 0 10px}.text-left{text-align:left}
        .text-right{text-align:right}
        .text-center{text-align:center}fieldset{padding:0;margin:0;border:0 none}
        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{margin-top:3px; width:100%}.table td,
        .table th{padding:8px;text-align:left;vertical-align:top}.table td{border-bottom:1px solid #DDD}
        .table th{border-bottom:1px solid #000;font-weight:700}
        .table-condensed td,.table-condensed th{padding:4px 5px}
        .table-bordered{border-width:1px 1px 1px 0;border-style:solid solid solid none;border-color:#000;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px}
        .table-bordered td,.table-bordered th{border-left:1px solid #000}.table-bordered tbody:first-child tr:first-child&gt;td:first-child,.table-bordered tbody:first-child tr:first-child&gt;th:first-child{border-top-left-radius:0px}.table-bordered tbody:first-child tr:first-child&gt;td:last-child,.table-bordered tbody:first-child tr:first-child&gt;th:last-child{border-top-right-radius:0px}
        .table-bordered tbody:last-child tr:last-child&gt;td:first-child{border-bottom-left-radius:0px}.table-bordered tbody:last-child tr:last-child&gt;td:last-child{border-bottom-right-radius:0px}
        .container{
        width:700px;
        font-size:12px;
        line-height:16px;
        font-family:Times New Roman;
        position: relative
        }

        .invName{text-align:center;font-size:20px;font-weight:700;margin:0 0 3px;text-transform:uppercase}legend{border-bottom-color:#DDD;text-align:center;line-height:16px;font-size:14px;font-weight:700;margin-bottom:8px}.table td,.table th{line-height:16px}.table-bordered&gt;tbody&gt;tr.thead&gt;th{text-align:center}.table tr.thead th{vertical-align:middle}.table{margin-bottom:5px}.table td.text-right{text-align:right}.table td.text-center{text-align:center}.row-fluid [class*=span]:first-child{margin-left:0}.row-fluid .span6{width:48.9362%}.row-fluid [class*=span]{min-height:20px}.footer{font-style:italic;font-weight:700;margin-bottom:0;font-size:10px}.row-fluid:after{clear:both}.row-fluid:after,.row-fluid:before{content:"";display:table;line-height:0}.pull-right[class*=span],.row-fluid .pull-right[class*=span]{float:right}.percentage:after{content:" %"}tr:last-child td{border-bottom:none}@media print{.container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.no-print{display:none!important}}.divButton{margin-right:auto;margin-left:auto;width:700px;line-height:16px;padding:10px}.divButton .button{float:right}.divButton:after,.divButton:before{content:"";display:table;line-height:0}.divButton:after{clear:both}.button{border-top:1px solid #96d1f8;background:#65a9d7;background:-webkit-gradient(linear,left top,left bottom,from(#3e779d),to(#65a9d7));background:-webkit-linear-gradient(top,#3e779d,#65a9d7);background:-moz-linear-gradient(top,#3e779d,#65a9d7);background:-ms-linear-gradient(top,#3e779d,#65a9d7);background:-o-linear-gradient(top,#3e779d,#65a9d7);padding:5px 10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:rgba(0,0,0,1)0 1px 0;-moz-box-shadow:rgba(0,0,0,1)0 1px 0;box-shadow:rgba(0,0,0,1)0 1px 0;text-shadow:rgba(0,0,0,.4)0 1px 0;color:#fff;font-size:14px;font-family:Georgia,serif;text-decoration:none;vertical-align:middle}.button:hover{border-top-color:#28597a;background:#28597a;color:#ccc;cursor:pointer}.button:active{border-top-color:#1b435e;background:#1b435e}[class*=" icon-"],[class^=icon-]{background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;display:inline-block;height:16px;line-height:16px;margin-top:1px;vertical-align:text-top;width:14px}.icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.icon-print{background-position:-96px -48px}
        .invNamei{text-align:center;font-size:20px;font-style: italic;margin:0 0 3px;text-transform:uppercase; padding-top:2px}

        .abcdef{
        position:absolute;
        opacity:1;
        filter:alpha(opacity=100);
        top:50%;
        left:50%;
        width:450px;
        height:421px;
        margin-top:-225px;
        margin-left:-210px;
        z-index:-1;
        }
        .next-page { page-break-inside:always;  page-break-after:always}
        .bodertable
        {

        border: 1px solid #8F9AA3;
        border-collapse: collapse;
        padding-bottom: 2px;
        padding-left: 5px;
        padding-right: 2px;
        padding-top: 0px;
        }
        .giatri
        {
        font-size: 14px;
        font-family: Times New Roman;
        font-weight: bold;
        }
        .TieuDe
        {
        font-size: 14px;
        font-family: Times New Roman;
        }
        .Nhom
        {
        font-size: 14px;
        font-family: Times New Roman;
        font-weight: bold;
        }
        .Bang
        {
        width: 890px;
        }
        .Bang1
        {
        width: 800px;
        }
        .hrRed {
        color: red;
        width: 100%;
        border: 0;
        height: 2px;
        background: red;
        }
        .hrblack {
        color: black;
        width: 100%;
        border: 0;
        border-top: 3px double black;
        }
        .TitleHD {
        text-transform: uppercase;
        font-size: 20px;
        font-weight: bold;
        }
        .TitleHDSmall {
        text-transform: uppercase;
        font-size: 10px;
        font-weight: bold;
        }
        .headTable {
        width: 100%;
        border: 0px;
        }
        .headContent{
        font-weight: bold;
        }

        .nom{
        font-weight: normal !important;
        font-style: italic;
        }
        .boderTop{
        border-top: 1px solid #000 !important;
        }
        .boderBottom{
        border-bottom: 1px solid #000 !important;
        }
        .boderRaudi {
        border-radius: 10px;
        border: 1px solid #000 !important;

        }
        .phathanh{
        position:absolute;
        opacity:0.8;
        filter:alpha(opacity=100);
        top:340px;
        left:180px;
        width:300px;
        height:auto;
        z-index:1;
        background: none;
        }
			</style><body style="font-size:8px; font-family: Times New Roman;"><div class="container"><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div class="row-fluid"><table><tr><!--<td style="width:10%">
                  <img style="width:60px" src="data:image/gif;base64,R0lGODlhTABpAPYAAO9YH+1bH/FYH/BaH+9YIe1bIOxaIe9aIO1bIu9aIu5cIO5cIe1cI+5cI+9ZJO1aJO5bJe5fJ+5eKfFXI/BZIPJZIPFbIPFaIfBbIfNaIPNaIfBZIvJYIvNZI/BaIvFaI/BbI/BcIPFcIvNcI/BZJPJYJPNZJfBaJfFaJfBYJvBaJ/FiKvBjLvFkLvBnMfJoN/NvPvBwP/FyP/R3S/J4SfN+UvR9U/aFW/WEXPSIYfKPaPaPbveTb/WWdvWYdvmef/WegPilh/aqkPmylvi6pfm7pvnKuvrWxvzazv3i1//t6QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAEsAIf8LSW1hZ2VNYWdpY2sNZ2FtbWE9MC40NTQ1NAAsAAAAAEwAaQAAB/6AS4KDhIWGh4iJiouFHoyPkJGSgx6Vk5eYl5WWmZ2ehpubn6OdoaGkqJKmp6mtiaumrrKEsKuzs7W2t6m5sLukvbW/n8HCw5jFuceTyb3LkM3Bz4zR0tOI1cXXoNna25Td3tvhzePk5dPn0c/q1cft2cPw8bfz3bj296754a385Kj+nQMmEKCngupKIUx4CYmNhQwjKekBIgTEgZGGrABx4MJFg4yMwCDx4cOFBB/7LUqCowEFCi4TYEipLxGQCBQwUAAxAcWFCjTpHSriYkECDRs+BMCwAQPKoOsMHaFBwQEICgpSkBhwgIMKBFCjEtrRgQCIDg5MfECQIAAIEP4ATIRFR0jGhgYdA4igkOEDhhIcDmyYm8yQj44fEjhwoEEmiasMDuhaMpkTtsmNlBlyuiHDBQQgIBT4cOBAAhCVYwmyfFlUa1+GNjRNkBQEaQ0CKHA4kZoVZUeLXL/GPKhF4g0gNoSgcIEDCAxWewu33BucWEI5KHxwEIJDggSmQVwwKZ068N++f1unWygBihMHOJa82h2savTTz2M2f52QhgrJaTAaCAWcgEABHt2X2nqsmccNbIaogMEBHTCXgHYkaMDBYAp2yOB56q0G4oesETLDdxckhQEGCHSQmALl6Sdjeg4+eF8hP9Bm2oUVFMBBASM85duCItIo4yHGHP5yAHNvbXDUBgok8EB5tMwoXIj48XdjIQ+8tIEB2wX2XoJDXpmfkR+SOCIhL3xAwQYdlKbcCdpVV6WVDeJ555aE6GDCcraVJOgHxGWmZZ7BJankBfINWlKhDKZpnSKaIWLBBhys6CihfGZ5KIjp7QnpIBKAEFgCmxImziE1yFQBCqmq6kwiQVxVgQOxyqroIQl0IAKqjupaKSIfbCBYrsJ2SkgMjG7KabLKDsJDTs5CO+ogRCygHbLWrmnIm4EO2m2oh7CAwgHcWsvIDSQ0kC60jAiR2LvJPrITvcI+UgCswY5b4nD+RitqwOQCTLC3SB4s8MAHQ6NwwQk//O8rEk4jHLHCqjSsScAHdTsKvAHpuo+q+EAlD03LpJTOQt8g9I2aGL1cZDsy2whSzQz3hzPM1uxs8LA+/3xt0DlDTLTNRh8NsNIbT8w0NU8XEggAOwiVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA+SURBVHhe7cExAQAAAMKg9U9tCy8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgqAacpAAB5eVcggAAAABJRU5ErkJgggA=" />
                </td>--><td style="width:85%"><div class="TitleHD"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div>
                    Mã số thuế: <b><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></b></div><div>
                    Địa chỉ:  <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row-fluid">
                    Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" />      
                    Fax:  <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div><div></div></td><td style="width:15%" /></tr></table></div><hr class="hrblack" /><div class="row-fluid" style="margin-top: 10px"><div class="span3" /><div class="span6"><div class="invName"><xsl:value-of select="inv:invoiceData/inv:invoiceName" /></div><p class="text-center"><xsl:if test="inv:viewData/inv:printFlag = ''true''"><i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i></xsl:if><br /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" />
                Ngày <xsl:value-of select="substring($issuedDate, 9, 2)" />
                Tháng <xsl:value-of select="substring($issuedDate, 6, 2)" />
                Năm  <xsl:value-of select="substring($issuedDate, 1, 4)" /></p></div><div class="span3" style="padding-left:20px;padding-top:12px ">
              Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
              Ký hiệu:
							<b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
              Số:
							<b style="color:red"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                    0000000
									</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></b></div></div><xsl:variable name="customData" select="//inv:invoiceData/inv:userDefines" /><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><div class="row-fluid">
                Thay thế cho hóa đơn số: <b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;SoHoaDonGoc&gt;''), ''&lt;/SoHoaDonGoc&gt;'')" /></b>
				 ký hiệu:<b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;KyHieuGoc&gt;''), ''&lt;/KyHieuGoc&gt;'')" /></b>
				 ngày: <b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;NgayHoaDonGoc&gt;''), ''&lt;/NgayHoaDonGoc&gt;'')" /></b></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="row-fluid">
                Điều chỉnh cho hóa số: <b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;SoHoaDonGoc&gt;''), ''&lt;/SoHoaDonGoc&gt;'')" /></b>
				 ký hiệu:<b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;KyHieuGoc&gt;''), ''&lt;/KyHieuGoc&gt;'')" /></b>
				 ngày: <b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;NgayHoaDonGoc&gt;''), ''&lt;/NgayHoaDonGoc&gt;'')" /></b></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''">
              Xóa bỏ cho hóa đơn số: <b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;SoHoaDonGoc&gt;''), ''&lt;/SoHoaDonGoc&gt;'')" /></b>
				 ký hiệu:<b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;KyHieuGoc&gt;''), ''&lt;/KyHieuGoc&gt;'')" /></b>
				 ngày: <b><xsl:value-of select="substring-before(substring-after($customData, ''&lt;NgayHoaDonGoc&gt;''), ''&lt;/NgayHoaDonGoc&gt;'')" /></b></xsl:when></xsl:choose><div class="row-fluid boderRaudi"><div class="span12" style="padding:5px 10px; margin-top:5px;"><div>
                Họ tên người mua hàng <i>(buyer''s name)</i>:<xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></div><div>
                Tên đơn vị <i>(Company)</i>: <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></div><div>
                Mã số thuế <i>(Tax code)</i>: <xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div><div>
                Địa chỉ <i>(Address)</i>: <xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div class="row-fluid"><div class="span6">
                  Hình thức thanh toán <i>(payment method)</i>: <xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><xsl:value-of select="inv:paymentMethodName" /></xsl:for-each></div><div class="span6">
                  Số tài khoản <i>(Account Number)</i>:  <xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></div></div></div></div><xsl:variable name="tongVat" select="inv:invoiceData/inv:totalVATAmount" /><table class="table table-bordered table-condensed"><tbody><tr class="thead"><th style="width: 25px;">STT</th><th style="width: 245px;">Tên hàng hóa, dịch vụ</th><th style="width: 80px;">Đơn vị tính</th><th style="width: 85px;">Số lượng</th><th style="width: 85px;">Đơn giá</th><th style="width: 90px;">Thành tiền</th></tr><tr><td class="text-center boderBottom">1</td><td class="text-center boderBottom">2</td><td class="text-center boderBottom">3</td><td class="text-center boderBottom">4</td><td class="text-center boderBottom">5</td><td class="text-center boderBottom">6 = 4 x 5</td></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td><td><xsl:value-of select="inv:itemName" /></td><td class="text-left"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="inv:quantity != ''''"><xsl:value-of select="format-number(inv:quantity,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:unitPrice != ''''"><xsl:value-of select="format-number(inv:unitPrice,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemTotalAmountWithoutVat != ''''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,##'',''number'')" /></xsl:if></td></tr></xsl:for-each><xsl:if test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0"><tr><td class="text-center"><xsl:value-of select="count(inv:invoiceData/inv:items/inv:item) + 1" /></td><td>
                    Chiết khấu: <xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></xsl:if></td><td><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''true''">
                            Điều chỉnh tăng
													</xsl:when><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''false''">
                            Điều chỉnh giảm
													</xsl:when></xsl:choose></xsl:when></xsl:choose></td><td class="text-right" /><td class="text-right" /><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="10 - count(inv:invoiceData/inv:items/inv:item)" /></xsl:call-template><tr><td colspan="5" class="boderTop text-right"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''" /><xsl:otherwise /></xsl:choose></xsl:when><xsl:otherwise>
                      Cộng tiền hàng:
										</xsl:otherwise></xsl:choose></td><td class="boderTop text-right"><b><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,##'',''number'')" /></xsl:if></b></td></tr><xsl:variable name="fullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($fullLoai, 1, 2)" /><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''"><xsl:if test="$loaiHoaDon=''01''"><tr><td class=" boderTop" colspan="5"><div class="row-fluid"><div class="span12"><div class="row-fluid"><div class="span6"><b>Thuế suất GTGT</b>(VAT rate):    
                                   
																<span class="percentage" /></div><div class="span6 text-right"><b>Tiền thuế GTGT</b> (VAT Amount):

															</div></div></div></div></td><td class="text-right boderTop">
                         
											</td></tr></xsl:if></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="inv:invoiceData/inv:exchangeRate != '''' and inv:invoiceData/inv:exchangeRate != 0"><xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown"><tr><td class="text-right boderTop" colspan="5"><xsl:choose><xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''"><xsl:choose><xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                    Điều chỉnh giảm: 
																	</xsl:when><xsl:otherwise>
                                    Điều chỉnh tăng: 
																	</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                Tiền thuế GTGT:
															</xsl:otherwise></xsl:choose><xsl:choose><xsl:when test="inv:vatPercentage = ''-1''" /><xsl:when test="inv:vatPercentage = ''-2''" /><xsl:otherwise><span class="percentage"><b><xsl:value-of select="inv:vatPercentage" /></b></span></xsl:otherwise></xsl:choose>
                            :
													</td><td class="text-right boderTop"><b><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,##'',''number'')" /></b></xsl:if></b></td></tr></xsl:for-each></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown"><tr><td class=" boderTop" colspan="5"><div class="row-fluid"><div class="span12"><div class="row-fluid"><div class="span6">
                                    Thuế suất GTGT:
																		<xsl:choose><xsl:when test="inv:vatPercentage = ''-1''" /><xsl:when test="inv:vatPercentage = ''-2''" /><xsl:otherwise><span class="percentage"><b><xsl:value-of select="inv:vatPercentage" /></b></span></xsl:otherwise></xsl:choose></div><div class="span6 text-right"><xsl:choose><xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''"><xsl:choose><xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                            Điều chỉnh giảm: 
																					</xsl:when><xsl:otherwise>
                                            Điều chỉnh tăng: 
																					</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                        Tiền thuế GTGT:
																			</xsl:otherwise></xsl:choose></div></div></div></div></td><td class="text-right boderTop"><b><xsl:if test="$tongVat != ''''"><xsl:value-of select="format-number($tongVat,''##.##0,##'',''number'')" /></xsl:if></b></td><!--<td class="text-right boderTop">
                        <xsl:if test="inv:vatTaxAmount != ''''">
                          <xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,##'',''number'')" />
                        </xsl:if>
                      </td>--></tr></xsl:for-each></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose><tr><td colspan="5" class="boderTop text-right"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                          Điều chỉnh tăng: 
												</xsl:when><xsl:otherwise>
                          Điều chỉnh giảm: 
												</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                      Tổng tiền thanh toán:
										</xsl:otherwise></xsl:choose></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,##'',''number'')" /></b></xsl:if></td></tr><tr><td colspan="6" class="boderTop">
                  Số tiền viết bằng chữ:
									<b><xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /></b></td></tr><tr><td colspan="6" class="boderTop"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row-fluid"><div class="span4"><p class="text-center"><b>Người thực hiện chuyển đổi</b><br /><i>
                              Ký, ghi rõ họ tên<br /></i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người mua hàng</b><i><br />
                              Ký, ghi rõ họ tên<br /></i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người bán hàng</b><i><br />
                              Ký, đóng dấu, ghi rõ họ, tên
														</i></p><br /><br /></div></div><div class="row-fluid"><div class="span4"><p class="text-center"><xsl:value-of select="inv:viewData/inv:userPrint" /><br /></p><p class="text-center">
                            Ngày chuyển đổi:
														<i><xsl:choose><xsl:when test="inv:viewData/inv:userPrint != ''''"><xsl:value-of select="concat(substring(ex:date-time(), 9, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 6, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 1, 4))" /></xsl:when><xsl:otherwise>
                                      /    /20
																</xsl:otherwise></xsl:choose></i></p></div><div class="span4" /><div class="span4"><xsl:if test="inv:invoiceData/inv:signedDate != ''''"><p class="text-center">
                              Được ký bởi <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></p></xsl:if></div></div></xsl:when><xsl:otherwise><div class="row-fluid"><div class="span6"><p class="text-center"><b>Người mua hàng</b><i><br />
                              Ký, ghi rõ họ tên
														</i></p><br /><br /></div><div class="span6"><p class="text-center"><b>Người bán hàng</b><i><br />
                              Ký, đóng dấu, ghi rõ họ, tên<br /></i></p><br /><br /></div></div><div class="row-fluid"><div class="span6" /><div class="span6"><xsl:if test="inv:invoiceData/inv:signedDate != ''''"><p class="text-center">
                              Được ký bởi <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></p></xsl:if></div></div></xsl:otherwise></xsl:choose><div width="100%" align="center"><i>
                      (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
										</i></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></td></tr></tbody></table></div></body></html></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many &gt; 0"><tr><td class="text-center">
           
				</td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td class="text-left" /><td class="text-right" /><td class="text-right" /><td /><td class="text-right" /></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 1, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'HDBH', CAST(0 AS Numeric(18, 0)), N'HDBH', N'HDBH', N'02', N'', NULL, N'', NULL, N'HDBH_XML.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
  <xsl:template match="/">--><xsl:stylesheet version="1.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" cdata-section-elements="script" indent="no" omit-xml-declaration="yes" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"><html><head><!--<title>Untitled Document</title>--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

        canvas{display:inline-block}
        html{font-size:100%}
        input{margin:0;vertical-align:middle}
        tr{page-break-inside:avoid}
        p{orphans:3;widows:3}
        body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}[class*=span]{float:left;min-height:1px;margin-left:20px}
        .container,.span12{width:940px}.span9{width:700px}.span8{width:600px}.span6{width:460px}.span4{width:300px}.span3_1{width:200px}.span3{width:200px}.row-fluid{width:100%}.row-fluid [class*=span]{display:block;float:left;width:100%;margin-left:10px;box-sizing:border-box}.row-fluid .span12{width:100%}.row-fluid .span9{width:74.4681%}.row-fluid .span8{width:53.191%}.row-fluid .span4{width:31.9149%}.row-fluid .span3{width:21.276%}

        .container{margin-right:auto;margin-left:auto}
        p{margin:0 0 10px}.text-left{text-align:left}
        .text-right{text-align:right}
        .text-center{text-align:center}fieldset{padding:0;margin:0;border:0 none}
        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}.table{margin-top:3px; width:100%}.table td,
        .table th{padding:0px;text-align:left;vertical-align:top}.table td{border-top:1px solid #DDD}
        .table th{border-bottom:1px solid #000;font-weight:700}
        .table-condensed td,.table-condensed th{padding:3px 4px}
        .table-bordered{border-width:1px 1px 1px 0;border-style:solid solid solid none;border-color:#000;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px}
        .table-bordered td,.table-bordered th{border-left:1px solid #000}.table-bordered tbody:first-child tr:first-child&gt;td:first-child,.table-bordered tbody:first-child tr:first-child&gt;th:first-child{border-top-left-radius:0px}.table-bordered tbody:first-child tr:first-child&gt;td:last-child,.table-bordered tbody:first-child tr:first-child&gt;th:last-child{border-top-right-radius:0px}
        .table-bordered tbody:last-child tr:last-child&gt;td:first-child{border-bottom-left-radius:0px}.table-bordered tbody:last-child tr:last-child&gt;td:last-child{border-bottom-right-radius:0px}
        .table-bordered td:first-child{border-left: none}
            .table-bordered th:first-child{border-left: none}   
        .container{
    border: 1px solid #000 !important;
    font-family: Times New Roman;
    font-size: 14px;
    line-height: 16px;
    <!--padding: 0 5px;-->
    position: relative;
    width: 700px;
        
        }

        .invName{text-align:center;font-size:20px;font-weight:700;margin:0 0 3px;text-transform:uppercase}legend{border-bottom-color:#DDD;text-align:center;line-height:16px;font-size:14px;font-weight:700;margin-bottom:8px}.table td,.table th{line-height:16px}.table-bordered&gt;tbody&gt;tr.thead&gt;th{text-align:center}.table tr.thead th{vertical-align:middle}.table{margin-bottom:0px;border-right: none;border-bottom: none}.table td.text-right{text-align:right}.table td.text-center{text-align:center}.row-fluid [class*=span]:first-child{margin-left:0}.row-fluid .span6{width:48.9362%}.row-fluid [class*=span]{min-height:20px}.footer{font-style:italic;font-weight:700;margin-bottom:0;font-size:10px}.row-fluid:after{clear:both}.row-fluid:after,.row-fluid:before{content:"";display:table;line-height:0}.pull-right[class*=span],.row-fluid .pull-right[class*=span]{float:right}.percentage:after{content:" %"}tr:last-child td{border-bottom:none}@media print{.container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.no-print{display:none!important}}.divButton{margin-right:auto;margin-left:auto;width:700px;line-height:16px;padding:10px}.divButton .button{float:right}.divButton:after,.divButton:before{content:"";display:table;line-height:0}.divButton:after{clear:both}.button{border-top:1px solid #96d1f8;background:#65a9d7;background:-webkit-gradient(linear,left top,left bottom,from(#3e779d),to(#65a9d7));background:-webkit-linear-gradient(top,#3e779d,#65a9d7);background:-moz-linear-gradient(top,#3e779d,#65a9d7);background:-ms-linear-gradient(top,#3e779d,#65a9d7);background:-o-linear-gradient(top,#3e779d,#65a9d7);padding:5px 10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:rgba(0,0,0,1)0 1px 0;-moz-box-shadow:rgba(0,0,0,1)0 1px 0;box-shadow:rgba(0,0,0,1)0 1px 0;text-shadow:rgba(0,0,0,.4)0 1px 0;color:#fff;font-size:14px;font-family:Georgia,serif;text-decoration:none;vertical-align:middle}.button:hover{border-top-color:#28597a;background:#28597a;color:#ccc;cursor:pointer}.button:active{border-top-color:#1b435e;background:#1b435e}[class*=" icon-"],[class^=icon-]{background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;display:inline-block;height:16px;line-height:16px;margin-top:1px;vertical-align:text-top;width:14px}.icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.icon-print{background-position:-96px -48px}
        .invNamei{text-align:center;font-size:20px;font-style: italic;margin:0 0 3px;text-transform:uppercase; padding-top:2px}

        .abcdef{
        position:absolute;
        opacity:1;
        filter:alpha(opacity=100);
        top:50%;
        left:50%;
        width:450px;
        height:421px;
        margin-top:-225px;
        margin-left:-210px;
        z-index:-1;
        }
        .next-page { page-break-inside:always;  page-break-after:always}
        .bodertable
        {

        border: 1px solid #8F9AA3;
        border-collapse: collapse;
        padding-bottom: 2px;
        padding-left: 5px;
        padding-right: 2px;
        padding-top: 0px;
        }
        .giatri
        {
        font-size: 14px;
        font-family: Times New Roman;
        font-weight: bold;
        }
        .TieuDe
        {
        font-size: 14px;
        font-family: Times New Roman;
        }
        .Nhom
        {
        font-size: 14px;
        font-family: Times New Roman;
        font-weight: bold;
        }
        .Bang
        {
        width: 890px;
        }
        .Bang1
        {
        width: 800px;
        }
        .hrRed {
        color: red;
        width: 100%;
        border: 0;
        height: 2px;
        background: red;
        }
        .hrblack {
        color: black;
        width: 100%;
        border: 0;
        border-top: 3px double black;
        }
        .TitleHD {
        text-transform: uppercase;
        font-size: 20px;
        font-weight: bold;
        }
        .TitleHDSmall {
        text-transform: uppercase;
        font-size: 10px;
        font-weight: bold;
        }
        .headTable {
        width: 100%;
        border: 0px;
        }
        .headContent{
        font-weight: bold;
        }

        .nom{
        font-weight: normal !important;
        font-style: italic;
        }
        .boderTop{
        border-top: 1px solid #000 !important;
        }
        .boderBottom{
        border-bottom: 1px solid #000 !important;
        }
        .boderRaudi {
        border-radius: 0px;
        border: 1px solid #000 !important;

        }
        .phathanh{
        position:absolute;
        opacity:0.8;
        filter:alpha(opacity=100);
        top:340px;
        left:180px;
        width:300px;
        height:auto;
        z-index:1;
        background: none;
        }
      </style><body style="font-size:8px; font-family: Times New Roman;"><div class="container"><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><!--<hr class="hrblack"></hr>--><div class="row-fluid" style="margin-top: 10px"><div class="span3"></div><div class="span12"><div class="invName">
                  BẢNG KÊ CHI TIẾT
                <!--<xsl:value-of select="inv:invoiceData/inv:invoiceName" />--></div><div class="span12" style="padding-left:25%;padding-top:10px ">
			  Kèm theo hóa đơn số <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /> <xsl:value-of select="inv:invoiceData/inv:invoiceIssuedDate" /></div></div><!--<div class="span4"></div>--><div class="span12" style="padding-left:38%;padding-top:12px ">
              Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
              Ký hiệu:
              <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
              Số:
              <b style="color:red"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                    0000000
                  </xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></b><p class=""><!--                <xsl:if test="inv:viewData/inv:printFlag = ''true''">
                  <i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i>
                </xsl:if>--><!--                <br />--><xsl:value-of select="inv:invoiceData/inv:invoiceIssuedDate" /></p></div></div><div class="row-fluid" style="line-height:24px"><div class="span12" style="padding-left:6px"><div class="TitleHD"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div>
                    Mã số thuế: <b><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></b></div><div>
                    Địa chỉ:  <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row-fluid">
                    Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" />      
                    Fax:  <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div><div>
                    Số tài khoản: <xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></div><!--</div>--><!--<div class="span12">--><!--              <div>
                <b>Số hóa đơn xác thực: </b>
                <span class="border">
                  <xsl:value-of select="inv:certifiedData/inv:certifiedId" />
                </span>
              </div>
              <div>
                <b>Mã xác thực: </b>
                <span style="font-size: 11px;">
                  <xsl:value-of select="inv:certifiedData/inv:signature" />
                </span>
              </div>--></div></div><div class="row-fluid"></div><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><div class="row-fluid">
                Thay thế cho hóa đơn xác thực số: <b><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></b></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="row-fluid">
                Điều chỉnh cho hóa đơn xác thực số: <b><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></b></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''">
              Xóa bỏ cho hóa đơn xác thực số: <b><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></b></xsl:when></xsl:choose><div class="row-fluid boderRaudi" style="width:690px;margin-left:4px"><div class="span12" style="padding:5px;line-height:24px;"><div>
                Họ tên người mua hàng 
                  <!--<i>(buyer''s name)</i>-->
                  :<b><xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></b></div><div>
                Tên đơn vị 
                  <!--<i>(Company)</i>-->
                  :
                  <b><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></b></div><div>
                Mã số thuế
                  <!--<i>(Tax code)</i>-->
                  : <b><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></b></div><div>
                Địa chỉ 
                  <!--<i>(Address)</i>-->
                  : <b><xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></b></div><div class="row-fluid"><div class="span6">
                  Hình thức thanh toán 
                    <!--<i>(payment method)</i>-->
                    : <xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><xsl:value-of select="inv:paymentMethodName" /></xsl:for-each></div><div class="span6">
                  Số tài khoản 
                    <!--<i>(Account Number)</i>-->
                    :  <xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></div></div></div></div><xsl:variable name="tongVat" select="inv:invoiceData/inv:totalVATAmount" /><!--===============--><table class="table table-bordered table-condensed"><tbody><tr class="thead"><th rowspan="2" style="width: 25px;">STT</th><th rowspan="2" style="width: 310px;">Mã đặt xe</th><th rowspan="2" style="width: 140px;">Cước phí vận chuyển</th><th colspan="2" style="width: 280px;">Trong đó</th><!--<th style="width: 85px;">Đơn giá</th>--><!--<th style="width: 90px;">Thành tiền</th>--></tr><tr><th class="text-center" style="width: 140px; border-left:1px solid #000;text-align:center; ">Phần chia sẻ ứng dụng Grap App</th><th style="width: 140px;text-align:center;">Phần chia sẻ của đối tác vận chuyển ủy nhiệm</th><!--<th style="width: 85px;">Đơn giá</th>--><!--<th style="width: 90px;">Thành tiền</th>--></tr><tr><td class="text-center boderBottom">1</td><td class="text-center boderBottom">2</td><td class="text-center boderBottom">3</td><td class="text-center boderBottom">4</td><td class="text-center boderBottom">5</td><!--<td class="text-center boderBottom">5</td>--><!--<td class="text-center boderBottom">6 = 4 x 5</td>--></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td><td><xsl:value-of select="inv:itemName" /></td><td class="text-right"><xsl:if test="inv:itemFare !=''''"><xsl:value-of select="format-number(inv:itemFare,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemFare20 !=''''"><xsl:value-of select="format-number(inv:itemFare20,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemFare80 !=''''"><xsl:value-of select="format-number(inv:itemFare80,''##.##0,##'',''number'')" /></xsl:if></td><!--                  <td class="text-right">
                    <xsl:if test="inv:unitPrice != ''''">
                      <xsl:value-of select="format-number(inv:unitPrice,''##.##0,##'',''number'')" />
                    </xsl:if>
                  </td>--><!--                  <td class="text-right">
                    <xsl:if test="inv:itemTotalAmountWithoutVat != ''''">
                      <xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,##'',''number'')" />
                    </xsl:if>
                  </td>--></tr></xsl:for-each><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="4 - count(inv:invoiceData/inv:items/inv:item)" /></xsl:call-template><!--            </tbody>
          </table>--><!--===============--><!--          <table class="table table-bordered ">
              <tbody>--><!--</table>--><xsl:variable name="fullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($fullLoai, 1, 2)" /><tr><td colspan="2" class="boderTop text-center" style="font-weight:bold;"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                          Điều chỉnh tăng: 
                        </xsl:when><xsl:otherwise>
                          Điều chỉnh giảm: 
                        </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                      Cộng tiền hàng:
                    </xsl:otherwise></xsl:choose></td><td class="boderTop" style=""></td><td class="text-right boderTop"><xsl:if test="inv:invoiceData/inv:totalAmountWithoutVAT != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="text-right boderTop"><xsl:if test="inv:invoiceData/inv:totalAmounFare != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmounFare,''##.##0,##'',''number'')" /></b></xsl:if></td></tr><tr><td colspan="2" class="boderTop text-center" style="font-weight:bold;">
                    
                  Thuế suất GTGT: 10%
                </td><td class="boderTop text-right" style=" font-weight:bold;">
                    
                  Tiền thuế GTGT:
                </td><td class="text-right boderTop"><xsl:if test="inv:invoiceData/inv:VatTotal != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:VatTotal,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="text-right boderTop"></td></tr><tr><td colspan="2" class="boderTop text-center" style="font-weight:bold;">
                    
                  Tổng cộng:
                </td><td class="boderTop text-right" style=" font-weight:bold;"><xsl:if test="inv:invoiceData/inv:TongTien != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:TongTien,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmounFare != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmounFare,''##.##0,##'',''number'')" /></b></xsl:if></td></tr><tr><td colspan="5" class="boderTop">
                      Số tiền viết bằng chữ:
                  <b><xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /></b></td></tr><tr><td colspan="6" class="boderTop"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row-fluid"><div class="span4"><p class="text-center"><b>Người thực hiện chuyển đổi</b><br /><i>
                              Ký, ghi rõ họ tên<br /></i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người mua hàng</b><i><br />
                              Ký, ghi rõ họ tên<br /></i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người bán hàng</b><i><br />
                              Ký, đóng dấu, ghi rõ họ, tên
                            </i></p><br /><br /></div></div><div class="row-fluid"><div class="span4"><p class="text-center"><xsl:value-of select="inv:viewData/inv:userPrint" /><br /></p><p class="text-center">
                            Ngày chuyển đổi:
                            <i><xsl:choose><xsl:when test="inv:viewData/inv:userPrint != ''''"><xsl:value-of select="concat(substring(ex:date-time(), 9, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 6, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 1, 4))" /></xsl:when><xsl:otherwise>
                                      /    /20
                                </xsl:otherwise></xsl:choose></i></p></div><div class="span4"></div><div class="span4"><xsl:if test="inv:invoiceData/inv:signedDate != ''''"><p class="text-center">
                              Được ký bởi <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></p></xsl:if></div></div></xsl:when><xsl:otherwise><div class="row-fluid"><div class="span6"><p class="text-center"><b>Người mua hàng</b><i><br />
                              Ký, ghi rõ họ tên
                            </i></p><br /><br /></div><div class="span6"><p class="text-center"><b>Người bán hàng</b><i><br />
                              Ký, đóng dấu, ghi rõ họ, tên<br /></i></p><br /><br /></div></div><div class="row-fluid"><div class="span6"></div><div class="span6"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''"><a href="#" style="text-decoration:none;"><div class="text-center" style="padding-top:0px"><div id="kysoban" style="margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                        Signature Valid <br />
                                                                                        Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" />
                                                                                        Ngày:         tháng         năm    

															</div></div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div class="text-center" style="padding-top:0px"><div id="kysoban" style="margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                                Signature Valid <br />
                                                                                                Ký bởi: <xsl:value-of select="../inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="../inv:invoiceData/inv:signedDate" /><xsl:value-of select="concat(''Ngày: '', substring($signedDate, 9, 2), '' tháng '', substring($signedDate, 6, 2), '' năm '', substring($signedDate, 1, 4))" /></div></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></xsl:otherwise></xsl:choose><div width="100%" align="center"><i>
                      (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
                    </i></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></td></tr></tbody></table></div></body></html></xsl:when><xsl:otherwise><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

        canvas{display:inline-block}
        html{font-size:100%}
        input{margin:0;vertical-align:middle}
        tr{page-break-inside:avoid}
        p{orphans:3;widows:3}
        body{margin:0;font-family:"Arial",Times New Roman,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}[class*=span]{float:left;min-height:1px;margin-left:20px}
        .span12{width:940px}.span9{width:700px}.span8{width:600px}.span6{width:460px}.span4{width:300px}.span3_1{width:200px}.span3{width:200px}.row-fluid{width:100%}.row-fluid [class*=span]{display:block;float:left;width:100%;margin-left:2.12766%;box-sizing:border-box}.row-fluid .span12{width:100%}.row-fluid .span9{width:74.4681%}.row-fluid .span8{width:53.191%}.row-fluid .span4{width:31.9149%}.row-fluid .span3{width:21.276%}

        .container{margin-right:auto;margin-left:auto}
        p{margin:0 0 10px}.text-left{text-align:left}
        .text-right{text-align:right}
        .text-center{text-align:center}fieldset{padding:0;margin:0;border:0 none}
        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%}.table td,
        .table th{padding:8px;text-align:left;vertical-align:top}.table td{border-bottom:1px solid #DDD}
        .table th{border-bottom:1px solid #000;font-weight:700}
        .table-condensed td,.table-condensed th{padding:4px 5px}
        .table-bordered{border-width:1px 1px 1px 0;border-style:solid solid solid none;border-color:#000;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px}
        .table-bordered td,.table-bordered th{border-left:1px solid #000}.table-bordered tbody:first-child tr:first-child&gt;td:first-child,.table-bordered tbody:first-child tr:first-child&gt;th:first-child{border-top-left-radius:0px}.table-bordered tbody:first-child tr:first-child&gt;td:last-child,.table-bordered tbody:first-child tr:first-child&gt;th:last-child{border-top-right-radius:0px}
        .table-bordered tbody:last-child tr:last-child&gt;td:first-child{border-bottom-left-radius:0px}.table-bordered tbody:last-child tr:last-child&gt;td:last-child{border-bottom-right-radius:0px}
        .container{
        position: relative;
        width:710px;
        font-size:12px;
        line-height:18px;
        padding:10px 15px 10px 10px;
        border-radius:0px;
        -webkit-box-shadow:0 0 8px rgba(0,0,0,.3);
        -moz-box-shadow:0 0 8px rgba(0,0,0,.3);
        box-shadow:0 0 8px rgba(0,0,0,.3);
        }

        .invName{text-align:center;font-size:20px;font-weight:700;margin:0 0 3px;text-transform:uppercase}legend{border-bottom-color:#DDD;text-align:center;line-height:16px;font-size:14px;font-weight:700;margin-bottom:8px}.table td,.table th{line-height:16px}.table-bordered&gt;tbody&gt;tr.thead&gt;th{text-align:center}.table tr.thead th{vertical-align:middle}.table{margin-bottom:5px}.table td.text-right{text-align:right}.table td.text-center{text-align:center}.row-fluid [class*=span]:first-child{margin-left:0}.row-fluid .span6{width:48.9362%}.row-fluid [class*=span]{min-height:20px}.footer{font-style:italic;font-weight:700;margin-bottom:0;font-size:10px}.row-fluid:after{clear:both}.row-fluid:after,.row-fluid:before{content:"";display:table;line-height:0}.pull-right[class*=span],.row-fluid .pull-right[class*=span]{float:right}.percentage:after{content:" %"}tr:last-child td{border-bottom:none}@media print{.container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.no-print{display:none!important}}.divButton{margin-right:auto;margin-left:auto;width:700px;line-height:16px;padding:10px}.divButton .button{float:right}.divButton:after,.divButton:before{content:"";display:table;line-height:0}.divButton:after{clear:both}.button{border-top:1px solid #96d1f8;background:#65a9d7;background:-webkit-gradient(linear,left top,left bottom,from(#3e779d),to(#65a9d7));background:-webkit-linear-gradient(top,#3e779d,#65a9d7);background:-moz-linear-gradient(top,#3e779d,#65a9d7);background:-ms-linear-gradient(top,#3e779d,#65a9d7);background:-o-linear-gradient(top,#3e779d,#65a9d7);padding:5px 10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:rgba(0,0,0,1)0 1px 0;-moz-box-shadow:rgba(0,0,0,1)0 1px 0;box-shadow:rgba(0,0,0,1)0 1px 0;text-shadow:rgba(0,0,0,.4)0 1px 0;color:#fff;font-size:14px;font-family:Georgia,serif;text-decoration:none;vertical-align:middle}.button:hover{border-top-color:#28597a;background:#28597a;color:#ccc;cursor:pointer}.button:active{border-top-color:#1b435e;background:#1b435e}[class*=" icon-"],[class^=icon-]{background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;display:inline-block;height:16px;line-height:16px;margin-top:1px;vertical-align:text-top;width:14px}.icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.icon-print{background-position:-96px -48px}


        .abcdef{
        position:absolute;
        opacity:0.1;
        filter:alpha(opacity=100);

        width:450px;
        height:auto;
        left:150px;
        top:40px;
        }
        .next-page { page-break-inside:always;  page-break-after:always}
        .bodertable
        {



        border: 1px solid #8F9AA3;
        border-collapse: collapse;
        padding-bottom: 2px;
        padding-left: 5px;
        padding-right: 2px;
        padding-top: 0px;
        }

		.phathanh{
                        position:absolute;
                        opacity:0.8;
                        filter:alpha(opacity=100);
                        top:220px;
                        left:180px;
                        width:300px;
                        height:auto;
                        z-index:1;
                        background: none;
                        }

        .giatri
        {
        font-size: 14px;

        font-weight: bold;
        }
        .TieuDe
        {
        font-size: 14px;

        }
        .Nhom
        {
        font-size: 14px;

        font-weight: bold;
        }
        .Bang
        {
        width: 890px;
        }
        .Bang1
        {
        width: 800px;
        }
        .hrRed {
        color: red;
        width: 100%;
        border: 0;
        height: 2px;
        background: red;
        }
        .hrblack {
        color: black;
        width: 100%;
        border: 0;
        height: 2px;
        background: black;
        }
        .TitleHD {
        text-transform: uppercase;
        font-size: 12px;
        font-weight: bold;
        }
        .headTable {
        width: 100%;
        border: 0px;
        }
        .headContent{
        font-weight: bold;
        }
        .nom{
        font-weight: normal !important;
        }
        .boderTop{
        border-top: 1px solid #000 !important;
        }
        .textThaiSon{
        position: absolute;
        top:450px;
        display: block;
        right:-198px;
        font-style: italic;
        font-size: 11px;
        -ms-transform: rotate(270deg); /* IE 9 */
        -webkit-transform: rotate(270deg); /* Safari */
        transform: rotate(270deg); /* Standard syntax */

        }
        .textThaiSon2{
        position: absolute;
        top:250px;
        display: block;
        right:0px;
        font-style: italic;
        font-size: 11px;

        -ms-writing-mode:bt-lr;
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
        }
		.kysoban{margin: 0 auto; border: solid 1px red; padding: 3px; color: red; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}
		#kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}
					</style><script>
        function my() {
        var el = document.getElementById(''thaison'');
        if( document.all &amp;&amp; document.querySelector &amp;&amp; !document.addEventListener){
        el.className = ''textThaiSon2'';
        }else{
        el.className = ''textThaiSon'';
        }}

					</script><body style="font-size:8px;" onload="my()"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><div class="container"><div class="textThaiSon" id="thaison">
            (Xuất bởi phần mềm EInvoice,ThaiSon Co.,ltd - MST: 0101300842 - www.einvoice.vn)
							</div><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div class="row-fluid"><div class="span3 "></div><div class="span9"><div class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div>Địa chỉ <i>(Address)</i>: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div>
                  Tel: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" />   -   Fax: <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div><div>
                  Mã số thuế <i>(Tax code)</i>: <span style="font-weight: bold; letter-spacing: 4px;"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div></div></div><div class="row-fluid" style="margin-top: 10px"><div class="span3" style="width:17%"></div><div class="span6 text-center" style="width:50%; padding-left:30px;"><div class="invName"><xsl:value-of select="inv:invoiceData/inv:invoiceName" /><br></br><i>(SALE INVOICE)</i></div><div><xsl:if test="inv:viewData/inv:printFlag = ''true''"><i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i></xsl:if><div><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" />

                  Ngày<i> (Date)</i>:  <b><xsl:value-of select="substring($issuedDate, 9, 2)" /></b> tháng<i> (month)</i>: <b><xsl:value-of select="substring($issuedDate, 6, 2)" /></b> năm<i> (year)</i>: <b><xsl:value-of select="substring($issuedDate, 1, 4)" /></b></div></div></div><div class="span3 text-left" style="width:27%">
              Mẫu số <i>(Form No)</i>: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
              Ký hiệu <i>(Serial)</i>: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
              Số HĐ <i>(No)</i>: <b style="color:red"><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></b></div></div><div class="row-fluid"><div class="span12" style="padding-bottom:5px"><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><b>Thay thế cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><b>Điều chỉnh cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''"><b>Xóa bỏ cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></xsl:when></xsl:choose></div></div><div class="row-fluid"><div class="span12" style="line-height: 23px; padding-bottom:5px"><div>Họ tên người mua hàng <i>(Customer name)</i>: 
										<b><xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></b></div><div>
                      Tên đơn vị <i>(Company)</i>: 
										<b><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></b><br /></div><div>
                      Mã số thuế <i>(Tax code)</i>: <b style="letter-spacing: 4px;"><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></b></div><div>Địa chỉ <i>(Address)</i>: 
										<b><xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></b><br /></div><div>
                      Hình thức TT <i>(Payment term)</i>:
										<xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><xsl:value-of select="inv:paymentMethodName" /></xsl:for-each></div></div></div><div style="width:100%;position: relative !important"><table class="table table-bordered table-condensed"><tbody><tr class="thead"><th>
                    STT<div class="nom">(No)</div></th><th style="width: 250px;">
                    Tên hàng hóa, dịch vụ <div class="nom">(Description)</div></th><th>
                    ĐVT<div class="nom">(Unit)</div></th><th>
                    Số lượng <div class="nom">(Quantity)</div></th><th>
                    Đơn giá <div class="nom">(Unit price)</div></th><th>
                    Thành tiền<div class="nom">(Amount)</div></th></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><td class="text-center"><xsl:choose><xsl:when test="inv:lineNumber!=''''"><xsl:value-of select="inv:lineNumber" /></xsl:when><xsl:otherwise>
					  
														</xsl:otherwise></xsl:choose></td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                              Điều chỉnh tăng: 
																</xsl:when><xsl:otherwise>
                              Điều chỉnh giảm: 
																</xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' ">
                           (không chịu thuế)
														</xsl:when><xsl:when test="inv:vatPercentage = ''-2'' ">
                           (không kê khai nộp thuế)
														</xsl:when></xsl:choose></td><td class="text-left"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="inv:quantity != ''''"><xsl:value-of select="format-number(inv:quantity,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:unitPrice != ''''"><xsl:value-of select="format-number(inv:unitPrice,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemTotalAmountWithoutVat != ''''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,##'',''number'')" /></xsl:if></td></tr></xsl:for-each><xsl:if test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0"><tr><td class="text-center"><xsl:value-of select="count(inv:invoiceData/inv:items/inv:item) + 1" /></td><td nowrap="">Chiết khấu thương mại</td><td><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''true''">
                              Điều chỉnh tăng
																</xsl:when><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''false''">
                              Điều chỉnh giảm
																</xsl:when></xsl:choose></xsl:when></xsl:choose></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="10 - count(inv:invoiceData/inv:items/inv:item)" /></xsl:call-template><tr><td colspan="5" class="boderTop text-right"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                            Điều chỉnh tăng: 
															</xsl:when><xsl:otherwise>
                            Điều chỉnh giảm: 
															</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><b>Cộng tiền hàng</b> (Total):
													</xsl:otherwise></xsl:choose></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,##'',''number'')" /></xsl:if></td></tr><!--<xsl:choose>
                <xsl:when test="inv:invoiceData/inv:exchangeRate != '''' and inv:invoiceData/inv:exchangeRate != 0">
                  <xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown">
                    <tr>
                      <td class="text-right boderTop" colspan="5">
                        <xsl:choose>
                          <xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''">
                            <xsl:choose>
                              <xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                Điều chỉnh giảm: 
                              </xsl:when>
                              <xsl:otherwise>
                                Điều chỉnh tăng: 
                              </xsl:otherwise>
                            </xsl:choose> 
                          </xsl:when>
                          <xsl:otherwise>
                            <b>Tiền thuế GTGT</b> (Tax Amount): 
                          </xsl:otherwise>
                        </xsl:choose>
                        <xsl:choose>
                          <xsl:when test="inv:vatPercentage = ''-1''">
                            không chịu thuế
                          </xsl:when>
                          <xsl:when test="inv:vatPercentage = ''-2''">
                            không kê khai nộp thuế
                          </xsl:when>
                          <xsl:otherwise>
                            <span class="percentage">
                              <xsl:value-of select="inv:vatPercentage" />
                            </span>
                          </xsl:otherwise>
                        </xsl:choose>
                        :
                      </td>
                      <td class="text-right borderTop">
                        <xsl:if test="inv:vatTaxAmount != ''''">
                          <xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,##'',''number'')" />
                        </xsl:if>
                      </td>
                    </tr>
                  </xsl:for-each>
                </xsl:when>
                <xsl:otherwise>
                  <xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown">
                    <tr>
                      <td class=" boderTop" colspan="5">
                        <div class="row-fluid">
                          <div class="span12">
                            <div class="row-fluid">
                              <div class="span6">
                                <b>Thuế suất GTGT</b>(VAT rate):
                                <xsl:choose>
                                  <xsl:when test="inv:vatPercentage = ''-1''">
                                    không chịu thuế
                                  </xsl:when>
                                  <xsl:when test="inv:vatPercentage = ''-2''">
                                    không kê khai nộp thuế
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <span class="percentage">
                                      <xsl:value-of select="inv:vatPercentage" />
                                    </span>
                                  </xsl:otherwise>
                                </xsl:choose>
                              </div>
                              <div class="span6 text-right">
                                <xsl:choose>
                                  <xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''">
                                    <xsl:choose>
                                      <xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                        Điều chỉnh giảm: 
                                      </xsl:when>
                                      <xsl:otherwise>
                                        Điều chỉnh tăng: 
                                      </xsl:otherwise>
                                    </xsl:choose>
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <b>Tiền thuế GTGT</b> (VAT Amount):
                                  </xsl:otherwise>
                                </xsl:choose>
                              </div>
                            </div>
                          </div>
                          
                        </div>
                      </td>
                      <td class="text-right boderTop">
                        <xsl:if test="inv:vatTaxAmount != ''''">
                          <xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,##'',''number'')" />
                        </xsl:if>
                      </td>
                    </tr>
                  </xsl:for-each>
                </xsl:otherwise>
              </xsl:choose>--><!--<tr>
                  <td colspan="5"  class="boderTop text-right">
                    <xsl:choose>
                      <xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''">
                        <xsl:choose>
                          <xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                            Điều chỉnh tăng: 
                          </xsl:when>
                          <xsl:otherwise>
                            Điều chỉnh giảm: 
                          </xsl:otherwise>
                        </xsl:choose>
                      </xsl:when>
                      <xsl:otherwise>
                        <b>Tổng cộng tiền hàng</b> (Grand total):
                      </xsl:otherwise>
                    </xsl:choose>
                  </td>
                  <td  class="boderTop text-right">
                    <xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''">
                      <b>
                        <xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,##'',''number'')" />
                      </b>
                    </xsl:if>
                  </td>
                </tr>--></tbody></table></div><div class="row-fluid"><div class="span12">
					  Số tiền viết bằng chữ:<b><i><xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /></i></b><br />(Amount in words)

									<xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><br /><b>Ghi chú hóa đơn</b>(Invoice note): 
										<xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></xsl:if></div></div><br /><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row-fluid"><div class="span4"><p class="text-center"><b>Người thực hiện chuyển đổi</b> (Converters)
												<br /><b>Ký, ghi rõ họ tên</b><i>(Signature &amp; full name)</i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người mua hàng</b> (Buyer)
												<br /><b>Ký, ghi rõ họ tên</b><i>(Signature &amp; full name)</i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người bán hàng</b> (Seller)
												<br /><b>Ký, đóng dấu, ghi rõ họ, tên</b><i>(Signature, stamp &amp; full name)</i></p><br /><br /></div></div><div class="row-fluid"><div class="span4"><p class="text-center"><xsl:value-of select="inv:viewData/inv:userPrint" /><br /></p><p class="text-center">
								  Ngày chuyển đổi:
												<i><xsl:choose><xsl:when test="inv:viewData/inv:userPrint != ''''"><xsl:value-of select="concat(substring(ex:date-time(), 9, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 6, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 1, 4))" /></xsl:when><xsl:otherwise>
											      /    /20
														</xsl:otherwise></xsl:choose></i></p></div><div class="span4"></div><div class="span4"><xsl:if test="inv:invoiceData/inv:signedDate != ''''"><p class="text-center">
									  Được ký bởi <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><!-- <br/>
										<p class="text-center">
						                    Ngày ký: 
											<i>
												<xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate"/>
												<xsl:value-of select="concat(''Ngày '', substring($signedDate, 9, 2), '' tháng '', substring($signedDate, 6, 2), '' năm '', substring($signedDate, 1, 4))"/>
											</i>
										</p> --></p></xsl:if></div></div></xsl:when><xsl:otherwise><div class="row-fluid"><div class="span6"><p class="text-center"><b>Người mua hàng</b> (Buyer)
												<br /><b>Ký, ghi rõ họ tên</b><i>(Signature &amp; full name)</i></p><br /><br /></div><div class="span6"><p class="text-center"><b>Người bán hàng</b> (Seller)
												<br /><b>Ký, đóng dấu, ghi rõ họ, tên</b><i>(Signature, stamp &amp; full name)</i></p><br /><br /></div></div><div class="row-fluid"><div class="span6"></div><div class="span6"><p class="text-center" style="color:red"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) =''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style="color:red"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" /><span style="color:red">  Signature Valid  </span><br /><span style="color:red">   Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></span><br /><span style="color:red">Ký  
                                                                                                  ngày:         /         /   </span></div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style="color:red"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" /><span style="color:red">    Signature Valid </span><br /><span style="color:red">    Ký bởi: <xsl:value-of select="$ttdv" /></span><br /><span style="color:red"> Ký  
																			<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></span></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></p></div></div></xsl:otherwise></xsl:choose><!--<div class="row-fuild" style="font-size: 11px;text-align: center;">
              Mã nhận hóa đơn: <b  style="font-size: 13px;">
                <xsl:value-of select="inv:invoiceData/inv:delivery/inv:containerNumber" />
              </b>&#160;&#160;&#160; Tra cứu tại website:<b> http://vat.ggg.com.vn/</b>
            </div>--><table width="100%" align="center"><tr><td height="10"> </td><td height="10"> </td><td height="10"> </td></tr><tr><td colspan="3" class="text-center" style="font-size:9px"><i>
							  (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
										</i></td></tr></table><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></div></body></html></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many &gt; 0"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"><tr><td class="text-center">
           
						</td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td class="text-left"></td><td class="text-right"></td><td class="text-right"></td><td></td><!--        <td>
        </td>
        <td class="text-right">
        </td>--></tr></xsl:when><xsl:otherwise><tr><td class="text-center">
                     
						</td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr></xsl:otherwise></xsl:choose><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 1, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'HDBH01', CAST(0 AS Numeric(18, 0)), N'HDBH', N'01', N'04', N'', NULL, NULL, NULL, N'HDBH_XML.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
  <xsl:template match="/">--><xsl:stylesheet version="1.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" cdata-section-elements="script" indent="no" omit-xml-declaration="yes" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"><html><head><!--<title>Untitled Document</title>--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

        canvas{display:inline-block}
        html{font-size:100%}
        input{margin:0;vertical-align:middle}
        tr{page-break-inside:avoid}
        p{orphans:3;widows:3}
        body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}[class*=span]{float:left;min-height:1px;margin-left:20px}
        .container,.span12{width:940px}.span9{width:700px}.span8{width:600px}.span6{width:460px}.span4{width:300px}.span3_1{width:200px}.span3{width:200px}.row-fluid{width:100%}.row-fluid [class*=span]{display:block;float:left;width:100%;margin-left:10px;box-sizing:border-box}.row-fluid .span12{width:100%}.row-fluid .span9{width:74.4681%}.row-fluid .span8{width:53.191%}.row-fluid .span4{width:31.9149%}.row-fluid .span3{width:21.276%}

        .container{margin-right:auto;margin-left:auto}
        p{margin:0 0 10px}.text-left{text-align:left}
        .text-right{text-align:right}
        .text-center{text-align:center}fieldset{padding:0;margin:0;border:0 none}
        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}.table{margin-top:3px; width:100%}.table td,
        .table th{padding:0px;text-align:left;vertical-align:top}.table td{border-top:1px solid #DDD}
        .table th{border-bottom:1px solid #000;font-weight:700}
        .table-condensed td,.table-condensed th{padding:3px 4px}
        .table-bordered{border-width:1px 1px 1px 0;border-style:solid solid solid none;border-color:#000;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px}
        .table-bordered td,.table-bordered th{border-left:1px solid #000}.table-bordered tbody:first-child tr:first-child&gt;td:first-child,.table-bordered tbody:first-child tr:first-child&gt;th:first-child{border-top-left-radius:0px}.table-bordered tbody:first-child tr:first-child&gt;td:last-child,.table-bordered tbody:first-child tr:first-child&gt;th:last-child{border-top-right-radius:0px}
        .table-bordered tbody:last-child tr:last-child&gt;td:first-child{border-bottom-left-radius:0px}.table-bordered tbody:last-child tr:last-child&gt;td:last-child{border-bottom-right-radius:0px}
        .table-bordered td:first-child{border-left: none}
            .table-bordered th:first-child{border-left: none}   
        .container{
    border: 1px solid #000 !important;
    font-family: Times New Roman;
    font-size: 14px;
    line-height: 16px;
    <!--padding: 0 5px;-->
    position: relative;
    width: 700px;
        
        }

        .invName{text-align:center;font-size:20px;font-weight:700;margin:0 0 3px;text-transform:uppercase}legend{border-bottom-color:#DDD;text-align:center;line-height:16px;font-size:14px;font-weight:700;margin-bottom:8px}.table td,.table th{line-height:16px}.table-bordered&gt;tbody&gt;tr.thead&gt;th{text-align:center}.table tr.thead th{vertical-align:middle}.table{margin-bottom:0px;border-right: none;border-bottom: none}.table td.text-right{text-align:right}.table td.text-center{text-align:center}.row-fluid [class*=span]:first-child{margin-left:0}.row-fluid .span6{width:48.9362%}.row-fluid [class*=span]{min-height:20px}.footer{font-style:italic;font-weight:700;margin-bottom:0;font-size:10px}.row-fluid:after{clear:both}.row-fluid:after,.row-fluid:before{content:"";display:table;line-height:0}.pull-right[class*=span],.row-fluid .pull-right[class*=span]{float:right}.percentage:after{content:" %"}tr:last-child td{border-bottom:none}@media print{.container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.no-print{display:none!important}}.divButton{margin-right:auto;margin-left:auto;width:700px;line-height:16px;padding:10px}.divButton .button{float:right}.divButton:after,.divButton:before{content:"";display:table;line-height:0}.divButton:after{clear:both}.button{border-top:1px solid #96d1f8;background:#65a9d7;background:-webkit-gradient(linear,left top,left bottom,from(#3e779d),to(#65a9d7));background:-webkit-linear-gradient(top,#3e779d,#65a9d7);background:-moz-linear-gradient(top,#3e779d,#65a9d7);background:-ms-linear-gradient(top,#3e779d,#65a9d7);background:-o-linear-gradient(top,#3e779d,#65a9d7);padding:5px 10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:rgba(0,0,0,1)0 1px 0;-moz-box-shadow:rgba(0,0,0,1)0 1px 0;box-shadow:rgba(0,0,0,1)0 1px 0;text-shadow:rgba(0,0,0,.4)0 1px 0;color:#fff;font-size:14px;font-family:Georgia,serif;text-decoration:none;vertical-align:middle}.button:hover{border-top-color:#28597a;background:#28597a;color:#ccc;cursor:pointer}.button:active{border-top-color:#1b435e;background:#1b435e}[class*=" icon-"],[class^=icon-]{background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;display:inline-block;height:16px;line-height:16px;margin-top:1px;vertical-align:text-top;width:14px}.icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.icon-print{background-position:-96px -48px}
        .invNamei{text-align:center;font-size:20px;font-style: italic;margin:0 0 3px;text-transform:uppercase; padding-top:2px}

        .abcdef{
        position:absolute;
        opacity:1;
        filter:alpha(opacity=100);
        top:50%;
        left:50%;
        width:450px;
        height:421px;
        margin-top:-225px;
        margin-left:-210px;
        z-index:-1;
        }
        .next-page { page-break-inside:always;  page-break-after:always}
        .bodertable
        {

        border: 1px solid #8F9AA3;
        border-collapse: collapse;
        padding-bottom: 2px;
        padding-left: 5px;
        padding-right: 2px;
        padding-top: 0px;
        }
        .giatri
        {
        font-size: 14px;
        font-family: Times New Roman;
        font-weight: bold;
        }
        .TieuDe
        {
        font-size: 14px;
        font-family: Times New Roman;
        }
        .Nhom
        {
        font-size: 14px;
        font-family: Times New Roman;
        font-weight: bold;
        }
        .Bang
        {
        width: 890px;
        }
        .Bang1
        {
        width: 800px;
        }
        .hrRed {
        color: red;
        width: 100%;
        border: 0;
        height: 2px;
        background: red;
        }
        .hrblack {
        color: black;
        width: 100%;
        border: 0;
        border-top: 3px double black;
        }
        .TitleHD {
        text-transform: uppercase;
        font-size: 20px;
        font-weight: bold;
        }
        .TitleHDSmall {
        text-transform: uppercase;
        font-size: 10px;
        font-weight: bold;
        }
        .headTable {
        width: 100%;
        border: 0px;
        }
        .headContent{
        font-weight: bold;
        }

        .nom{
        font-weight: normal !important;
        font-style: italic;
        }
        .boderTop{
        border-top: 1px solid #000 !important;
        }
        .boderBottom{
        border-bottom: 1px solid #000 !important;
        }
        .boderRaudi {
        border-radius: 0px;
        border: 1px solid #000 !important;

        }
        .phathanh{
        position:absolute;
        opacity:0.8;
        filter:alpha(opacity=100);
        top:340px;
        left:180px;
        width:300px;
        height:auto;
        z-index:1;
        background: none;
        }
      </style><body style="font-size:8px; font-family: Times New Roman;"><div class="container"><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><!--<hr class="hrblack"></hr>--><div class="row-fluid" style="margin-top: 10px"><div class="span3"></div><div class="span12"><div class="invName">
                  BẢNG KÊ CHI TIẾT
                <!--<xsl:value-of select="inv:invoiceData/inv:invoiceName" />--></div><div class="span12" style="padding-left:25%;padding-top:10px ">
			  Kèm theo hóa đơn số <xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /> <xsl:value-of select="inv:invoiceData/inv:invoiceIssuedDate" /></div></div><!--<div class="span4"></div>--><div class="span12" style="padding-left:38%;padding-top:12px ">
              Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
              Ký hiệu:
              <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
              Số:
              <b style="color:red"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                    0000000
                  </xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></b><p class=""><!--                <xsl:if test="inv:viewData/inv:printFlag = ''true''">
                  <i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i>
                </xsl:if>--><!--                <br />--><xsl:value-of select="inv:invoiceData/inv:invoiceIssuedDate" /></p></div></div><div class="row-fluid" style="line-height:24px"><div class="span12" style="padding-left:6px"><div class="TitleHD"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div>
                    Mã số thuế: <b><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></b></div><div>
                    Địa chỉ:  <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row-fluid">
                    Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" />      
                    Fax:  <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div><div>
                    Số tài khoản: <xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></div><!--</div>--><!--<div class="span12">--><!--              <div>
                <b>Số hóa đơn xác thực: </b>
                <span class="border">
                  <xsl:value-of select="inv:certifiedData/inv:certifiedId" />
                </span>
              </div>
              <div>
                <b>Mã xác thực: </b>
                <span style="font-size: 11px;">
                  <xsl:value-of select="inv:certifiedData/inv:signature" />
                </span>
              </div>--></div></div><div class="row-fluid"></div><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><div class="row-fluid">
                Thay thế cho hóa đơn xác thực số: <b><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></b></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="row-fluid">
                Điều chỉnh cho hóa đơn xác thực số: <b><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></b></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''">
              Xóa bỏ cho hóa đơn xác thực số: <b><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></b></xsl:when></xsl:choose><div class="row-fluid boderRaudi" style="width:690px;margin-left:4px"><div class="span12" style="padding:5px;line-height:24px;"><div>
                Họ tên người mua hàng 
                  <!--<i>(buyer''s name)</i>-->
                  :<b><xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></b></div><div>
                Tên đơn vị 
                  <!--<i>(Company)</i>-->
                  :
                  <b><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></b></div><div>
                Mã số thuế
                  <!--<i>(Tax code)</i>-->
                  : <b><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></b></div><div>
                Địa chỉ 
                  <!--<i>(Address)</i>-->
                  : <b><xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></b></div><div class="row-fluid"><div class="span6">
                  Hình thức thanh toán 
                    <!--<i>(payment method)</i>-->
                    : <xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><xsl:value-of select="inv:paymentMethodName" /></xsl:for-each></div><div class="span6">
                  Số tài khoản 
                    <!--<i>(Account Number)</i>-->
                    :  <xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></div></div></div></div><xsl:variable name="tongVat" select="inv:invoiceData/inv:totalVATAmount" /><!--===============--><table class="table table-bordered table-condensed"><tbody><tr class="thead"><th rowspan="2" style="width: 25px;">STT</th><th rowspan="2" style="width: 310px;">Mã đặt xe</th><th rowspan="2" style="width: 140px;">Cước phí vận chuyển</th><th colspan="2" style="width: 280px;">Trong đó</th><!--<th style="width: 85px;">Đơn giá</th>--><!--<th style="width: 90px;">Thành tiền</th>--></tr><tr><th class="text-center" style="width: 140px; border-left:1px solid #000;text-align:center; ">Phần chia sẻ ứng dụng Grap App</th><th style="width: 140px;text-align:center;">Phần chia sẻ của đối tác vận chuyển ủy nhiệm</th><!--<th style="width: 85px;">Đơn giá</th>--><!--<th style="width: 90px;">Thành tiền</th>--></tr><tr><td class="text-center boderBottom">1</td><td class="text-center boderBottom">2</td><td class="text-center boderBottom">3</td><td class="text-center boderBottom">4</td><td class="text-center boderBottom">5</td><!--<td class="text-center boderBottom">5</td>--><!--<td class="text-center boderBottom">6 = 4 x 5</td>--></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td><td><xsl:value-of select="inv:itemName" /></td><td class="text-right"><xsl:if test="inv:itemFare !=''''"><xsl:value-of select="format-number(inv:itemFare,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemFare20 !=''''"><xsl:value-of select="format-number(inv:itemFare20,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemFare80 !=''''"><xsl:value-of select="format-number(inv:itemFare80,''##.##0,##'',''number'')" /></xsl:if></td><!--                  <td class="text-right">
                    <xsl:if test="inv:unitPrice != ''''">
                      <xsl:value-of select="format-number(inv:unitPrice,''##.##0,##'',''number'')" />
                    </xsl:if>
                  </td>--><!--                  <td class="text-right">
                    <xsl:if test="inv:itemTotalAmountWithoutVat != ''''">
                      <xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,##'',''number'')" />
                    </xsl:if>
                  </td>--></tr></xsl:for-each><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="4 - count(inv:invoiceData/inv:items/inv:item)" /></xsl:call-template><!--            </tbody>
          </table>--><!--===============--><!--          <table class="table table-bordered ">
              <tbody>--><!--</table>--><xsl:variable name="fullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($fullLoai, 1, 2)" /><tr><td colspan="2" class="boderTop text-center" style="font-weight:bold;"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                          Điều chỉnh tăng: 
                        </xsl:when><xsl:otherwise>
                          Điều chỉnh giảm: 
                        </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                      Cộng tiền hàng:
                    </xsl:otherwise></xsl:choose></td><td class="boderTop" style=""></td><td class="text-right boderTop"><xsl:if test="inv:invoiceData/inv:totalAmountWithoutVAT != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="text-right boderTop"><xsl:if test="inv:invoiceData/inv:totalAmounFare != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmounFare,''##.##0,##'',''number'')" /></b></xsl:if></td></tr><tr><td colspan="2" class="boderTop text-center" style="font-weight:bold;">
                    
                  Thuế suất GTGT: 10%
                </td><td class="boderTop text-right" style=" font-weight:bold;">
                    
                  Tiền thuế GTGT:
                </td><td class="text-right boderTop"><xsl:if test="inv:invoiceData/inv:VatTotal != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:VatTotal,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="text-right boderTop"></td></tr><tr><td colspan="2" class="boderTop text-center" style="font-weight:bold;">
                    
                  Tổng cộng:
                </td><td class="boderTop text-right" style=" font-weight:bold;"><xsl:if test="inv:invoiceData/inv:TongTien != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:TongTien,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,##'',''number'')" /></b></xsl:if></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmounFare != ''''"><b><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmounFare,''##.##0,##'',''number'')" /></b></xsl:if></td></tr><tr><td colspan="5" class="boderTop">
                      Số tiền viết bằng chữ:
                  <b><xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /></b></td></tr><tr><td colspan="6" class="boderTop"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row-fluid"><div class="span4"><p class="text-center"><b>Người thực hiện chuyển đổi</b><br /><i>
                              Ký, ghi rõ họ tên<br /></i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người mua hàng</b><i><br />
                              Ký, ghi rõ họ tên<br /></i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người bán hàng</b><i><br />
                              Ký, đóng dấu, ghi rõ họ, tên
                            </i></p><br /><br /></div></div><div class="row-fluid"><div class="span4"><p class="text-center"><xsl:value-of select="inv:viewData/inv:userPrint" /><br /></p><p class="text-center">
                            Ngày chuyển đổi:
                            <i><xsl:choose><xsl:when test="inv:viewData/inv:userPrint != ''''"><xsl:value-of select="concat(substring(ex:date-time(), 9, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 6, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 1, 4))" /></xsl:when><xsl:otherwise>
                                      /    /20
                                </xsl:otherwise></xsl:choose></i></p></div><div class="span4"></div><div class="span4"><xsl:if test="inv:invoiceData/inv:signedDate != ''''"><p class="text-center">
                              Được ký bởi <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></p></xsl:if></div></div></xsl:when><xsl:otherwise><div class="row-fluid"><div class="span6"><p class="text-center"><b>Người mua hàng</b><i><br />
                              Ký, ghi rõ họ tên
                            </i></p><br /><br /></div><div class="span6"><p class="text-center"><b>Người bán hàng</b><i><br />
                              Ký, đóng dấu, ghi rõ họ, tên<br /></i></p><br /><br /></div></div><div class="row-fluid"><div class="span6"></div><div class="span6"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''"><a href="#" style="text-decoration:none;"><div class="text-center" style="padding-top:0px"><div id="kysoban" style="margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                        Signature Valid <br />
                                                                                        Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" />
                                                                                        Ngày:         tháng         năm    

															</div></div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div class="text-center" style="padding-top:0px"><div id="kysoban" style="margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                                Signature Valid <br />
                                                                                                Ký bởi: <xsl:value-of select="../inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="../inv:invoiceData/inv:signedDate" /><xsl:value-of select="concat(''Ngày: '', substring($signedDate, 9, 2), '' tháng '', substring($signedDate, 6, 2), '' năm '', substring($signedDate, 1, 4))" /></div></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></xsl:otherwise></xsl:choose><div width="100%" align="center"><i>
                      (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
                    </i></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></td></tr></tbody></table></div></body></html></xsl:when><xsl:otherwise><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

        canvas{display:inline-block}
        html{font-size:100%}
        input{margin:0;vertical-align:middle}
        tr{page-break-inside:avoid}
        p{orphans:3;widows:3}
        body{margin:0;font-family:"Arial",Times New Roman,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}[class*=span]{float:left;min-height:1px;margin-left:20px}
        .span12{width:940px}.span9{width:700px}.span8{width:600px}.span6{width:460px}.span4{width:300px}.span3_1{width:200px}.span3{width:200px}.row-fluid{width:100%}.row-fluid [class*=span]{display:block;float:left;width:100%;margin-left:2.12766%;box-sizing:border-box}.row-fluid .span12{width:100%}.row-fluid .span9{width:74.4681%}.row-fluid .span8{width:53.191%}.row-fluid .span4{width:31.9149%}.row-fluid .span3{width:21.276%}

        .container{margin-right:auto;margin-left:auto}
        p{margin:0 0 10px}.text-left{text-align:left}
        .text-right{text-align:right}
        .text-center{text-align:center}fieldset{padding:0;margin:0;border:0 none}
        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%}.table td,
        .table th{padding:8px;text-align:left;vertical-align:top}.table td{border-bottom:1px solid #DDD}
        .table th{border-bottom:1px solid #000;font-weight:700}
        .table-condensed td,.table-condensed th{padding:4px 5px}
        .table-bordered{border-width:1px 1px 1px 0;border-style:solid solid solid none;border-color:#000;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px}
        .table-bordered td,.table-bordered th{border-left:1px solid #000}.table-bordered tbody:first-child tr:first-child&gt;td:first-child,.table-bordered tbody:first-child tr:first-child&gt;th:first-child{border-top-left-radius:0px}.table-bordered tbody:first-child tr:first-child&gt;td:last-child,.table-bordered tbody:first-child tr:first-child&gt;th:last-child{border-top-right-radius:0px}
        .table-bordered tbody:last-child tr:last-child&gt;td:first-child{border-bottom-left-radius:0px}.table-bordered tbody:last-child tr:last-child&gt;td:last-child{border-bottom-right-radius:0px}
        .container{
        position: relative;
        width:710px;
        font-size:12px;
        line-height:18px;
        padding:10px 15px 10px 10px;
        border-radius:0px;
        -webkit-box-shadow:0 0 8px rgba(0,0,0,.3);
        -moz-box-shadow:0 0 8px rgba(0,0,0,.3);
        box-shadow:0 0 8px rgba(0,0,0,.3);
        }

        .invName{text-align:center;font-size:20px;font-weight:700;margin:0 0 3px;text-transform:uppercase}legend{border-bottom-color:#DDD;text-align:center;line-height:16px;font-size:14px;font-weight:700;margin-bottom:8px}.table td,.table th{line-height:16px}.table-bordered&gt;tbody&gt;tr.thead&gt;th{text-align:center}.table tr.thead th{vertical-align:middle}.table{margin-bottom:5px}.table td.text-right{text-align:right}.table td.text-center{text-align:center}.row-fluid [class*=span]:first-child{margin-left:0}.row-fluid .span6{width:48.9362%}.row-fluid [class*=span]{min-height:20px}.footer{font-style:italic;font-weight:700;margin-bottom:0;font-size:10px}.row-fluid:after{clear:both}.row-fluid:after,.row-fluid:before{content:"";display:table;line-height:0}.pull-right[class*=span],.row-fluid .pull-right[class*=span]{float:right}.percentage:after{content:" %"}tr:last-child td{border-bottom:none}@media print{.container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.no-print{display:none!important}}.divButton{margin-right:auto;margin-left:auto;width:700px;line-height:16px;padding:10px}.divButton .button{float:right}.divButton:after,.divButton:before{content:"";display:table;line-height:0}.divButton:after{clear:both}.button{border-top:1px solid #96d1f8;background:#65a9d7;background:-webkit-gradient(linear,left top,left bottom,from(#3e779d),to(#65a9d7));background:-webkit-linear-gradient(top,#3e779d,#65a9d7);background:-moz-linear-gradient(top,#3e779d,#65a9d7);background:-ms-linear-gradient(top,#3e779d,#65a9d7);background:-o-linear-gradient(top,#3e779d,#65a9d7);padding:5px 10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:rgba(0,0,0,1)0 1px 0;-moz-box-shadow:rgba(0,0,0,1)0 1px 0;box-shadow:rgba(0,0,0,1)0 1px 0;text-shadow:rgba(0,0,0,.4)0 1px 0;color:#fff;font-size:14px;font-family:Georgia,serif;text-decoration:none;vertical-align:middle}.button:hover{border-top-color:#28597a;background:#28597a;color:#ccc;cursor:pointer}.button:active{border-top-color:#1b435e;background:#1b435e}[class*=" icon-"],[class^=icon-]{background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;display:inline-block;height:16px;line-height:16px;margin-top:1px;vertical-align:text-top;width:14px}.icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.icon-print{background-position:-96px -48px}


        .abcdef{
        position:absolute;
        opacity:0.1;
        filter:alpha(opacity=100);

        width:450px;
        height:auto;
        left:150px;
        top:40px;
        }
        .next-page { page-break-inside:always;  page-break-after:always}
        .bodertable
        {



        border: 1px solid #8F9AA3;
        border-collapse: collapse;
        padding-bottom: 2px;
        padding-left: 5px;
        padding-right: 2px;
        padding-top: 0px;
        }

		.phathanh{
                        position:absolute;
                        opacity:0.8;
                        filter:alpha(opacity=100);
                        top:220px;
                        left:180px;
                        width:300px;
                        height:auto;
                        z-index:1;
                        background: none;
                        }

        .giatri
        {
        font-size: 14px;

        font-weight: bold;
        }
        .TieuDe
        {
        font-size: 14px;

        }
        .Nhom
        {
        font-size: 14px;

        font-weight: bold;
        }
        .Bang
        {
        width: 890px;
        }
        .Bang1
        {
        width: 800px;
        }
        .hrRed {
        color: red;
        width: 100%;
        border: 0;
        height: 2px;
        background: red;
        }
        .hrblack {
        color: black;
        width: 100%;
        border: 0;
        height: 2px;
        background: black;
        }
        .TitleHD {
        text-transform: uppercase;
        font-size: 12px;
        font-weight: bold;
        }
        .headTable {
        width: 100%;
        border: 0px;
        }
        .headContent{
        font-weight: bold;
        }
        .nom{
        font-weight: normal !important;
        }
        .boderTop{
        border-top: 1px solid #000 !important;
        }
        .textThaiSon{
        position: absolute;
        top:450px;
        display: block;
        right:-198px;
        font-style: italic;
        font-size: 11px;
        -ms-transform: rotate(270deg); /* IE 9 */
        -webkit-transform: rotate(270deg); /* Safari */
        transform: rotate(270deg); /* Standard syntax */

        }
        .textThaiSon2{
        position: absolute;
        top:250px;
        display: block;
        right:0px;
        font-style: italic;
        font-size: 11px;

        -ms-writing-mode:bt-lr;
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
        }
		.kysoban{margin: 0 auto; border: solid 1px red; padding: 3px; color: red; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}
		#kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}
					</style><script>
        function my() {
        var el = document.getElementById(''thaison'');
        if( document.all &amp;&amp; document.querySelector &amp;&amp; !document.addEventListener){
        el.className = ''textThaiSon2'';
        }else{
        el.className = ''textThaiSon'';
        }}

					</script><body style="font-size:8px;" onload="my()"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><div class="container"><div class="textThaiSon" id="thaison">
            (Xuất bởi phần mềm EInvoice,ThaiSon Co.,ltd - MST: 0101300842 - www.einvoice.vn)
							</div><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div class="row-fluid"><div class="span3 "></div><div class="span9"><div class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></div><div>Địa chỉ <i>(Address)</i>: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div>
                  Tel: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" />   -   Fax: <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div><div>
                  Mã số thuế <i>(Tax code)</i>: <span style="font-weight: bold; letter-spacing: 4px;"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div></div></div><div class="row-fluid" style="margin-top: 10px"><div class="span3" style="width:17%"></div><div class="span6 text-center" style="width:50%; padding-left:30px;"><div class="invName"><xsl:value-of select="inv:invoiceData/inv:invoiceName" /><br></br><i>(SALE INVOICE)</i></div><div><xsl:if test="inv:viewData/inv:printFlag = ''true''"><i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i></xsl:if><div><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" />

                  Ngày<i> (Date)</i>:  <b><xsl:value-of select="substring($issuedDate, 9, 2)" /></b> tháng<i> (month)</i>: <b><xsl:value-of select="substring($issuedDate, 6, 2)" /></b> năm<i> (year)</i>: <b><xsl:value-of select="substring($issuedDate, 1, 4)" /></b></div></div></div><div class="span3 text-left" style="width:27%">
              Mẫu số <i>(Form No)</i>: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
              Ký hiệu <i>(Serial)</i>: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
              Số HĐ <i>(No)</i>: <b style="color:red"><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></b></div></div><div class="row-fluid"><div class="span12" style="padding-bottom:5px"><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><b>Thay thế cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><b>Điều chỉnh cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''"><b>Xóa bỏ cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></xsl:when></xsl:choose></div></div><div class="row-fluid"><div class="span12" style="line-height: 23px; padding-bottom:5px"><div>Họ tên người mua hàng <i>(Customer name)</i>: 
										<b><xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></b></div><div>
                      Tên đơn vị <i>(Company)</i>: 
										<b><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></b><br /></div><div>
                      Mã số thuế <i>(Tax code)</i>: <b style="letter-spacing: 4px;"><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></b></div><div>Địa chỉ <i>(Address)</i>: 
										<b><xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></b><br /></div><div>
                      Hình thức TT <i>(Payment term)</i>:
										<xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><xsl:value-of select="inv:paymentMethodName" /></xsl:for-each></div></div></div><div style="width:100%;position: relative !important"><table class="table table-bordered table-condensed"><tbody><tr class="thead"><th>
                    STT<div class="nom">(No)</div></th><th style="width: 250px;">
                    Tên hàng hóa, dịch vụ <div class="nom">(Description)</div></th><th>
                    ĐVT<div class="nom">(Unit)</div></th><th>
                    Số lượng <div class="nom">(Quantity)</div></th><th>
                    Đơn giá <div class="nom">(Unit price)</div></th><th>
                    Thành tiền<div class="nom">(Amount)</div></th></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><td class="text-center"><xsl:choose><xsl:when test="inv:lineNumber!=''''"><xsl:value-of select="inv:lineNumber" /></xsl:when><xsl:otherwise>
					  
														</xsl:otherwise></xsl:choose></td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                              Điều chỉnh tăng: 
																</xsl:when><xsl:otherwise>
                              Điều chỉnh giảm: 
																</xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' ">
                           (không chịu thuế)
														</xsl:when><xsl:when test="inv:vatPercentage = ''-2'' ">
                           (không kê khai nộp thuế)
														</xsl:when></xsl:choose></td><td class="text-left"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="inv:quantity != ''''"><xsl:value-of select="format-number(inv:quantity,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:unitPrice != ''''"><xsl:value-of select="format-number(inv:unitPrice,''##.##0,##'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemTotalAmountWithoutVat != ''''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,##'',''number'')" /></xsl:if></td></tr></xsl:for-each><xsl:if test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0"><tr><td class="text-center"><xsl:value-of select="count(inv:invoiceData/inv:items/inv:item) + 1" /></td><td nowrap="">Chiết khấu thương mại</td><td><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''true''">
                              Điều chỉnh tăng
																</xsl:when><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''false''">
                              Điều chỉnh giảm
																</xsl:when></xsl:choose></xsl:when></xsl:choose></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="10 - count(inv:invoiceData/inv:items/inv:item)" /></xsl:call-template><tr><td colspan="5" class="boderTop text-right"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                            Điều chỉnh tăng: 
															</xsl:when><xsl:otherwise>
                            Điều chỉnh giảm: 
															</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><b>Cộng tiền hàng</b> (Total):
													</xsl:otherwise></xsl:choose></td><td class="boderTop text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,##'',''number'')" /></xsl:if></td></tr><!--<xsl:choose>
                <xsl:when test="inv:invoiceData/inv:exchangeRate != '''' and inv:invoiceData/inv:exchangeRate != 0">
                  <xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown">
                    <tr>
                      <td class="text-right boderTop" colspan="5">
                        <xsl:choose>
                          <xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''">
                            <xsl:choose>
                              <xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                Điều chỉnh giảm: 
                              </xsl:when>
                              <xsl:otherwise>
                                Điều chỉnh tăng: 
                              </xsl:otherwise>
                            </xsl:choose> 
                          </xsl:when>
                          <xsl:otherwise>
                            <b>Tiền thuế GTGT</b> (Tax Amount): 
                          </xsl:otherwise>
                        </xsl:choose>
                        <xsl:choose>
                          <xsl:when test="inv:vatPercentage = ''-1''">
                            không chịu thuế
                          </xsl:when>
                          <xsl:when test="inv:vatPercentage = ''-2''">
                            không kê khai nộp thuế
                          </xsl:when>
                          <xsl:otherwise>
                            <span class="percentage">
                              <xsl:value-of select="inv:vatPercentage" />
                            </span>
                          </xsl:otherwise>
                        </xsl:choose>
                        :
                      </td>
                      <td class="text-right borderTop">
                        <xsl:if test="inv:vatTaxAmount != ''''">
                          <xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,##'',''number'')" />
                        </xsl:if>
                      </td>
                    </tr>
                  </xsl:for-each>
                </xsl:when>
                <xsl:otherwise>
                  <xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown">
                    <tr>
                      <td class=" boderTop" colspan="5">
                        <div class="row-fluid">
                          <div class="span12">
                            <div class="row-fluid">
                              <div class="span6">
                                <b>Thuế suất GTGT</b>(VAT rate):
                                <xsl:choose>
                                  <xsl:when test="inv:vatPercentage = ''-1''">
                                    không chịu thuế
                                  </xsl:when>
                                  <xsl:when test="inv:vatPercentage = ''-2''">
                                    không kê khai nộp thuế
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <span class="percentage">
                                      <xsl:value-of select="inv:vatPercentage" />
                                    </span>
                                  </xsl:otherwise>
                                </xsl:choose>
                              </div>
                              <div class="span6 text-right">
                                <xsl:choose>
                                  <xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''">
                                    <xsl:choose>
                                      <xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos != ''true''">
                                        Điều chỉnh giảm: 
                                      </xsl:when>
                                      <xsl:otherwise>
                                        Điều chỉnh tăng: 
                                      </xsl:otherwise>
                                    </xsl:choose>
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <b>Tiền thuế GTGT</b> (VAT Amount):
                                  </xsl:otherwise>
                                </xsl:choose>
                              </div>
                            </div>
                          </div>
                          
                        </div>
                      </td>
                      <td class="text-right boderTop">
                        <xsl:if test="inv:vatTaxAmount != ''''">
                          <xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,##'',''number'')" />
                        </xsl:if>
                      </td>
                    </tr>
                  </xsl:for-each>
                </xsl:otherwise>
              </xsl:choose>--><!--<tr>
                  <td colspan="5"  class="boderTop text-right">
                    <xsl:choose>
                      <xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''">
                        <xsl:choose>
                          <xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                            Điều chỉnh tăng: 
                          </xsl:when>
                          <xsl:otherwise>
                            Điều chỉnh giảm: 
                          </xsl:otherwise>
                        </xsl:choose>
                      </xsl:when>
                      <xsl:otherwise>
                        <b>Tổng cộng tiền hàng</b> (Grand total):
                      </xsl:otherwise>
                    </xsl:choose>
                  </td>
                  <td  class="boderTop text-right">
                    <xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''">
                      <b>
                        <xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,##'',''number'')" />
                      </b>
                    </xsl:if>
                  </td>
                </tr>--></tbody></table></div><div class="row-fluid"><div class="span12">
					  Số tiền viết bằng chữ:<b><i><xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /></i></b><br />(Amount in words)

									<xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><br /><b>Ghi chú hóa đơn</b>(Invoice note): 
										<xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></xsl:if></div></div><br /><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row-fluid"><div class="span4"><p class="text-center"><b>Người thực hiện chuyển đổi</b> (Converters)
												<br /><b>Ký, ghi rõ họ tên</b><i>(Signature &amp; full name)</i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người mua hàng</b> (Buyer)
												<br /><b>Ký, ghi rõ họ tên</b><i>(Signature &amp; full name)</i></p><br /><br /></div><div class="span4"><p class="text-center"><b>Người bán hàng</b> (Seller)
												<br /><b>Ký, đóng dấu, ghi rõ họ, tên</b><i>(Signature, stamp &amp; full name)</i></p><br /><br /></div></div><div class="row-fluid"><div class="span4"><p class="text-center"><xsl:value-of select="inv:viewData/inv:userPrint" /><br /></p><p class="text-center">
								  Ngày chuyển đổi:
												<i><xsl:choose><xsl:when test="inv:viewData/inv:userPrint != ''''"><xsl:value-of select="concat(substring(ex:date-time(), 9, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 6, 2),&#xD;&#xA;														''/'', substring(ex:date-time(), 1, 4))" /></xsl:when><xsl:otherwise>
											      /    /20
														</xsl:otherwise></xsl:choose></i></p></div><div class="span4"></div><div class="span4"><xsl:if test="inv:invoiceData/inv:signedDate != ''''"><p class="text-center">
									  Được ký bởi <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><!-- <br/>
										<p class="text-center">
						                    Ngày ký: 
											<i>
												<xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate"/>
												<xsl:value-of select="concat(''Ngày '', substring($signedDate, 9, 2), '' tháng '', substring($signedDate, 6, 2), '' năm '', substring($signedDate, 1, 4))"/>
											</i>
										</p> --></p></xsl:if></div></div></xsl:when><xsl:otherwise><div class="row-fluid"><div class="span6"><p class="text-center"><b>Người mua hàng</b> (Buyer)
												<br /><b>Ký, ghi rõ họ tên</b><i>(Signature &amp; full name)</i></p><br /><br /></div><div class="span6"><p class="text-center"><b>Người bán hàng</b> (Seller)
												<br /><b>Ký, đóng dấu, ghi rõ họ, tên</b><i>(Signature, stamp &amp; full name)</i></p><br /><br /></div></div><div class="row-fluid"><div class="span6"></div><div class="span6"><p class="text-center" style="color:red"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) =''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style="color:red"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" /><span style="color:red">  Signature Valid  </span><br /><span style="color:red">   Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></span><br /><span style="color:red">Ký  
                                                                                                  ngày:         /         /   </span></div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style="color:red"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" /><span style="color:red">    Signature Valid </span><br /><span style="color:red">    Ký bởi: <xsl:value-of select="$ttdv" /></span><br /><span style="color:red"> Ký  
																			<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></span></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></p></div></div></xsl:otherwise></xsl:choose><!--<div class="row-fuild" style="font-size: 11px;text-align: center;">
              Mã nhận hóa đơn: <b  style="font-size: 13px;">
                <xsl:value-of select="inv:invoiceData/inv:delivery/inv:containerNumber" />
              </b>&#160;&#160;&#160; Tra cứu tại website:<b> http://vat.ggg.com.vn/</b>
            </div>--><table width="100%" align="center"><tr><td height="10"> </td><td height="10"> </td><td height="10"> </td></tr><tr><td colspan="3" class="text-center" style="font-size:9px"><i>
							  (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
										</i></td></tr></table><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></div></body></html></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many &gt; 0"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"><tr><td class="text-center">
           
						</td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td class="text-left"></td><td class="text-right"></td><td class="text-right"></td><td></td><!--        <td>
        </td>
        <td class="text-right">
        </td>--></tr></xsl:when><xsl:otherwise><tr><td class="text-center">
                     
						</td><!--<td>
                    <xsl:value-of select="inv:itemCode"/>
                  </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr></xsl:otherwise></xsl:choose><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 1, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'HDBK', CAST(0 AS Numeric(18, 0)), N'HDBK', N'01gtkt', N'01', N'', NULL, NULL, NULL, N'DreamtechVN_BK.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"><div style="page-break-inside: avoid "><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" /><title>Bang kê chi tiết hàng</title><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><style type="text/css" media="all">
                      .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:13px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}
                            p{margin:0 0 5px}
                            .text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Time New Roman,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 715px;
								<!--height: 980px;-->
                            font-size: 14px;
                            line-height: 23px;
                            font-family: Time New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 0px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
                            margin-top: 35px;
                            }

                            .invName{text-align:center;font-size:20px;font-weight:700;text-transform:uppercase}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col19, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;
                            }
                            row [class*=col]{display:block;float:left;width:100%;margin-left:10px;box-sizing:border-box;float:left;min-height:1px;margin-left:20px}
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}        
								<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 1px 1px 1px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}
                            .table th{line-height:17px}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 200px;
                            left: 61px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 400px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -1;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 17px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:13px;
								<!--text-transform: uppercase;-->
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:97.7%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            border-radius: 4px;
                            padding: 0px;
                            max-width: 180px;
                            image-rendering: optimizequality;
                            }
                            .padd5{padding-left:5px}
                            .lineh17{line-height:17px !important;}
                            .tableheader{margin-top:5px;height:110px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{line-height:21px;width:49%}
                            .tableheader .td3{line-height:24px;width:25%;}
                            .logo{width:175px;}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
                            .tbks td{height:95.5px}
                            .textcd{height:56px;line-height:17px;margin-top:3px;font-size:13px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}
                      .maginHeader{display: table;  width: 100%;margin: 0;padding-top:0px;clear: both; height:0px;color:#fff;border-top:1px solid #000;margin-bottom: 0px}
                      .maginHeaderTop{display: table;  width: 100%;margin: 0;padding-top:0px;clear: both; height:0px;color:#fff;border-top:0px solid #000;margin-bottom: 35px}
                      .maginHeaderMin{display: table;  width: 100%;margin: 0;padding-top:10px;clear: both; height:10px;color:#fff;}
                      .border2{ border-left:0px solid #000; border-right:0px solid #000;padding:0px;margin-right:0px;display:table;width:100%;}
                      .wallperBg{
                      position: relative;
                      }
                      .boderNew{border-width:1px 1px 0 1px;border-style:solid}
                      .fixTable,.sumTable{
                      width:100%;font-size:14px;background-color:transparent;border-collapse:collapse;border-spacing:0;
                      border-top:1px solid #000;
                      border-bottom:1px solid #000;
                      border-left:1px solid #000;
                      border-right:1px solid #000;
                      -moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px
                      }
                      .fixTable td{padding:2px}
                      .logo{width:175px;}
							</style><script><xsl:text disable-output-escaping="yes"><![CDATA[    
          function loadData() {
            var mainElement = document.getElementById("main");
            //Khai bao max height của mỗi page tùy thuộc vào khổ in px
            //nếu in A4
            var heightA4 = 1040;

            //get string html cần thiết

            var headerHtmlString = document.getElementById("headerFix").innerHTML;
            var bgString = document.getElementById("hinhNen").innerHTML;
            var headerTableHtmlString = (document.getElementById("tableHiden").getElementsByTagName("thead"))[0].innerHTML;
            var tieuDe = document.getElementById("tieude").innerHTML;
            
            var indexRow = 0; //biến duyệt qua các dòng trong bảng hàng hóa
            var countPage = 1;// biến đếm số trang khi breack ra
            var maxHeightTable = 0;

            var listRow = document.getElementById("tableHiden").getElementsByTagName("tbody")[0].getElementsByTagName("tr");


            
            //add fix header vào mỗi trang
            var tempHeader = document.createElement("div");
                tempHeader.className="border2";
                tempHeader.innerHTML = headerHtmlString;
                mainElement.appendChild(tempHeader);


                 
                var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
            var displayPageElement = document.createElement("div");
            displayPageElement.innerHTML = displayPageString;
            displayPageElement.className = "border2";
            displayPageElement.setAttribute("id", ("soPage" + countPage));
            //mainElement.appendChild(displayPageElement);
            
            
            var tieude = document.createElement("div");
                        tieude.setAttribute("id", ("tieude" + countPage));
                        tieude.className="row";
                        tieude.innerHTML=tieuDe;
            
            do {
                

                //get max heigh cho moi table
                if (countPage != 1) {
                    maxHeightTable = heightA4;
                    //alert("count >1" + " / " +maxHeightTable);
                }
                
                else
                {
                
                var hHeader = tempHeader.offsetHeight + displayPageElement.offsetHeight;
                    maxHeightTable = heightA4 - hHeader;
                    //alert("count !=1" + " / " +maxHeightTable);
                    
                }


                //add table
                var tempTable = document.createElement("table");
                tempTable.setAttribute("id", ("table" + countPage));
                tempTable.className = "table table-bordered";


                var theadTemp = document.createElement("thead");
                theadTemp.innerHTML = headerTableHtmlString;
                tempTable.appendChild(theadTemp);

                var tbodyTemp = document.createElement("tbody");
                tempTable.appendChild(tbodyTemp);
                
                var tempDiv = document.createElement("div");
                tempDiv.className="border2";
                tempDiv.appendChild(tempTable);
                mainElement.appendChild(tempDiv);
                
                //Hiển thị thông tin số trang (trang 1/ tong so..)
            var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
            var displayPageElement = document.createElement("div");
            displayPageElement.innerHTML = displayPageString;
            displayPageElement.className = "border2";
            displayPageElement.setAttribute("id", ("soPage" + countPage));
            mainElement.appendChild(displayPageElement);
                
                
                for (var i = indexRow; i < listRow.length; i++) {
                
                    var tr = document.createElement("tr");
                    tr.setAttribute("id", ("tr_so" + indexRow));
                    tr.innerHTML = listRow[i].innerHTML;
                    tbodyTemp.appendChild(tr);

                    var heightTemTable = tempTable.offsetHeight;
                    
                    //alert(maxHeightTable +" / "+ heightTemTable);
                    
                    
                    if (heightTemTable >= maxHeightTable -40) {
                        
                                               
                        
                        
                        var elem = document.getElementById("tr_so" + indexRow);
                        elem.parentElement.removeChild(elem);
                        
                        
                        var divMagin = document.createElement("div");
                        divMagin.className = "maginHeader";
                        divMagin.innerHTML="";
                        mainElement.appendChild(divMagin);
                        mainElement.appendChild(displayPageElement);
                        
                  
                        var divBreack = document.createElement("div");
                        divBreack.className = "breackPage";
                        mainElement.appendChild(divBreack);


                        var divMagin = document.createElement("div");
                        divMagin.className = "maginHeaderTop";
                        divMagin.innerHTML="";
                        mainElement.appendChild(divMagin);
                        
                        var bgElement = document.createElement("div");
                        bgElement.className = "wallperBg";
                        bgElement.innerHTML = bgString;
                        mainElement.appendChild(bgElement);
                        
                        
                        //add mau so vao dau moi trang 
                        var tieude = document.createElement("div");
                        tieude.setAttribute("id", ("tieude" + countPage));
                        tieude.className="row";
                        tieude.innerHTML=tieuDe;
                        mainElement.appendChild(tieude);
                        
                        /*var tieude = document.createElement("div");
                        tieude.className = "sonnx";
                        tieude.innerHTML = tieuDe;
                        mainElement.appendChild(tieude);*/
                        
                        
                        break;
                    }
                    
                    if (indexRow === listRow.length) {
                        console.log("het tr ");
                        break;
                    }
                    
                    indexRow++;
                }
                  var heightTablenew = heightTemTable;
                countPage++;
                var demtrang = countPage-1;
                //alert (demtrang);
                console.log(''===='' + indexRow);
                
                
                
                
            }
            while (indexRow < listRow.length);
            
            
            
            //add fix footer
            var elmentFoote = document.getElementById("footerFix");
            mainElement.appendChild(elmentFoote);
            mainElement.appendChild(displayPageElement);
            heightFixFooter = elmentFoote.clientHeight;
            var break1;
            break1 = 0;
            //alert(maxHeightTable + " - " + heightTemTable + " = "+ (maxHeightTable - heightTemTable) +" < "+ heightFixFooter);
            //tinh toan xem them footer vao thi co bi sang trang nua ko
            if ((maxHeightTable - heightTemTable)  < heightFixFooter + 40) {     
                
                 //alert("aa");
                
                break1 = 1 ;
                 //alert(heightTemTable +"awe");
                 var divMagin = document.createElement("div");
                  divMagin.className = "maginHeader";
                  divMagin.innerHTML="";
                  elmentFoote.parentNode.insertBefore(divMagin, elmentFoote);
                 
                 elmentFoote.parentNode.insertBefore(displayPageElement, elmentFoote);
                 
                 //add break trang
                var divBreack = document.createElement("div");
                divBreack.className = "breackPage";
                elmentFoote.parentNode.insertBefore(divBreack, elmentFoote);
                 
                 
                  //add margintop
                  var divMaginTop = document.createElement("div");
                  divMaginTop.className = "maginHeaderTop";
                  divMaginTop.innerHTML="";
                  elmentFoote.parentNode.insertBefore(divMaginTop, elmentFoote);
                  
                  //add mau so vao dau moi trang 
                        var tieude = document.createElement("div");
                        tieude.setAttribute("id", ("tieude" + countPage));
                        tieude.className="row";
                        tieude.innerHTML=tieuDe;
                        elmentFoote.parentNode.insertBefore(tieude, elmentFoote);
                  
                  //add hình nền + rightnote
                  var bgElement = document.createElement("div");
                  bgElement.className = "wallperBg";
                  bgElement.innerHTML = bgString;
                  elmentFoote.parentNode.insertBefore(bgElement, elmentFoote);
                  
                   //Hiển thị thông tin số trang (trang 1/ tong so..)
            var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
            var displayPageElement = document.createElement("div");
            displayPageElement.innerHTML = displayPageString;
            displayPageElement.className = "border2";
            displayPageElement.setAttribute("id", ("soPage" + countPage));
            mainElement.appendChild(displayPageElement);
            
                countPage++;
            }

            
             countPage--;
              var listMaxPage = document.getElementsByClassName("maxPage");
              for (var y = 0; y < listMaxPage.length; y++) {
              listMaxPage[y].innerHTML = countPage;
              }
              
              // hoangnx
        var elementPageEnd = document.getElementById("soPage" + countPage);
        mainElement.appendChild(elementPageEnd);

        
        
        for (var z = 1; z <= countPage; z++) 
        {
            var tableTemp = document.getElementById("table" + z);
            var heightTemTable1 = tempTable.offsetHeight;
            var heightHeader1 = tempHeader.offsetHeight;
            var marginTop =heightA4;
            var heightAll = heightFixFooter + heightTemTable1 + heightHeader1;
            

            
            if (typeof (tableTemp) != ''undefined'' && tableTemp != null) {
                marginTop = marginTop - tableTemp.clientHeight;
            }
            if (countPage == 1 )
            {
                marginTop = heightA4 -heightAll-23;
            }
            else
            {
                /*if (z == 1) 
                {
                    marginTop = 1040 - heightTemTable1 - heightHeader1;
                    //alert (marginTop +" if heightTemTable = 3");
                }
                
                else*/
                {
                    if (z == 1) 
                    {
                        if( countPage >1)
                        {
                            if( break1 == 1)
                            {
                                marginTop = 1040 - heightTemTable1 - heightHeader1 - 23;
                                //alert("bbbbcc");
                            }
                            else
                            {
                            marginTop = 1040 - 731 - heightHeader1 - 23;
                            //alert ("1040 " +" - " + heightTemTable1 + " - " + heightHeader1 + " = " + marginTop +" if heightTemTable = 3");
                            //alert("bbbb");
                            }
                        }
                        else
                        {
                            
                        }
                    }
                    else if (z == countPage) 
                    {
                        if( break1 == 1)
                        {
                            marginTop = 1040 - heightFixFooter - 30;
                            //alert (marginTop +" if heightTemTable = 1");
                        }
                        else
                        {
                            marginTop = 1040 - heightTemTable1 - heightFixFooter -50;
                            //alert ( heightHeader1 +" if heightTemTable = 2");
                        }

                    }
                    else if(z == countPage -1 && break1 == 1)
                    {
                        marginTop = 1040 - heightTemTable - 35;
                    }
                    else
                    {
                        
                        marginTop = 0;
                    }
                   
                }
            }
            if(marginTop>0)
            {
                //alert (marginTop +"acbd");
                var pageEl = document.getElementById("soPage" + z);
                pageEl.setAttribute("style", "padding-top:" + marginTop+"px");
            }
        } 
                document.getElementById(''main'').style.display = ''none'';
            document.getElementById(''main'').style.display = ''table'';
              
        }

          ]]></xsl:text></script></head><body style="margin: 0; padding: 0" onload="loadData()"><!--start main--><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><div id="main" class="container"><div id="hinhNen" class="wallperBg"></div><!--end main--></div><xsl:variable name="fullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($fullLoai, 1, 2)" /><div style="display: none"><!--anh ne--><!--anh phat hanh--><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><!--phan tieu de tren co dinh--><div id="headerFix"><div class="boderNew"><div class="row" id="header"><div class="text-center" style="margin-top:10px"><div class=" text-center"><div class="invName">
                                                  BẢNG KÊ HÀNG HÓA, DỊCH VỤ                                                 
													</div><div>
													Số: <xsl:value-of select="inv:invoiceData/inv:SoBangKe" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''">
                                                                  ngày    
                                                                  tháng    
                                                                  năm
															</xsl:when><xsl:otherwise>
                                                                  ngày 

																<xsl:value-of select="substring($issuedDate, 9, 2)" />
                                                                  tháng 

																<xsl:value-of select="substring($issuedDate, 6, 2)" />
                                                                  năm 

																<xsl:value-of select="substring($issuedDate, 1, 4)" /></xsl:otherwise></xsl:choose></div><div style="margin-top: 5px">
													(Kèm theo hóa đơn GTGT số: <xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''">
                                                                  ngày    
                                                                  tháng    
                                                                  năm
															</xsl:when><xsl:otherwise>
                                                                  ngày 

																<xsl:value-of select="substring($issuedDate, 9, 2)" />
                                                                  tháng 

																<xsl:value-of select="substring($issuedDate, 6, 2)" />
                                                                  năm 

																<xsl:value-of select="substring($issuedDate, 1, 4)" /></xsl:otherwise></xsl:choose>)
													</div></div></div><div class="row" style=""><div style="margin-left:10px; margin-top: 5px"><div class=""><b>	Bên bán: <span class="TitleHD"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></span></b></div><div>
                                                  Địa chỉ:  <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div>
                                                  Mã số thuế: 
														<xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></div></div></div><div class="" style="margin-top:5px;margin-bottom:5px"><div style="margin-left:10px"><div><b> Bên mua : <span class="TitleHD"><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></span></b></div><div>
                                                  Địa chỉ: 
														<xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></div><div>
                                                  Mã số thuế: 
														<xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></div></div></div><div class="row"><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><div class="col20" style="padding-bottom:5px"><b>Thay thế cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="col20" style="padding-bottom:5px"><b>Điều chỉnh cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="col20" style="padding-bottom:5px"><b>Xóa bỏ cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when></xsl:choose></div></div></div></div><div style="display:none"><div id="tieude"><div class="row"><div class="col6 text-center">
                                          Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b></div><div class="col5 text-center">
                                          Ký hiệu: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b></div><div class="col4 text-center">
                                          Số HĐ: <b style=""><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                      0000000
														</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></b></div><div class="col5 text-center">
                                          Số bảng kê: <b style=""><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></b></div></div></div><table id="tableHiden"><thead class="text-center"><tr class="thead"><th style="width:25px;border-left:0">
                                              STT<div class="nom"></div></th><!-- <th style="width:80px"> --><!-- Công đoạn<div class="nom"> --><!-- </div> --><!-- </th> --><th style="width:300px">
                                              Tên hàng hóa, dịch vụ <div class="nom"></div></th><th style="width:55px">
                                              ĐVT<div class="nom"></div></th><th style="width:60px">
                                              Số lượng <div class="nom"></div></th><th style="width:90px">
                                              Đơn giá (VNĐ) <div class="nom"></div></th><th style="width:110px;border-right:0">
                                              Thành tiền (VNĐ)<div class="nom"></div></th></tr></thead><tbody><xsl:variable name="phathanh" select="inv:invoiceData/inv:phatHanh" /><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><xsl:choose><xsl:when test="inv:lineNumber =''''"><td class="text-center">
                             
															</td></xsl:when><xsl:when test="inv:lineNumber !=''''"><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td></xsl:when></xsl:choose><!-- <td> --><!-- <xsl:value-of select="inv:itemCode"/> --><!-- </td> --><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                                                                  Điều chỉnh tăng: 
																	</xsl:when><xsl:otherwise>
                                                                  Điều chỉnh giảm: 
																	</xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' "><!-- (không chịu thuế)--></xsl:when><xsl:when test="inv:vatPercentage = ''-2'' "><!--(không kê khai nộp thuế)--></xsl:when></xsl:choose></td><td class="text-center"><xsl:value-of select="inv:unitName" /></td><td class="text-center"><xsl:if test="inv:quantity != ''''"><xsl:value-of select="format-number(inv:quantity,''##.##0,####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:unitPrice != ''''"><xsl:value-of select="format-number(inv:unitPrice,''##.##0,####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemTotalAmountWithoutVat != ''''"><xsl:choose><xsl:when test="$nguyente =''VND''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,#####'',''number'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,00'',''number'')" /></xsl:otherwise></xsl:choose></xsl:if></td></tr></xsl:for-each><xsl:if test="inv:discountAmount != '''' and inv:discountAmount != 0"><tr><td class="text-center"><xsl:value-of select="count(inv:items/inv:item) + 1" /></td><!-- <td class="text-right"> --><!-- </td> --><td nowrap="">Chiết khấu</td><td><xsl:choose><xsl:when test="inv:adjustmentType = ''5'' or inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isDiscountAmtPos = ''true''">
                                                                        Điều chỉnh tăng
																	</xsl:when><xsl:when test="inv:isDiscountAmtPos = ''false''">
                                                                        Điều chỉnh giảm
																	</xsl:when></xsl:choose></xsl:when></xsl:choose></td><td class="text-right"></td><!--                  <td class="text-right">
                                                    </td>--><td class="text-right"></td><td class="text-right"><xsl:value-of select="format-number(inv:discountAmount,''##.##0,######'',''number'')" /></td></tr></xsl:if></tbody></table></div><div style="display:none"><div class="row border2" id="footerFix"><table class="fixTable" style="border-top:0"><tbody><xsl:if test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0"><tr><td class="text-center"><xsl:value-of select="count(inv:invoiceData/inv:items/inv:item) + 1" /></td><!-- <td class="text-right"> --><!-- </td> --><td nowrap="">Chiết khấu</td><td><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''true''">
                                                                            Điều chỉnh tăng
																		</xsl:when><xsl:when test="inv:invoiceData/inv:isDiscountAmtPos = ''false''">
                                                                            Điều chỉnh giảm
																		</xsl:when></xsl:choose></xsl:when></xsl:choose></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,####'',''number'')" /></td></tr></xsl:if><xsl:choose><xsl:when test="$loaiHoaDon = 01"><tr><td class=""><div class="row"><div class="col15 text-left">
                                                                        Tổng tiền hàng trước thuế:
																	</div><div class="col5 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithoutVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,####'',''number'')" /></xsl:if></div></div><div class="row"><div class="row"><div class="col15">
                                                                                Thuế suất GTGT 0%:

																			</div><div class="col5 text-right"><xsl:if test="inv:vatPercentage = ''0''">
																					 
																				</xsl:if></div></div></div><div class="row"><div class="col15 text-left">
                                                                        Tổng tiền phải trả:
																	</div><div class="col5 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,####'',''number'')" /></xsl:if></div></div></td></tr></xsl:when><xsl:when test="$loaiHoaDon = 07 or $loaiHoaDon = 02"><tr><td class="boderTop"><div class="row"><div class="col10"><div class="col13 text-left">
                                                                            Nguyên tệ <i>(Original currency)</i>: <xsl:value-of select="inv:invoiceData/inv:currencyCode" /></div><div class="col7 text-left">
                                                                            Tỷ giá <i>(Rate)</i>: 
																			<xsl:if test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''"><xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##.##0,####'',''number'')" /></xsl:if></div></div><div class="col6 text-right"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                                        Điều chỉnh tăng: 
																					</xsl:when><xsl:otherwise>
                                                                                        Điều chỉnh giảm: 
																					</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                                Cộng tiền hàng nguyên tệ <i>(Sub total)</i>:
																				<!--<i>(Grand total))</i>--></xsl:otherwise></xsl:choose></div><div class="col4 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithoutVATFrn != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVATFrn,''##.##0,####'',''number'')" /></xsl:if></div></div><div class="row"><div class="col6">
                                                         
																	</div><div class="col10 text-right">
                                                                        Cộng tiền hàng <i>(Sub total)</i>:
																	</div><div class="col4 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,####'',''number'')" /></xsl:if></div></div></td></tr></xsl:when></xsl:choose></tbody></table><div class="row"><div class="text-left lineh17" style="margin-top:3px"><div class="row" style="height:150px"><div class="col10" style=""><p class="text-center"><b>Người mua hàng
																
															</b><br />
                                                            (Ký, ghi rõ họ, tên)
															
														</p><br /></div><div class="col10" style=""><p class="text-center"><b>Người bán hàng
																
															</b><br />
                                                            (Ký, ghi rõ họ, tên)
															
														</p><br /></div></div></div></div></div></div></div></body></html></div></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">

                            .line{border-top:1px solid #000;}
                            canvas{display:inline-block}html{font-size:100%}i{font-size:13px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                            p{orphans:0;widows:3}
                            body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}
                            p{margin:0 0 5px}
                            .text-left{text-align:left !important}
                            .text-right{text-align:right !important}.text-center{text-align:center !important}
                            legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                            input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Time New Roman,sans-serif;width:206px;margin-left:0}
                            .container {
                            width: 715px;
							<!--height: 980px;-->
                            font-size: 14px;
                            line-height: 23px;
                            font-family: Time New Roman;
                            padding: 0px;
                            border-radius: 0px;
                            margin: 0 auto;
                            border: 1px solid #000;
                            margin-top:px;
                            position: relative;
                            display: table;
                            color:#000;
                            }

                            .invName{text-align:center;font-size:20px;font-weight:700;text-transform:uppercase}
                            .row {
                            width: 100%;
                            margin: 0;
                            padding: 0;
                            clear: both;
                            display: table;
                            }

                            .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col19, .row .col20 {
                            display: block;
                            float: left;
                            padding: 0;
                            margin: 0;
                            }
                            row [class*=col]{display:block;float:left;width:100%;margin-left:10px;box-sizing:border-box;float:left;min-height:1px;margin-left:20px}
                            .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                            .col1  {width: 5%;}                    
                            .col2  {width: 10%;}                    
                            .col3  {width: 15%;}
                            .col23 {width: 23%}                    
                            .col78 {width: 77%}                    
                            .col4  {width: 20%;}                    
                            .col5  {width: 25%;}                    
                            .col6  {width: 30%;}                    
                            .col7  {width: 35%;}                    
                            .col8  {width: 40%;}                    
                            .col9  {width: 45%;}                    
                            .col10 {width: 50%;}                    
                            .col11 {width: 55%;}                    
                            .col12 {width: 60%;}                    
                            .col13 {width: 65%;}                    
                            .col14 {width: 70%;}                    
                            .col15 {width: 75%;}                    
                            .col16 {width: 80%;}                    
                            .col17 {width: 85%;}                    
                            .col18 {width: 90%;}                    
                            .col19 {width: 95%;}                    
                            .col20 {width: 100%;}        
							<!--Css add them ko danh cho multi page-->
                            .table {border-spacing:0;width:100%;margin:auto;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                            .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                            .table th{padding:2px;text-align:center;}
                            .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                            .table th:last-child{border-right:1px solid #000}
                            .table tbody tr th:last-child{border-right:0px solid #000}
                            .table tbody tr th:first-child{border-left:0px solid #000}
                            .table th{line-height:17px}

                            .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                            .table td{border-top:1px solid #DDD}
                            .table tbody tr td:last-child{border-right:0px solid #000}
                            .table tbody tr td:first-child{border-left:0px solid #000}
                            .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                            .table-all-border {border-spacing:0;width:100%}
                            .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                            .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                            .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                            .table td{line-height:23px}
                            table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                            .abcdef{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 509px;
                            left: 95px;
                            width: 522px;
                            background: none;
                            z-index: -1;

                            }
                            .abcdef1{
                            border: 3px none #000000;
                            font-weight: bold;
                            font-size: 40px;
                            position: absolute;
                            top: 240px;
                            left: 57px;
                            width: 600px;

                            background: none;
                            z-index: -2;

                            }
                            .next-page { page-break-inside:always;  page-break-after:always}

                            .TitleHD {text-transform: uppercase;font-size: 20px;font-weight: 900;font-family: time new roman;}
                            .nom{
                            font-weight:500 !important;
                            font-size:13px;
							<!--text-transform: uppercase;-->
                            }
                            .boderTop{
                            border-top: 1px solid #000 !important;
                            }
                            .boderLe{
                            border-left: 1px solid #000 !important;
                            }
                            .boderRi{
                            border-right: 1px solid #000 !important;
                            }
                            .boderBot{
                            border-bottom: 1px solid #000 !important;
                            }
                            .boderAll{border: 1px solid #000 !important; width:100%; margin:auto}
                            .textThaiSon{
                            position: absolute;
                            top: 250px;
                            display: block;
                            right:-15px;
                            font-style: italic;
                            font-size: 11px;
                            }
                            .phathanh{
                            position:absolute;
                            opacity:0.8;
                            filter:alpha(opacity=100);
                            top:297px;
                            left:180px;
                            width:300px;
                            height:auto;
                            z-index:1;
                            background: none;
                            }
                            .img {
                            border-radius: 4px;
                            padding: 0px;
                            max-width: 180px;
                            image-rendering: optimizequality;
                            }
                            .padd5{padding-left:5px}
                            .lineh17{line-height:17px !important;}
                            .tableheader{margin-top:5px;height:110px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td1{max-width:25%;line-height:1px;min-width:25%;}
                            .tableheader .td2{line-height:21px;width:49%}
                            .tableheader .td3{line-height:24px;width:25%;}
                            .logo{width:175px;}
                            .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                            .tbks{width:100%;}
                            .tbks td{height:112px}
                            .textcd{height:56px;line-height:17px;margin-top:3px;font-size:13px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 260px; text-align: left;line-height: 14px}
						</style><body style="font-size:8px;"><div class="container"><xsl:variable name="ttdv" select="inv:invoiceData/inv:sellerLegalName" /><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="dateconvert" select="inv:viewData/inv:DateExchange" /><xsl:if test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"><img class="textThaiSon" style="width:15px" src=" data:image/gif;base64, " /></div><img class="abcdef1" src="data:image/gif;base64, " /><table class="tableheader"><tr><td class="text-center td1" style=""></td><td class="text-center td2" style=""><div class="invName"><xsl:value-of select="inv:invoiceData/inv:invoiceName" /><!--                                        <div style="">HÓA ĐƠN </div>
                                                <div>GIÁ TRỊ GIA TĂNG</div>--></div><div style="font-size:18px;font-style:italic;font-weight:bold">(VAT INVOICE)</div><div><div><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) =''true''">
                                                            Ngày <i>(Date)</i>     
                                                            tháng <i>(month)</i>     
                                                            năm <i>(year)</i></xsl:when><xsl:otherwise>
                                                            Ngày <i>(Date) </i><xsl:value-of select="substring($issuedDate, 9, 2)" />
                                                            tháng <i>(month) </i><xsl:value-of select="substring($issuedDate, 6, 2)" />
                                                            năm <i>(year) </i><xsl:value-of select="substring($issuedDate, 1, 4)" /><!--<xsl:value-of select="concat(''Ngày '', substring($issuedDate, 9, 2), '' tháng '', substring($issuedDate, 6, 2), '' năm '', substring($issuedDate, 1, 4))" />--></xsl:otherwise></xsl:choose></div><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)<br />(TRANSFORM INVOICE FROM E-INVOICE)</i></xsl:when><xsl:when test="inv:viewData/inv:printFlag = ''false''"><i>(BẢN THỂ HIỆN CỦA HÓA ĐƠN ĐIỆN TỬ)<br />(EINVOICE DISPLAY VERSION)</i></xsl:when><xsl:otherwise><xsl:value-of select="inv:Lien" /></xsl:otherwise></xsl:choose></div><div class="xoabo"><xsl:value-of select="inv:StatusDelete" /></div></td><td class="td3" style="">
                                            Mẫu số<i> (Form)</i>: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
                                            Ký hiệu<i> (Serial)</i>: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
                                            Số<i> (No.)</i>: <span style="color:red ;font-size:20px"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''">
                                                        0000000
													</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></span><div style="font-size:23px;color:red;padding-top:px"><xsl:choose><xsl:when test="normalize-space(//./inv:banChinh) = ''true''">
                                         
													</xsl:when><xsl:when test="normalize-space(//./inv:banChinh) = ''false''">
                                                        BẢN SAO
													</xsl:when><xsl:when test="normalize-space(//./inv:inThu) = ''true''">
                                                        IN THỬ
													</xsl:when><xsl:when test="normalize-space(//./inv:inThu) = ''false''">
                                         
													</xsl:when></xsl:choose> 
											</div></td></tr></table><div class="row line" /><div class="row "><div class="padd5"><div class="col20" style="">
                                            Đơn vị bán hàng<i> (Seller''s name)</i>: <span class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></span></div><div class="col20" style="">
                                            Mã số thuế <i> (Tax code)</i>: <span style="font-weight:700;letter-spacing: 4px;font-size:16px"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div><div class="col20" style="">
                                            Địa chỉ <i> (Address)</i>: <span style=""><xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></span></div><div class="row "><div class="col10" style="">
                                                Số điện thoại <i> (Tel)</i>:  <xsl:if test="normalize-space(inv:invoiceData/inv:sellerPhoneNumber) !=''x''"><xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></xsl:if></div><div class="col10" style="">
                                                Fax: <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div></div><div class="" style="">
                                            Số tài khoản<i> (Bank A/C)</i>: <xsl:value-of select="inv:invoiceData/inv:sellerBankAccount" /><xsl:if test="normalize-space(inv:invoiceData/inv:sellerBankName) !=''''">
                                                tại <i>(at) </i><xsl:value-of select="inv:invoiceData/inv:sellerBankName" /></xsl:if></div></div></div><!--<hr class="hrblack"></hr>--><div class="row line" /><div class="row"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:adjustmentType) = ''3''"><div class="col20" style="padding-bottom:5px"><b>Thay thế cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="normalize-space(inv:invoiceData/inv:adjustmentType) = ''5'' and normalize-space(inv:invoiceData/inv:originalInvoiceId)"><div class="col20" style="padding-bottom:5px"><b>Điều chỉnh cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="normalize-space(inv:invoiceData/inv:adjustmentType) = ''7'' and normalize-space(inv:invoiceData/inv:originalInvoiceId)"><div class="col20" style="padding-bottom:5px"><b>Xóa bỏ cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when></xsl:choose></div><div class="row"><div class="padd5" style=""><div>
                                            Họ tên người mua hàng<i> (Buyer''s name)</i>: <b><xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></b></div><div>
                                            Tên đơn vị<i> (Company name)</i>: <b><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /></b><br /></div><div style="height:46px">
                                            Địa chỉ<i> (Address)</i>: <b><xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /></b></div><div>
                                            Số tài khoản <i>(Bank A/C)</i>: <b><xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></b><xsl:if test="normalize-space(inv:invoiceData/inv:buyerBankName) !=''''">
                                                tại <b><xsl:value-of select="inv:invoiceData/inv:buyerBankName" /></b></xsl:if></div><div class="col10">
                                            Hình thức thanh toán<i> (Payment method)</i>:
											<xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><b><xsl:value-of select="inv:paymentMethodName" /></b></xsl:for-each></div><div class="">
                                            Mã số thuế <i>(Tax code)</i>: <span style="font-weight:700;letter-spacing: 4px;font-size:16px"><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></span></div></div></div><!--</div>--><table class="table table-bordered table-condensed"><tbody><tr class="thead" style=""><th style="border-left:0px;width:25px">
                                                STT<div class="nom"><i>(No.)</i></div></th><th style="width: 300px;">
                                                Tên hàng hóa, dịch vụ <div class="nom"><i>(Description)</i></div></th><th style="width: 65px;">
                                                Đơn vị tính<div class="nom"><i>(Unit)</i></div></th><th style="width: 65px;">
                                                Số lượng <div class="nom"><i>(Quantity)</i></div></th><th style="width: 90px;">
                                                Đơn giá <div class="nom"><i>(Unit price)</i></div></th><th style="width: 110px;">
                                                Thành tiền<div class="nom"><i>(Amount)</i></div></th></tr><tr><td class="boderBot text-center lineh17">1</td><td class="boderBot text-center lineh17">2</td><td class="boderBot text-center lineh17">3</td><td class="boderBot text-center lineh17">4</td><td class="boderBot text-center lineh17">5</td><td class="boderBot text-center lineh17">6 = 4 x 5</td></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><xsl:choose><xsl:when test="normalize-space(inv:lineNumber) =''''"><td class="text-center">
                             
														</td></xsl:when><xsl:when test="normalize-space(inv:lineNumber) !=''''"><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td></xsl:when></xsl:choose><!--<td>
                                                  <xsl:value-of select="inv:itemCode"/>
                                                </td>--><td><xsl:choose><xsl:when test="normalize-space(//inv:invoiceData/inv:adjustmentType) = ''5'' or normalize-space(//inv:invoiceData/inv:adjustmentType) = ''9''"><xsl:choose><xsl:when test="normalize-space(inv:isIncreaseItem) = '''' or (inv:isIncreaseItem) = ''true''">
                                                                    Điều chỉnh tăng: 
																</xsl:when><xsl:otherwise>
                                                                    Điều chỉnh giảm: 
																</xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="normalize-space(inv:vatPercentage) = ''-1'' "><!-- (không chịu thuế)--></xsl:when><xsl:when test="normalize-space(inv:vatPercentage) = ''-2'' "><!-- (không kê khai nộp thuế)--></xsl:when></xsl:choose></td><td class="text-center"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="normalize-space(inv:quantity) != ''''"><xsl:value-of select="format-number(inv:quantity,''##.##0,#####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="normalize-space(inv:unitPrice) != ''''"><xsl:choose><xsl:when test="normalize-space($nguyente) =''VND''"><xsl:value-of select="format-number(inv:unitPrice,''##.##0,#####'',''number'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(inv:unitPrice,''##,##0.00'')" /></xsl:otherwise></xsl:choose></xsl:if></td><td class="text-right"><xsl:if test="normalize-space(inv:itemTotalAmountWithoutVat) != ''''"><xsl:choose><xsl:when test="normalize-space($nguyente) =''VND''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,#####'',''number'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##,##0.00'')" /></xsl:otherwise></xsl:choose></xsl:if></td></tr></xsl:for-each><xsl:variable name="lenght" select="51" /><xsl:variable name="kct" select="0" /><xsl:variable name="kkknt" select="0" /><xsl:variable name="tpkhac"><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><tpkhac><xsl:choose><xsl:when test="normalize-space(inv:vatPercentage) =''-1''"><xsl:variable name="ktthua" select="(string-length(inv:itemName) + $kct) mod $lenght" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua + $kct) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:when><xsl:when test="normalize-space(inv:vatPercentage) =''-2''"><xsl:variable name="ktthua" select="(string-length(inv:itemName) + $kkknt) mod $lenght" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua + $kkknt) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:when><xsl:otherwise><xsl:variable name="ktthua" select="(string-length(inv:itemName) mod $lenght)" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:otherwise></xsl:choose></tpkhac></xsl:for-each></xsl:variable><xsl:variable name="lenghtNote"><xsl:if test="normalize-space(inv:invoiceData/inv:invoiceNote)"><Note><xsl:variable name="ktthua1" select="(string-length(inv:invoiceData/inv:invoiceNote) mod $lenght)" /><xsl:variable name="ktcan1" select="$lenght - $ktthua1" /><xsl:value-of select="((string-length(inv:invoiceData/inv:invoiceNote) - $ktthua1) div $lenght) + (($ktthua1 + $ktcan1) div $lenght)" /></Note></xsl:if></xsl:variable><xsl:variable name="chietkhau"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:discountAmount) and normalize-space(inv:invoiceData/inv:discountAmount) != 0">
                                                    1
												</xsl:when><xsl:otherwise>
                                                    0
												</xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="tygia"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:exchangeRate) and normalize-space(inv:invoiceData/inv:exchangeRate) !=''1''">
                                                    1
												</xsl:when><xsl:otherwise>
                                                    0
												</xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="dong" select="sum(exsl:node-set($tpkhac)/tpkhac)" /><xsl:variable name="dongNote" select="sum(exsl:node-set($lenghtNote)/Note)" /><xsl:variable name="du" select="10" /><xsl:if test="normalize-space(inv:invoiceData/inv:exchangeRate) and normalize-space(inv:invoiceData/inv:exchangeRate) !=''1''"><tr><td /><td>Tỷ giá <i>(Exchange rate)</i>: <xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##.##0,#####'',''number'')" /> VND/<xsl:value-of select="$nguyente" /></td><td /><td /><td /><td class="text-right"></td></tr></xsl:if><xsl:if test="normalize-space(inv:invoiceData/inv:discountAmount) and normalize-space(inv:invoiceData/inv:discountAmount) != 0"><tr><td class="text-center"></td><td nowrap="">Chiết khấu <i>(Discount amount)</i></td><td></td><td></td><td></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:if test="normalize-space(inv:invoiceData/inv:invoiceNote)"><tr><td class="text-center"></td><td><xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></td><td></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"></td></tr></xsl:if><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$du - $dong - $dongNote - $tygia - $chietkhau" /></xsl:call-template><xsl:if test="normalize-space($loaiHoaDon)=''01''"><tr><td colspan="6" class="boderTop text-right" style=""><div class="row"><div class="col8">
                                         
														</div><div class="col7 text-left"><xsl:choose><xsl:when test="(normalize-space(inv:invoiceData/inv:adjustmentType) = ''5'' or normalize-space(inv:invoiceData/inv:adjustmentType) = ''9'') and normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''0''"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:isTotalAmountPos) = '''' or normalize-space(inv:invoiceData/inv:isTotalAmountPos) = ''true''">
                                                                            Điều chỉnh tăng: 
																		</xsl:when><xsl:otherwise>
                                                                            Điều chỉnh giảm: 
																		</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                    Cộng tiền hàng <i>(Total)</i>:
																</xsl:otherwise></xsl:choose></div><div class="col5 text-right"><xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithoutVAT) != ''''"><xsl:choose><xsl:when test="normalize-space($nguyente) =''VND''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##.##0,#####'',''number'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##,##0.00'')" /></xsl:otherwise></xsl:choose></xsl:if></div></div></td></tr></xsl:if><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) = ''true''"><xsl:if test="normalize-space($loaiHoaDon) =''01''"><tr><td class="boderTop" colspan="6" style="border-bottom:0"><div class="row"><div class="col8">
                                                                    Thuế suất GTGT <i>(VAT rate)</i>:


                                       %
																</div><div class="col7 text-left">
                                                                    Tiền thuế GTGT <i>(VAT amount)</i>:
																</div><div class="col5 text-right">
                                         
																</div></div></td></tr></xsl:if></xsl:when><xsl:otherwise><xsl:if test="normalize-space($loaiHoaDon) =''01''"><xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown"><tr><td class="boderTop" colspan="6" style="border-left:;border-bottom:0"><div class="row"><div class="col8">
                                                                        Thuế suất GTGT <i>(VAT rate)</i>:
																		<xsl:choose><xsl:when test="normalize-space(inv:vatPercentage) = ''-1''">
                                                                                không chịu thuế
																			</xsl:when><xsl:when test="normalize-space(inv:vatPercentage) = ''-2''">
                                                                                không kê khai nộp thuế
																			</xsl:when><xsl:otherwise><span class="percentage"><xsl:value-of select="inv:vatPercentage" /> %
																				</span></xsl:otherwise></xsl:choose></div><div class="col7 text-left"><xsl:choose><xsl:when test="(normalize-space(//inv:adjustmentType) = ''5'' or normalize-space(//inv:adjustmentType) = ''9'') and normalize-space(//inv:totalVATAmount) != ''0''"><xsl:choose><xsl:when test="normalize-space(inv:isVatTaxAmountPos) and normalize-space(inv:isVatTaxAmountPos) = ''true''">
                                                                                        Điều chỉnh tăng:
																					</xsl:when><xsl:otherwise>
                                                                                         Điều chỉnh giảm: 
																					</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                                Tiền thuế GTGT <i>(VAT amount)</i>:
																				<!--<i>(VAT payable)</i>--></xsl:otherwise></xsl:choose></div><div class="col5 text-right"><xsl:choose><xsl:when test="normalize-space(inv:vatPercentage) = ''-1''">
                                                                                																			</xsl:when><xsl:when test="normalize-space(inv:vatPercentage) = ''0''">
                                                                                0
																			</xsl:when><xsl:otherwise><xsl:if test="normalize-space(inv:vatTaxAmount) != ''''"><xsl:choose><xsl:when test="normalize-space($nguyente) =''VND''"><xsl:value-of select="format-number(inv:vatTaxAmount,''##.##0,#####'',''number'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(inv:vatTaxAmount,''##,##0.00'')" /></xsl:otherwise></xsl:choose></xsl:if></xsl:otherwise></xsl:choose></div></div></td></tr></xsl:for-each></xsl:if></xsl:otherwise></xsl:choose><tr><td colspan="6" class="text-right boderTop" style="border-left:"><div class="row"><xsl:choose><xsl:when test="normalize-space($loaiHoaDon)=''02'' or normalize-space($loaiHoaDon) =''07''"><div class="col16 text-left"><xsl:choose><xsl:when test="(normalize-space(inv:invoiceData/inv:adjustmentType) = ''5'' or normalize-space(inv:invoiceData/inv:adjustmentType) = ''9'') and normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''0''"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:isTotalAmountPos) or normalize-space(inv:invoiceData/inv:isTotalAmountPos) = ''true''">
                                                                                Điều chỉnh tăng: 
																			</xsl:when><xsl:otherwise>
                                                                                Điều chỉnh giảm: 
																			</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                        Cộng tiền hàng hóa, dịch vụ <i>(Total)</i>: 
																	</xsl:otherwise></xsl:choose></div></xsl:when><xsl:otherwise><div class="col8 text-right"> </div><div class="col7 text-left"><xsl:choose><xsl:when test="(normalize-space(inv:invoiceData/inv:adjustmentType) = ''5'' or normalize-space(inv:invoiceData/inv:adjustmentType) = ''9'') and normalize-space(inv:invoiceData/inv:totalAmountWithVAT) != ''0''"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:isTotalAmountPos) = '''' or normalize-space(inv:invoiceData/inv:isTotalAmountPos) = ''true''">
                                                                                Điều chỉnh tăng: 
																			</xsl:when><xsl:otherwise>
                                                                                Điều chỉnh giảm: 
																			</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                        Tổng cộng tiền thanh toán <i>(Grand total)</i>: 
																	</xsl:otherwise></xsl:choose></div></xsl:otherwise></xsl:choose><div class="col5 text-right"><xsl:if test="normalize-space(inv:invoiceData/inv:totalAmountWithVAT)"><xsl:choose><xsl:when test="normalize-space($nguyente) =''VND''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##.##0,#####'',''number'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##,##0.00'')" /></xsl:otherwise></xsl:choose></xsl:if></div></div></td></tr><tr><!--*/gghhjjuuu--><td colspan="6" class="boderTop text-left" style="border-left:0px"><div class="row" style="height:48px">
                                                    Số tiền viết bằng chữ <i>(Amount in words)</i>: <xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /></div></td></tr></tbody></table><div class="footer"><div class="text-left textcd" style=""><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><div class="row" style=""><div class="col7" style=""><p class="text-center"><b>Người thực hiện chuyển đổi
																<br /><i>(Converter)</i></b><br /><i>(Ký, ghi rõ họ tên)</i><br /><i>(Sign &amp; full name)</i></p></div><div class="col6"><p class="text-center"><b>Người mua hàng 
																<i>(Buyer)</i></b><br /><i>(Ký, ghi rõ họ tên)</i><br /><i>(Sign &amp; full name)</i></p></div><div class="col7" style=""><p class="text-center"><b>Người bán hàng 
																<i>(Seller)</i></b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i><br /><i>(Sign, stamp &amp; full name)</i></p></div></div></xsl:when><xsl:otherwise><div class="row"><div class="col10"><p class="text-center"><b>Người mua hàng 
																<i>(Buyer)</i></b><br /><i>(Ký, ghi rõ họ tên)</i><br /><i>(Sign &amp; full name)</i></p></div><div class="col10" style=""><p class="text-center"><b>Người bán hàng 
																<i>(Seller)</i></b><br /><i>(Ký, đóng dấu, ghi rõ họ tên)</i><br /><i>(Sign, stamp &amp; full name)</i></p></div></div></xsl:otherwise></xsl:choose></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><td style="vertical-align:bottom;"><div class="row text-center" style="font-size:13px;"><div class="col7"><xsl:value-of select="inv:viewData/inv:userPrint" /> 
																	<div class="">
                                                                        Ngày chuyển đổi: <xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:DateExchange) != ''''"><xsl:value-of select="concat(substring($dateconvert, 9, 2),''/'', substring($dateconvert, 6, 2),''/'', substring($dateconvert, 1, 4))" /></xsl:when><xsl:otherwise>
                                                                                    /    /20
																			</xsl:otherwise></xsl:choose></div></div></div></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"><div class="col10"><br /></div><div class="col10 text-center" style=""><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) =''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                Signature Valid <br />
                                                                                Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký  
                                                                                ngày:         /         /   
																			</div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                        Signature Valid <br />
                                                                                        Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký  
																						<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></td></xsl:otherwise></xsl:choose></tr></table></div></div><div class="row text-center" style="line-height:17px"><div class="text-center row" style=""><i>
                                            (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
										</i></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></div></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="text()" name="split"><xsl:param name="pText" select="inv:itemName" /><xsl:if test="normalize-space(string-length($pText))"><xsl:if test="normalize-space(($pText =.))"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="normalize-space($how-many) &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
				</td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 1, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'Phieu xuat kho', CAST(3 AS Numeric(18, 0)), N'Phieu xuat kho', N'07NTKT', N'05', N'', NULL, N'', NULL, N'PXK03_NT.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="1.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" /><title>PXKKVCNB</title><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><style type="text/css" media="all">

                        .line{border-top:1px solid #000;margin:3px 0 !important;line-height:3px !important}
                        canvas{display:inline-block}html{font-size:100%}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                        p{orphans:0;widows:3}
                        body{margin:0;font-family:Times New Roman;}.text-left{text-align:left !important}
                        .text-right{text-align:right !important}.text-center{text-align:center !important}
                        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                        i{font-size:13px}
                        p{margin:5px 0}
                        .container {
                        width: 731px;
								<!--height: 980px;-->
                        font-size: 14px;
                        line-height: 21px;
                        font-family: Times New Roman;
                        padding: 0px;
                        border-radius: 0px;
                        margin: 0 auto;
                        /*border: 0px solid #000;*/
                        position: relative;
                        display: table;
                        border:0px solid #000;
						margin-top:35px
                        }

                        .invName{text-align:center;font-size:19px;line-height:25px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
                        .row {
                        width: 100%;
                        margin: 0;
                        padding: 0;
                        clear: both;
                        display: table;
						font-family:Utm banque;
                        }

                        .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                        display: block;
                        float: left;
                        padding: 0;
                        margin: 0;

                        }
                        .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                        .row .col1 {
                        width: 5%;
                        }                    .row .col2 {
                        width: 10%;
                        }                    .col3 {
                        width: 15%;
                        }                    .col4 {
                        width: 20%;
                        }                    .col5 {
                        width: 25%;
                        }                    .col6 {
                        width: 28%;
                        }                    .col7 {
                        width: 35%;
                        }                    .col8 {
                        width: 40%;
                        }                    .col9 {
                        width: 45%;
                        }                    .col10 {
                        width: 50%;
                        }                    .col11 {
                        width: 55%;
                        }                    .col12 {
                        width: 60%;
                        }                    .col13 {
                        width: 65%;
                        }                    .col14 {
                        width: 70%;
                        }                    .col15 {
                        width: 75%;
                        }                    .col16 {
                        width: 78%;
                        }                    .col17 {
                        width: 85%;
                        }                    .col18 {
                        width: 90%;
                        }                    .col19 {
                        width: 95%;
                        }                    .col20 {
                        width: 100%;
                        }        
								<!--Css add them ko danh cho multi page-->
                        .table {border-spacing:0;width:100%;margin: auto;margin-top:;border-top:1px solid #000;border-bottom:1px solid #000;font-size:14px}
                        .table th{padding:2px;text-align:center;}
                        .table th{line-height:20px}
                        .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
								<!-- .table th:last-child{border-right:1px solid #000} -->
                        .table tbody tr th:last-child{border-right:0px solid #000}
                        .table tbody tr th:first-child{border-left:1px solid #000}

                        .table td{padding:2px;text-align:left;vertical-align:top;border-left:1px solid #000}
                        .table td{border-top:1px solid #DDD}
                        .table td{line-height:17px}
                        .table tbody tr td:last-child{border-right:0px solid #000}
                        .table tbody tr td:first-child{border-left:0px solid #000}



                        .table-all-border {border-spacing:0;width:100%}
                        .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                        .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                        .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                       .abcdef{
        border: 3px #b72800000;
        font-weight: bold;
        <!--padding: 30px 70px;-->
        font-size: 40px;
        position: absolute;
<!--        opacity: 0.09;
        filter: alpha(opacity=100);-->
        top: 390px;
left: 185px;
width: 390px;
        background: none;
        z-index: -1;
        }

                        .boderLeft
                        {
                        border-left:1px solid #000 !important;
                        }
                        .boderRight
                        {
                        border-right:1px solid #000 !important;
                        }
                        .boderBot
                        {
                        border-bottom:1px solid #000 !important;
                        }
                        .boderAll
                        {
                        border:1px solid #000 !important;
                        }
                        .next-page { page-break-inside:always;  page-break-after:always}

                        .TitleHD {
                        text-transform: uppercase;
                        font-size: 18px;
                        font-weight: 900;
                        font-family:Utm banque;
						margin-top: 2px;
                        }
                        .nom{
                        font-weight: normal !important;
                        }
                        .boderTop{
                        border-top: 1px solid #000 !important;
                        }
                        .boderBot{
                        border-bot: 1px solid #000 !important;
                        }
                        .textThaiSon{
                      position: absolute;
    top: 130px;
    display: block;
    right: -17px;
    font-style: italic;
    font-size: 11px;
    width: 15px;

}
                        .phathanh{
                        position:absolute;
                        opacity:0.8;
                        filter:alpha(opacity=100);
                        top:297px;
                        left:180px;
                        width:300px;
                        height:auto;
                        z-index:1;
                        background: none;
                        }
                        .logo {

    width: 230px;
    height: 50px;

    padding-bottom: ;

}
						.logo1{width: 12px;padding-top:5px}
						.tableheader{height:97px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td2{line-height:21px;width:50%}
                            .tableheader .td3{line-height:26px;width:27%;vertical-align:middle}
                            .tablehead1{margin-top:10px;width:100%;font-size: 14px;color:#000; height:80px}
                            .tablehead1 .td1{max-width:20%;line-height:1px;min-width:20%;}
                            .tablehead1 .td2 {width:100%; padding-left:20px; }
						.tbks{width:100%;}
                            .tbks td{height:350px}
                            .textcd{height:30px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1;
							font-size: 11px; max-width: 380px; text-align: left;line-height: 14px} 
                      .maginHeader{display: table;  width: 100%;margin: 0;padding-top:0px;clear: both; height:0px;color:#fff;border-top:1px solid #000;margin-bottom: 0px}
                      .maginHeaderTop{display: table;  width: 100%;margin: 0;padding-top:0px;clear: both; height:0px;color:#fff;border-top:0px solid #000;margin-bottom: 35px}
                      .maginHeaderMin{display: table;  width: 100%;margin: 0;padding-top:10px;clear: both; height:10px;color:#fff;}
                      .border2{ border-left:1px solid #000; border-right:1px solid #000;padding:0px;margin-right:0px;display:table;width:100%;}
                      .wallperBg{
                      position: relative;
                      }
                      .boderNew{border-width:1px 0px 0 0px;border-style:solid}
					  .boderNew1{border-width:0px 0px 1px 0px;border-style:solid}
					   .img {
                            border-radius: 4px;
                            padding: 0px;
                            max-width: 250px;
                            image-rendering: optimizequality;
                            }
						.fixTable{ color:#000;margin:auto;
                        width:100%;font-size:14px;background-color:transparent;border-collapse:collapse;border-spacing:0;
						border-style: solid;border-width: 0px 0px 1px 0px;;border-color:#000;
                        -moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px
                        }
                        .fixTable td{padding:2px;line-height:21px;}
                        .breackPage {
                        page-break-after: always;
                        }

							</style><script><xsl:text disable-output-escaping="yes"><![CDATA[
							function loadData() {
							var mainElement = document.getElementById("main");
							//Khai bao max height của mỗi page tùy thuộc vào khổ in px
							//nếu in A4
							// cần sửa in html giá trị là 1045, in pdf giá trị là 1070, in html sửa margin-top của class maginHeaderTop về 0
							var heightA4 = 1045; 

							//get string html cần thiết

							var headerHtmlString = document.getElementById("headerFix").innerHTML;
							var bgString = document.getElementById("hinhNen").innerHTML;
							var headerTableHtmlString = (document.getElementById("tableHiden").getElementsByTagName("thead"))[0].innerHTML;
							var tieuDe = document.getElementById("tieude").innerHTML;

							var indexRow = 0; //biến duyệt qua các dòng trong bảng hàng hóa
							var countPage = 1;// biến đếm số trang khi breack ra
							var maxHeightTable = 0;

							var listRow = document.getElementById("tableHiden").getElementsByTagName("tbody")[0].getElementsByTagName("tr");
							
							//add fix header vào mỗi trang
							var tempHeader = document.createElement("div");
							tempHeader.className="border2";
							tempHeader.innerHTML = headerHtmlString;
							mainElement.appendChild(tempHeader);
							
							//đánh số trang
							var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
							var displayPageElement = document.createElement("div");
							displayPageElement.innerHTML = displayPageString;
							displayPageElement.className = "border2";
							displayPageElement.setAttribute("id", ("soPage" + countPage));
							//mainElement.appendChild(displayPageElement);
							
							var tieude = document.createElement("div");
							tieude.setAttribute("id", ("tieude" + countPage));
							tieude.className="row";
							tieude.innerHTML=tieuDe;
							
							do {
								//get max heigh cho moi table
								if (countPage != 1) {
									var hHeader = tieude.offsetHeight + displayPageElement.offsetHeight;
									maxHeightTable = heightA4 - hHeader;
								}
								else
								{
									var hHeader = tempHeader.offsetHeight + displayPageElement.offsetHeight;
									maxHeightTable = heightA4 - hHeader;
								}
								//alert (maxHeightTable);

								//add table
								var tempTable = document.createElement("table");
								tempTable.setAttribute("id", ("table" + countPage));
								tempTable.className = "table table-bordered";

								//add tiêu đề bảng hàng hóa
								var theadTemp = document.createElement("thead");
								theadTemp.innerHTML = headerTableHtmlString;
								tempTable.appendChild(theadTemp);

								var tbodyTemp = document.createElement("tbody");
								tempTable.appendChild(tbodyTemp);

								var tempDiv = document.createElement("div");
								tempDiv.className="border2";
								tempDiv.appendChild(tempTable);
								mainElement.appendChild(tempDiv);

								//Hiển thị thông tin số trang (trang 1/ tong so..)
								if( countPage == 1)
									var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
								else
									var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
								var displayPageElement = document.createElement("div");
								displayPageElement.innerHTML = displayPageString;
								displayPageElement.className = "";
								displayPageElement.setAttribute("id", ("soPage" + countPage));
								
								for (var i = indexRow; i < listRow.length; i++) {
									var tr = document.createElement("tr");
									tr.setAttribute("id", ("tr_so" + indexRow));
									tr.innerHTML = listRow[i].innerHTML;
									tbodyTemp.appendChild(tr);
									var heightTable = tempTable.offsetHeight;
									if(countPage == 1)
									{
										if (heightTable >= maxHeightTable - 21) 
										{
											var elem = document.getElementById("tr_so" + indexRow);
											elem.parentElement.removeChild(elem);
											
											var divMagin = document.createElement("div");
											divMagin.className = "maginHeader";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);
											mainElement.appendChild(displayPageElement);
											
											var divBreack = document.createElement("div");
											divBreack.className = "breackPage";
											mainElement.appendChild(divBreack);
											
											var divMagin = document.createElement("div");
											divMagin.className = "maginHeaderTop";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);

											var bgElement = document.createElement("div");
											bgElement.className = "wallperBg";
											bgElement.innerHTML = bgString;
											mainElement.appendChild(bgElement);

											//add mau so vao dau moi trang 
											var tieude = document.createElement("div");
											tieude.setAttribute("id", ("tieude" + countPage));
											tieude.className="row";
											tieude.innerHTML=tieuDe;
											mainElement.appendChild(tieude);

											break;
										}
									}
									else
									{
										if (heightTable >= maxHeightTable) 
										{
											var elem = document.getElementById("tr_so" + indexRow);
											elem.parentElement.removeChild(elem);

											var divMagin = document.createElement("div");
											divMagin.className = "maginHeader";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);
											mainElement.appendChild(displayPageElement);

											var divBreack = document.createElement("div");
											divBreack.className = "breackPage";
											mainElement.appendChild(divBreack);

											var divMagin = document.createElement("div");
											divMagin.className = "maginHeaderTop";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);

											var bgElement = document.createElement("div");
											bgElement.className = "wallperBg";
											bgElement.innerHTML = bgString;
											mainElement.appendChild(bgElement);

											//add mau so vao dau moi trang 
											var tieude = document.createElement("div");
											tieude.setAttribute("id", ("tieude" + countPage));
											tieude.className="row";
											tieude.innerHTML=tieuDe;
											mainElement.appendChild(tieude);
											break;
										}
									}
									if (indexRow === listRow.length) {
									console.log("het tr ");
									break;
									}
									indexRow++;
								}
								var heightTablenew = heightTable;
								countPage++;
								var demtrang = countPage-1;
								//alert (heightTablenew);
								console.log(''===='' + indexRow);
							}
							while (indexRow < listRow.length);
							//add fix footer
							var elmentFoote = document.getElementById("footerFix");
							mainElement.appendChild(elmentFoote);
							mainElement.appendChild(displayPageElement);
							heightFooter = elmentFoote.clientHeight;
							var break1;
							break1 = 0;
							//tinh toan xem them footer vao thi co bi sang trang nua ko
							if ((maxHeightTable - heightTable)  < heightFooter) 
							{
								break1 = 1 ;
								//alert(heightTable +"awe");
								var divMagin = document.createElement("div");
								divMagin.className = "maginHeader";
								divMagin.innerHTML="";
								elmentFoote.parentNode.insertBefore(divMagin, elmentFoote);
								elmentFoote.parentNode.insertBefore(displayPageElement, elmentFoote);

								//add break trang
								var divBreack = document.createElement("div");
								divBreack.className = "breackPage";
								elmentFoote.parentNode.insertBefore(divBreack, elmentFoote);
								
								//add margintop
								var divMaginTop = document.createElement("div");
								divMaginTop.className = "maginHeaderTop";
								divMaginTop.innerHTML="";
								elmentFoote.parentNode.insertBefore(divMaginTop, elmentFoote);

								//add hình nền + rightnote
								var bgElement = document.createElement("div");
								bgElement.className = "wallperBg";
								bgElement.innerHTML = bgString;
								elmentFoote.parentNode.insertBefore(bgElement, elmentFoote);

								//add mau so vao dau moi trang 
								var tieude = document.createElement("div");
								tieude.setAttribute("id", ("tieude" + countPage));
								tieude.className="row";
								tieude.innerHTML=tieuDe;
								elmentFoote.parentNode.insertBefore(tieude, elmentFoote);
								
								//Hiển thị thông tin số trang (trang 1/ tong so..)
								var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
								var displayPageElement = document.createElement("div");
								displayPageElement.innerHTML = displayPageString;
								displayPageElement.className = "";
								displayPageElement.setAttribute("id", ("soPage" + countPage));
								mainElement.appendChild(displayPageElement);
								
								countPage++;
							}
							
							countPage--;
							var listMaxPage = document.getElementsByClassName("maxPage");
							for (var y = 0; y < listMaxPage.length; y++) 
							{
								listMaxPage[y].innerHTML = countPage;
							}
							//alert (heightDongH);
							for (var z = 1; z <= countPage; z++)
							{
								var tableTemp = document.getElementById("table" + z);
								var heightTable = tempTable.offsetHeight;  // độ dài bảng hàng hóa
								var heightHeader = tempHeader.offsetHeight; // độ dài thông tin bên bán và bên mua
								var marginTop = heightA4;
								// cần sửa, lấy theo giá trị của 1 row hàng hóa
								var heightDongH = 21;
								var heightSoTrang = displayPageElement.offsetHeight + tieude.offsetHeight;// độ dài số trang
								var soDong = 0;
								//alert( heightTable );
								// cần sửa, lấy theo số cột trên bảng hàng hóa
								var soTD = "<td style=''line-height:17px''>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>";
								if (countPage == 1 )
								{
									heightDu = heightA4 - heightFooter - heightTable - heightHeader - heightSoTrang;
									soDong = Math.floor(heightDu / heightDongH) ;
									 
									if (soDong > 0)
									{
										var trEnd = document.getElementById("tr_so" + (indexRow - 1));
										for (var z = 0; z < soDong; z++) {
										var trT = document.createElement("tr");
										trT.innerHTML = soTD;
										tbodyTemp.appendChild(trT);
										}
									}
								}
								else
								{
									if (z == 1)
									{
										if( countPage >1)
										{
											if ( break1 !=1)
											{
												var heightTable = tempTable.offsetHeight;
												var heightHeader = tempHeader.offsetHeight;
												//heightFooter
												heightDu = heightA4 - heightFooter - heightTable - heightHeader - heightSoTrang;
												soDong = Math.floor(heightDu / heightDongH) ;
												 
											}
											else
											{
												heightDu = heightA4  - heightHeader - heightTable - heightSoTrang;
												soDong = Math.floor(heightDu / heightDongH) ;
												 
												//add table
												var tempTable = document.createElement("table");
												tempTable.setAttribute("id", ("table" + countPage));
												tempTable.className = "table table-bordered";
												
												var theadTemp = document.createElement("thead");
												theadTemp.innerHTML = headerTableHtmlString;
												tempTable.appendChild(theadTemp);

												var tbodyTemp = document.createElement("tbody");
												tempTable.appendChild(tbodyTemp);

												var tempDiv = document.createElement("div");
												tempDiv.className="border2";
												tempDiv.appendChild(tempTable);
												mainElement.appendChild(tempDiv);
												elmentFoote.parentNode.insertBefore(tempDiv, elmentFoote);

												heightDu = heightA4 - heightFooter - heightHeader - tempDiv.offsetHeight - heightSoTrang;
												soDong = Math.floor(heightDu / heightDongH) ;
												 
											}
										}
										else
										{
											heightDu = heightA4 - heightFooter - heightHeader - heightTable - heightSoTrang;
											soDong = Math.floor(heightDu / heightDongH) ;
											//alert (soDong );
											 
										}
									}
									else if (z == countPage)
									{
										if( break1 == 1)
										{
											heightDu = heightA4 - heightFooter - heightHeader - heightTable - heightSoTrang;
											soDong = Math.floor(heightDu / heightDongH) ;
											 
										}
										else
										{
											heightDu = heightA4 - heightTable - heightFooter - heightHeader  - heightSoTrang;
											soDong = Math.floor(heightDu / heightDongH) ;
											//alert (soDong );
											 
										}
									}
									else if(z < countPage && z >1)
									{
										heightDu = heightA4 - heightTable - heightHeader - heightSoTrang;
										soDong = Math.floor(heightDu / heightDongH) ;
										 
									}
								}
							}
							// hoangnx
							var elementPageEnd = document.getElementById("soPage" + countPage);
							mainElement.appendChild(elementPageEnd);
							// add padding cho số trang
							for (var z = 1; z <= countPage; z++)
							{
								var tableTemp = document.getElementById("table" + z);
								var heightTableNew = tableTemp.offsetHeight;
								var heightTable = tempTable.offsetHeight;
								var heightHeader = tempHeader.offsetHeight;
								var heightSoTrang = displayPageElement.offsetHeight + tieude.offsetHeight;// độ dài số trang
								var marginTop = heightA4;
								var heightAll;
								
								//alert( heightAll );
								if (typeof (tableTemp) != ''undefined'' && tableTemp != null) 
								{
									marginTop = marginTop - tableTemp.clientHeight;
								}
								if (countPage == 1 )
								{
									
									marginTop = heightA4 - (heightHeader + heightTableNew + heightFooter + heightSoTrang);
									if(marginTop>0)
									{
										var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
										//alert("a");
									}
								}
								else
								{
								
									if (z == 1)
									{
										if( countPage >1)
										{
											if( break1 == 1)
											{
												marginTop = heightA4 - (heightTableNew + heightHeader + heightSoTrang);
												
												if(marginTop>0)
												{
													var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
												}
											}
											else
											{
												marginTop = heightA4 - (heightTableNew + heightHeader + heightSoTrang);
												if(marginTop>0)
												{
													var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
												}
											}
										}
										else
										{
										
										}
									}
									else if (z == countPage)
									{heightHeader = 0;
										if( break1 == 1)
										{
											marginTop = heightA4 - heightFooter - heightHeader - heightTableNew - heightSoTrang;
											if(marginTop>0)
											{
												var pageEl = document.getElementById("textNote").setAttribute("style", "padding-top: " + marginTop+"px !important");
											}
										}
										else
										{
										
											marginTop = heightA4 - (heightFooter + heightTableNew + heightSoTrang);
											if(marginTop>0)
											{
												var pageEl = document.getElementById("textNote").setAttribute("style", "padding-top: " + marginTop+"px !important");
											}
											
										}
									}
									else if(z < countPage && z >1)
									{heightHeader = 0;
										marginTop = heightA4 - heightHeader - heightTableNew - heightSoTrang;
										if(marginTop>0)
										{
											var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
										}
									}
									else
									{
										marginTop = 0;
									}
								}
								//alert( marginTop );
							}
							document.getElementById(''main'').style.display = ''none'';
							document.getElementById(''main'').style.display = ''table'';
							}
							]]></xsl:text></script></head><body style="margin: 0; padding: 0" onload="loadData()"><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="phathanh" select="inv:invoiceData/inv:phatHanh" /><xsl:variable name="dateconvert" select="inv:viewData/inv:DateExchange" /><div id="main" class="container"><div id="hinhNen" class="wallperBg"><img class="textThaiSon" src=" data:image/png;base64, " /></div><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><!-- <img class="abcdef" src="data:image/gif;base64, " /> --><!--end main--></div><div style="display: none"><!--anh ne--><!--anh phat hanh--><!--phan tieu de tren co dinh--><div id="headerFix"><div class="boderNew"><div class="row" id="header"><table class="tableheader  "><tr><td class="" style="width:20%;">
									 
													</td><td class="text-center td2" style="width:55%;"><div class="invName"><!--<xsl:value-of select="inv:invoiceData/inv:invoiceName" />--><div style="font-size:19px;">PHIẾU XUẤT KHO <br /> KIÊM VẬN CHUYỂN NỘI BỘ</div><!-- <div class="invName"> --><!-- <i style="font-size:16px">(VAT INVOICE)</i> --><!-- </div> --></div><div style="padding-top:px;"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><i>(BẢN CHUYỂN ĐỔI PXKKVCNB ĐIỆN TỬ)</i></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose><div><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"><i> Ngày           tháng           năm </i></xsl:when><xsl:otherwise><i>Ngày  <xsl:value-of select="substring($issuedDate, 9, 2)" /> tháng  <xsl:value-of select="substring($issuedDate, 6, 2)" /> năm <xsl:value-of select="substring($issuedDate, 1, 4)" /></i></xsl:otherwise></xsl:choose></div></div><!-- <div class="text-center" style="font-size:14px">(VAT INVOICE)</div> --><div class="xoabo"><xsl:value-of select="inv:StatusDelete" /></div></td><td class="" style="padding-left:10px; width:25%;font-size:14px">
                                    Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
                                     Ký hiệu: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
                                    Số: <span style="color:red ;font-size:19px"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                0000000
																</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></span></td></tr></table><div class="row boderTop" id="header"><div class="row" style="margin-top:5px;margin-left:5px"><div class="row" style="line-height:18x"><div><span class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><!--<br/>T.A.O BANGKOK (VIET NAM) LIMITED LIABILITY COMPANY--></span></div><div>
                          Mã số thuế:  <span style="font-weight: bold;letter-spacing:3px"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div><div>
                          Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><!-- <div class="row"> --><!-- <div class="col10"> --><!-- Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div> --><!-- <div class="col10"> --><!-- Fax: <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div> --><!-- </div> --><!-- <div class="col20" style=""> --><!-- Số tài khoản: <xsl:value-of select="inv:invoiceData/inv:sellerBankAccount" /><xsl:if test="normalize-space(inv:invoiceData/inv:sellerBankName)!=''''"> tại <xsl:value-of select="inv:invoiceData/inv:sellerBankName" /></xsl:if></div> --></div></div><div class="brBlack row"></div></div><div class="boderTop" style=""><div style="padding-top: 7px"><div class="row" style="padding-left:6px"><div class="row"><div class="row"><div class="col12">Căn cứ lệnh điều động số:

																	 <xsl:value-of select="inv:invoiceData/LENH_DIEU_DONG_SO" /></div><div class="col8"><div class="" style="width:"><xsl:variable name="ngaydd" select="inv:invoiceData/LENH_DIEU_DONG_NGAY" /><xsl:choose><xsl:when test="//./inv:phatHanh=''true''">
                                                        Ngày           
                                                        tháng           
                                                        năm 
																			</xsl:when><xsl:otherwise>
                                                        Ngày <xsl:value-of select="substring($ngaydd, 9, 2)" />
                                                        tháng <xsl:value-of select="substring($ngaydd, 6, 2)" />
                                                        năm <xsl:value-of select="substring($ngaydd, 1, 4)" /></xsl:otherwise></xsl:choose></div></div></div><div class="row"><div class="col9">của : <xsl:value-of select="inv:invoiceData/LENH_DIEU_DONG_CUA" /></div><div class="col11">về việc : <xsl:value-of select="inv:invoiceData/LENH_DIEU_DONG_VE_VIEC" /></div></div><div class="row"><div class="col13">Họ tên người vận chuyển : <xsl:value-of select="inv:invoiceData/HO_TEN_NGUOI_VAN_CHUYEN" /></div><div class="col7">Hợp đồng số : <xsl:value-of select="inv:invoiceData/SO_HOP_DONG_VAN_CHUYEN" /></div></div><div class="row">
													Phương tiện vận chuyển : <xsl:value-of select="inv:invoiceData/MA_PHUONG_TIEN_VAN_CHUYEN" /></div><!-- <div class="">	 --><!-- Họ và tên người nhận: --><!-- <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /> --><!-- </div> --></div><!-- <div> --><!-- Phương tiện vận chuyển: <xsl:value-of select="inv:invoiceData/MA_PHUONG_TIEN_VAN_CHUYEN" /></div> --><!-- <div class="row"> --><!-- <div class=""> --><!-- Lý do xuất kho: --><!-- <xsl:value-of select="inv:invoiceData/inv:LY_DO_XUAT_KHO" /> --><!-- </div> --><!-- </div>											 --><div style="row"><div class="col">
															Xuất tại kho:


																<xsl:value-of select="inv:invoiceData/MA_KHO_XUAT" /></div></div><div class="row"><div class="">
															Nhập tại kho:

																<xsl:value-of select="inv:invoiceData/MA_KHO_NHAP" /></div></div></div></div></div></div></div></div><div style="display:none"><div id="tieude"><div class="row"><div class="col6 text-center">
                                          Mẫu số : <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b></div><div class="col5 text-center">
                                          Ký hiệu : <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b></div><div class="col4 text-center">
                                          Số : <b style=""><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                      0000000
														</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></b></div></div></div><table id="tableHiden"><thead class="text-center"><tr class="thead" style=""><th style="border-left:0px;width:35px" rowspan="2">
                                                STT<div class="nom"></div></th><th style="width: 250px;" rowspan="2">
											Tên, nhãn hiệu, quy cách,<br /> phẩm chất vật tư (sản phẩm, hàng hóa)<div class="nom"></div></th><th style="width: 150px;" rowspan="2">
                                                Mã số <div class="nom"></div></th><th style="width: 70px;" rowspan="2">
                                                Đơn vị tính<div class="nom"></div></th><th style="width: 90px;" colspan="2">
                                                Số lượng <div class="nom"></div></th></tr><tr><td class="boderLeft boderBot text-center" style="width:95px"><b>Thực xuất</b></td><td class=" boderBot text-center" style="width:102px"><b>Thực nhập</b></td></tr></thead><tbody><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><xsl:choose><xsl:when test="inv:lineNumber =''''"><td class="text-center">
                                                             
															</td></xsl:when><xsl:when test="inv:lineNumber !=''''"><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td></xsl:when></xsl:choose><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                                                                    Điều chỉnh tăng: 
																	</xsl:when><xsl:otherwise>
                                                                    Điều chỉnh giảm: 
																	</xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' "><!-- (không chịu thuế)--></xsl:when><xsl:when test="inv:vatPercentage = ''-2'' "><!-- (không kê khai nộp thuế)--></xsl:when></xsl:choose></td><td class="text-center"><xsl:value-of select="inv:itemCode" /></td><td class="text-center"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="normalize-space(inv:quantity)!=''0'' and normalize-space(inv:quantity)!='''' and normalize-space(inv:quantity)!=''NaN''"><xsl:value-of select="format-number(inv:quantity,''##.##0,#####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="normalize-space(inv:quantityIn)!=''0'' and normalize-space(inv:quantityIn)!='''' and normalize-space(inv:quantityIn)!=''NaN''"><xsl:value-of select="format-number(inv:quantityIn,''##.##0,#####'',''number'')" /></xsl:if></td><!-- <td class="text-right"> --><!-- <xsl:if test="normalize-space(inv:unitPrice)!='''' and normalize-space(inv:unitPrice)!=''NaN''"> --><!-- <xsl:value-of select="format-number(inv:unitPrice,''##.##0,#####'',''number'')" /> --><!-- </xsl:if> --><!-- </td> --><!-- <td class="text-right"> --><!-- <xsl:if test="inv:itemTotalAmountWithoutVat != ''''"> --><!-- <xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,#####'',''number'')" /> --><!-- </xsl:if> --><!-- </td> --></tr></xsl:for-each><xsl:if test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''"><tr><td /><td>Tỷ giá: <xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##.##0,#####'',''number'')" /> VND/<xsl:value-of select="$nguyente" /></td><td /><td /><td /><td class="text-right"></td></tr></xsl:if><xsl:if test="normalize-space(inv:invoiceData/inv:discountAmount) and normalize-space(inv:invoiceData/inv:discountAmount) != 0"><tr><td class="text-center"></td><td nowrap="">Chiết khấu <i>(Discount amount)</i></td><td></td><td></td><td></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><tr><td class="text-center"></td><td><xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></td><td></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"></td></tr></xsl:if></tbody></table></div><div style="display:none"><div class="row border2" id="footerFix"><table class="fixTable" style="border-top:0"><tbody><tr><td colspan="4" class=" text-right"><div class="row"><div class="col20 text-center"><xsl:choose><xsl:when test="(//./inv:adjustmentType = ''5'' or //./inv:adjustmentType = ''9'') and //./inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="//./inv:isTotalAmountPos = '''' or //./inv:isTotalAmountPos = ''true''">
                                                                        Điều chỉnh tăng: 
																			</xsl:when><xsl:otherwise>
                                                                        Điều chỉnh giảm: 
																			</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><b> Tổng cộng :</b></xsl:otherwise></xsl:choose></div></div></td><td class=" text-left boderLeft" style="width:95px">
                                                         
													</td><td class=" boderLeft text-right" style="width:102px"><xsl:if test="normalize-space(//./inv:totalAmountWithVAT)!='''' and normalize-space(//./inv:totalAmountWithVAT)!=''NaN''"><b><xsl:value-of select="format-number(//./inv:totalAmountWithVAT,''##.##0,####'',''number'')" /></b></xsl:if> 
															</td></tr></tbody></table><div class="boderNew1"><div class=" text-left" style="border-left:0px"><!-- <div class="row"> --><!-- <div class="col10" style=""> --><!-- <xsl:choose> --><!-- <xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"> --><!-- &#160;&#160;&#160;&#160;&#160;Xuất, Ngày&#160;&#160;&#160;&#160;&#160;&#160;&#160;tháng &#160;&#160;&#160;&#160;&#160;&#160;&#160; năm&#160;&#160;&#160;&#160;&#160;&#160;&#160; --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- &#160;&#160;&#160;&#160;&#160;Xuất, Ngày&#160;<xsl:value-of select="substring($issuedDate, 9, 2)"/>&#160;tháng &#160;<xsl:value-of select="substring($issuedDate, 6, 2)"/>&#160;năm&#160;<xsl:value-of select="substring($issuedDate, 1, 4)"/> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div> --><!-- <div class="col10 text-right">  --><!-- <xsl:choose> --><!-- <xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"> --><!-- &#160;&#160;&#160;&#160;&#160;Nhập, Ngày&#160;&#160;&#160;&#160;&#160;&#160;&#160;tháng &#160;&#160;&#160;&#160;&#160;&#160;&#160;năm&#160;&#160;&#160;&#160;&#160;&#160;&#160; --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- &#160;&#160;&#160;&#160;&#160;Nhập, Ngày&#160;<xsl:value-of select="substring($issuedDate, 9, 2)"/>&#160;tháng &#160;<xsl:value-of select="substring($issuedDate, 6, 2)"/>&#160;năm&#160;<xsl:value-of select="substring($issuedDate, 1, 4)"/> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div> --><!-- </div> --><div class="text-center" style="height:85px;line-height:17px; padding-top: 5.5px"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row"><div class="col5"><p><b>Người thực hiện chuyển đổi
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Người lập 
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col3"><p><b>Thủ kho xuất
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col4"><p><b>Người vận chuyển
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col3"><p><b>Thủ kho nhập
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div></div></xsl:when><xsl:otherwise><div class="row"><div class="col5"><p><b>Người lập 
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Thủ kho xuất
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Người vận chuyển
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Thủ kho nhập
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div></div></xsl:otherwise></xsl:choose></div></div><div class="tbks" style=""><div><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><div style="vertical-align:middle;"><div class="row" style="padding-bottom:px"><div class="col12">
																 
																	</div><!-- <div class="col8 text-right"  style="width: "> --><!-- <xsl:choose> --><!-- <xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"> --><!-- <a href="#" style="text-decoration:none;"> --><!-- <div id="kysoban" class="kysoban"> --><!-- <img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on"/> --><!-- Signature Valid <br /> --><!-- Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /> --><!-- <br />Ký --><!-- ngày: &#160;  &#160;  &#160; / &#160;  &#160;  &#160; /    --><!-- </div> --><!-- </a> --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- <xsl:for-each select="hnx:Signature"> --><!-- <xsl:if test="@Id = ''seller''"> --><!-- <a href="#" style="text-decoration:none;"> --><!-- <div id="kysoban" class="kysoban" style=""> --><!-- <img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on"/> --><!-- Signature Valid <br /> --><!-- Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /> --><!-- <br />Ký --><!-- <xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))"/> --><!-- </div> --><!-- </a> --><!-- </xsl:if> --><!-- </xsl:for-each> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div>  --></div></div><div style="vertical-align:bottom;"><div class="row text-center" style="font-size:14px;"><div class="col9 text-center" style="padding-bottom:px"><xsl:value-of select="inv:viewData/inv:userPrint" /> 
																		<div class="">
                                                                        Ngày chuyển đổi: <xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:DateExchange) != ''''"><xsl:value-of select="concat(substring($dateconvert, 9, 2),''/'', substring($dateconvert, 6, 2),''/'', substring($dateconvert, 1, 4))" /></xsl:when><xsl:otherwise>
                                                                                    /    /20
																				</xsl:otherwise></xsl:choose></div></div><div class="col11 text-right" style=""><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                    Signature Valid <br />
                                                                                    Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký
                                                                                    ngày:         /         /   
																					</div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                            Signature Valid <br />
                                                                                            Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký
																								<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></div></xsl:when><xsl:otherwise><div style="vertical-align:middle;"><div class="row" style="padding-bottom:15px"><div class="col9">
																		 
																	</div><div class="col11 text-right" style=""><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                    Signature Valid <br />
                                                                                    Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký
                                                                                    ngày:         /         /   
																					</div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                            Signature Valid <br />
                                                                                            Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký
																								<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></div></xsl:otherwise></xsl:choose></div></div><div class="row"><div class="row text-center"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) =''true''">
                          Mã nhận hóa đơn:                     tra cứu tại:
                          </xsl:when><xsl:otherwise>
                          Mã nhận hóa đơn:
                          <b><xsl:value-of select="inv:invoiceData/inv:delivery/inv:containerNumber" /></b> tra cứu tại: 
                          <xsl:variable name="wtc" select="inv:invoiceData/inv:delivery/inv:UrlWebTraCuu" /><a href="{$wtc}"><xsl:value-of select="$wtc" /></a></xsl:otherwise></xsl:choose>            
										 
												</div><div colspan="8" id="textNote" class=" text-center" style="border-left:none;"><i>
                                        (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
													</i></div></div></div></div></div></div></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many - 1 &gt; 0"><tr><td class="text-center">
                     <br /></td><td style="padding-left:110px"></td><td></td><td class="text-left"></td><td class="text-right"></td><td></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 0, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'PXK', CAST(0 AS Numeric(18, 0)), N'PXK', N'07', N'05', N'', NULL, NULL, NULL, N'PXK03_NT.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="1.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printType) =''BK''"></xsl:when><xsl:otherwise><xsl:for-each select="inv:invoiceData/inv:itemLien"></xsl:for-each><div style="page-break-inside: avoid "><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" /><title>PXKKVCNB</title><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><style type="text/css" media="all">

                        .line{border-top:1px solid #000;margin:3px 0 !important;line-height:3px !important}
                        canvas{display:inline-block}html{font-size:100%}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                        p{orphans:0;widows:3}
                        body{margin:0;font-family:Times New Roman;}.text-left{text-align:left !important}
                        .text-right{text-align:right !important}.text-center{text-align:center !important}
                        legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                        input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                        i{font-size:13px}
                        p{margin:5px 0}
                        .container {
                        width: 731px;
								<!--height: 980px;-->
                        font-size: 14px;
                        line-height: 21px;
                        font-family: Times New Roman;
                        padding: 0px;
                        border-radius: 0px;
                        margin: 0 auto;
                        /*border: 0px solid #000;*/
                        position: relative;
                        display: table;
                        border:0px solid #000;
						margin-top:35px
                        }

                        .invName{text-align:center;font-size:19px;line-height:25px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
                        .row {
                        width: 100%;
                        margin: 0;
                        padding: 0;
                        clear: both;
                        display: table;
						font-family:Utm banque;
                        }

                        .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                        display: block;
                        float: left;
                        padding: 0;
                        margin: 0;

                        }
                        .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                        .row .col1 {
                        width: 5%;
                        }                    .row .col2 {
                        width: 10%;
                        }                    .col3 {
                        width: 15%;
                        }                    .col4 {
                        width: 20%;
                        }                    .col5 {
                        width: 25%;
                        }                    .col6 {
                        width: 28%;
                        }                    .col7 {
                        width: 35%;
                        }                    .col8 {
                        width: 40%;
                        }                    .col9 {
                        width: 45%;
                        }                    .col10 {
                        width: 50%;
                        }                    .col11 {
                        width: 55%;
                        }                    .col12 {
                        width: 60%;
                        }                    .col13 {
                        width: 65%;
                        }                    .col14 {
                        width: 70%;
                        }                    .col15 {
                        width: 75%;
                        }                    .col16 {
                        width: 78%;
                        }                    .col17 {
                        width: 85%;
                        }                    .col18 {
                        width: 90%;
                        }                    .col19 {
                        width: 95%;
                        }                    .col20 {
                        width: 100%;
                        }        
								<!--Css add them ko danh cho multi page-->
                        .table {border-spacing:0;width:100%;margin: auto;margin-top:;border-top:1px solid #000;border-bottom:1px solid #000;font-size:14px}
                        .table th{padding:2px;text-align:center;}
                        .table th{line-height:20px}
                        .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
								<!-- .table th:last-child{border-right:1px solid #000} -->
                        .table tbody tr th:last-child{border-right:0px solid #000}
                        .table tbody tr th:first-child{border-left:1px solid #000}

                        .table td{padding:2px;text-align:left;vertical-align:top;border-left:1px solid #000}
                        .table td{border-top:1px solid #DDD}
                        .table td{line-height:17px}
                        .table tbody tr td:last-child{border-right:0px solid #000}
                        .table tbody tr td:first-child{border-left:0px solid #000}



                        .table-all-border {border-spacing:0;width:100%}
                        .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                        .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                        .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                        table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}

                       .abcdef{
        border: 3px #b72800000;
        font-weight: bold;
        <!--padding: 30px 70px;-->
        font-size: 40px;
        position: absolute;
<!--        opacity: 0.09;
        filter: alpha(opacity=100);-->
        top: 390px;
left: 185px;
width: 390px;
        background: none;
        z-index: -1;
        }

                        .boderLeft
                        {
                        border-left:1px solid #000 !important;
                        }
                        .boderRight
                        {
                        border-right:1px solid #000 !important;
                        }
                        .boderBot
                        {
                        border-bottom:1px solid #000 !important;
                        }
                        .boderAll
                        {
                        border:1px solid #000 !important;
                        }
                        .next-page { page-break-inside:always;  page-break-after:always}

                        .TitleHD {
                        text-transform: uppercase;
                        font-size: 18px;
                        font-weight: 900;
                        font-family:Utm banque;
						margin-top: 2px;
                        }
                        .nom{
                        font-weight: normal !important;
                        }
                        .boderTop{
                        border-top: 1px solid #000 !important;
                        }
                        .boderBot{
                        border-bot: 1px solid #000 !important;
                        }
                        .textThaiSon{
                      position: absolute;
    top: 130px;
    display: block;
    right: -17px;
    font-style: italic;
    font-size: 11px;
    width: 15px;

}
                        .phathanh{
                        position:absolute;
                        opacity:0.8;
                        filter:alpha(opacity=100);
                        top:297px;
                        left:180px;
                        width:300px;
                        height:auto;
                        z-index:1;
                        background: none;
                        }
                        .logo {

    width: 230px;
    height: 50px;

    padding-bottom: ;

}
						.logo1{width: 12px;padding-top:5px}
						.tableheader{height:97px;width:100%;font-size: 14px;color:#000}
                            .tableheader .td2{line-height:21px;width:50%}
                            .tableheader .td3{line-height:26px;width:27%;vertical-align:middle}
                            .tablehead1{margin-top:10px;width:100%;font-size: 14px;color:#000; height:80px}
                            .tablehead1 .td1{max-width:20%;line-height:1px;min-width:20%;}
                            .tablehead1 .td2 {width:100%; padding-left:20px; }
						.tbks{width:100%;}
                            .tbks td{height:350px}
                            .textcd{height:30px;line-height:17px;margin-top:3px}
                            .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1;
							font-size: 11px; max-width: 380px; text-align: left;line-height: 14px} 
                      .maginHeader{display: table;  width: 100%;margin: 0;padding-top:0px;clear: both; height:0px;color:#fff;border-top:1px solid #000;margin-bottom: 0px}
                      .maginHeaderTop{display: table;  width: 100%;margin: 0;padding-top:0px;clear: both; height:0px;color:#fff;border-top:0px solid #000;margin-bottom: 35px}
                      .maginHeaderMin{display: table;  width: 100%;margin: 0;padding-top:10px;clear: both; height:10px;color:#fff;}
                      .border2{ border-left:1px solid #000; border-right:1px solid #000;padding:0px;margin-right:0px;display:table;width:100%;}
                      .wallperBg{
                      position: relative;
                      }
                      .boderNew{border-width:1px 0px 0 0px;border-style:solid}
					  .boderNew1{border-width:0px 0px 1px 0px;border-style:solid}
					   .img {
                            border-radius: 4px;
                            padding: 0px;
                            max-width: 250px;
                            image-rendering: optimizequality;
                            }
						.fixTable{ color:#000;margin:auto;
                        width:100%;font-size:14px;background-color:transparent;border-collapse:collapse;border-spacing:0;
						border-style: solid;border-width: 0px 0px 1px 0px;;border-color:#000;
                        -moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px
                        }
                        .fixTable td{padding:2px;line-height:21px;}
                        .breackPage {
                        page-break-after: always;
                        }

							</style><script><xsl:text disable-output-escaping="yes"><![CDATA[
							function loadData() {
							var mainElement = document.getElementById("main");
							//Khai bao max height của mỗi page tùy thuộc vào khổ in px
							//nếu in A4
							// cần sửa in html giá trị là 1045, in pdf giá trị là 1070, in html sửa margin-top của class maginHeaderTop về 0
							var heightA4 = 1045; 

							//get string html cần thiết

							var headerHtmlString = document.getElementById("headerFix").innerHTML;
							var bgString = document.getElementById("hinhNen").innerHTML;
							var headerTableHtmlString = (document.getElementById("tableHiden").getElementsByTagName("thead"))[0].innerHTML;
							var tieuDe = document.getElementById("tieude").innerHTML;

							var indexRow = 0; //biến duyệt qua các dòng trong bảng hàng hóa
							var countPage = 1;// biến đếm số trang khi breack ra
							var maxHeightTable = 0;

							var listRow = document.getElementById("tableHiden").getElementsByTagName("tbody")[0].getElementsByTagName("tr");
							
							//add fix header vào mỗi trang
							var tempHeader = document.createElement("div");
							tempHeader.className="border2";
							tempHeader.innerHTML = headerHtmlString;
							mainElement.appendChild(tempHeader);
							
							//đánh số trang
							var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
							var displayPageElement = document.createElement("div");
							displayPageElement.innerHTML = displayPageString;
							displayPageElement.className = "border2";
							displayPageElement.setAttribute("id", ("soPage" + countPage));
							//mainElement.appendChild(displayPageElement);
							
							var tieude = document.createElement("div");
							tieude.setAttribute("id", ("tieude" + countPage));
							tieude.className="row";
							tieude.innerHTML=tieuDe;
							
							do {
								//get max heigh cho moi table
								if (countPage != 1) {
									var hHeader = tieude.offsetHeight + displayPageElement.offsetHeight;
									maxHeightTable = heightA4 - hHeader;
								}
								else
								{
									var hHeader = tempHeader.offsetHeight + displayPageElement.offsetHeight;
									maxHeightTable = heightA4 - hHeader;
								}
								//alert (maxHeightTable);

								//add table
								var tempTable = document.createElement("table");
								tempTable.setAttribute("id", ("table" + countPage));
								tempTable.className = "table table-bordered";

								//add tiêu đề bảng hàng hóa
								var theadTemp = document.createElement("thead");
								theadTemp.innerHTML = headerTableHtmlString;
								tempTable.appendChild(theadTemp);

								var tbodyTemp = document.createElement("tbody");
								tempTable.appendChild(tbodyTemp);

								var tempDiv = document.createElement("div");
								tempDiv.className="border2";
								tempDiv.appendChild(tempTable);
								mainElement.appendChild(tempDiv);

								//Hiển thị thông tin số trang (trang 1/ tong so..)
								if( countPage == 1)
									var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
								else
									var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
								var displayPageElement = document.createElement("div");
								displayPageElement.innerHTML = displayPageString;
								displayPageElement.className = "";
								displayPageElement.setAttribute("id", ("soPage" + countPage));
								
								for (var i = indexRow; i < listRow.length; i++) {
									var tr = document.createElement("tr");
									tr.setAttribute("id", ("tr_so" + indexRow));
									tr.innerHTML = listRow[i].innerHTML;
									tbodyTemp.appendChild(tr);
									var heightTable = tempTable.offsetHeight;
									if(countPage == 1)
									{
										if (heightTable >= maxHeightTable - 21) 
										{
											var elem = document.getElementById("tr_so" + indexRow);
											elem.parentElement.removeChild(elem);
											
											var divMagin = document.createElement("div");
											divMagin.className = "maginHeader";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);
											mainElement.appendChild(displayPageElement);
											
											var divBreack = document.createElement("div");
											divBreack.className = "breackPage";
											mainElement.appendChild(divBreack);
											
											var divMagin = document.createElement("div");
											divMagin.className = "maginHeaderTop";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);

											var bgElement = document.createElement("div");
											bgElement.className = "wallperBg";
											bgElement.innerHTML = bgString;
											mainElement.appendChild(bgElement);

											//add mau so vao dau moi trang 
											var tieude = document.createElement("div");
											tieude.setAttribute("id", ("tieude" + countPage));
											tieude.className="row";
											tieude.innerHTML=tieuDe;
											mainElement.appendChild(tieude);

											break;
										}
									}
									else
									{
										if (heightTable >= maxHeightTable) 
										{
											var elem = document.getElementById("tr_so" + indexRow);
											elem.parentElement.removeChild(elem);

											var divMagin = document.createElement("div");
											divMagin.className = "maginHeader";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);
											mainElement.appendChild(displayPageElement);

											var divBreack = document.createElement("div");
											divBreack.className = "breackPage";
											mainElement.appendChild(divBreack);

											var divMagin = document.createElement("div");
											divMagin.className = "maginHeaderTop";
											divMagin.innerHTML="";
											mainElement.appendChild(divMagin);

											var bgElement = document.createElement("div");
											bgElement.className = "wallperBg";
											bgElement.innerHTML = bgString;
											mainElement.appendChild(bgElement);

											//add mau so vao dau moi trang 
											var tieude = document.createElement("div");
											tieude.setAttribute("id", ("tieude" + countPage));
											tieude.className="row";
											tieude.innerHTML=tieuDe;
											mainElement.appendChild(tieude);
											break;
										}
									}
									if (indexRow === listRow.length) {
									console.log("het tr ");
									break;
									}
									indexRow++;
								}
								var heightTablenew = heightTable;
								countPage++;
								var demtrang = countPage-1;
								//alert (heightTablenew);
								console.log(''===='' + indexRow);
							}
							while (indexRow < listRow.length);
							//add fix footer
							var elmentFoote = document.getElementById("footerFix");
							mainElement.appendChild(elmentFoote);
							mainElement.appendChild(displayPageElement);
							heightFooter = elmentFoote.clientHeight;
							var break1;
							break1 = 0;
							//tinh toan xem them footer vao thi co bi sang trang nua ko
							if ((maxHeightTable - heightTable)  < heightFooter) 
							{
								break1 = 1 ;
								//alert(heightTable +"awe");
								var divMagin = document.createElement("div");
								divMagin.className = "maginHeader";
								divMagin.innerHTML="";
								elmentFoote.parentNode.insertBefore(divMagin, elmentFoote);
								elmentFoote.parentNode.insertBefore(displayPageElement, elmentFoote);

								//add break trang
								var divBreack = document.createElement("div");
								divBreack.className = "breackPage";
								elmentFoote.parentNode.insertBefore(divBreack, elmentFoote);
								
								//add margintop
								var divMaginTop = document.createElement("div");
								divMaginTop.className = "maginHeaderTop";
								divMaginTop.innerHTML="";
								elmentFoote.parentNode.insertBefore(divMaginTop, elmentFoote);

								//add hình nền + rightnote
								var bgElement = document.createElement("div");
								bgElement.className = "wallperBg";
								bgElement.innerHTML = bgString;
								elmentFoote.parentNode.insertBefore(bgElement, elmentFoote);

								//add mau so vao dau moi trang 
								var tieude = document.createElement("div");
								tieude.setAttribute("id", ("tieude" + countPage));
								tieude.className="row";
								tieude.innerHTML=tieuDe;
								elmentFoote.parentNode.insertBefore(tieude, elmentFoote);
								
								//Hiển thị thông tin số trang (trang 1/ tong so..)
								var displayPageString = "<div class=''row displayPage text-right'' >Trang " + countPage + "/<span class=''maxPage''></span></div>";
								var displayPageElement = document.createElement("div");
								displayPageElement.innerHTML = displayPageString;
								displayPageElement.className = "";
								displayPageElement.setAttribute("id", ("soPage" + countPage));
								mainElement.appendChild(displayPageElement);
								
								countPage++;
							}
							
							countPage--;
							var listMaxPage = document.getElementsByClassName("maxPage");
							for (var y = 0; y < listMaxPage.length; y++) 
							{
								listMaxPage[y].innerHTML = countPage;
							}
							//alert (heightDongH);
							for (var z = 1; z <= countPage; z++)
							{
								var tableTemp = document.getElementById("table" + z);
								var heightTable = tempTable.offsetHeight;  // độ dài bảng hàng hóa
								var heightHeader = tempHeader.offsetHeight; // độ dài thông tin bên bán và bên mua
								var marginTop = heightA4;
								// cần sửa, lấy theo giá trị của 1 row hàng hóa
								var heightDongH = 21;
								var heightSoTrang = displayPageElement.offsetHeight + tieude.offsetHeight;// độ dài số trang
								var soDong = 0;
								//alert( heightTable );
								// cần sửa, lấy theo số cột trên bảng hàng hóa
								var soTD = "<td style=''line-height:17px''>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>";
								if (countPage == 1 )
								{
									heightDu = heightA4 - heightFooter - heightTable - heightHeader - heightSoTrang;
									soDong = Math.floor(heightDu / heightDongH) ;
									 
									if (soDong > 0)
									{
										var trEnd = document.getElementById("tr_so" + (indexRow - 1));
										for (var z = 0; z < soDong; z++) {
										var trT = document.createElement("tr");
										trT.innerHTML = soTD;
										tbodyTemp.appendChild(trT);
										}
									}
								}
								else
								{
									if (z == 1)
									{
										if( countPage >1)
										{
											if ( break1 !=1)
											{
												var heightTable = tempTable.offsetHeight;
												var heightHeader = tempHeader.offsetHeight;
												//heightFooter
												heightDu = heightA4 - heightFooter - heightTable - heightHeader - heightSoTrang;
												soDong = Math.floor(heightDu / heightDongH) ;
												 
											}
											else
											{
												heightDu = heightA4  - heightHeader - heightTable - heightSoTrang;
												soDong = Math.floor(heightDu / heightDongH) ;
												 
												//add table
												var tempTable = document.createElement("table");
												tempTable.setAttribute("id", ("table" + countPage));
												tempTable.className = "table table-bordered";
												
												var theadTemp = document.createElement("thead");
												theadTemp.innerHTML = headerTableHtmlString;
												tempTable.appendChild(theadTemp);

												var tbodyTemp = document.createElement("tbody");
												tempTable.appendChild(tbodyTemp);

												var tempDiv = document.createElement("div");
												tempDiv.className="border2";
												tempDiv.appendChild(tempTable);
												mainElement.appendChild(tempDiv);
												elmentFoote.parentNode.insertBefore(tempDiv, elmentFoote);

												heightDu = heightA4 - heightFooter - heightHeader - tempDiv.offsetHeight - heightSoTrang;
												soDong = Math.floor(heightDu / heightDongH) ;
												 
											}
										}
										else
										{
											heightDu = heightA4 - heightFooter - heightHeader - heightTable - heightSoTrang;
											soDong = Math.floor(heightDu / heightDongH) ;
											//alert (soDong );
											 
										}
									}
									else if (z == countPage)
									{
										if( break1 == 1)
										{
											heightDu = heightA4 - heightFooter - heightHeader - heightTable - heightSoTrang;
											soDong = Math.floor(heightDu / heightDongH) ;
											 
										}
										else
										{
											heightDu = heightA4 - heightTable - heightFooter - heightHeader  - heightSoTrang;
											soDong = Math.floor(heightDu / heightDongH) ;
											//alert (soDong );
											 
										}
									}
									else if(z < countPage && z >1)
									{
										heightDu = heightA4 - heightTable - heightHeader - heightSoTrang;
										soDong = Math.floor(heightDu / heightDongH) ;
										 
									}
								}
							}
							// hoangnx
							var elementPageEnd = document.getElementById("soPage" + countPage);
							mainElement.appendChild(elementPageEnd);
							// add padding cho số trang
							for (var z = 1; z <= countPage; z++)
							{
								var tableTemp = document.getElementById("table" + z);
								var heightTableNew = tableTemp.offsetHeight;
								var heightTable = tempTable.offsetHeight;
								var heightHeader = tempHeader.offsetHeight;
								var heightSoTrang = displayPageElement.offsetHeight + tieude.offsetHeight;// độ dài số trang
								var marginTop = heightA4;
								var heightAll;
								
								//alert( heightAll );
								if (typeof (tableTemp) != ''undefined'' && tableTemp != null) 
								{
									marginTop = marginTop - tableTemp.clientHeight;
								}
								if (countPage == 1 )
								{
									
									marginTop = heightA4 - (heightHeader + heightTableNew + heightFooter + heightSoTrang);
									if(marginTop>0)
									{
										var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
										//alert("a");
									}
								}
								else
								{
								
									if (z == 1)
									{
										if( countPage >1)
										{
											if( break1 == 1)
											{
												marginTop = heightA4 - (heightTableNew + heightHeader + heightSoTrang);
												
												if(marginTop>0)
												{
													var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
												}
											}
											else
											{
												marginTop = heightA4 - (heightTableNew + heightHeader + heightSoTrang);
												if(marginTop>0)
												{
													var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
												}
											}
										}
										else
										{
										
										}
									}
									else if (z == countPage)
									{heightHeader = 0;
										if( break1 == 1)
										{
											marginTop = heightA4 - heightFooter - heightHeader - heightTableNew - heightSoTrang;
											if(marginTop>0)
											{
												var pageEl = document.getElementById("textNote").setAttribute("style", "padding-top: " + marginTop+"px !important");
											}
										}
										else
										{
										
											marginTop = heightA4 - (heightFooter + heightTableNew + heightSoTrang);
											if(marginTop>0)
											{
												var pageEl = document.getElementById("textNote").setAttribute("style", "padding-top: " + marginTop+"px !important");
											}
											
										}
									}
									else if(z < countPage && z >1)
									{heightHeader = 0;
										marginTop = heightA4 - heightHeader - heightTableNew - heightSoTrang;
										if(marginTop>0)
										{
											var pageEl = document.getElementById("soPage" + z).setAttribute("style", "padding-top: " + marginTop+"px !important");
										}
									}
									else
									{
										marginTop = 0;
									}
								}
								//alert( marginTop );
							}
							document.getElementById(''main'').style.display = ''none'';
							document.getElementById(''main'').style.display = ''table'';
							}
							]]></xsl:text></script></head><body style="margin: 0; padding: 0" onload="loadData()"><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" /><xsl:variable name="phathanh" select="inv:invoiceData/inv:phatHanh" /><xsl:variable name="dateconvert" select="inv:viewData/inv:DateExchange" /><div id="main" class="container"><div id="hinhNen" class="wallperBg"><img class="textThaiSon" src=" data:image/png;base64, " /></div><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><!-- <img class="abcdef" src="data:image/gif;base64, " /> --><!--end main--></div><div style="display: none"><!--anh ne--><!--anh phat hanh--><!--phan tieu de tren co dinh--><div id="headerFix"><div class="boderNew"><div class="row" id="header"><table class="tableheader  "><tr><td class="" style="width:20%;">
									 
													</td><td class="text-center td2" style="width:55%;"><div class="invName"><!--<xsl:value-of select="inv:invoiceData/inv:invoiceName" />--><div style="font-size:19px;">PHIẾU XUẤT KHO <br /> KIÊM VẬN CHUYỂN NỘI BỘ</div><!-- <div class="invName"> --><!-- <i style="font-size:16px">(VAT INVOICE)</i> --><!-- </div> --></div><div style="padding-top:px;"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><i>(BẢN CHUYỂN ĐỔI PXKKVCNB ĐIỆN TỬ)</i></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose><div><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"><i> Ngày           tháng           năm </i></xsl:when><xsl:otherwise><i>Ngày  <xsl:value-of select="substring($issuedDate, 9, 2)" /> tháng  <xsl:value-of select="substring($issuedDate, 6, 2)" /> năm <xsl:value-of select="substring($issuedDate, 1, 4)" /></i></xsl:otherwise></xsl:choose></div></div><!-- <div class="text-center" style="font-size:14px">(VAT INVOICE)</div> --><div class="xoabo"><xsl:value-of select="inv:StatusDelete" /></div></td><td class="" style="padding-left:10px; width:25%;font-size:14px">
                                    Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
                                     Ký hiệu: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
                                    Số: <span style="color:red ;font-size:19px"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                0000000
																</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></span></td></tr></table><div class="row boderTop" id="header"><div class="row" style="margin-top:5px;margin-left:5px"><div class="row" style="line-height:18x"><div><span class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><!--<br/>T.A.O BANGKOK (VIET NAM) LIMITED LIABILITY COMPANY--></span></div><div>
                          Mã số thuế:  <span style="font-weight: bold;letter-spacing:3px"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div><div>
                          Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><!-- <div class="row"> --><!-- <div class="col10"> --><!-- Điện thoại: <xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></div> --><!-- <div class="col10"> --><!-- Fax: <xsl:value-of select="inv:invoiceData/inv:sellerFaxNumber" /></div> --><!-- </div> --><!-- <div class="col20" style=""> --><!-- Số tài khoản: <xsl:value-of select="inv:invoiceData/inv:sellerBankAccount" /><xsl:if test="normalize-space(inv:invoiceData/inv:sellerBankName)!=''''"> tại <xsl:value-of select="inv:invoiceData/inv:sellerBankName" /></xsl:if></div> --></div></div><div class="brBlack row"></div></div><div class="boderTop" style=""><div style="padding-top: 7px"><div class="row" style="padding-left:6px"><div class="row"><div class="row"><div class="col12">Căn cứ lệnh điều động số:

																	 <xsl:value-of select="inv:invoiceData/LENH_DIEU_DONG_SO" /></div><div class="col8"><div class="" style="width:"><xsl:variable name="ngaydd" select="inv:invoiceData/LENH_DIEU_DONG_NGAY" /><xsl:choose><xsl:when test="//./inv:phatHanh=''true''">
                                                        Ngày           
                                                        tháng           
                                                        năm 
																			</xsl:when><xsl:otherwise>
                                                        Ngày <xsl:value-of select="substring($ngaydd, 9, 2)" />
                                                        tháng <xsl:value-of select="substring($ngaydd, 6, 2)" />
                                                        năm <xsl:value-of select="substring($ngaydd, 1, 4)" /></xsl:otherwise></xsl:choose></div></div></div><div class="row"><div class="col9">của : <xsl:value-of select="inv:invoiceData/LENH_DIEU_DONG_CUA" /></div><div class="col11">về việc : <xsl:value-of select="inv:invoiceData/LENH_DIEU_DONG_VE_VIEC" /></div></div><div class="row"><div class="col13">Họ tên người vận chuyển : <xsl:value-of select="inv:invoiceData/HO_TEN_NGUOI_VAN_CHUYEN" /></div><div class="col7">Hợp đồng số : <xsl:value-of select="inv:invoiceData/SO_HOP_DONG_VAN_CHUYEN" /></div></div><div class="row">
													Phương tiện vận chuyển : <xsl:value-of select="inv:invoiceData/MA_PHUONG_TIEN_VAN_CHUYEN" /></div><!-- <div class="">	 --><!-- Họ và tên người nhận: --><!-- <xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /> --><!-- </div> --></div><!-- <div> --><!-- Phương tiện vận chuyển: <xsl:value-of select="inv:invoiceData/MA_PHUONG_TIEN_VAN_CHUYEN" /></div> --><!-- <div class="row"> --><!-- <div class=""> --><!-- Lý do xuất kho: --><!-- <xsl:value-of select="inv:invoiceData/inv:LY_DO_XUAT_KHO" /> --><!-- </div> --><!-- </div>											 --><div style="row"><div class="col">
															Xuất tại kho:


																<xsl:value-of select="inv:invoiceData/MA_KHO_XUAT" /></div></div><div class="row"><div class="">
															Nhập tại kho:

																<xsl:value-of select="inv:invoiceData/MA_KHO_NHAP" /></div></div></div></div></div></div></div></div><div style="display:none"><div id="tieude"><div class="row"><div class="col6 text-center">
                                          Mẫu số : <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b></div><div class="col5 text-center">
                                          Ký hiệu : <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b></div><div class="col4 text-center">
                                          Số : <b style=""><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                      0000000
														</xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></b></div></div></div><table id="tableHiden"><thead class="text-center"><tr class="thead" style=""><th style="border-left:0px;width:35px" rowspan="2">
                                                STT<div class="nom"></div></th><th style="width: 250px;" rowspan="2">
											Tên, nhãn hiệu, quy cách,<br /> phẩm chất vật tư (sản phẩm, hàng hóa)<div class="nom"></div></th><th style="width: 150px;" rowspan="2">
                                                Mã số <div class="nom"></div></th><th style="width: 70px;" rowspan="2">
                                                Đơn vị tính<div class="nom"></div></th><th style="width: 90px;" colspan="2">
                                                Số lượng <div class="nom"></div></th></tr><tr><td class="boderLeft boderBot text-center" style="width:95px"><b>Thực xuất</b></td><td class=" boderBot text-center" style="width:102px"><b>Thực nhập</b></td></tr></thead><tbody><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><xsl:choose><xsl:when test="inv:lineNumber =''''"><td class="text-center">
                                                             
															</td></xsl:when><xsl:when test="inv:lineNumber !=''''"><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td></xsl:when></xsl:choose><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                                                                    Điều chỉnh tăng: 
																	</xsl:when><xsl:otherwise>
                                                                    Điều chỉnh giảm: 
																	</xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' "><!-- (không chịu thuế)--></xsl:when><xsl:when test="inv:vatPercentage = ''-2'' "><!-- (không kê khai nộp thuế)--></xsl:when></xsl:choose></td><td class="text-center"><xsl:value-of select="inv:itemCode" /></td><td class="text-center"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="normalize-space(inv:quantity)!=''0'' and normalize-space(inv:quantity)!='''' and normalize-space(inv:quantity)!=''NaN''"><xsl:value-of select="format-number(inv:quantity,''##.##0,#####'',''number'')" /></xsl:if></td><td class="text-right"><xsl:if test="normalize-space(inv:quantityIn)!=''0'' and normalize-space(inv:quantityIn)!='''' and normalize-space(inv:quantityIn)!=''NaN''"><xsl:value-of select="format-number(inv:quantityIn,''##.##0,#####'',''number'')" /></xsl:if></td><!-- <td class="text-right"> --><!-- <xsl:if test="normalize-space(inv:unitPrice)!='''' and normalize-space(inv:unitPrice)!=''NaN''"> --><!-- <xsl:value-of select="format-number(inv:unitPrice,''##.##0,#####'',''number'')" /> --><!-- </xsl:if> --><!-- </td> --><!-- <td class="text-right"> --><!-- <xsl:if test="inv:itemTotalAmountWithoutVat != ''''"> --><!-- <xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##.##0,#####'',''number'')" /> --><!-- </xsl:if> --><!-- </td> --></tr></xsl:for-each><xsl:if test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''"><tr><td /><td>Tỷ giá: <xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##.##0,#####'',''number'')" /> VND/<xsl:value-of select="$nguyente" /></td><td /><td /><td /><td class="text-right"></td></tr></xsl:if><xsl:if test="normalize-space(inv:invoiceData/inv:discountAmount) and normalize-space(inv:invoiceData/inv:discountAmount) != 0"><tr><td class="text-center"></td><td nowrap="">Chiết khấu <i>(Discount amount)</i></td><td></td><td></td><td></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><tr><td class="text-center"></td><td><xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></td><td></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"></td></tr></xsl:if></tbody></table></div><div style="display:none"><div class="row border2" id="footerFix"><table class="fixTable" style="border-top:0"><tbody><tr><td colspan="4" class=" text-right"><div class="row"><div class="col20 text-center"><xsl:choose><xsl:when test="(//./inv:adjustmentType = ''5'' or //./inv:adjustmentType = ''9'') and //./inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="//./inv:isTotalAmountPos = '''' or //./inv:isTotalAmountPos = ''true''">
                                                                        Điều chỉnh tăng: 
																			</xsl:when><xsl:otherwise>
                                                                        Điều chỉnh giảm: 
																			</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><b> Tổng cộng :</b></xsl:otherwise></xsl:choose></div></div></td><td class=" text-left boderLeft" style="width:95px">
                                                         
													</td><td class=" boderLeft text-right" style="width:102px"><xsl:if test="normalize-space(//./inv:totalAmountWithVAT)!='''' and normalize-space(//./inv:totalAmountWithVAT)!=''NaN''"><b><xsl:value-of select="format-number(//./inv:totalAmountWithVAT,''##.##0,####'',''number'')" /></b></xsl:if> 
															</td></tr></tbody></table><div class="boderNew1"><div class=" text-left" style="border-left:0px"><!-- <div class="row"> --><!-- <div class="col10" style=""> --><!-- <xsl:choose> --><!-- <xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"> --><!-- &#160;&#160;&#160;&#160;&#160;Xuất, Ngày&#160;&#160;&#160;&#160;&#160;&#160;&#160;tháng &#160;&#160;&#160;&#160;&#160;&#160;&#160; năm&#160;&#160;&#160;&#160;&#160;&#160;&#160; --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- &#160;&#160;&#160;&#160;&#160;Xuất, Ngày&#160;<xsl:value-of select="substring($issuedDate, 9, 2)"/>&#160;tháng &#160;<xsl:value-of select="substring($issuedDate, 6, 2)"/>&#160;năm&#160;<xsl:value-of select="substring($issuedDate, 1, 4)"/> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div> --><!-- <div class="col10 text-right">  --><!-- <xsl:choose> --><!-- <xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"> --><!-- &#160;&#160;&#160;&#160;&#160;Nhập, Ngày&#160;&#160;&#160;&#160;&#160;&#160;&#160;tháng &#160;&#160;&#160;&#160;&#160;&#160;&#160;năm&#160;&#160;&#160;&#160;&#160;&#160;&#160; --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- &#160;&#160;&#160;&#160;&#160;Nhập, Ngày&#160;<xsl:value-of select="substring($issuedDate, 9, 2)"/>&#160;tháng &#160;<xsl:value-of select="substring($issuedDate, 6, 2)"/>&#160;năm&#160;<xsl:value-of select="substring($issuedDate, 1, 4)"/> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div> --><!-- </div> --><div class="text-center" style="height:85px;line-height:17px; padding-top: 5.5px"><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row"><div class="col5"><p><b>Người thực hiện chuyển đổi
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Người lập 
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col3"><p><b>Thủ kho xuất
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col4"><p><b>Người vận chuyển
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col3"><p><b>Thủ kho nhập
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div></div></xsl:when><xsl:otherwise><div class="row"><div class="col5"><p><b>Người lập 
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Thủ kho xuất
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Người vận chuyển
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col5"><p><b>Thủ kho nhập
																		</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div></div></xsl:otherwise></xsl:choose></div></div><div class="tbks" style=""><div><xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:printFlag) = ''true''"><div style="vertical-align:middle;"><div class="row" style="padding-bottom:px"><div class="col12">
																 
																	</div><!-- <div class="col8 text-right"  style="width: "> --><!-- <xsl:choose> --><!-- <xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"> --><!-- <a href="#" style="text-decoration:none;"> --><!-- <div id="kysoban" class="kysoban"> --><!-- <img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on"/> --><!-- Signature Valid <br /> --><!-- Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /> --><!-- <br />Ký --><!-- ngày: &#160;  &#160;  &#160; / &#160;  &#160;  &#160; /    --><!-- </div> --><!-- </a> --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- <xsl:for-each select="hnx:Signature"> --><!-- <xsl:if test="@Id = ''seller''"> --><!-- <a href="#" style="text-decoration:none;"> --><!-- <div id="kysoban" class="kysoban" style=""> --><!-- <img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on"/> --><!-- Signature Valid <br /> --><!-- Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /> --><!-- <br />Ký --><!-- <xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))"/> --><!-- </div> --><!-- </a> --><!-- </xsl:if> --><!-- </xsl:for-each> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div>  --></div></div><div style="vertical-align:bottom;"><div class="row text-center" style="font-size:14px;"><div class="col9 text-center" style="padding-bottom:px"><xsl:value-of select="inv:viewData/inv:userPrint" /> 
																		<div class="">
                                                                        Ngày chuyển đổi: <xsl:choose><xsl:when test="normalize-space(inv:viewData/inv:DateExchange) != ''''"><xsl:value-of select="concat(substring($dateconvert, 9, 2),''/'', substring($dateconvert, 6, 2),''/'', substring($dateconvert, 1, 4))" /></xsl:when><xsl:otherwise>
                                                                                    /    /20
																				</xsl:otherwise></xsl:choose></div></div><div class="col11 text-right" style=""><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                    Signature Valid <br />
                                                                                    Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký
                                                                                    ngày:         /         /   
																					</div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                            Signature Valid <br />
                                                                                            Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký
																								<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></div></xsl:when><xsl:otherwise><div style="vertical-align:middle;"><div class="row" style="padding-bottom:15px"><div class="col9">
																		 
																	</div><div class="col11 text-right" style=""><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh)=''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                    Signature Valid <br />
                                                                                    Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký
                                                                                    ngày:         /         /   
																					</div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                            Signature Valid <br />
                                                                                            Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký
																								<xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></div></xsl:otherwise></xsl:choose></div></div><div class="row"><div class="row text-center"><xsl:choose><xsl:when test="normalize-space(inv:invoiceData/inv:phatHanh) =''true''">
                          Mã nhận hóa đơn:                     tra cứu tại:
                          </xsl:when><xsl:otherwise>
                          Mã nhận hóa đơn:
                          <b><xsl:value-of select="inv:invoiceData/inv:delivery/inv:containerNumber" /></b> tra cứu tại: 
                          <xsl:variable name="wtc" select="inv:invoiceData/inv:delivery/inv:UrlWebTraCuu" /><a href="{$wtc}"><xsl:value-of select="$wtc" /></a></xsl:otherwise></xsl:choose>            
										 
												</div><div colspan="8" id="textNote" class=" text-center" style="border-left:none;"><i>
                                        (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
													</i></div></div></div></div></div></div></body></html></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many - 1 &gt; 0"><tr><td class="text-center">
                     <br /></td><td style="padding-left:110px"></td><td></td><td class="text-left"></td><td class="text-right"></td><td></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 0, N'E', NULL)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'TNCN_CTT56', CAST(0 AS Numeric(18, 0)), N'Chứng từ thu nhập cá nhân điện tử', N'CTT56', N'07', NULL, NULL, NULL, NULL, N'CTTNCN_DT.xslt', N'<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" version="1.0" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:variable name="version" select="''1.0.0''" /><xsl:variable name="thongTu" select="78" /><!--CẤU HÌNH HIỂN THỊ ===========================================================================================--><!--Cấu hình hiển thị các phần:
  - Đường dẫn Logo : anhLogo
  - Hiển thị ảnh nền là logo : nenLogo
  - Hiển thị ảnh nền là hoa văn : anhNenHoaVan
  - Hiển thị viền theo đường kẻ : vienKe
  - Hiển thị ảnh viền : anhNenVien
  - Hóa đơn tiếng việt/ song ngữ : songNgu
  - Hóa đơn có hiển thị thông tin tra cứu : traCuu
  - Bảng có tràn viền hoặc không : bangTranVien
  - Bảng có viền ngoài hoặc không : bangCoVienNgoai
  - Bảng có bo tròn góc : bangBoTronGoc
  - Bảng có ngăn cách header và body : keNganHeaderBody
  - Bảng có kẻ dòng : keDongBangHang
  - Bảng có kẻ cột : keCotBangHang
  - Vị trí tên công ty Thái Sơn : viTriTextThaiSon
  - Thông tin công ty thẳng hàng/không thẳng hàng : thongTinThangHang
  - Chấm kẻ dòng ở các thông tin người mua hàng : keDongThongTin
  - Phân các giữa các khối thông tin : phanCachKhoi
  --><!--################################ CSS DÙNG CHUNG CHO CÁC MẪU HÓA ĐƠN ###############################--><!--Bao gồm css chung cho: 
  - các option chỉnh sửa
  - Định dạng table
  - Định dạng chia các class theo % hoặc px
	- Cài margin, padding, ............
  --><!--####################################### SCRIPT MẪU HÓA ĐƠN ########################################--><!--
  - Hàm tính toán phân trang dữ liệu với các loại mẫu hóa đơn nhiều trang
	- Hàm kẻ dòng tự động
  --><!--################################## #TEMPLATE CÁC KHỐI DỮ LIỆU HIỂN THỊ HÓA ĐƠN ####################--><!--
      Template hiển thị ảnh nền của hóa đơn: TemplateBackground
      Template hiển thị Logo: TemplateLogo
      Template hiển thị thông tin người bán: TemplateSeller
      Template hiển thị thông tin người mua: TemplateBuyer
      Template hiển thị thông tin người Mẫu số, ký hiệu, số hóa đơn: Template_Code_Series_invoiceNumber
      Template hiển thị thông tin hóa đơn: TemplateInvoiceInformation
      Template hiển thị thông tin bảng hàng một thuế suất: BangHang
      Template hiển thị thông tin chữ ký: TemplateSignature
      Template hiển thị thông tin cuối trang: TemplateFooterInformation
      Template hiển thị thông tin Chia khối theo bố cục mẫu: tableKhoi1, tableKhoi2, tableKhoi3
  --><!--Cấu hình mẫu phân trang; Các giá trị : [ MOT_TRANG |  NHIEU_TRANG]--><xsl:variable name="LoaiTrangHoaDon" select="''MOT_TRANG''" /><!-- ===================   SCRIPT DÙNG CHUNG CHO CÁC MẪU HÓA ĐƠN PHÂN TRANG =============================--><xsl:template name="scriptPage"></xsl:template><!--***************************TEMPLATE HIỂN THỊ ẢNH NỀN CỦA HÓA ĐƠN*******************************************************--><xsl:template name="TemplateBackground"><div class="textThaiSonRight"><div class="text">(Xuất bởi phần mềm EInvoice, Công ty TNHH Phát triển công nghệ Thái Sơn  - MST: 0101300842 - www.einvoice.vn)</div></div><xsl:if test="$isPhatHanh"><img class="phathanh" src="data:image/svg+xml;base64, " /></xsl:if><div id="khungNenLogo" class="khungNenLogo draggable" style="position:relative;z-index:-2;"><img id="nenLogo" data-src="anhNenLogo" class="resizable logo nenLogo" data-style="styleNenLogo"><xsl:attribute name="src"><xsl:value-of select="$anhNenLogo" /></xsl:attribute><xsl:attribute name="style"><xsl:value-of select="$styleNenLogo" /></xsl:attribute></img></div><div id="khungNenHoaVan" class="khungNenHoaVan draggable" style="position:relative;z-index:-3;"><img id="anhNenHoaVan" data-src="anhHoaVan" class="anhNenHoaVan resizable" data-style="styleNenHoaVan"><xsl:attribute name="data-ma-anh"><xsl:value-of select="$maAnhNenThuVien" /></xsl:attribute><xsl:attribute name="src"><xsl:value-of select="$anhHoaVan" /></xsl:attribute><xsl:attribute name="style"><xsl:value-of select="$styleNenHoaVan " /></xsl:attribute></img></div><img id="anhVienHoaDon" class="anhVienHoaDon" data-src="anhVien"><xsl:attribute name="src"><xsl:value-of select="$anhVien " /></xsl:attribute><xsl:attribute name="style"><xsl:value-of select="$styleAnhVien" /></xsl:attribute></img></xsl:template><!--**************************************** TEMPLATE HIỂN THỊ LOGO********************************************************--><xsl:template name="TemplateLogo"><div id="khungLogo" class="khungLogo draggable" style="position: relative;"><img data-src="anhLogo" id="anhLogo" data-style="styleLogo" reduced="" width="108"><xsl:attribute name="class">
          logo resizable
				</xsl:attribute><xsl:attribute name="src"><xsl:value-of select="$anhLogo" /></xsl:attribute><!--Gán style cho ảnh logo--><xsl:attribute name="style"><xsl:value-of select="$styleLogo" /></xsl:attribute></img></div></xsl:template><!--*************************** TEMPLATE HIỂN THỊ THÔNG TIN NGƯỜI BÁN *****************************************************--><xsl:template name="TemplateSeller"><div class="infoGroup seller khungSmall" data-group="seller"><div class="infoContainer" data-style="txt_sellerDisplayName1Container"><div class=""><span class="editable styleChange" data-style="txt_sellerDisplayName1" style="font-weight:bold" data-label="txt_sellerDisplayName1">
					I. THÔNG TIN TỔ CHỨCTRẢ THU NHẬP
					</span><span class="SONG_NGU editable styleChange" style="font-style:italic; font-weight: bold;" data-style="txt_sellerDisplayName1_SN" data-label="txt_sellerDisplayName1_SN">
					(Information of the income paying organization)
					</span></div></div><div class="infoContainer" data-style="txt_sellerDisplayName2Container"><div class=""><span style="font-weight:">[01]</span><span class="editable styleChange" data-style="txt_sellerDisplayName2" style="font-weight:" data-label="txt_sellerDisplayName2">
					Tên tổ chức trả thu nhập
					</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_sellerDisplayName2_SN" data-label="txt_sellerDisplayName2_SN">
					(Name of the income paying organization):
					</span></div></div><div class="infoContainer" data-style="txt_sellerDisplayNameContainer"><div class="colLabel" onkeyup="drawDongKe(this)"></div><div class="colVal"><span class="styleChange onlyChangeStyle" style="font-weight: bold; font-size:16px ;margin-left:27px" data-style="sellerLegalNameStyle" data-val="txt_sellerLegalName"><xsl:value-of disable-output-escaping="yes" select="//TCTTNhap/Ten" /></span><div class="dottedLineContainer" data-line="sellerDisplayName_Line"><span class="dottedLine styleChange" data-style="sellerDisplayName_Line" style="top:16.5px;width:458px;left:137px;" /></div></div></div><div class="infoContainer row" data-style="txt_sellerTaxCodeContainer"><div class="col7"><span style="font-weight:">[02]</span><span class="editable styleChange" data-style="txt_sellerTaxCode" data-label="txt_sellerTaxCode" style="font-weight:"> Mã số thuế</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_sellerTaxCode_SN" data-label="txt_sellerTaxCode_SN">(tax identification number)</span>:
				</div><div class="col13" style="font-weight:700"><xsl:variable name="sellerTaxCode" select="normalize-space(//TCTTNhap/MST)" /><div class="cell ml5 borderLeft text-center"><xsl:value-of select="substring($sellerTaxCode, 1, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 2, 1)" /></div><div class="cell ml5 text-center"><xsl:value-of select="substring($sellerTaxCode, 3, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 4, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 5, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 6, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 7, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 8, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 9, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 10, 1)" /></div><div class="cell ml5 text-center" style="border-top:1px solid #fff;border-bottom:1px solid #fff ">
						-
					</div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 11, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($sellerTaxCode, 12, 1)" /></div><div class="cell ml5 text-center"><xsl:value-of select="substring($sellerTaxCode, 13, 1)" /></div></div></div><div class="infoContainer" data-style="txt_sellerAddressLineContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[03]</span><span class="editable styleChange" data-style="txt_sellerAddressLine" data-label="txt_sellerAddressLine" style="font-weight:"> Địa chỉ</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_sellerAddressLine_SN" data-label="txt_sellerAddressLine_SN">(Address)</span></div><span class="colon">:</span><div class="colVal" style="font-weight:700"><span data-val="txt_sellerAddressLine"><xsl:value-of disable-output-escaping="yes" select="//TCTTNhap/DChi" /></span><div class="dottedLineContainer" data-line="sellerAddress_Line"><span class="dottedLine styleChange" data-style="sellerAddress_Line" style="top:18px;width:610px;left:128px;" /></div></div></div><div class="infoContainer styleChange" style="width:100%;" data-style="txt_sellerPhoneNumberContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[04] </span><span class="editable styleChange" data-style="txt_sellerPhoneNumber" data-label="txt_sellerPhoneNumber" style="font-weight:">Điện thoại</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_sellerPhoneNumber_SN" data-label="txt_sellerPhoneNumber_SN">(Telephone number)</span></div><span class="colon">:</span><div class="colVal" style="font-weight:700"><span data-val="txt_sellerPhoneNumber"><xsl:value-of select="//TCTTNhap/SDThoai" /><!-- <xsl:if test="normalize-space(//NBan/TToan/TTKhac/TTin[TTruong=''Điện thoại'']/DLieu) !=''''"/> --></span><div class="dottedLineContainer" data-line="sellerPhoneNumber_Line"><span class="dottedLine styleChange" data-style="sellerPhoneNumber_Line" style="top:18px;width:538px;left:200px;" /><span class="dottedLine styleChange" data-style="sellerPhoneNumber_Line1" style="left:0;top:40px;width:100%;" /></div></div></div></div></xsl:template><!--*************************** TEMPLATE HIỂN THỊ THÔNG TIN NGƯỜI MUA *****************************************************--><xsl:template name="TemplateBuyer"><div class="infoGroup buyer" data-group="buyer"><div class="infoContainer  row "></div><div class="infoContainer  row "></div><div class="infoContainer  row "></div><div class="infoContainer  row "></div><div class="infoContainer  row "></div><div class="infoContainer  row "></div><div class="infoContainer  row "></div><div class="infoContainer" data-style="txt_buyerDisplayName1Container"><span class="editable styleChange" data-style="txt_buyerDisplayName1" data-label="txt_buyerDisplayName1" style="font-weight:bold">II. THÔNG TIN NGƯỜI NỘP THUẾ</span><span class="SONG_NGU editable styleChange" style="font-style:italic; font-weight:bold" data-style="txt_buyerDisplayName1_SN" data-label="txt_buyerDisplayName1_SN">(Information of taxpayer)</span></div><div class="infoContainer" data-style="txt_buyerDisplayNameContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[05] </span><span class="editable styleChange" data-style="txt_buyerDisplayName" data-label="txt_buyerDisplayName" style="font-weight:">Họ và tên</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyerDisplayName_SN" data-label="txt_buyerDisplayName_SN">(Full name)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyerDisplayName" style="font-weight:700"><xsl:value-of select="//NNT/Ten" /></span><div class="dottedLineContainer" data-line="buyerDisplayName_Line"><span class="dottedLine styleChange" data-style="buyerDisplayName_Line" style="top:18px;width:585px;left:153px;" /></div></div></div><div class="infoContainer row" data-style="txt_buyerTaxCodeContainer"><div class="col7" onkeyup="drawDongKe(this)"><span style="font-weight:">[06] </span><span class="editable styleChange" data-style="txt_buyerTaxCode" data-label="txt_buyerTaxCode" style="font-weight:">Mã số thuế</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyerTaxCode_SN" data-label="txt_buyerTaxCode_SN">(tax identification number)</span>:
				</div><div class="col13" style="font-weight:700"><xsl:variable name="buyerTaxCode" select="normalize-space(//NNT/MST)" /><div class="cell ml5 borderLeft text-center"><xsl:value-of select="substring($buyerTaxCode, 1, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 2, 1)" /></div><div class="cell ml5 text-center"><xsl:value-of select="substring($buyerTaxCode, 3, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 4, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 5, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 6, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 7, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 8, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 9, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 10, 1)" /></div><div class="cell ml5 text-center" style="border-top:1px solid #fff;border-bottom:1px solid #fff ">
						-
					</div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 11, 1)" /></div><div class="cell text-center"><xsl:value-of select="substring($buyerTaxCode, 12, 1)" /></div><div class="cell ml5 text-center"><xsl:value-of select="substring($buyerTaxCode, 13, 1)" /></div></div></div><div class="infoContainer" data-style="ext_buyerLegalNameContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[07] </span><span class="editable styleChange" data-style="ext_buyerLegalName" data-label="ext_buyerLegalName" style="font-weight:">Quốc tịch</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyerLegalName_SN" data-label="txt_buyerLegalName_SN">(Nationality)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyerLegalName" style="font-weight:700"><xsl:value-of select="//NNT/QTich" /></span><div class="dottedLineContainer" data-line="buyerLegalName_Line"><span class="dottedLine styleChange" data-style="buyerLegalName_Line" style="top:18px;width:579px;left:159px;" /></div></div></div><div class="infoContainer col9" data-style="ext_buyerContainer"><div class="col15"><span style="font-weight:">[08] </span><span class="editable styleChange" data-style="ext_buyer" data-label="ext_buyer" style="font-weight:">Cá nhân cư trú</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer_SN" data-label="txt_buyer_SN">(Resident individual)</span>:
				</div><div class="col5"><div class="cell1 ml5 borderLeft text-center" style="font-weight:700;width:"><xsl:if test="normalize-space(//NNT/CNCTru) =''1'' ">
				X
						</xsl:if></div></div></div><div class="infoContainer col11" data-style="ext_buyer1Container"><div class="col15"><span style="font-weight:">[09] </span><span class="editable styleChange" data-style="ext_buyer1" data-label="ext_buyer1" style="font-weight:">Cá nhân không cư trú</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer1_SN" data-label="txt_buyer1_SN">(Non-resident individual)</span>:
				</div><div class="col5"><div class="cell1 ml5 borderLeft text-center" style="font-weight:700;width:"><xsl:if test="normalize-space(//NNT/CNCTru) !=''1'' ">
				X
						</xsl:if></div></div></div><div class="infoContainer" data-style="txt_buyerAddressLineContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[10] </span><span class="editable styleChange" data-style="txt_buyerAddressLine" data-label="txt_buyerAddressLine" style="font-weight:">Địa chỉ hoặc điện thoại liên hệ</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyerAddressLine_SN" data-label="txt_buyerAddressLine_SN">(Contact Address or Telephone Number)</span></div><span class="colon">:</span><div class="colVal"><xsl:attribute name="style">
									min-height:<xsl:value-of select="$lineHeight * 2 + 7" />px;
					</xsl:attribute><span data-val="txt_buyerAddressLine" style="font-weight:700"><xsl:if test="normalize-space(//NNT/DChi)!=''''"><xsl:value-of disable-output-escaping="yes" select="//NNT/DChi" /></xsl:if><xsl:if test="normalize-space(//NNT/SDThoai)!=''''">
						  <xsl:value-of select="//NNT/SDThoai" /></xsl:if></span><div class="dottedLineContainer" data-line="buyerAddress_Line"><span class="dottedLine styleChange" data-style="buyerAddress_Line" style="top:18px;width:318px;left:420px;" /><span class="dottedLine styleChange" data-style="buyerAddress_Line1" style="left:0;top:40px;width:100%;" /><span class="dottedLine styleChange" data-style="buyerAddress_Line2" style="left:0;top:62px;width:100%;" /></div></div></div><div class="infoContainer">
				Trường hợp không có mã số thuế thì ghi thông tin cá nhân theo 2 chỉ tiêu [11] &amp; [12] dưới đây: <br /><span class="SONG_NGU " style="font-style:italic;">If Taxpayer does not have Tax identification number, please fill in 2 following items [11] &amp; [12]:</span></div><div class="infoContainer    styleChange" style="width:100%;" data-style="txt_buyerBankAccountContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[11] </span><span class="editable styleChange" data-style="txt_buyerBankAccount" data-label="txt_buyerBankAccount" style="font-weight:">Số CMND hoặc số hộ chiếu</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyerBankAccount_SN" data-label="txt_buyerBankAccount_SN">(ID/Passport Number)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyerBankAccount" data-path="buyerBankAccount" style="font-weight:700"><xsl:if test="normalize-space(//NNT/CMND)!=''''"><xsl:value-of select="//NNT/CMND" /></xsl:if></span><div class="dottedLineContainer" data-line="buyerBankAccount_Line"><span class="dottedLine styleChange" data-style="buyerBankAccount_Line" style="top:18px;width:427px;left:311px;" /></div></div></div><div class="infoContainer   styleChange" style="width:50%" data-style="txt_paymentMethodNameContainer"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[12] </span><span class="editable styleChange" data-style="txt_paymentMethodName" data-label="txt_paymentMethodName" style="font-weight:">Nơi cấp</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_paymentMethodName_SN" data-label="txt_paymentMethodName_SN">(Place of issue)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_paymentMethodName" data-path="paymentMethodName" style="font-weight:700"><xsl:value-of select="//NNT/NCCMND" /></span><div class="dottedLineContainer" data-line="paymentMethodName_Line"><span class="dottedLine styleChange" data-style="paymentMethodName_Line" style="top:18px;width:207px;left:162px;" /></div></div></div><div class="infoContainer   styleChange dongKhongThangHang" style="width:50%" data-style="txt_paymentMethodName1Container"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[13] </span><span class="editable styleChange" data-style="txt_paymentMethodName1" data-label="txt_paymentMethodName1" style="font-weight:">Ngày cấp</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_paymentMethodName1_SN" data-label="txt_paymentMethodName1_SN">(Date of issue)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_paymentMethodName1" data-path="paymentMethodName1" style="font-weight:700"><xsl:variable name="NgayCap" select="//NNT/NgCCMND" /><xsl:if test="normalize-space($NgayCap)"><xsl:value-of select="substring($NgayCap, 9, 2)" />/<xsl:value-of select="substring($NgayCap, 6, 2)" />/<xsl:value-of select="substring($NgayCap, 1, 4)" /></xsl:if></span><div class="dottedLineContainer" data-line="paymentMethodName1_Line"><span class="dottedLine styleChange" data-style="paymentMethodName1_Line" style="top:18px;width:202px;left:167px;" /></div></div></div><div class="infoContainer " style="margin-top:15px" data-style="ext_buyer3Container"><span class="editable styleChange" data-style="ext_buyer3" data-label="ext_buyer3" style="font-weight:bold">III. THÔNG TIN THUẾ THU NHẬP CÁ NHÂN KHẤU TRỪ</span><span class="SONG_NGU editable styleChange" style="font-style:italic; font-weight:bold" data-style="txt_buyer3_SN" data-label="txt_buyer3_SN">(Information of personal income tax withheld)</span></div><div class="infoContainer " data-style="ext_buyer4Container"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[14] </span><span class="editable styleChange" data-style="ext_buyer4" data-label="ext_buyer4" style="font-weight:">Khoản thu nhập</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer4_SN" data-label="txt_buyer4_SN">(Type of income)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyer4" style="font-weight:700"><xsl:if test="normalize-space(//TTNCNKTru/KTNhap)"><xsl:value-of select="format-number(//TTNCNKTru/KTNhap,''##.##0,#####'',''vnd'')" /></xsl:if><!-- <xsl:value-of disable-output-escaping="yes" select="//TTNCNKTru/KTNhap" /> --></span><div class="dottedLineContainer" data-line="buyer4_Line"><span class="dottedLine styleChange" data-style="buyer4_Line" style="top:18px;width:525px;left:213px;" /></div></div></div><div class="infoContainer " data-style="ext_buyer9Container"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[14a] </span><span class="editable styleChange" data-style="ext_buyer9" data-label="ext_buyer9" style="font-weight:">Khoản đóng bảo hiểm bắt buộc</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="ext_buyer9_SN" data-label="ext_buyer9_SN">(The aforesaid deductible insurance premiums)</span></div><span class="colon">:</span><div class="colVal"><span data-val="ext_buyer9" style="font-weight:700"><xsl:if test="normalize-space(//TTKhac/TTin[TTruong=''BaoHiem'']/DLieu)"><xsl:value-of select="format-number(//TTKhac/TTin[TTruong=''BaoHiem'']/DLieu,''##.##0,#####'',''vnd'')" /></xsl:if><!-- <xsl:value-of disable-output-escaping="yes" select="//TTNCNKTru/KTNhap" /> --></span><div class="dottedLineContainer" data-line="buyer9_Line"><span class="dottedLine styleChange" data-style="buyer9_Line" style="top:18px;width:525px;left:213px;" /></div></div></div><div class="infoContainer " data-style="ext_buyer5Container"><div><span style="font-weight:">[15] </span><span class="editable styleChange" data-style="ext_buyer5" data-label="ext_buyer5" style="font-weight:">Thời điểm trả thu nhập</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer5_SN" data-label="txt_buyer5_SN">(Time of income payment)</span>:
					<span class="editable styleChange" data-style="ext_buyer6" data-label="ext_buyer6" style="font-weight:">tháng</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer6_SN" data-label="txt_buyer6_SN">(month)</span><span style="margin-left:10px; margin-right:10px; font-weight:bold"><xsl:value-of select="//TTNCNKTru/Thang" /></span><span class="editable styleChange" data-style="ext_buyer7" data-label="ext_buyer7" style="font-weight:">năm</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer7_SN" data-label="txt_buyer7_SN">(year)</span><span style="margin-left:10px; margin-right:10px; font-weight:bold"><xsl:value-of select="//TTNCNKTru/Nam" /></span></div></div><div class="infoContainer " data-style="ext_buyer8Container"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[16] </span><span class="editable styleChange" data-style="ext_buyer8" data-label="ext_buyer8" style="font-weight:">Tổng thu nhập chịu thuế đã trả</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer8_SN" data-label="txt_buyer8_SN">(Total taxable income paid)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyer8" style="font-weight:700"><xsl:if test="normalize-space(//TTNCNKTru/TTNCThue)"><xsl:choose><xsl:when test="$nguyente =''VND''"><xsl:value-of select="format-number(//TTNCNKTru/TTNCThue,''##.##0,#####'',''vnd'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(//TTNCNKTru/TTNCThue,''##.##0,#####'',''vnd'')" /></xsl:otherwise></xsl:choose></xsl:if></span><div class="dottedLineContainer" data-line="buyer8_Line"><span class="dottedLine styleChange" data-style="buyer8_Line" style="top:18px;width:386px;left:352px;" /></div></div></div><div class="infoContainer " data-style="ext_buyer9Container"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[17] </span><span class="editable styleChange" data-style="ext_buyer9" data-label="ext_buyer9" style="font-weight:">Số thuế thu nhập cá nhân đã khấu trừ</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer9_SN" data-label="txt_buyer9_SN">(Amount of personal income tax withheld)</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyer9" style="font-weight:700"><xsl:if test="normalize-space(//TTNCNKTru/SThue)"><xsl:choose><xsl:when test="$nguyente =''VND''"><xsl:value-of select="format-number(//TTNCNKTru/SThue,''##.##0,#####'',''vnd'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(//TTNCNKTru/SThue,''##.##0,#####'',''vnd'')" /></xsl:otherwise></xsl:choose></xsl:if></span><div class="dottedLineContainer" data-line="buyer9_Line"><span class="dottedLine styleChange" data-style="buyer9_Line" style="top:18px;width:209px;left:529px;" /></div></div></div><div class="infoContainer " data-style="ext_buyer9Container"><div class="colLabel" onkeyup="drawDongKe(this)"><span style="font-weight:">[18] </span><span class="editable styleChange" data-style="ext_buyer9" data-label="ext_buyer9" style="font-weight:">Số thu nhập cá nhân còn được nhận</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_buyer9_SN" data-label="txt_buyer9_SN">(Amount of income received by individual)</span><span style="font-weight:"> [(16) - (17)]</span></div><span class="colon">:</span><div class="colVal"><span data-val="txt_buyer9" style="font-weight:700"><xsl:if test="normalize-space(//TTNCNKTru/SThue) and normalize-space(//TTNCNKTru/TTNCThue)"><xsl:choose><xsl:when test="$nguyente =''VND''"><xsl:value-of select="format-number(//TTNCNKTru/TTNCThue - //TTNCNKTru/SThue,''##.##0,#####'',''vnd'')" /></xsl:when><xsl:otherwise><xsl:value-of select="format-number(//TTNCNKTru/TTNCThue - //TTNCNKTru/SThue,''##.##0,#####'',''vnd'')" /></xsl:otherwise></xsl:choose></xsl:if></span><div class="dottedLineContainer" data-line="buyer9_Line"><span class="dottedLine styleChange" data-style="buyer9_Line" style="top:18px;width:209px;left:529px;" /></div></div></div></div></xsl:template><!--***************************TEMPLATE HIỂN THỊ THÔNG TIN MẪU SỐ, KÝ HIỆU, SỐ HÓA ĐƠN****************************************--><xsl:template name="Template_Code_Series_invoiceNumber"><div class="infoGroup"><div class="infoContainer" data-style="txt_templateCodeContainer" style="font-weight:bold;"><span class="editable styleChange" data-style="txt_templateCode" data-label="txt_templateCode">Mẫu số</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_templateCode_SN" data-label="txt_templateCode_SN">(Form No.)</span><span class="pr3">:</span><span data-val="txt_templateCode"><xsl:value-of select="//TTChung/MSCTu" /></span></div><div class="infoContainer" data-style="txt_invoiceSeriesContainer" style="font-weight:bold;"><span class="editable styleChange" data-style="txt_invoiceSeries" data-label="txt_invoiceSeries">Ký hiệu</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_invoiceSeries_SN" data-label="txt_invoiceSeries_SN">(Serial No.)</span><span class="pr3">:</span><span data-val="txt_invoiceSeries"><xsl:value-of select="//TTChung/KHCTu" /></span></div><div class="infoContainer" data-style="txt_invoiceNumberContainer" style="font-weight:bold;"><span class="editable styleChange" data-style="txt_invoiceNumber" data-label="txt_invoiceNumber">Số</span><span class="SONG_NGU editable styleChange" style="font-style:italic;" data-style="txt_invoiceNumber_SN" data-label="txt_invoiceNumber_SN">(No.)</span><span class="pr3">:</span><span class="eivNumber" data-val="txt_invoiceNumber"><xsl:choose><xsl:when test="$isPhatHanh">0</xsl:when><xsl:otherwise><xsl:value-of select="//TTChung/SCTu" /></xsl:otherwise></xsl:choose></span></div></div></xsl:template><!--***************************TEMPLATE HIỂN THỊ THÔNG TIN HÓA ĐƠN********************************************************--><xsl:template name="TemplateInvoiceInformation"><div class="invoiceNameContainer" data-style="txt_invoiceName"><div class="invName styleChange editable" data-style="txt-inv-name" data-label="txt-inv-name">CỘNG HOÀ XÃ HỘI CHỦ NGHĨA VIỆT NAM</div><div class="SONG_NGU invNameSN styleChange onlyChangeStyle" style="font-style:" data-style="txt_invoiceName_SN">Độc lập - Tự do - Hạnh phúc</div><div style="width:40%; margin:auto"><hr /></div><div class="" style="font-weight:bold; font-size:15px; line-height:17px">SOCIALIST REPUBLIC OF VIETNAM</div><div class="" style="font-weight:bold;line-height:17px">Independence – Freedom – Happiness</div><!-- KH GHI CHÚ THÊM TÊN --><div class="customInvName styleChange editable" data-label="customInvName" data-style="customInvName" data-val="customInvName" /><!-- GHI CHÚ TÊN HÓA ĐƠN --><div class="invNameDetail editable styleChange" data-label="invNameDetail" data-style="invNameDetail" /><div class="SONG_NGU invNameDetailSN editable styleChange" data-label="invNameDetailSN" data-style="invNameDetailSN" /></div><div class="issuedDate-printFlag"><!-- <div class="issuedDate"> --><!-- <xsl:choose> --><!-- <xsl:when test="$isPhatHanh"> --><!-- <span>Ngày</span> --><!-- <i class="SONG_NGU">(Date)</i>       --><!-- <span>tháng</span> --><!-- <i class="SONG_NGU">(month)</i>       --><!-- <span>năm</span> --><!-- <i class="SONG_NGU">(year)</i> --><!-- </xsl:when> --><!-- <xsl:otherwise> --><!-- <span>Ngày</span> --><!-- <i class="SONG_NGU pd0">(Date)</i> --><!-- <span class="pl7 pr7"> --><!-- <xsl:value-of select="substring($issuedDate, 9, 2)"/> --><!-- </span> --><!-- <span>tháng</span> --><!-- <i class="SONG_NGU pd0">(month)</i> --><!-- <span class="pl7 pr7"> --><!-- <xsl:value-of select="substring($issuedDate, 6, 2)"/> --><!-- </span> --><!-- <span>năm</span> --><!-- <i class="SONG_NGU pd0">(year)</i> --><!-- <span class="pl7 pr7"> --><!-- <xsl:value-of select="substring($issuedDate, 1, 4)"/> --><!-- </span> --><!-- </xsl:otherwise> --><!-- </xsl:choose> --><!-- </div> --><!-- <div class="printFlag"> --><!-- <div class="hoaDonChuyenDoi"> --><!-- <span class="styleChange editable fixFont" style="font-style:;" data-style="txt_HDCD" data-label="txt_HDCD">(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</span> --><!-- <span class="styleChange editable SONG_NGU fixFont dbl" style="font-style:;" data-style="txt_HDCD_SN" data-label="txt_HDCD_SN">(TRANSFORM INVOICE FROM E-INVOICE)</span> --><!-- </div> --><!-- <div class="hoaDonGoc"> --><!-- <span class="styleChange editable fixFont" style="font-style:;" data-style="txt_HDTH" data-label="txt_HDTH">(BẢN THỂ HIỆN CỦA HÓA ĐƠN ĐIỆN TỬ)</span> --><!-- <span class="styleChange editable SONG_NGU fixFont dbl" style="font-style:;" data-style="txt_HDTH_SN" data-label="txt_HDTH_SN">(EINVOICE DISPLAY VERSION)</span> --><!-- </div> --><!-- </div> --></div><div class="xoabo"><!-- <xsl:value-of select="inv:StatusDelete" /> --></div></xsl:template><!--***************************TEMPLATE HIỂN THỊ THÔNG TIN HÓA ĐƠN THAY THẾ*****************************************************--><xsl:template name="TemplateInvoiceInformation_Change"><div class="col20" style="padding:0 5px 5px"><xsl:choose><xsl:when test="normalize-space(//TTChung/TDLHDBTThe)"><b>Thay thế cho hóa đơn điện tử:</b>Số <xsl:value-of select="//TTChung/SHDBTThe" />, mẫu số: <xsl:value-of select="//TTChung/KHMSHDBTThe" />, ký hiệu: <xsl:value-of select="//TTChung/KHHDBTThe" /></xsl:when><xsl:when test="normalize-space(//TTChung/TDLHDBDChinh)"><b>Điều chỉnh cho hóa đơn điện tử: </b>Số <xsl:value-of select="//TTChung/SHDBDChinh" />, mẫu số: <xsl:value-of select="//TTChung/KHMSHDBDChinh" />, ký hiệu: <xsl:value-of select="//TTChung/KHHDBDChinh" /></xsl:when></xsl:choose></div></xsl:template><!--***************************TEMPLATE HIỂN THỊ THÔNG TIN BẢNG HÀNG********************************************************--><xsl:template name="BangHang"></xsl:template><!--***************************TEMPLATE HIỂN THỊ THÔNG TIN PHẦN CHỮ KÝ*******************************************************--><xsl:template name="TemplateSignature"><table id="tblSignature" class="text-center"><thead><tr class="signer"><th><div class="cot1">Người thực hiện chuyển đổi<p class="br" /><i class="SONG_NGU" style="font-weight:300">(Converter)</i></div></th><th><div class="cot2">Người mua hàng<p class="br" /><i class="SONG_NGU" style="font-weight:300">(Buyer)</i></div></th><th><div class="cot3"><div class="row " style="font-weight:300; margin-bottom:5px"><xsl:choose><xsl:when test="$isPhatHanh">
				, ngày <i style="font-size:12px">(date)</i>        tháng <i style="font-size:12px">(month)</i>        năm <i style="font-size:12px">(year)</i>     

							        

									</xsl:when><xsl:otherwise><xsl:value-of select="//TTKhac/TTin[TTruong=''DiaDiem'']/DLieu" />, ngày <i style="font-size:12px">(date)</i><span class="pl7 pr7" style="font-weight:700;"><xsl:value-of select="substring($issuedDate, 9, 2)" /></span>
							tháng <i style="font-size:12px">(month)</i><span class="pl7 pr7" style="font-weight:700;"><xsl:value-of select="substring($issuedDate, 6, 2)" /></span>
							năm <i style="font-size:12px">(year)</i><span class="pl7 pr7" style="font-weight:700;"><xsl:value-of select="substring($issuedDate, 1, 4)" /></span></xsl:otherwise></xsl:choose></div>


						ĐẠI DIỆN TỔ CHỨC TRẢ THU NHẬP<br /><i class="SONG_NGU" style="font-weight:700">(Income paying organization)</i></div></th><th><div class="cot4">Thủ trưởng đơn vị<p class="br" /><i class="SONG_NGU" style="font-weight:300">(Director)</i></div></th></tr></thead><tbody><tr class="signNote"><td><div class="cot1"><span>(Ký, ghi rõ họ tên)</span><br /><i class="SONG_NGU">(Sign &amp; full name)</i></div></td><td><div class="cot2"><span>(Chữ ký số (nếu có))</span><br /><i class="SONG_NGU">(Digital signature (if any))</i></div></td><td><div class="cot3"><div class="noDirector" style="font-size:12px"><i>(Chữ ký điện tử, chữ ký số)</i><br /><!-- <i class="SONG_NGU" style="font-size:12px">(Signature, seal, full name  &amp; designation)</i> --></div><div class="hasDirector"><i>(Chữ ký điện tử, chữ ký số)</i><br /><!-- <i class="SONG_NGU">(Signature, seal, full name  &amp; designation)</i> --></div></div></td><td><div class="cot4"><span>(Chữ ký điện tử, Chữ ký số)</span><br /><i class="SONG_NGU">(E-Signature, Digital signature)</i></div></td></tr><tr class="signature" /><tr class="digitalSignature"><td class="tdChuyenDoi"><div class="cot1"><div class="chuyenDoiContainer"><xsl:value-of select="//TTKhac/TTin[TTruong=''Người in'']/DLieu" /><div>Ngày in chuyển đổi<i class="SONG_NGU"> (Printing date)</i>: 
									<xsl:choose><xsl:when test="normalize-space(//TTKhac/TTin[TTruong=''Ngày in'']/DLieu) != ''''"><xsl:variable name="dateconvert" select="//TTKhac/TTin[TTruong=''Ngày in'']/DLieu" /><xsl:value-of select="concat(substring($dateconvert, 9, 2),''/'', substring($dateconvert, 6, 2),''/'', substring($dateconvert, 1, 4))" /></xsl:when><xsl:otherwise>
										    /    /20
										</xsl:otherwise></xsl:choose></div></div></div></td><td><div class="cot2"> </div></td><td colspan="2"><div id="kysoContainer" class="kysoContainer"><xsl:choose><xsl:when test="$isPhatHanh"><a href="#" style="text-decoration:none;display:block;"><div id="kyso" class="kyso"><img style="border:none;position: absolute; z-index: -1; right: 30px;top:calc(50% - 19px);" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
														Signature Valid <br />
														Ký bởi: <xsl:value-of disable-output-escaping="yes" select="//TCTTNhap/Ten" /><br />Ký ngày:         /         /
										</div></a></xsl:when><xsl:when test="$NBanKySo"><a href="#" style="text-decoration:none;display:block;"><div id="kyso" class="kyso"><img style="border:none;position: absolute; z-index: -1; right: 30px;top:calc(50% - 19px);" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
															Signature Valid <br />
															Ký bởi: <xsl:value-of disable-output-escaping="yes" select="//TCTTNhap/Ten" /><br />Ký <xsl:value-of select="concat(''ngày: '', substring($issuedDate, 9, 2), ''/'', substring($issuedDate, 6, 2), ''/'', substring($issuedDate, 1, 4))" /></div></a></xsl:when></xsl:choose></div></td></tr></tbody></table></xsl:template><!--***************************TEMPLATE HIỂN THỊ THÔNG TIN CUỐI TRANG********************************************************--><xsl:template name="TemplateFooterInformation"><div class="text-bottom-page"><!-- <div class="traCuu" style="height:"> --><!-- <span class="styleChange editable" data-style="txt_maNhan" data-label="txt_maNhan">Mã nhận hóa đơn</span> --><!-- <span class="SONG_NGU styleChange editable" data-style="txt_maNhan_SN" data-label="txt_maNhan_SN" style="font-style:italic">(Code for checking)</span>: --><!-- <b> --><!-- <xsl:attribute name="style"> --><!-- <xsl:if test="normalize-space(//TTKhac/TTin[TTruong=''Mã TC'']/DLieu) = ''''">padding:0 30px;</xsl:if> --><!-- </xsl:attribute> --><!-- <xsl:value-of select="//TTKhac/TTin[TTruong=''Mã TC'']/DLieu" /> --><!-- </b> --><!-- <span class="styleChange editable pl7" data-style="txt_tracking" data-label="txt_tracking">tra cứu tại</span> --><!-- <span class="SONG_NGU styleChange editable" data-style="txt_tracking_SN" data-label="txt_tracking_SN" style="font-style:italic">(Tracking)</span>: --><!-- <a href="https://eiv.honda.com.vn/" target="_blank"> --><!-- https://eiv.honda.com.vn/ --><!-- </a> --><!-- </div> --><!-- <div class="note-txtTSBottom"> --><!-- (<span class="styleChange editable" data-style="noteInvoiceBot" data-label="noteInvoiceBot" style="font-style:italic">Cần kiểm tra, đối chiếu khi lập, giao, nhận hóa đơn</span> --><!-- <span class="SONG_NGU styleChange editable" data-style="noteInvoiceBot_SN" data-label="noteInvoiceBot_SN" style="font-style:italic">/ Need to check, compare when making, delivering, receiving invoices</span>) --><!-- <div class="textThaiSonBottom">Xuất bởi phần mềm EInvoice, Công ty TNHH Phát triển công nghệ Thái Sơn - MST: 0101300842 - www.einvoice.vn</div> --><!-- </div> --></div></xsl:template><!--***************************CÁC TEMPLATE THÀNH PHẦN CỦA HEADER ************************************************--><xsl:template name="tableKhoi1"><table class="tableKhoi1"><tr id="trKhoi1" class="sortable"><td data-temp="emptyTemp" class="text-center" style="line-height:17px; vertical-align: top; "><div class="infoContainer" style="font-weight:bold; font-size:15px; margin-top: 3px;"><xsl:value-of select="//TCTTNhap/Ten" /></div><!-- <div class="infoContainer" style="font-weight:bold; font-size:17px; margin-top:4px">TỔNG CỤC THUẾ</div> --><div class="infoContainer" style="width:70%; margin-left:30px"><hr /></div><div class="infoContainer" style="font-size:13px"><xsl:value-of select="//TTKhac/TTin[TTruong=''Tên tiếng anh'']/DLieu" /></div></td><td class="text-center" data-temp="TemplateInvoiceInformation" style="vertical-align:top"><xsl:call-template name="TemplateInvoiceInformation" /></td><td data-temp="Template_Code_Series_invoiceNumber" class="" style="line-height: 20px;font-size:13px; vertical-align:top"><xsl:call-template name="Template_Code_Series_invoiceNumber" /></td></tr><tr><td colspan="3" class="text-center"><div class="" style="font-weight:bold; font-size:20px; margin-top:14px">CHỨNG TỪ KHẤU TRỪ THUẾ THU NHẬP CÁ NHÂN</div><div class="" style="font-weight:bold;font-size:15px;margin-bottom:14px">CERTIFICATE OF PERSONAL INCOME TAX WITHHOLDING</div></td></tr></table></xsl:template><xsl:template name="tableKhoi2"><table class="tableKhoi2"><tr id="trKhoi2" class="sortable"><!-- <td data-temp="emptyTemp" class=""> --><!-- <xsl:call-template name="emptyTemp"/> --><!-- </td> --><td class="infoTemp" data-temp="TemplateSeller"><xsl:call-template name="TemplateSeller" /></td></tr></table></xsl:template><xsl:template name="tableKhoi3"><table class="tableKhoi3"><tr><td class="infoTemp" data-temp="TemplateBuyer"><xsl:call-template name="TemplateBuyer" /></td></tr><tr><td><xsl:call-template name="TemplateInvoiceInformation_Change" /></td></tr></table></xsl:template><!-- ################# TEMPLATE KHUNG HÓA ĐƠN ###################################--><xsl:template match="CTu"><html><head><title>Hóa Đơn Điện Tử</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><xsl:call-template name="styleHtml" /><xsl:call-template name="scriptPage" /></head><body id="bodyHoaDon" onload="loadData()"><xsl:attribute name="version"><xsl:value-of select="$version" /></xsl:attribute><xsl:attribute name="page-size"><xsl:value-of select="$pageSize" /></xsl:attribute><xsl:attribute name="thong-tu"><xsl:value-of select="$thongTu" /></xsl:attribute><xsl:attribute name="class"><xsl:value-of select="$vienKe" />  
					<xsl:value-of select="$anhNenVien" />  
					<xsl:value-of select="$songNgu" />  
					<xsl:value-of select="$traCuu" />  
					<xsl:value-of select="$bangTranVien" />  
					<xsl:value-of select="$bangCoVienNgoai" />  
					<xsl:value-of select="$bangBoTronGoc" />  
					<xsl:value-of select="$keNganHeaderBody" />  
					<xsl:value-of select="$keDongBangHang" />  
					<xsl:value-of select="$keCotBangHang" />  
					<xsl:value-of select="$thongTinThangHang" />  
					<xsl:value-of select="$hienAnhLogo" />  
					<xsl:value-of select="$nenLogo" />  
					<xsl:value-of select="$anhNenHoaVan" />  
					<xsl:value-of select="$viTriTextThaiSon" />  
					<xsl:value-of select="$keDongThongTin" />  
					<xsl:value-of select="$phanCachKhoi" />  
					<xsl:value-of select="$LoaiTrangHoaDon" />  
					<xsl:value-of select="$mauHienThi" />  
					<xsl:value-of select="$chuKyThuTruong" />  
					<xsl:value-of select="$bangCoMaHang" />  
					<xsl:value-of select="$bangCoChietKhau" />  
					<xsl:value-of select="$bangCoTienThue" />  
					<xsl:value-of select="$bangCoTyGia" />  
					<xsl:value-of select="$signNote" />  
					<xsl:if test="number(//TTKhac/TTin[TTruong=''Loại in'']/DLieu)">HOA_DON_CHUYEN_DOI</xsl:if>  
				</xsl:attribute><div class="container"><!-- SET ATTRIBUTE --><xsl:attribute name="style">
						font-family:<xsl:value-of select="$fontFamily" />;
						color:<xsl:value-of select="$fontColor" />;
						line-height:<xsl:value-of select="$lineHeight" />px;
					</xsl:attribute><xsl:attribute name="data-page-size-x"><xsl:value-of select="$pageSizeX" /></xsl:attribute><xsl:attribute name="data-page-size-y"><xsl:value-of select="$pageSizeY" /></xsl:attribute><xsl:attribute name="data-border-style"><xsl:value-of select="$borderStylePage" /></xsl:attribute><xsl:attribute name="data-border-width"><xsl:value-of select="$borderWidthPage" /></xsl:attribute><xsl:attribute name="data-size-vien-anh"><xsl:value-of select="$sizeAnhVien" /></xsl:attribute><xsl:attribute name="data-top"><xsl:value-of select="$topPage" /></xsl:attribute><xsl:attribute name="data-right"><xsl:value-of select="$rightPage" /></xsl:attribute><xsl:attribute name="data-bottom"><xsl:value-of select="$bottomPage" /></xsl:attribute><xsl:attribute name="data-left"><xsl:value-of select="$leftPage" /></xsl:attribute><xsl:attribute name="data-line-height"><xsl:value-of select="$lineHeight" /></xsl:attribute><xsl:attribute name="data-default-rows">10</xsl:attribute><!-- CONTENT BODY --><div id="multi-page" /><div id="invoice-data"><div class="background"><xsl:call-template name="TemplateBackground" /></div><div id="headerTemp"><table class="w100o"><tbody id="invoiceData" class="sortable"><tr data-temp="tableKhoi1" class=""><td><xsl:call-template name="tableKhoi1" /></td></tr><tr data-temp="tableKhoi2" class=""><td><xsl:call-template name="tableKhoi2" /></td></tr><tr data-temp="tableKhoi3" class=""><td><xsl:call-template name="tableKhoi3" /></td></tr></tbody></table></div><div id="invoiceItems"><xsl:call-template name="BangHang" /></div><div id="footerTemp"><xsl:call-template name="TemplateSignature" /><xsl:call-template name="TemplateFooterInformation" /></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="DLHDon/DLQRCode" /></xsl:attribute></input></div></body></html></xsl:template><!-- TEMPLATE NGẮT CHUỖI KHI CÓ KÝ TỰ ĐẶC BIỆT --><xsl:template match="text()" name="split"><xsl:param name="pText" select="Ten" /><xsl:if test="string-length($pText)"><xsl:if test="($pText =.)"><br /></xsl:if><xsl:value-of select="substring-before(concat($pText,''::''),''::'')" /><br /><xsl:call-template name="split"><xsl:with-param name="pText" select="substring-after($pText, ''::'')" /></xsl:call-template></xsl:if></xsl:template><!-- TEMPLATE RỖNG --><xsl:template name="emptyTemp"><div /></xsl:template><xsl:variable name="kyHieuMauSo" select="//TTChung/KHMSHDon" /><xsl:variable name="NgayCap" select="string(//TTKhac/TTin[TTruong=''NGAY CAP'']/DLieu)" /><xsl:variable name="TimePayment" select="string(//TToan/TTKhac/TTin[TTruong=''NGAY TINH THU NHAP'']/DLieu)" /><xsl:variable name="issuedDate" select="string(//TTChung/NLap)" /><xsl:variable name="nguyente" select="//TTChung/DVTTe" /><xsl:variable name="isPhatHanh" select="$issuedDate = ''''" /><xsl:variable name="NBanKySo" select="(not(//HDChuyenDoi) and (not(//TTKhac/TTin[TTruong=''Loại in'']/DLieu) or //TTKhac/TTin[TTruong=''Loại in'']/DLieu = 2) or not(//TTKhac/TTin[TTruong=''Loại in'']/DLieu) and (not(//HDChuyenDoi) or //HinhThucCD = 1)) and count(//NBan/hnx:Signature)" /><xsl:variable name="wtc" select="normalize-space(//TTKhac/TTin[TTruong=''Website tra cứu'']/DLieu)" /><!-- ============================== CẤU HÌNH HIỂN THỊ =======================================--><!-- format tiền Việt --><xsl:decimal-format name="vnd" decimal-separator="," grouping-separator="." /><!--Chuỗi base64 của file ảnh logo--><xsl:variable name="anhLogo" select="''data:image/jpeg;base64, ''" /><xsl:variable name="styleLogo" select="''width: 108px; height: auto; margin: 5px 0px 20px; resize: none; position: relative; zoom: 1; display: block; top: 0px; left: 11px;''" /><!--Hiển thị logo: Các giá trị : [ CO_HIEN_LOGO |  KHONG_HIEN_LOGO]--><xsl:variable name="hienAnhLogo" select="''CO_HIEN_LOGO''" /><!--Hiển thị ảnh nền là logo: Các giá trị : [ CO_NEN_LOGO |  KHONG_NEN_LOGO]--><xsl:variable name="nenLogo" select="''KHONG_NEN_LOGO''" /><!--Chuỗi base64 của file ảnh nền logo--><xsl:variable name="anhNenLogo" select="''''" /><xsl:variable name="styleNenLogo" select="''opacity:0.5;position:absolute;top:450px;left:calc(50% - 175px);width:350px''" /><!--Hiển thị ảnh nền là hoa văn: Các giá trị : [ CO_NEN_HOA_VAN |  KHONG_NEN_HOA_VAN]--><xsl:variable name="anhNenHoaVan" select="''KHONG_NEN_HOA_VAN''" /><xsl:variable name="anhHoaVan" select="''''" /><xsl:variable name="styleNenHoaVan" select="''opacity:0.2;position:absolute;width:690px;top:215px;left:calc(50% - 345px)''" /><!--Hiển thị viền: Các giá trị : [ CO_VIEN_KE |  KHONG_CO_VIEN_KE]--><xsl:variable name="vienKe" select="''CO_VIEN_KE''" /><xsl:variable name="styleKeVien" select="''''" /><!--Hiển thị ảnh viền: Các giá trị : [ CO_HINH_ANH_VIEN |  KHONG_CO_HINH_ANH_VIEN]--><xsl:variable name="anhNenVien" select="''KHONG_CO_HINH_ANH_VIEN''" /><xsl:variable name="anhVien" select="''''" /><xsl:variable name="styleAnhVien" select="''''" /><!-- Mã bộ ảnh nền trong thư viện --><xsl:variable name="maAnhNenThuVien" select="''''" /><!-- Hóa đơn tiếng việt/ song ngữ: Các giá trị : [CO_SONG_NGU | KHONG_SONG_NGU]--><xsl:variable name="songNgu" select="''CO_SONG_NGU''" /><!-- Hóa đơn có hiển thị thông tin tra cứu : [CO_TRA_CUU | KHONG_TRA_CUU]--><xsl:variable name="traCuu" select="''CO_TRA_CUU''" /><!--Cấu hình thông tin cho bảng hàng--><!--Bảng có tràn viền hoặc không: Các giá trị : [BANG_CO_TRAN_VIEN | BANG_KHONG_TRAN_VIEN]--><xsl:variable name="bangTranVien" select="''BANG_CO_TRAN_VIEN''" /><!--Bảng có viền ngoài hoặc không: Các giá trị : [BANG_CO_VIEN_NGOAI | BANG_KHONG_CO_VIEN_NGOAI]--><xsl:variable name="bangCoVienNgoai" select="''BANG_CO_VIEN_NGOAI''" /><!--Bảng có bo tròn góc bảng hàng: Các giá trị : [BANG_CO_BO_TRON_GOC | BANG_KHONG_BO_TRON_GOC]--><xsl:variable name="bangBoTronGoc" select="''BANG_KHONG_BO_TRON_GOC''" /><!--Bảng có ngăn cách header và body: Các giá trị : [BANG_CO_NGAN_HEADER_BODY_MO | BANG_KHONG_CO_NGAN_HEADER_BODY | '''']--><xsl:variable name="keNganHeaderBody" select="''''" /><!--Bảng có kẻ dòng: Các giá trị : ['''' | BANG_CO_KE_DONG_MO | BANG_KHONG_CO_KE_DONG]--><xsl:variable name="keDongBangHang" select="''BANG_CO_KE_DONG_MO''" /><!--Bảng có kẻ cột: Các giá trị : ['''' | BANG_CO_KE_COT_MO | BANG_KHONG_CO_KE_COT]--><xsl:variable name="keCotBangHang" select="''''" /><!--Vị trí tên công ty Thái Sơn: Các giá trị : [TS_BEN_PHAI| TS_BEN_DUOI]--><xsl:variable name="viTriTextThaiSon" select="''TS_BEN_DUOI''" /><!--Thông tin công ty thẳng hàng/không thẳng hàng: Các giá trị : [BEN_MUA_THANG_HANG | BEN_BAN_THANG_HANG | THONG_TIN_KHONG_THANG_HANG]--><xsl:variable name="thongTinThangHang" select="''THONG_TIN_KHONG_THANG_HANG''" /><!--Chấm kẻ dòng ở các thông tin người mua hàng: Các giá trị :[KE_DONG_BEN_BAN | KE_DONG_BEN_MUA | KE_DONG_BANG_HANG | KHONG_CO_KE_DONG]--><xsl:variable name="keDongThongTin" select="''''" /><!--Phân các giữa các khối thông tin: [phanCachKhoi1Khoi2 | phanCachKhoi2Khoi3 | phanCachKhoi3Khoi4]--><xsl:variable name="phanCachKhoi" select="''   ''" /><!--Biến thể dạng hóa đơn, mặc định hóa đơn gốc: [HOA_DON_GOC | HOA_DON_CHUYEN_DOI | HOA_DON_CHUYEN_DOI AN_CHU_KY_SO]--><xsl:variable name="mauHienThi" select="''HOA_DON_GOC''" /><!-- Biến thể có chữ ký thủ trưởng [CO_CKS_THU_TRUONG | ''''] --><xsl:variable name="chuKyThuTruong" select="''''" /><!-- Ẩn/ hiện Ký, ghi rõ họ tên (signNote) [ '''' | ''NOT_SIGN_NOTE''] --><xsl:variable name="signNote" select="''''" /><!-- Thêm cột bảng hàng --><!-- [BANG_CO_COT_MA | BANG_KHONG_COT_MA] --><xsl:variable name="bangCoMaHang" select="''BANG_KHONG_COT_MA''" /><!-- [BANG_CO_COT_CHIET_KHAU | BANG_KHONG_COT_CHIET_KHAU] --><xsl:variable name="bangCoChietKhau" select="''BANG_KHONG_COT_CHIET_KHAU''" /><!-- [BANG_CO_COT_TIEN_THUE | BANG_KHONG_COT_TIEN_THUE] --><xsl:variable name="bangCoTienThue" select="''BANG_KHONG_COT_TIEN_THUE''" /><!-- [BANG_CO_TI_GIA | BANG_KHONG_TI_GIA] --><xsl:variable name="bangCoTyGia" select="''BANG_KHONG_TI_GIA''" /><!-- Thông tin font chữ hóa đơn [Time New Roman | Arial] 2 font mặc định --><xsl:variable name="fontFamily" select="''&quot;Arial&quot;''" /><!-- Thông tin tùy chỉnh font-size hóa đơn [12 -> 18] --><xsl:variable name="fontSize" select="''13''" /><!-- Thông tin tùy chỉnh line-height hóa đơn [14 -> 22]--><xsl:variable name="lineHeight" select="''20''" /><!-- Thông tin tùy chỉnh color hóa đơn --><xsl:variable name="fontColor" select="''rgb(0, 0, 0)''" /><!-- Thông tin viền kẻ cho hóa đơn [solid | double | dashed | dotted | none | hidden]--><xsl:variable name="borderStylePage" select="''none''" /><!-- cỡ viền [1-> 5] --><xsl:variable name="borderWidthPage" select="''1''" /><xsl:variable name="borderColorPage" select="''rgb(0, 0, 0)''" /><!-- ################### Thông tin kích thước hóa đơn ############## --><xsl:variable name="pageSize" select="''A4''" /><xsl:variable name="pageSizeX" select="790" /><xsl:variable name="pageSizeY" select="1116" /><xsl:variable name="sizeAnhVien" select="15" /><!-- Lề hóa đơn --><xsl:variable name="topPage" select="20" /><xsl:variable name="rightPage" select="20" /><xsl:variable name="bottomPage" select="20" /><xsl:variable name="leftPage" select="20" /><!--CSS DÙNG CHUNG CHO CÁC MẪU HÓA ĐƠN =======================================================================================--><xsl:template name="styleHtml"><style type="text/css">
		@page{size:auto;margin:0;}
		html{
			width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage" />px;
			<xsl:if test="$LoaiTrangHoaDon = ''MOT_TRANG''">
				padding-top:<xsl:value-of select="$topPage" />px;
				padding-bottom:<xsl:value-of select="$bottomPage" />px;
			</xsl:if>
			padding-right:<xsl:value-of select="$rightPage" />px;
			padding-left:<xsl:value-of select="$leftPage" />px;
			margin:auto!important
		}
		body{margin:0}
		body.CO_HINH_ANH_VIEN{padding:<xsl:value-of select="$sizeAnhVien" />px}
		body.CO_HINH_ANH_VIEN.NHIEU_TRANG{padding: 0 <xsl:value-of select="$sizeAnhVien" />px}
		.background{height:0}
		.container {	
			font-family:<xsl:value-of select="$fontFamily" />;
			color:<xsl:value-of select="$fontColor" />;
			line-height:<xsl:value-of select="$lineHeight" />px;
			font-size:<xsl:value-of select="$fontSize" />px;
			position:relative;padding:0;margin:0
		}
		.CO_HINH_ANH_VIEN.TS_BEN_PHAI .container{width:<xsl:value-of select="$pageSizeX - 2 * $sizeAnhVien - $leftPage - $rightPage - $lineHeight" />px}
		.CO_HINH_ANH_VIEN.TS_BEN_DUOI .container{width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage - 2 * $sizeAnhVien" />px}
		.KHONG_CO_HINH_ANH_VIEN.TS_BEN_PHAI .container{width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage - $lineHeight" />px}
		.KHONG_CO_HINH_ANH_VIEN.TS_BEN_DUOI .container{width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage" />px}
		.MOT_TRANG .container{height:<xsl:value-of select="$pageSizeY - $topPage - $bottomPage" />px}
		.MOT_TRANG.CO_HINH_ANH_VIEN .container{height:<xsl:value-of select="$pageSizeY - 2 * $sizeAnhVien - $topPage - $bottomPage" />px}
		#invoice-data{
			position:relative;height:calc(100% - 2 * <xsl:value-of select="$borderWidthPage" />px);
			border-width:<xsl:value-of select="$borderWidthPage" />px;
			border-style:<xsl:value-of select="$borderStylePage" />;
			border-color:<xsl:value-of select="$borderColorPage" />
		}
		.KHONG_CO_VIEN_KE #invoice-data{width:100%}
		.container table{
			color:<xsl:value-of select="$fontColor" />;
			font-size:<xsl:value-of select="$fontSize" />px;
			line-height:<xsl:value-of select="$lineHeight" />px
		}
		.invoiceNameContainer{margin-bottom:2px}
		.invName{font-size: <xsl:value-of select="$fontSize + 2" />px;line-height:<xsl:value-of select="$fontSize + 1" />px;text-align:center;margin:0;text-transform:uppercase;font-weight:bold;white-space:pre-line;color:}
		.invNameSN{font-size: <xsl:value-of select="$fontSize + 1" />px;line-height:<xsl:value-of select="$fontSize + 5" />px;font-weight:bold}
		.invNameDetail{margin-top:3px;font-style:italic;font-size:<xsl:value-of select="$fontSize" />px;line-height:<xsl:value-of select="$fontSize" />px}
		.invNameDetailSN{font-style:italic;font-size:<xsl:value-of select="$fontSize - 1" />px;line-height:<xsl:value-of select="$fontSize - 1" />px}
		.customInvName{font-size:<xsl:value-of select="$fontSize + 3" />px;line-height:<xsl:value-of select="$fontSize + 3" />px}
		.eivNumber{font-size:<xsl:value-of select="$fontSize + 8" />px;line-height:<xsl:value-of select="$lineHeight + 4" />px;color:red !important}

		.maSoThue{font-weight:700;letter-spacing: 4px}
		.tableKhoi1, .tableKhoi2 {border-collapse:collapse}
		.tableKhoi1, .tableKhoi2, .tableKhoi3{width:calc(100% + 4px); margin-left:-2px}
		.tableKhoi3{border-collapse:collapse}

		#anhLogo{margin:3px auto;max-width:<xsl:value-of select="$pageSizeX div 4" />px}
		#anhVienHoaDon{
			height: <xsl:value-of select="$pageSizeY - $topPage - $bottomPage - $lineHeight" />px;
			width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage" />px;
			left:-<xsl:value-of select="$sizeAnhVien" />px;
			position:absolute;z-index:-4
		}
		#anhVienHoaDon{max-width:<xsl:value-of select="$pageSizeX" />px}
		#anhNenHoaVan, #nenLogo{max-width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage - 2 * $borderWidthPage" />px}
		.TS_BEN_PHAI #anhNenHoaVan, #nenLogo{max-width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage - $lineHeight - 2 * $borderWidthPage" />px}
		.MOT_TRANG #anhVienHoaDon{
				height: <xsl:value-of select="$pageSizeY - $topPage - $bottomPage" />px;
				margin-top:-<xsl:value-of select="$sizeAnhVien" />px
		}
		.TS_BEN_PHAI #anhVienHoaDon{width:<xsl:value-of select="$pageSizeX - $leftPage - $rightPage - $lineHeight" />px}
		img[src=""], img:not([src]), .KHONG_HIEN_LOGO #khungDiChuyenLogo, .KHONG_CO_HINH_ANH_VIEN #anhVienHoaDon, .KHONG_NEN_LOGO #khungNenLogo, .KHONG_NEN_HOA_VAN #khungNenHoaVan {display:none}

		.KHONG_CO_VIEN_KE #invoice-data, .KHONG_CO_VIEN_KE .page-content{border:none!important}
		.SONG_NGU{padding-left:3px}
		.SONG_NGU:not(.invNameSN):not(.invNameDetailSN){font-size:<xsl:value-of select="$fontSize - 1" />px}
		.KHONG_SONG_NGU .SONG_NGU{display:none!important}
		.table th{font-weight:normal}
		.table th .SONG_NGU {padding:0}
		.KHONG_SONG_NGU .haiCham {display:inline}
		.CO_SONG_NGU .haiCham{display:none!important}
		.KHONG_TRA_CUU .traCuu{display:none!important}

		.textThaiSonRight{ 
			font-size:<xsl:value-of select="$fontSize - 1" />px;
			line-height:<xsl:value-of select="$lineHeight - 1" />px;
			right: -<xsl:value-of select="$fontSize - 3" />px;
			margin-top:115%;position:absolute;display:block;font-style:italic;width:0;
		}
		.CO_HINH_ANH_VIEN .textThaiSonRight{right:-<xsl:value-of select="$sizeAnhVien + $fontSize - 3" />px}
		.textThaiSonRight .text{transform:rotate(-90deg);-webkit-transform:rotate(-90deg);white-space:nowrap}
		.textThaiSonBottom{font-style:italic;text-align:center}

		.KE_DONG_BEN_MUA .buyer .dottedLine {border-bottom:1px dotted;position:absolute}
		.KE_DONG_BEN_BAN .seller .dottedLine {border-bottom:1px dotted;position:absolute}
		.KE_DONG_BANG_HANG .table .dottedLine {border-bottom:1px dotted;position:absolute}
		.infoContainer{width:100%;float:left}
		.colLabel{position:relative}
		.colVal{float:none;box-sizing:border-box;position:relative;z-index:-1}

		.khoiThangHang .colLabel{width:170px}	
		.THONG_TIN_KHONG_THANG_HANG .khoiThangHang .colLabel {width:90px}
		.khoiThangHang .colVal, .THONG_TIN_KHONG_THANG_HANG .khoiThangHang .colVal{float:left;width:calc(100% - 100px)}	
		.THONG_TIN_KHONG_THANG_HANG.CO_SONG_NGU .khoiThangHang .colLabel{width:200px}
		.CO_SONG_NGU .khoiThangHang .colLabel{width:200px;}	
		.CO_SONG_NGU .khoiThangHang .colVal{width:calc(100% - 220px)}
		.THONG_TIN_KHONG_THANG_HANG .colLabel{display:inline;float:left}
		.THONG_TIN_KHONG_THANG_HANG .colVal, .THONG_TIN_KHONG_THANG_HANG .seller .colVal, .THONG_TIN_KHONG_THANG_HANG .buyer .colVal{display:block;float:none}
		.THONG_TIN_KHONG_THANG_HANG .colLabel{height:<xsl:value-of select="$lineHeight - 0.5" />px}

		.BEN_BAN_THANG_HANG .seller .colVal{float:left}
		.BEN_BAN_THANG_HANG .seller .colLabel{width: 120px}
		.BEN_BAN_THANG_HANG .seller .colVal{width: calc(100% - 130px)}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU .seller .colLabel{width: 225px}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU .seller .colVal{width:calc(100% - 235px);float:left}
		.BEN_BAN_THANG_HANG .seller .dottedLine{left:0!important}

		.BEN_BAN_THANG_HANG .seller.khungSmall .colLabel{width:80px}
		.BEN_BAN_THANG_HANG .seller.khungSmall .colVal{width: 100%;float: left}
		.KHONG_SONG_NGU.BEN_BAN_THANG_HANG .seller.khungSmall .colVal{width: calc(100% - 95px)}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU .seller.khungSmall .colLabel{width:145px}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU .seller.khungSmall .colVal{width:calc(100% - 160px)}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU.KE_DONG_BEN_BAN .seller.khungSmall .colVal{width:calc(100% - 155px)}

		.BEN_MUA_THANG_HANG .buyer .colVal{float:left} 
		.BEN_MUA_THANG_HANG .buyer .colLabel{width:120px}
		.BEN_MUA_THANG_HANG .buyer .colVal{width:calc(100% - 130px)}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU .buyer .colLabel{width:225px}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU .buyer .colVal{width:calc(100% - 235px);float:left}
		.BEN_MUA_THANG_HANG .buyer .dottedLine{left:0!important}

		.BEN_MUA_THANG_HANG .buyer.khungSmall .colLabel{width:125px}
		.BEN_MUA_THANG_HANG .buyer.khungSmall .colVal{width:100%;float:left}
		.KHONG_SONG_NGU.BEN_MUA_THANG_HANG .buyer.khungSmall .colVal{width:calc(100% - 135px)}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU .buyer.khungSmall .colLabel{width:145px}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU .buyer.khungSmall .colVal{width:calc(100% - 160px)}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU.KE_DONG_BEN_MUA .buyer.khungSmall .colVal{width:calc(100% - 155px)}

		.dongKhongThangHang .colLabel, .dongKhongThangHang .colVal{width:auto!important}

		.tableContainer{margin:0 auto 10px auto;width:calc(100% - 10px);border:1px solid;border-collapse:collapse}
		.table{width:100%;border-spacing:0;border-collapse:collapse}
		.table tbody tr td.donghang{border-top:1px solid}
		.table thead tr th{border-bottom:1px solid;border-left:1px solid}
		.table tbody tr td{border-bottom:none; border-left:1px solid}
		.table thead tr th:first-child, .table tbody tr td:first-child{border-left:none}
		#headerTemp table td.infoTemp, .header table td.infoTemp{padding:2px 5px 5px 5px}
		.BANG_KHONG_COT_MA .table:not(.table-vat) tr th:nth-child(2), .BANG_KHONG_COT_MA .table:not(.table-vat) tr td:nth-child(2) {display:none}
		.BANG_KHONG_COT_TIEN_THUE .table:not(.table-vat) tr th:nth-child(8), .BANG_KHONG_COT_TIEN_THUE .table:not(.table-vat) tr td:nth-child(8) {display:none}
		.BANG_KHONG_COT_CHIET_KHAU .table:not(.table-vat) tr th:nth-child(9), .BANG_KHONG_COT_CHIET_KHAU .table:not(.table-vat) tr td:nth-child(9) {display:none}
		.BANG_KHONG_TI_GIA [data-style=txt_exchangeRateContainer] {display:none}

		.BANG_CO_TRAN_VIEN .tableContainer{width: 100%}
		.BANG_KHONG_CO_VIEN_NGOAI .tableContainer{border: none}
		.BANG_CO_TRAN_VIEN.CO_VIEN_KE .tableContainer{border-left:none; border-right:none}
		.BANG_CO_BO_TRON_GOC .tableContainer{border-radius:10px}

		.BANG_CO_NGAN_HEADER_BODY_MO .table thead tr th{border-bottom-color: #dddddd}
		.BANG_KHONG_CO_NGAN_HEADER_BODY .table thead tr th{border-bottom: none}

		.BANG_KHONG_CO_KE_COT .table thead tr th, .BANG_KHONG_CO_KE_COT .table tbody tr td{border-left:none}
		.BANG_CO_KE_DONG_MO .table tbody tr td.donghang {border-top: 1px solid #ddd}

		.BANG_KHONG_CO_KE_DONG .table tbody tr td.donghang, .table tbody tr:first-child td.donghang {border-top: none}
		.BANG_CO_KE_COT_MO .table thead tr th, .BANG_CO_KE_COT_MO .table tbody tr td{border-left-color:#dddddd}


		.phanCachKhoi1Khoi2 #invoiceData &gt; tr:first-child table{border-bottom: 1px solid}
		.phanCachKhoi2Khoi3 #invoiceData &gt; tr:nth-child(2) table{border-bottom: 1px solid}
		.phanCachKhoi3Khoi4 #invoiceData &gt; tr:nth-child(3) table{border-bottom: 1px solid}

		#headerTemp td, .header td{padding:0}
		[data-temp=Template_Code_Series_invoiceNumber], [data-temp=emptyTemp], [data-temp=TemplateLogo]{width:23%}
		[data-temp=TemplateInvoiceInformation]{padding:5px 0!important}
		.CO_SONG_NGU [data-temp=Template_Code_Series_invoiceNumber]{width:26%}
		.CO_SONG_NGU [data-temp=emptyTemp]{width:29%}
		.CO_SONG_NGU [data-temp=TemplateLogo]{width:21%}
		[data-temp=TemplateLogo]{padding:0 5px!important}
		[data-temp=Template_Code_Series_invoiceNumber]{padding-left:5px!important}

		.TS_BEN_DUOI .textThaiSonRight, .TS_BEN_PHAI .textThaiSonBottom{display: none}
		.TS_BEN_DUOI .textThaiSonBottom{display: block}
		.text-bottom-page{
			bottom:<xsl:value-of select="$borderWidthPage" />px;
			line-height: <xsl:value-of select="$lineHeight - 4" />px;
			font-size: <xsl:value-of select="$fontSize - 1" />px;
			width:100%;text-align:center!important;padding-top:10px;
		}
		.MOT_TRANG .text-bottom-page{position:absolute}

		.page{ 
			page-break-inside:avoid;
			page-break-after:always;
			padding-top:<xsl:value-of select="$topPage" />px;
			padding-bottom:<xsl:value-of select="$bottomPage" />px
		}
		.page-number{text-align:right}
		.CO_HINH_ANH_VIEN .page-number{margin-right:-<xsl:value-of select="$sizeAnhVien" />px}

		.CO_VIEN_KE .page-content{
			border-width:<xsl:value-of select="$borderWidthPage" />px;
			border-style:<xsl:value-of select="$borderStylePage" />;
			border-color:<xsl:value-of select="$borderColorPage" />
		}
		.CO_HINH_ANH_VIEN .header{padding-top:<xsl:value-of select="$sizeAnhVien" />px}

		.clearBoth{clear:both}
		.centerContainer{display:flex;justify-content:center;align-items:center}
		.w02o{width:2%}
		.w05o{width:5%}
		.w10o{width:10%}
		.w15o{width:15%}
		.w20o{width:20%}
		.w23o{width:23%}
		.w25o{width:25%}
		.w27o{width:27%}
		.w30o{width:30%}
		.w35o{width:35%}
		.w40o{width:40%}
		.w43o{width:43%}
		.w45o{width:45%}
		.w50o{width:50%}
		.w55o{width:55%}
		.w60o{width:60%}
		.w65o{width:65%}
		.w70o{width:70%}
		.w75o{width:75%}
		.w80o{width:80%}
		.w85o{width:85%}
		.w90o{width:90%}
		.w95o{width:95%}
		.w99o{width:99%}
		.w100o{width:100%}

		.col1  {width: 5%}
		.col2  {width: 10%}
		.col3  {width: 15%}
		.col4  {width: 20%}
		.col5  {width: 25%}
		.col6  {width: 30%}
		.col7  {width: 35%}
		.col8  {width: 40%}
		.col9  {width: 45%}
		.col10 {width: 50%}
		.col11 {width: 55%}
		.col12 {width: 60%}
		.col13 {width: 65%}
		.col14 {width: 70%}
		.col15 {width: 75%}
		.col16 {width: 80%}
		.col17 {width: 85%}
		.col18 {width: 90%}
		.col19 {width: 95%}
		.col20 {width: 100%}

		.dbl{display:block!important}
		.dib{display:inline-block}
		.fl{float:left!important} .fr{float:right!important}
		.ml5{margin-left:0px} .mr5{margin-right:5px} .pl5{padding-left:5px} .pr5{padding-right:5px} .pl7{padding-left:7px} .pr7{padding-right:7px} .pr3{padding-right:5px} .pd0{padding:0}
		[class*=col]:not(.colVal){float:left}
		.text-left{text-align:left!important}
		.text-right{text-align:right!important}
		.text-center{text-align:center!important}
		.colon{padding-right:3px}
		.text-center .colon{float:none}
		p{margin:0}
		.text-left{text-align:left !important}
		.text-right{text-align:right !important}
		.text-center{text-align:center !important}
		.borderTop{border-top: 1px solid !important}
		.borderLeft{border-left: 1px solid !important}
		.borderRight{border-right: 1px solid !important}
		.borderBot{border-bottom: 1px solid !important}
		.borderAll{border: 1px solid !important}
		.phathanh{position: absolute;top: 300px;left:calc(50% - 125px);width: 250px;height: auto;background:none;transform:rotate(-45deg);-webkit-transform:rotate(-45deg);opacity:0.8}
		.xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700}
		.splitLine{white-space:pre-line}
		.sub-info{display:inline}

		.printFlag{margin-top:3px;line-height:<xsl:value-of select="$lineHeight - 2" />px;font-size:<xsl:value-of select="$fontSize - 1" />px}
		.printFlag .SONG_NGU{font-size:<xsl:value-of select="$fontSize - 2" />px!important}
		.HOA_DON_GOC .hoaDonChuyenDoi {display:none}
		#tblSignature{width:100%;line-height:<xsl:value-of select="$lineHeight - 4" />px}
		#tblSignature .signature{height:<xsl:value-of select="$lineHeight * 2" />px}
		#tblSignature .tdChuyenDoi{height:<xsl:value-of select="($lineHeight + 1) * 3" />px}
		#tblSignature .hasDirector{display:none}
		#tblSignature .br{display:none}
		#kyso{ 
			line-height:<xsl:value-of select="$fontSize" />px;
			font-size:<xsl:value-of select="$fontSize - 4" />px;
			max-width:<xsl:value-of select="$pageSizeX div 3.5" />px;
			margin:0 auto;border:solid 1px red;padding:3px;color:red;position:relative;z-index:1;text-align:left
		}

		#tblSignature .cot1, #tblSignature .cot4, #tblSignature .cot2{display:none}
		#tblSignature th:nth-child(2){width:50%}
		#tblSignature .tdChuyenDoi{vertical-align:bottom}
		#tblSignature .tdChuyenDoi .cot1{position:relative;min-height:<xsl:value-of select="($lineHeight - 2) * 3 + 8" />px}
		#tblSignature .chuyenDoiContainer{position: absolute;width: 350px;left: 15px;text-align: left;bottom:0}
		.CO_CKS_THU_TRUONG #tblSignature .cot4{display:block}
		.CO_CKS_THU_TRUONG #tblSignature th:nth-child(2), .CO_CKS_THU_TRUONG #tblSignature th:nth-child(3), .CO_CKS_THU_TRUONG #tblSignature th:nth-child(4){width:33%}

		.HOA_DON_CHUYEN_DOI .hoaDonChuyenDoi {display:block}
		.HOA_DON_CHUYEN_DOI #tblSignature th:nth-child(1), .HOA_DON_CHUYEN_DOI #tblSignature th:nth-child(2){width:33.3%}
		.HOA_DON_CHUYEN_DOI.CO_SONG_NGU #tblSignature th:nth-child(1){width:40%}
		.HOA_DON_CHUYEN_DOI.CO_SONG_NGU #tblSignature th:nth-child(2){width:25%}
		.HOA_DON_CHUYEN_DOI .hoaDonGoc {display:none;}
		.HOA_DON_CHUYEN_DOI #tblSignature .cot1{display:block}
		.HOA_DON_CHUYEN_DOI.CO_CKS_THU_TRUONG #tblSignature th:nth-child(1), .HOA_DON_CHUYEN_DOI.CO_CKS_THU_TRUONG #tblSignature th:nth-child(4){width:28%}
		.HOA_DON_CHUYEN_DOI.CO_CKS_THU_TRUONG #tblSignature th:nth-child(2), .HOA_DON_CHUYEN_DOI.CO_CKS_THU_TRUONG #tblSignature th:nth-child(3){width:22%}
		.CO_CKS_THU_TRUONG #tblSignature .hasDirector{display:block}
		.CO_CKS_THU_TRUONG #tblSignature .noDirector{display:none}
		.CO_CKS_THU_TRUONG.HOA_DON_CHUYEN_DOI.CO_SONG_NGU #tblSignature .br {display:block}
		.CO_CKS_THU_TRUONG #tblSignature #kysoContainer{float:right}
		.HOA_DON_CHUYEN_DOI.AN_CHU_KY_SO #kysoContainer {display:none}

		.NOT_SIGN_NOTE .signNote{display:none}
		.NOT_SIGN_NOTE #tblSignature .signature{height:<xsl:value-of select="$lineHeight * 3 + 2" />px}
		.HOA_DON_CHUYEN_DOI .signNote{display:table-row}
			<!-- CSS A5 -->
		.readAmountInWords{font-weight:bold;font-size:<xsl:value-of select="$fontSize + 1" />px}
		[page-size="A5"] [data-temp=Template_Code_Series_invoiceNumber], [page-size="A5"] [data-temp=emptyTemp], [page-size="A5"] [data-temp=TemplateLogo]{width:25%}
		.CO_SONG_NGU[page-size="A5"] [data-temp=Template_Code_Series_invoiceNumber], .CO_SONG_NGU[page-size="A5"] [data-temp=emptyTemp], .CO_SONG_NGU[page-size="A5"] [data-temp=TemplateLogo]{width:30%}
		[page-size="A5"] .tableKhoi3{margin-bottom:0}
		.BEN_MUA_THANG_HANG[page-size="A5"] .buyer .colLabel, .BEN_BAN_THANG_HANG[page-size="A5"] .seller .colLabel{width:95px}
		.BEN_MUA_THANG_HANG[page-size="A5"] .buyer .colVal, .BEN_BAN_THANG_HANG[page-size="A5"] .seller .colVal{width: calc(100% - 105px)}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU[page-size="A5"] .buyer .colLabel{width:175px}
		.BEN_MUA_THANG_HANG.CO_SONG_NGU[page-size="A5"] .buyer .colVal{width:calc(100% - 185px)}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU[page-size="A5"] .seller .colLabel{width:110px}
		.BEN_BAN_THANG_HANG.CO_SONG_NGU[page-size="A5"] .seller .colVal{width:calc(100% - 120px)}
		</style><!-- ###################### STYLE THEO YÊU CẦU CỦA KHÁCH HÀNG VIẾT TẠI ĐÂY ################################# --><style>
.cell{padding:0 5px 5px 5px;float:left;width:<xsl:value-of select="$fontSize" />px;height:<xsl:value-of select="$lineHeight - 3" />px; border:1px solid #000;border-left:none}

.cell1{padding:0 3px 3px 3px;float:left;width:<xsl:value-of select="$fontSize - 2" />px;height:<xsl:value-of select="$lineHeight - 5" />px; border:1px solid #000;border-left:none}


	.cell.ml5{margin-left:;border-left:0px solid #000}
		 .dott {border-bottom:1px dotted;position:;line-height:16px}

		</style></xsl:template></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 0, N'E', 0)
INSERT [dbo].[SHOADON_TEMPLATE] ([MA_HOA_DON_TEMPLATE], [STT], [TEN], [MAU_SO], [MA_LOAI_HOA_DON], [TEMPLATE_FILE], [TEMPLATE_FILE_DATA], [LOGO_FILE], [LOGO_FILE_DATA], [FILE_REPORT_NAME], [FILE_REPORT_XML], [IS_SYSTEM], [GHI_CHU], [FILE_PREVIEW_NAME1], [FILE_PREVIEW_DATA1], [FILE_PREVIEW_NAME2], [FILE_PREVIEW_DATA2], [VERSION], [SO_KY_TU_TEN_HANG], [SO_KY_TU_TIEN_BANG_CHU1], [SO_KY_TU_TIEN_BANG_CHU2], [LIEN1_MAU], [LIEN2_MAU], [LIEN3_MAU], [LIEN4_MAU], [LIEN5_MAU], [LIEN6_MAU], [LIEN7_MAU], [LIEN8_MAU], [LIEN9_MAU], [LIEN1_ANH], [LIEN2_ANH], [LIEN3_ANH], [LIEN4_ANH], [LIEN5_ANH], [LIEN6_ANH], [LIEN7_ANH], [LIEN8_ANH], [LIEN9_ANH], [LIEN1_ANH_DATA], [LIEN2_ANH_DATA], [LIEN3_ANH_DATA], [LIEN4_ANH_DATA], [LIEN5_ANH_DATA], [LIEN6_ANH_DATA], [LIEN7_ANH_DATA], [LIEN8_ANH_DATA], [LIEN9_ANH_DATA], [IS_A5], [IS_ENG_VIET], [IS_ENG_FULL], [SO_DONG_HANG], [GUID_DPHATHANH_KHOITAO], [IS_XAC_THUC], [IS_IN_NGANG], [HINH_THUC_IN], [IS_TT68]) VALUES (N'TSD01', CAST(0 AS Numeric(18, 0)), N'Mẫu test 01', N'01GTKT', N'01', N'', NULL, NULL, NULL, N'NT VINA.xslt', N'<?xml version="1.0" encoding="utf-8"?><!-- Edited by XMLSpyÂ® --><!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">--><xsl:stylesheet version="2.0" xmlns:hnx="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://exslt.org/dates-and-times" xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1" extension-element-prefixes="ex"><xsl:output method="html" /><xsl:template match="inv:invoice"><div style="page-break-inside: avoid; padding-top: 20px"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Hóa Đơn Điện Tử</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /></head><style type="text/css">
                    .line{border-top:1px solid #000;}
                    canvas{display:inline-block}html{font-size:100%}i{font-size:14px}input{margin:0;vertical-align:middle}tr{page-break-inside:avoid}
                    p{orphans:0;widows:3}
                    body{margin:0;font-family:Time New Roman}[class*=col]{float:left;min-height:1px;margin-left:20px}p{margin:0 0 5px}.text-left{text-align:left !important}
                    .text-right{text-align:right !important}.text-center{text-align:center !important}
                    legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                    input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                    .container {
                    width: 715px;
                    <!--height: 980px;-->
                    font-size: 14px;
                    line-height: 23px;
                    font-family: Times New Roman;
                    padding: 0px;
                    border-radius: 0px;
                    margin: 0 auto;
                    border: 1px solid #000;
                    margin-top:px;
                    position: relative;
                    display: table;
                    color:#000;
                    }

                    .invName{text-align:center;font-size:23px;line-height:24px;font-weight:700;margin:0 0 3px;text-transform:uppercase}
                    .row {
                    width: 100%;
                    margin: 0;
                    padding: 0;
                    clear: both;
                    display: table;
                    }

                    .row .col1, .row .col2, .row .col3, .row .col4, .row .col5, .row .col6, .row .col7, .row .col8, .row .col9, .row .col10, .row .col11, .row .col12, .row .col13, .row .col14, .row .col15, .row .col16, .row .col17, .row .col18, .row .col20 {
                    display: block;
                    float: left;
                    padding: 0;
                    margin: 0;
        
                    }
                    .row:after{clear:both}.row:after,.row:before{content:"";display:table;line-height:0}
                    .col1  {width: 5%;}                    
                    .col2  {width: 10%;}                    
                    .col3  {width: 15%;}
                    .col23 {width: 23%}                    
                    .col78 {width: 77%}                    
                    .col4  {width: 20%;}                    
                    .col5  {width: 25%;}                    
                    .col6  {width: 30%;}                    
                    .col7  {width: 35%;}                    
                    .col8  {width: 40%;}                    
                    .col9  {width: 45%;}                    
                    .col10 {width: 50%;}                    
                    .col11 {width: 55%;}                    
                    .col12 {width: 60%;}                    
                    .col13 {width: 65%;}                    
                    .col14 {width: 70%;}                    
                    .col15 {width: 75%;}                    
                    .col16 {width: 80%;}                    
                    .col17 {width: 85%;}                    
                    .col18 {width: 90%;}                    
                    .col19 {width: 95%;}                    
                    .col20 {width: 100%;}       
                    <!--Css add them ko danh cho multi page-->
                    .table {border-spacing:0;width:100%;margin-left:px;margin-top:0px;border-top:1px solid #000;border-bottom:0px solid #000;font-size:14px;color:#000;}
                    .table {border-style:solid solid solid solid;border-width:1px 0px 1px 0px}
                    .table th{padding:2px;text-align:center;}
                    .table th{border-bottom:1px solid #000;font-weight:700;border-left:1px solid #000;}
                    .table th:last-child{border-right:1px solid #000}
                    .table tbody tr th:last-child{border-right:0px solid #000}
                    .table tbody tr th:first-child{border-left:0px solid #000}
        
                    .table td{padding:2px;text-align:left;vertical-align:middle;border-left:1px solid #000}
                    .table td{border-top:1px solid #DDD}
                    .table tbody tr td:last-child{border-right:0px solid #000}
                    .table tbody tr td:first-child{border-left:0px solid #000}
                    .table tbody tr:last-child &gt; td{border-top:1px solid #000;}

                    .table-all-border {border-spacing:0;width:100%}
                    .table-all-border td{padding:2px;border-left:1px solid #000;border-top:1px solid #000}
                    .table-all-border tbody tr td:last-child{border-right:1px solid #000}
                    .table-all-border tbody tr:last-child &gt; td{border-top:1px solid #000;}
                    .table td {line-height:23px}
					.table th {line-height:26px}
                    table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}
        
                    .abcdef{
                    border: 3px none #000000;
                    font-weight: bold;
                    font-size: 40px;
                    position: absolute;
                    top: 200px;
                    left: 61px;
                    width: 600px;

                    background: none;
                    z-index: -2;
                
                    }
                    .abcdef1{
                    border: 3px none #000000;
                    font-weight: bold;
                    font-size: 40px;
                    position: absolute;
                    top: 400px;
                    left: 57px;
                    width: 600px;

                    background: none;
                    z-index: -1;
                
                    }
                    .next-page { page-break-inside:always;  page-break-after:always}
                
                    .TitleHD {text-transform: uppercase;font-size: 19px;font-weight: 900;font-family: time new roman;}
                    .nom{
                    font-weight:500 !important;
                    font-size:12px;
                    text-transform: uppercase;
                    }
                    .boderTop{
                    border-top: 1px solid #000 !important;
                    }
                    .boderLe{
                    border-left: 1px solid #000 !important;
                    }
                    .boderRi{
                    border-right: 1px solid #000 !important;
                    }
                    .boderBot{
                    border-bottom: 1px solid #000 !important;
                    }
                    .boderAll{border: 1px solid #000 !important;}
                    .textThaiSon{
                    position: absolute;
                    top: 250px;
                    display: block;
                    right:-15px;
                    font-style: italic;
                    font-size: 11px;
                    }
                    .phathanh{
                    position:absolute;
                    opacity:0.8;
                    filter:alpha(opacity=100);
                    top:297px;
                    left:180px;
                    width:300px;
                    height:auto;
                    z-index:1;
                    background: none;
                    }
                    .tableheader{height:115px;width:100%}
                    .tableheader .td1{width:25%;line-height:1px}
                    .tableheader .td2{width:50%;}
                    .tableheader .td3{width:25%;}
                    .logo{}
                    .lineh17{line-height:17px !important}
                    .xoabo{font-size:20px;color:red;text-transform:uppercase;font-weight: 700;}
                    .tbks{width:100%;}
                    .tbks td{height:110px}
                    .textcd{height:40px;line-height:17px;margin-top:3px}
                    .kysoban{margin: 0 auto; border: solid 1px #ff0000; padding: 3px; color: #ff0000; position: relative; z-index: 1; font-size: 11px; max-width: 230px; text-align: left;line-height: 14px}
                </style><body style="font-size:8px;"><div class="container"><xsl:if test="inv:invoiceData/inv:phatHanh = ''true''"><img class="phathanh" src="data:image/gif;base64, " /></xsl:if><div id="thaison"><img class="textThaiSon" style="width:15px" src=" data:image/gif;base64, " /></div><!--<img class="abcdef" src="data:image/false;base64, "/>--><table class="tableheader"><tr><td class="text-center td1" style=""><!--<img class="logo" style="width:200px;margin-top:10px" src="data:image/false;base64, "/>--></td><td class="text-center td2" style=""><div class="invName" style="">HÓA ĐƠN GIÁ TRỊ GIA TĂNG</div><div><div><xsl:variable name="issuedDate" select="inv:invoiceData/inv:invoiceIssuedDate" /><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''">
                                                    Ngày     tháng     năm
                                                </xsl:when><xsl:otherwise><xsl:value-of select="concat(''Ngày '', substring($issuedDate, 9, 2), '' tháng '', substring($issuedDate, 6, 2), '' năm '', substring($issuedDate, 1, 4))" /></xsl:otherwise></xsl:choose></div><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><i>(HÓA ĐƠN CHUYỂN ĐỔI TỪ HÓA ĐƠN ĐIỆN TỬ)</i></xsl:when><xsl:otherwise><i>(BẢN THỂ HIỆN CỦA HÓA ĐƠN ĐIỆN TỬ)</i></xsl:otherwise></xsl:choose></div><div class="xoabo"><xsl:value-of select="inv:StatusDelete" /></div></td><td class="" style="">
                                    Mẫu số: <b><xsl:value-of select="inv:invoiceData/inv:templateCode" /></b><br />
                                    Ký hiệu: <b><xsl:value-of select="inv:invoiceData/inv:invoiceSeries" /></b><br />
                                    Số: <span style="color:red ;font-size:26px"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''">
                                                0000000
                                            </xsl:when><xsl:otherwise><xsl:value-of select="inv:invoiceData/inv:invoiceNumber" /></xsl:otherwise></xsl:choose></span></td></tr></table><div class="row line"></div><div class="row"><xsl:choose><xsl:when test="inv:invoiceData/inv:adjustmentType = ''3''"><div class="col20" style="padding-bottom:5px"><b>Thay thế cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''5'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="col20" style="padding-bottom:5px"><b>Điều chỉnh cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when><xsl:when test="inv:invoiceData/inv:adjustmentType = ''7'' and inv:invoiceData/inv:originalInvoiceId != ''''"><div class="col20" style="padding-bottom:5px"><b>Xóa bỏ cho hóa đơn điện tử số: </b><span class="border"><xsl:value-of select="inv:invoiceData/inv:originalInvoiceId" /></span><br /></div></xsl:when></xsl:choose></div><div class="row "><div style="padding-left:5px; padding-top: 5px"><div>
                                    Đơn vị bán hàng: <span class="TitleHD headContent"><xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /></span></div><div>
                                    Mã số thuế: <span style="font-weight:700;letter-spacing: 4px;font-size:16px"><xsl:value-of select="inv:invoiceData/inv:sellerTaxCode" /></span></div><div class="col17">
                                    Địa chỉ: <xsl:value-of select="inv:invoiceData/inv:sellerAddressLine" /></div><div class="row"><div class="col10">
                                        Điện thoại: <xsl:if test="inv:invoiceData/inv:sellerPhoneNumber !=''x''"><xsl:value-of select="inv:invoiceData/inv:sellerPhoneNumber" /></xsl:if></div></div><div class="row"><div class="col8">
                                        Số tài khoản: <xsl:value-of select="inv:invoiceData/inv:sellerBankAccount" /></div><div class="col12">
                                       
                                        Ngân hàng: <xsl:value-of select="inv:invoiceData/inv:sellerBankName" /></div></div></div></div><div class="row line"></div><div class="row"><div class="" style="padding-left:5px; padding-top: 5px"><div>
                                    Họ tên người mua hàng: <b><xsl:value-of select="inv:invoiceData/inv:buyerDisplayName" /></b></div><div style="height: ">
                                    Tên đơn vị: <b><xsl:value-of select="inv:invoiceData/inv:buyerLegalName" /><br /></b></div><div style="height:45px">
                                    Địa chỉ: <b><xsl:value-of select="inv:invoiceData/inv:buyerAddressLine" /><br /></b></div><div class="row"><div class="col8">
                                    Số tài khoản: <b><xsl:value-of select="inv:invoiceData/inv:buyerBankAccount" /></b></div><div class="col12">
                                    
                                       Ngân hàng:  <b><xsl:value-of select="inv:invoiceData/inv:buyerBankName" /></b></div></div><div class="col10">
                                    Hình thức thanh toán:
                                    <xsl:for-each select="inv:invoiceData/inv:payments/inv:payment"><b><xsl:value-of select="inv:paymentMethodName" /></b></xsl:for-each></div><div class="">
                                    Mã số thuế: <span style="font-weight:700;letter-spacing: 4px;font-size:16px"><xsl:value-of select="inv:invoiceData/inv:buyerTaxCode" /></span></div></div></div><xsl:variable name="nguyente" select="inv:invoiceData/inv:currencyCode" /><table class="table table-bordered table-condensed"><tbody><tr class="thead" style=""><th style="border-left:0px;width:25px">
                                        STT<div class="nom"></div></th><th style="width: 300px;">
                                        Tên hàng hóa, dịch vụ <div class="nom"></div></th><th style="width: 65px;">
                                        Đơn vị tính<div class="nom"></div></th><th style="width: 65px;">
                                        Số lượng <div class="nom"></div></th><th style="width: 90px;">
                                        Đơn giá <div class="nom"></div></th><th style="width: 110px;">
                                        Thành tiền<div class="nom"></div></th></tr><tr class="thead"><td class="text-center boderBot lineh17">1</td><td class="text-center boderBot lineh17">2</td><td class="text-center boderBot lineh17">3</td><td class="text-center boderBot lineh17">4</td><td class="text-center boderBot lineh17">5</td><td class="text-center boderBot lineh17">6 = 4 x 5</td></tr><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><xsl:sort select="inv:lineNumber" data-type="number" /><tr><xsl:choose><xsl:when test="inv:lineNumber =''''"><td class="text-center">
                             
                                                </td></xsl:when><xsl:when test="inv:lineNumber !=''''"><td class="text-center"><xsl:value-of select="inv:lineNumber" /></td></xsl:when></xsl:choose><td><xsl:choose><xsl:when test="../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9''"><xsl:choose><xsl:when test="inv:isIncreaseItem = '''' or inv:isIncreaseItem = ''true''">
                                                            Điều chỉnh tăng: 
                                                        </xsl:when><xsl:otherwise>
                                                            Điều chỉnh giảm: 
                                                        </xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:value-of select="inv:itemName" /><xsl:choose><xsl:when test="inv:vatPercentage = ''-1'' ">
                                                     (không chịu thuế)
                                                </xsl:when><xsl:when test="inv:vatPercentage = ''-2'' ">
                                                     (không kê khai nộp thuế)
                                                </xsl:when></xsl:choose></td><td class="text-center"><xsl:value-of select="inv:unitName" /></td><td class="text-right"><xsl:if test="inv:quantity != ''''"><xsl:value-of select="format-number(inv:quantity,''##,##0.#####'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:unitPrice != ''''"><xsl:value-of select="format-number(inv:unitPrice,''##,##0.#####'')" /></xsl:if></td><td class="text-right"><xsl:if test="inv:itemTotalAmountWithoutVat != ''''"><xsl:value-of select="format-number(inv:itemTotalAmountWithoutVat,''##,##0.#####'')" /></xsl:if></td></tr></xsl:for-each><xsl:variable name="tygia"><xsl:choose><xsl:when test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''">
                                            0
                                        </xsl:when><xsl:otherwise>
                                            0
                                        </xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="chietkhau"><xsl:choose><xsl:when test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0">
                                            1
                                        </xsl:when><xsl:otherwise>
                                            0
                                        </xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="lenght" select="51" /><xsl:variable name="kct" select="18" /><xsl:variable name="kkknt" select="25" /><xsl:variable name="tpkhac"><xsl:for-each select="inv:invoiceData/inv:items/inv:item"><tpkhac><xsl:choose><xsl:when test="inv:vatPercentage =''-1''"><xsl:variable name="ktthua" select="(string-length(inv:itemName) + $kct) mod $lenght" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua + $kct) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:when><xsl:when test="inv:vatPercentage =''-2''"><xsl:variable name="ktthua" select="(string-length(inv:itemName) + $kkknt) mod $lenght" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua + $kkknt) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:when><xsl:otherwise><xsl:variable name="ktthua" select="(string-length(inv:itemName) mod $lenght)" /><xsl:variable name="ktcan" select="$lenght - $ktthua" /><xsl:value-of select="((string-length(inv:itemName) - $ktthua) div $lenght) + (($ktthua + $ktcan) div $lenght)" /></xsl:otherwise></xsl:choose></tpkhac></xsl:for-each></xsl:variable><xsl:variable name="lenghtNote"><xsl:if test="inv:invoiceData/inv:invoiceNote !=''''"><Note><xsl:variable name="ktthua1" select="(string-length(inv:invoiceData/inv:invoiceNote) mod $lenght)" /><xsl:variable name="ktcan1" select="$lenght - $ktthua1" /><xsl:value-of select="((string-length(inv:invoiceData/inv:invoiceNote) - $ktthua1) div $lenght) + (($ktthua1 + $ktcan1) div $lenght)" /></Note></xsl:if></xsl:variable><xsl:variable name="dong" select="sum(exsl:node-set($tpkhac)/tpkhac)" /><xsl:variable name="dongNote" select="sum(exsl:node-set($lenghtNote)/Note)" /><xsl:variable name="du" select="10" /><xsl:if test="inv:invoiceData/inv:discountAmount != '''' and inv:invoiceData/inv:discountAmount != 0"><tr><td class="text-center"></td><td nowrap="">Chiết khấu</td><td></td><td></td><td></td><td class="text-right"><xsl:value-of select="format-number(inv:invoiceData/inv:discountAmount,''##.##0,##'',''number'')" /></td></tr></xsl:if><xsl:if test="inv:invoiceData/inv:invoiceNote != ''''"><tr><td class="text-center"></td><td><xsl:value-of select="inv:invoiceData/inv:invoiceNote" /></td><td></td><td class="text-right"></td><td class="text-right"></td><td class="text-right"></td></tr></xsl:if><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$du - $dong - $dongNote - $tygia - $chietkhau" /></xsl:call-template><xsl:variable name="FullLoai" select="inv:invoiceData/inv:invoiceType" /><xsl:variable name="loaiHoaDon" select="substring($FullLoai, 1, 2)" /><xsl:if test="$loaiHoaDon=''01''"><tr><td colspan="6" class="boderTop text-right" style="border-left:;border-bottom:0"><div class="row"><div class="col8">
                             
                                                </div><div class="col7 text-right"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                    Điều chỉnh tăng: 
                                                                </xsl:when><xsl:otherwise>
                                                                    Điều chỉnh giảm: 
                                                                </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                            Cộng tiền hàng:
                                                        </xsl:otherwise></xsl:choose></div><div class="col5 text-right"><xsl:if test="inv:invoiceData/inv:totalAmountWithoutVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithoutVAT,''##,##0.#####'')" /></xsl:if></div></div></td></tr></xsl:if><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh = ''true''"><xsl:if test="$loaiHoaDon=''01''"><tr><td class="boderTop" colspan="6" style="border-bottom:0"><div class="row"><div class="col8">
                                                            Thuế suất GTGT:
                                       %
                                                        </div><div class="col7 text-right">
                                                            Tiền thuế GTGT:
                                                        </div><div class="col5 text-right">
                               
                                                        </div></div></td></tr></xsl:if></xsl:when><xsl:otherwise><xsl:if test="$loaiHoaDon=''01''"><xsl:for-each select="inv:invoiceData/inv:invoiceTaxBreakdowns/inv:invoiceTaxBreakdown"><tr><td class="boderTop" colspan="6" style="border-left:;border-bottom:0"><div class="row"><div class="col8">
                                                                Thuế suất GTGT:
                                                                <xsl:choose><xsl:when test="inv:vatPercentage = ''-1''">
                                                                        không chịu thuế
                                                                    </xsl:when><xsl:when test="inv:vatPercentage = ''-2''">
                                                                        không kê khai nộp thuế
                                                                    </xsl:when><xsl:otherwise><span class="percentage"><xsl:value-of select="inv:vatPercentage" /> %
                                                                        </span></xsl:otherwise></xsl:choose></div><div class="col7 text-right"><xsl:choose><xsl:when test="(../../inv:adjustmentType = ''5'' or ../../inv:adjustmentType = ''9'') and ../../inv:totalVATAmount != ''0''"><xsl:choose><xsl:when test="inv:isVatTaxAmountPos != '''' and inv:isVatTaxAmountPos = ''true''">
                                                                                Điều chỉnh tăng:
                                                                            </xsl:when><xsl:otherwise>
                                                                                 Điều chỉnh giảm: 
                                                                            </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                        Tiền thuế GTGT:
                                                                    </xsl:otherwise></xsl:choose></div><div class="col5 text-right"><xsl:choose><xsl:when test="inv:vatPercentage = ''-1''">
                                                                                                                                            </xsl:when><xsl:when test="inv:vatPercentage = ''0''">
                                                                        0
                                                                    </xsl:when><xsl:otherwise><xsl:if test="inv:vatTaxAmount != ''''"><xsl:value-of select="format-number(inv:vatTaxAmount,''##,##0.#####'')" /></xsl:if></xsl:otherwise></xsl:choose></div></div></td></tr></xsl:for-each></xsl:if></xsl:otherwise></xsl:choose><tr><td colspan="5" class="text-left boderTop" style="border-left:"><div class="row"><xsl:choose><xsl:when test="$loaiHoaDon=''02''"><div class="col3" style="padding-left: 10px">
													Nguyên tệ:
													</div><div class="col4"><xsl:value-of select="$nguyente" /></div><div class="col3">
													Tỷ giá:
													</div><div class="col4"><xsl:if test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''"><xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##,##0.#####'')" /> VND
														</xsl:if></div><div class="col6 text-left" style="width: 28%"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                        Điều chỉnh tăng: 
                                                                    </xsl:when><xsl:otherwise>
                                                                        Điều chỉnh giảm: 
                                                                    </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                Cộng tiền hàng hóa, dịch vụ
                                                            </xsl:otherwise></xsl:choose></div></xsl:when><xsl:otherwise><div class="col3" style="padding-left: 10px">
													Nguyên tệ:
													</div><div class="col4"><xsl:value-of select="$nguyente" /></div><div class="col3">
													Tỷ giá:
													</div><div class="col4"><xsl:if test="inv:invoiceData/inv:exchangeRate !='''' and inv:invoiceData/inv:exchangeRate !=''1''"><xsl:value-of select="format-number(inv:invoiceData/inv:exchangeRate,''##,##0.#####'')" /> VND
														</xsl:if></div><div class="col6 text-right" style="width: 28%"><xsl:choose><xsl:when test="(inv:invoiceData/inv:adjustmentType = ''5'' or inv:invoiceData/inv:adjustmentType = ''9'') and inv:invoiceData/inv:totalAmountWithVAT != ''0''"><xsl:choose><xsl:when test="inv:invoiceData/inv:isTotalAmountPos = '''' or inv:invoiceData/inv:isTotalAmountPos = ''true''">
                                                                        Điều chỉnh tăng: 
                                                                    </xsl:when><xsl:otherwise>
                                                                        Điều chỉnh giảm: 
                                                                    </xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise>
                                                                Tổng cộng tiền thanh toán: 
                                                            </xsl:otherwise></xsl:choose></div></xsl:otherwise></xsl:choose></div></td><td class="text-right boderTop"><div class=""><xsl:if test="inv:invoiceData/inv:totalAmountWithVAT != ''''"><xsl:value-of select="format-number(inv:invoiceData/inv:totalAmountWithVAT,''##,##0.#####'')" /></xsl:if></div></td></tr><tr><td colspan="6" class="boderTop text-left" style="border-left:0px"><div class="row" style="margin-left: 10px; width: 98%; height: 48px">
                                            Số tiền viết bằng chữ: <xsl:value-of select="inv:invoiceData/inv:totalAmountWithVATInWords" /><br /></div></td></tr></tbody></table><div class="footer"><div class="text-left textcd" style=""><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><div class="row" style=""><div class="col7" style=""><p class="text-center"><b>Người thực hiện chuyển đổi</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col6" style=""><p class="text-center"><b>Người mua hàng </b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col7" style=""><p class="text-center"><b>Người bán hàng<br /></b><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></xsl:when><xsl:otherwise><div class="row"><div class="col10"><p class="text-center"><b>Người mua hàng</b><br /><i>(Ký, ghi rõ họ tên)</i></p></div><div class="col10" style=""><p class="text-center"><b>Người bán hàng<br /></b><i>(Ký, đóng dấu, ghi rõ họ tên)</i></p></div></div></xsl:otherwise></xsl:choose></div><div class="row" style=""><table class="tbks"><tr><xsl:choose><xsl:when test="inv:viewData/inv:printFlag = ''true''"><td style="vertical-align:bottom;"><div class="row text-center" style="font-size:13px;"><div class="col7"><xsl:value-of select="inv:viewData/inv:userPrint" /> 
                                                            <div class="">
                                                                Ngày chuyển đổi: <xsl:choose><xsl:when test="inv:viewData/inv:DateExchange != ''''"><xsl:variable name="dateconvert" select="inv:viewData/inv:DateExchange" /><xsl:value-of select="concat(substring($dateconvert, 9, 2),''/'', substring($dateconvert, 6, 2),''/'', substring($dateconvert, 1, 4))" /></xsl:when><xsl:otherwise>
                                                                            /    /20
                                                                    </xsl:otherwise></xsl:choose></div></div></div></td></xsl:when><xsl:otherwise><td style="vertical-align:middle;"><div class="row"><div class="col10">
                                                         
                                                        </div><div class="col10 text-center" style=""><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban"><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                            Signature Valid <br />
                                                                            Ký bởi: <xsl:value-of select="inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="inv:invoiceData/inv:signedDate" />
                                                                            ngày:         /         /   
                                                                        </div></a></xsl:when><xsl:otherwise><xsl:for-each select="hnx:Signature"><xsl:if test="@Id = ''seller''"><a href="#" style="text-decoration:none;"><div id="kysoban" class="kysoban" style=""><img style="border:none;position: absolute; z-index: -1; right: 30px; top:8px" src="data:image/gif;base64,R0lGODlhMgAmAPf/ALLiasrsj7HobtPtsanlUaLeVJ3YVm25MWO0MaznWZvcPuDx0ZHZFfv9+e753X3HIrnsfofQHaLbXrnmcpXbHYvJVrvmebTrbazkUYnKTL/nhPj88vP657Xhebfkca3lc5XaIdfuuqvfYqjeXZLWNJXbG43TMY7WFtzztK/mc7DpYa/mb6rmVIPLLYHKIHrEKnfCK3/JJ33HKIHKJoPMJXXALHzFKYXNJHO/LYbPI3G9LojQIm+7MJDWHozTII3VH4vSIY7WH4nRIZHXHZLYHWq3Mmi1NJPZHJPaHHjDIoLMH/D63/T7537HKP3++3zGKYnRInvFKIPNHYjQI5LZGZDXHKznVs/sp6fiW4nKRpXZJP3+/a/gbN/0vZPPUvT2863db8PojZHYHabjTq7jVfL568DofLTja6HeWdjuvXvDNbnUqY/TM6zmZ5PKbazkca7mcZLZHLvfnq7lbqDcYoLINJHKaJDZELHoc5PXMWi1M4zUFtLvoMnpn4nSGYbPHs3rpcLpg4vUGJbNdO7x7O/4593xx/P75fL57arZevf876nicK/mdqnibojPL+Xz1eX10LHpa6DdSa/oZaLdZNruy6rkTJ/dU9Pqxdvvwcfpl4fIS3K8NH/JInzGJYbKO37BSYjNMpvVVuLy0J7bV9bvr5/ScqLKi7Xfg7HodbbscOz33uH1vrDnb+b02KLbWaXdXXvGJM/qsKfiZYXOG3fDIs/umqjiZef11a7nYI3IXvT77L/ofPj79fn89ub2yH3IHrPjZZjZQsnevIzRN5vZVYTKM3G7RLTamrHpZ6zkb5DXFq/nbJvcMafbZZbZOZ/fRJLVPofONX/IK5XMben12YDJJ/f78/H55bbsb4PMIIHKJYPLKYO/YaHgR4XMLafjRpTXM6PdT6PhSajfWYjKQNXwqNjxq4HLIoLLI7HoceLq3bPpcZHYGZHYGsflqJPaGfv++Ov24Oz34/T67/L56JDTQZHSRa7kVcrqnIrQLozSK4jRGorTGITNHv///yH5BAEAAP8ALAAAAAAyACYAAAj/AP8JHEiwoMGDCBMqXMiwocOHEAv+CuAgosWFrMBZsbTkoseCKAhkU6EKQ8ePHkOqYHCnxAUMTFBaPMciAQMkSOBRuIDvkMyHfBKwWIYTJxUQL2P+XGgrAYFlcY5IldoORDIy5pYmDJBrzDIiYMOCdaelmRmtBwNNGndCzJC3cOFWmdAFbUFekbzt6cG3r98ewewWtCAAmqAgiBMrDjIhIYczACpe9MBOQb8fmDNr/mHBsTgIECSViujEgwAFfnyoXs3ah4aEisgxC5enDZbXDuMBEPCMH5DfwIMDCZPQyYhWUCIoL4BnxAaGDUSoIxEBipDr2LNrUshlxb4/O8LT/xKWqgAkhRtErCBBa0r49/B35FPYYQ4bfzny55diIsUlQAjtAgscJkih34EHXqFQH2hEo8QNEEZ4gzY3zHJLBwZh80oK+jwo4Yc3DLAQGMSgQ8OJKKKYjgukKONMPQOtIsEHjriQ4o0nirgQLqHM4OOPQM6wDTD2MGJACBtkIsEb33QSZJDchOBQNaLEYOWVWMZgzQPSvEHKPcU00sIDWWbZQhoQNYCKDGy26aYMTcQiAx2LUDKNJ0286aYxhlwkSx02BCrooE9EkUQtSUTxxKCMfjLKR4948cKklFZq6aWUlvMoSr4kAsOnoIYq6qgwZOGKVu+oUcOqrLbqaqsZyG5j1wIZ4GDrrbjmausm8wj2zzWm6CDssMQWW0Ehvg4kByc8NOvss81WUEayBFUCygHYZqutLvRQWxAi1BQh7rji2tGLtwchY4QeRrRrhBsNoIsQJscgYO8g8cqL0BendLPGFvoqtM4whARssEABAQA7" kasperskylab_antibanner="on" />
                                                                                    Signature Valid <br />
                                                                                    Ký bởi: <xsl:value-of select="//./inv:invoiceData/inv:sellerLegalName" /><br />Ký  <xsl:variable name="signedDate" select="//./inv:invoiceData/inv:signedDate" /><xsl:value-of select="concat(''ngày: '', substring($signedDate, 9, 2), ''/'', substring($signedDate, 6, 2), ''/'', substring($signedDate, 1, 4))" /></div></a></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose></div></div></td></xsl:otherwise></xsl:choose></tr></table></div></div><div class="row text-center lineh17"><div class="row text-center"><xsl:choose><xsl:when test="inv:invoiceData/inv:phatHanh=''true''">
                                        Mã nhận hóa đơn:                     tra cứu tại:
                                    </xsl:when><xsl:otherwise>
                                        Mã nhận hóa đơn:
                                        <b><xsl:value-of select="inv:invoiceData/inv:delivery/inv:containerNumber" /></b> tra cứu tại: 
                                        <xsl:variable name="wtc" select="inv:invoiceData/inv:delivery/inv:UrlWebTraCuu" /><a href="{$wtc}"><xsl:value-of select="$wtc" /></a></xsl:otherwise></xsl:choose></div><div class="text-center row" style=""><i>
                                    (Cần kiểm tra, đối chiếu khi lập, giao nhận hóa đơn)
                                </i></div></div></div><input type="hidden" id="qrcodeContent"><xsl:attribute name="value"><xsl:value-of select="inv:controlData/inv:qrCodeData" /></xsl:attribute></input></body></html></div></xsl:template><xsl:template name="dummy-rows"><xsl:param name="how-many" select="0" /><xsl:if test="$how-many &gt; 0"><tr><td class="text-center" style="border-left:0px">
                      
                </td><!--<td>
                  <xsl:value-of select="inv:itemCode"/>
                </td>--><td></td><td class="text-left"></td><td class="text-right"></td><td></td><td class="text-right"></td></tr><xsl:call-template name="dummy-rows"><xsl:with-param name="how-many" select="$how-many - 1" /></xsl:call-template></xsl:if></xsl:template><xsl:decimal-format name="number" decimal-separator="," grouping-separator="." /></xsl:stylesheet>', NULL, N'', NULL, NULL, NULL, NULL, NULL, CAST(35 AS Numeric(18, 0)), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, CAST(10 AS Numeric(18, 0)), NULL, NULL, 1, N'E', NULL)
GO
INSERT [dbo].[SKHOAN_THU_NHAP] ([MA_KTN], [TEN_KTN], [HienThi], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (N'AA', N'Phụ cấp', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SKHOAN_THU_NHAP] ([MA_KTN], [TEN_KTN], [HienThi], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (N'KD', N'Kinh doanh', 1, CAST(N'2022-04-09T16:20:50.000' AS DateTime), N'root', CAST(N'2022-04-09T16:20:50.000' AS DateTime), N'root')
INSERT [dbo].[SKHOAN_THU_NHAP] ([MA_KTN], [TEN_KTN], [HienThi], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (N'LT', N'Làm thêm', 1, CAST(N'2022-04-09T16:16:00.000' AS DateTime), N'root', CAST(N'2022-04-09T16:16:00.000' AS DateTime), N'root')
INSERT [dbo].[SKHOAN_THU_NHAP] ([MA_KTN], [TEN_KTN], [HienThi], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (N'TL', N'Tiền lương', 1, CAST(N'2022-04-09T15:01:38.000' AS DateTime), N'root', CAST(N'2022-04-14T17:23:15.000' AS DateTime), N'root')
INSERT [dbo].[SKHOAN_THU_NHAP] ([MA_KTN], [TEN_KTN], [HienThi], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (N'TT', N'Tiền thưởng', 1, CAST(N'2022-04-09T15:01:38.000' AS DateTime), N'root', CAST(N'2022-04-14T17:23:15.000' AS DateTime), N'root')
GO
SET IDENTITY_INSERT [dbo].[SKIEU_DU_LIEU] ON 

INSERT [dbo].[SKIEU_DU_LIEU] ([SKIEU_DU_LIEUID], [MA_KIEU], [TEN_KIEU], [TEN_KIEU_DATABASE]) VALUES (1, 1, N'Kiểu văn bản', N'ntext')
INSERT [dbo].[SKIEU_DU_LIEU] ([SKIEU_DU_LIEUID], [MA_KIEU], [TEN_KIEU], [TEN_KIEU_DATABASE]) VALUES (2, 2, N'Kiểu số tự nhiên', N'int')
INSERT [dbo].[SKIEU_DU_LIEU] ([SKIEU_DU_LIEUID], [MA_KIEU], [TEN_KIEU], [TEN_KIEU_DATABASE]) VALUES (3, 3, N'Kiểu ngày', N'datetime')
INSERT [dbo].[SKIEU_DU_LIEU] ([SKIEU_DU_LIEUID], [MA_KIEU], [TEN_KIEU], [TEN_KIEU_DATABASE]) VALUES (4, 4, N'Kiểu ký tự', N'nvarchar')
INSERT [dbo].[SKIEU_DU_LIEU] ([SKIEU_DU_LIEUID], [MA_KIEU], [TEN_KIEU], [TEN_KIEU_DATABASE]) VALUES (5, 5, N'Kiểu số thập phân', N'numeric')
SET IDENTITY_INSERT [dbo].[SKIEU_DU_LIEU] OFF
GO
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'AY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'BY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'CY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'DY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ED', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ER', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ES', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ET', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'EY', NULL)
GO
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FF', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FI', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FO', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'FY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'GY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'HY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ID', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IF', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'II', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IO', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'IY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KR', NULL)
GO
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'KY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'LY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ME', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ML', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'MY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ND', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'NY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OF', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OI', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ON', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OO', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'OY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PN', NULL)
GO
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'PY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'QY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'RY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'ST', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'SY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'TY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UN', NULL)
GO
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'US', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'UY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'VY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'XY', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YA', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YB', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YC', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YD', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YE', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YG', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YH', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YK', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YL', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YM', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YN', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YP', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YQ', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YR', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YS', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YT', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YU', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YV', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YX', NULL)
INSERT [dbo].[SKY_HIEU_TIEN_TO] ([MA], [IS_HIENTHI]) VALUES (N'YY', NULL)
GO
SET IDENTITY_INSERT [dbo].[SLOAI_CHUNG_TU] ON 

INSERT [dbo].[SLOAI_CHUNG_TU] ([SLOAI_CHUNG_TUID], [MA_LOAI_CT], [TEN_CHUNG_TU], [GHI_CHU], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (1, N'HD', N'Hợp đồng', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SLOAI_CHUNG_TU] ([SLOAI_CHUNG_TUID], [MA_LOAI_CT], [TEN_CHUNG_TU], [GHI_CHU], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (2, N'BBH', N'Biên bản hủy', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SLOAI_CHUNG_TU] ([SLOAI_CHUNG_TUID], [MA_LOAI_CT], [TEN_CHUNG_TU], [GHI_CHU], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (3, N'BBDC', N'Biên bản điều chỉnh', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[SLOAI_CHUNG_TU] ([SLOAI_CHUNG_TUID], [MA_LOAI_CT], [TEN_CHUNG_TU], [GHI_CHU], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (4, N'CTK', N'Chứng từ khác', NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[SLOAI_CHUNG_TU] OFF
GO
SET IDENTITY_INSERT [dbo].[SLOAI_DIEU_CHINH] ON 

INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (1, N'Số lượng', 1, NULL, NULL, NULL, NULL, 1)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (2, N'Đơn giá', NULL, 1, NULL, NULL, NULL, 2)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (3, N'Tiền thuế', NULL, NULL, 1, NULL, NULL, 3)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (4, N'Thành tiền', NULL, NULL, NULL, 1, NULL, 4)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (5, N'Chiết khấu', NULL, NULL, NULL, NULL, 1, 5)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (6, N'Số lượng + Đơn giá', 1, 1, NULL, NULL, NULL, 6)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (7, N'Số lượng + Tiền thuế', 1, NULL, 1, NULL, NULL, 7)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (8, N'Số lượng + Thành tiền', 1, NULL, NULL, 1, NULL, 8)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (9, N'Số lượng + Đơn giá + Tiền thuế', 1, 1, 1, NULL, NULL, 9)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (10, N'Số lượng + Đơn giá + Thành tiền', 1, 1, NULL, 1, NULL, 10)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (11, N'Đơn giá + Tiền thuế', NULL, 1, 1, NULL, NULL, 11)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (12, N'Đơn giá + Thành tiền', NULL, 1, NULL, 1, NULL, 12)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (13, N'Đơn giá + Tiền thuế + Thành tiền', NULL, 1, 1, 1, NULL, 13)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (14, N'Tiền thuế +Thành tiền', NULL, NULL, 1, 1, NULL, 16)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (15, N'Số lượng +Chiết khấu', 1, NULL, NULL, NULL, 1, 17)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (16, N'Đơn giá +Chiết khấu', NULL, 1, NULL, NULL, 1, 18)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (17, N'Tiền thuế +Chiết khấu', NULL, NULL, 1, NULL, 1, 19)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (18, N'Thanh tiền +Chiết khấu', NULL, NULL, NULL, 1, 1, 20)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (19, N'Số lượng + Đơn giá +Chiết khấu', 1, 1, NULL, NULL, 1, 21)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (20, N'Số lượng + Tiền thuế +Chiết khấu', 1, NULL, 1, NULL, 1, 22)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (21, N'Số lượng + Thành tiền +Chiết khấu', 1, NULL, NULL, 1, 1, 23)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (22, N'Đơn giá + Tiền thuế + Chiết khấu', NULL, 1, 1, NULL, 1, 24)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (23, N'Đơn giá + Thành tiền + Chiết khấu', NULL, 1, NULL, 1, 1, 25)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (24, N'Tiền thuế +Thành tiền +Chiết khấu', NULL, NULL, 1, 1, 1, 26)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (25, N'Số lượng + Đơn giá + Thành tiền + Chiết khấu', 1, 1, NULL, 1, 1, 27)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (26, N'Số lượng + Tiền thuế + Thành tiền', 1, NULL, 1, 1, NULL, 14)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (27, N'Số lượng + Đơn giá + Tiền thuế + Chiết khấu', 1, 1, 1, NULL, 1, 28)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (28, N'Số lượng + Đơn giá +Tiền thuế + Thành tiền', 1, 1, 1, 1, NULL, 15)
INSERT [dbo].[SLOAI_DIEU_CHINH] ([SLOAI_DIEU_CHINHID], [TEN_DIEU_CHINH], [DC_SO_LUONG], [DC_DON_GIA], [DC_TIEN_THUE], [DC_THANH_TIEN], [DC_CHIET_KHAU], [STT]) VALUES (29, N'Số lượng + Đơn giá +Tiền thuế + Thành tiền + Chiết khấu', 1, 1, 1, 1, 1, 29)
SET IDENTITY_INSERT [dbo].[SLOAI_DIEU_CHINH] OFF
GO
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'01', N'Hóa đơn giá trị gia tăng', N'01GTKT', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'02', N'Hóa đơn bán hàng', N'02GTTT', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'03', N'Hóa đơn giá trị gia tăng (dành cho xuất khẩu)', N'01GTKT', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'04', N'Hóa đơn bán hàng (dành cho tổ chức, cá nhân trong khu phi thuế quan)', N'07KPTQ', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'05', N'Phiếu xuất kho kiêm vận chuyển hàng hóa nội bộ', N'03XKNB', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'06', N'Phiếu xuất kho gửi bán hàng đại lý', N'04HGDL', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'07', N'Chứng từ khấu trừ thuế TNCN', N'CTT56', NULL, NULL)
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'08', N'Tem, vé, thẻ các loại', N'', N'', N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'09', N'Biên lai thu tiền phí', N'01BLP', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'11', N'Hóa đơn kiêm hoàn thuế GTGT', N'1C22T', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'21', N'Hóa đơn giá trị gia tăng (từ MTT)', N'1C22M', N'Bắt đầu từ 21', N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'22', N'Hóa đơn bán hàng (từ MTT)', N'2C22M', NULL, N'2.0.1')
INSERT [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON], [TEN_LOAI_HOA_DON], [MAU_SO_HOA_DON], [GHI_CHU], [PHIEN_BAN_XML]) VALUES (N'28', N'Tem, vé, thẻ các loại (từ MTT)', N'5C22M', NULL, N'2.0.1')
GO
INSERT [dbo].[SNAM] ([Nam]) VALUES (CAST(2010 AS Numeric(18, 0)))
INSERT [dbo].[SNAM] ([Nam]) VALUES (CAST(2011 AS Numeric(18, 0)))
INSERT [dbo].[SNAM] ([Nam]) VALUES (CAST(2012 AS Numeric(18, 0)))
INSERT [dbo].[SNAM] ([Nam]) VALUES (CAST(2013 AS Numeric(18, 0)))
INSERT [dbo].[SNAM] ([Nam]) VALUES (CAST(2014 AS Numeric(18, 0)))
INSERT [dbo].[SNAM] ([Nam]) VALUES (CAST(2015 AS Numeric(18, 0)))
GO
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N' vnd', N'VND', CAST(1.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'AUD', N'AUD', CAST(17474.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'CAD', N'CAD', CAST(17483.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'CHF', N'CHF', CAST(23733.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'EUR', N'EUR', CAST(25953.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'GBP', N'GBP', CAST(29562.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'HKD', N'HKD', CAST(2909.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'JPY', N'JPY', CAST(203.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'rytryr', N'tytryrty', CAST(12.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'SGD', N'SGD', CAST(16478.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'THB', N'THB', CAST(668.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'USD', N'USD', CAST(22700.00000000 AS Numeric(23, 8)), NULL, CAST(N'2017-07-05T00:00:00.000' AS DateTime), NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'USD-ISM', N'Đô la mỹ', CAST(21000.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'VND', N'VND', CAST(1.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL)
INSERT [dbo].[SNGTE] ([MA_NT], [TEN_NT], [TY_GIA], [IsHienThi], [NGAY_NHAP], [TEN_NT_ENG], [IS_MAC_DINH]) VALUES (N'ye', N'ye', CAST(565.00000000 AS Numeric(23, 8)), NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ABW', N'Aruba', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AFG', N'Afghanistan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AGO', N'Angola', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AIA', N'Anguilla', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ALA', N'Aland Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ALB', N'Albania', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AND', N'Andorra', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ANT', N'Netherlands Antilles', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ARE', N'United Arab Emirates', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ARG', N'Argentina', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ARM', N'Armenia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ASM', N'American Samoa', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ATA', N'Antarctica', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ATF', N'French Southern Territories', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ATG', N'Antigua and Barbuda', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AUS', N'Australia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AUT', N'Austria', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'AZE', N'Azerbaijan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BDI', N'Burundi', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BEL', N'Belgium', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BEN', N'Benin', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BFA', N'Burkina Faso', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BGD', N'Bangladesh', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BGR', N'Bulgaria', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BHR', N'Bahrain', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BHS', N'Bahamas', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BIH', N'Bosnia and Herzegovina', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BLM', N'Saint-Barthélemy', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BLR', N'Belarus', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BLZ', N'Belize', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BMU', N'Bermuda', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BOL', N'Bolivia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BRA', N'Brazil', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BRB', N'Barbados', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BRN', N'Brunei Darussalam', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BTN', N'Bhutan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BVT', N'Bouvet Island', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'BWA', N'Botswana', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CAF', N'Central African Republic', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CAN', N'Canada', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CCK', N'Cocos (Keeling) Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CHE', N'Switzerland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CHL', N'Chile', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CHN', N'China', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CIV', N'Côte d''Ivoire', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CMR', N'Cameroon', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'COD', N'Congo, Democratic Republic of the', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'COG', N'Congo (Brazzaville)', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'COK', N'Cook Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'COL', N'Colombia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'COM', N'Comoros', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CPV', N'Cape Verde', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CRI', N'Costa Rica', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CS', N'Serbia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CUB', N'Cuba', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CXR', N'Christmas Island', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CYM', N'Cayman Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CYP', N'Cyprus', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'CZE', N'Czech Republic', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'DEU', N'Germany', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'DJI', N'Djibouti', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'DMA', N'Dominica', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'DNK', N'Denmark', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'DOM', N'Dominican Republic', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'DZA', N'Algeria', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ECU', N'Ecuador', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'EGY', N'Egypt', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ERI', N'Eritrea', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ESH', N'Western Sahara', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ESP', N'Spain', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'EST', N'Estonia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ETH', N'Ethiopia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'FIN', N'Finland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'FJI', N'Fiji', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'FLK', N'Falkland Islands (Malvinas)', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'FRA', N'France', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'FRO', N'Faroe Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'FSM', N'Micronesia, Federated States of', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GAB', N'Gabon', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GBR', N'United Kingdom', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GEO', N'Georgia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GGY', N'Guernsey', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GHA', N'Ghana', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GIB', N'Gibraltar', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GIN', N'Guinea', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GLP', N'Guadeloupe', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GMB', N'Gambia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GNB', N'Guinea-Bissau', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GNQ', N'Equatorial Guinea', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GRC', N'Greece', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GRD', N'Grenada', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GRL', N'Greenland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GTM', N'Guatemala', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GUF', N'French Guiana', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GUM', N'Guam', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'GUY', N'Guyana', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'HKG', N'Hong Kong, Special Administrative Region of China', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'HMD', N'Heard Island and Mcdonald Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'HND', N'Honduras', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'HRV', N'Croatia', NULL, 1)
GO
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'HTI', N'Haiti', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'HUN', N'Hungary', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IDN', N'Indonesia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IMN', N'Isle of Man', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IND', N'India', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IOT', N'British Indian Ocean Territory', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IRL', N'Ireland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IRN', N'Iran, Islamic Republic of', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'IRQ', N'Iraq', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ISL', N'Iceland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ISR', N'Israel', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ITA', N'Italy', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'JAM', N'Jamaica', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'JEY', N'Jersey', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'JOR', N'Jordan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'JPN', N'Japan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KAZ', N'Kazakhstan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KEN', N'Kenya', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KGZ', N'Kyrgyzstan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KHM', N'Cambodia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KIR', N'Kiribati', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KNA', N'Saint Kitts and Nevis', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KOR', N'Republic of Korea', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'KWT', N'Kuwait', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LAO', N'Lao PDR', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LBN', N'Lebanon', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LBR', N'Liberia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LBY', N'Libya', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LCA', N'Saint Lucia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LIE', N'Liechtenstein', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LKA', N'Sri Lanka', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LSO', N'Lesotho', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LTU', N'Lithuania', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LUX', N'Luxembourg', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'LVA', N'Latvia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MAC', N'Macao, Special Administrative Region of China', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MAF', N'Saint-Martin (French part)', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MAR', N'Morocco', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MCO', N'Monaco', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MDA', N'Moldova', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MDG', N'Madagascar', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MDV', N'Maldives', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MEX', N'Mexico', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MHL', N'Marshall Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MKD', N'Macedonia, Republic of', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MLI', N'Mali', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MLT', N'Malta', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MMR', N'Myanmar', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MNE', N'Montenegro', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MNG', N'Mongolia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MNP', N'Northern Mariana Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MOZ', N'Mozambique', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MRT', N'Mauritania', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MSR', N'Montserrat', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MTQ', N'Martinique', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MUS', N'Mauritius', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MWI', N'Malawi', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MYS', N'Malaysia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'MYT', N'Mayotte', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NAM', N'Namibia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NCL', N'New Caledonia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NER', N'Niger', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NFK', N'Norfolk Island', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NGA', N'Nigeria', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NIC', N'Nicaragua', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NIU', N'Niue', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NLD', N'Netherlands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NOR', N'Norway', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NPL', N'Nepal', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NRU', N'Nauru', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'NZL', N'New Zealand', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'OMN', N'Oman', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PAK', N'Pakistan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PAN', N'Panama', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PCN', N'Pitcairn', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PER', N'Peru', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PHL', N'Philippines', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PLW', N'Palau', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PNG', N'Papua New Guinea', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'POL', N'Poland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PRI', N'Puerto Rico', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PRK', N'Korea, Democratic People''s Republic of', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PRT', N'Portugal', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PRY', N'Paraguay', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PSE', N'Palestinian Territory, Occupied', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'PYF', N'French Polynesia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'QAT', N'Qatar', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'REU', N'Réunion', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'RKS', N'KOSOVO', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ROU', N'Romania', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'RUS', N'Russian Federation', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'RWA', N'Rwanda', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SAU', N'Saudi Arabia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SDN', N'Sudan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SEN', N'Senegal', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SGP', N'Singapore', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SGS', N'South Georgia and the South Sandwich Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SHN', N'Saint Helena', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SJM', N'Svalbard and Jan Mayen Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SLB', N'Solomon Islands', NULL, 1)
GO
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SLE', N'Sierra Leone', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SLV', N'El Salvador', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SMR', N'San Marino', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SOM', N'Somalia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SPM', N'Saint Pierre and Miquelon', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SRB', N'Serbia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SSD', N'South Sudan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'STP', N'Sao Tome and Principe', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SUR', N'Suriname *', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SVK', N'Slovakia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SVN', N'Slovenia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SWE', N'Sweden', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SWZ', N'Swaziland', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SYC', N'Seychelles', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'SYR', N'Syrian Arab Republic (Syria)', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TCA', N'Turks and Caicos Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TCD', N'Chad', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TGO', N'Togo', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'THA', N'Thailand', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TJK', N'Tajikistan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TKL', N'Tokelau', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TKM', N'Turkmenistan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TLS', N'Timor-Leste', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TON', N'Tonga', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TTO', N'Trinidad and Tobago', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TUN', N'Tunisia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TUR', N'Turkey', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TUV', N'Tuvalu', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TWN', N'Taiwan, Republic of China', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'TZA', N'Tanzania *, United Republic of', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'UGA', N'Uganda', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'UKR', N'Ukraine', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'UMI', N'United States Minor Outlying Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'URY', N'Uruguay', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'USA', N'United States of America', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'UZB', N'Uzbekistan', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VAT', N'Holy See (Vatican City State)', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VCT', N'Saint Vincent and Grenadines', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VEN', N'Venezuela (Bolivarian Republic of)', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VGB', N'British Virgin Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VIR', N'Virgin Islands, US', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VNM', N'Viet Nam', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'VUT', N'Vanuatu', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'WLF', N'Wallis and Futuna Islands', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'WSM', N'Samoa', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'YEM', N'Yemen', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ZAF', N'South Africa', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ZMB', N'Zambia', NULL, 1)
INSERT [dbo].[SNUOC] ([MA_NUOC], [TEN_NUOC], [MA_NT], [HienThi]) VALUES (N'ZWE', N'Zimbabwe', NULL, 1)
GO
SET IDENTITY_INSERT [dbo].[STABLE_DINH_NGHIA] ON 

INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (1, N'DANH_SACH_DOI_DVT', N'Danh sách đổi đơn vị tính', N'', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (2, N'DANH_SACH_HOA_DON_VE_0', N'Danh sách hóa đơn về 0000', N'', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (3, N'DM_IMPORT_EXCEL_ACCEPT_0100507058', N'Bảng Import excel  đã duyệt', N'Bảng dùng import excel dữ liệu đã được khách hàng kiểm duyệt danh cho dự án Diana', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (4, N'DM_IMPORT_EXCEL_TEMP_0100507058', N'Bảng import excel tạm', N'Bảng dùng để import excel từ chương trình tự động của cty DIANA', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (5, N'FORM_PR', N'Danh sách contract no cho form PR riêng', N'', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (6, N'TABLE_BAN_HANG_DT', N'Danh sách bán hàng điện thoại', N'Danh sách bán hàng qua điện thoại', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (8, N'ABC', N'ABC', N'', N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (9, N'FORM_PR_1', N'FORM_PR_1', NULL, N'0101300842', NULL, NULL)
INSERT [dbo].[STABLE_DINH_NGHIA] ([STABLE_DINH_NGHIAID], [STABLE_DINH_NGHIACODE], [TEN_TABLE], [MO_TA], [MA_DV], [MA_CN], [LOAI_CN]) VALUES (10, N'ECHONG', N'Khach hang e', N'wqqw', N'0101300842-999', NULL, NULL)
SET IDENTITY_INSERT [dbo].[STABLE_DINH_NGHIA] OFF
GO
SET IDENTITY_INSERT [dbo].[STHANH_PHO] ON 

INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(1 AS Numeric(23, 0)), N'Ho Chi Minh', N'Hồ chí minh', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(2 AS Numeric(23, 0)), N'Hanoi', N'Hà nội', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(3 AS Numeric(23, 0)), N'Da Nang', N'Đà Nẵng', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(4 AS Numeric(23, 0)), N'', N'', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(5 AS Numeric(23, 0)), N'', N'', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(6 AS Numeric(23, 0)), N'', N'', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(7 AS Numeric(23, 0)), N'', N'', NULL)
INSERT [dbo].[STHANH_PHO] ([STHANH_PHOID], [MA_THANH_PHO], [TEN_THANH_PHO], [GHI_CHU]) VALUES (CAST(8 AS Numeric(23, 0)), N'', N'', NULL)
SET IDENTITY_INSERT [dbo].[STHANH_PHO] OFF
GO
SET IDENTITY_INSERT [dbo].[STHUE] ON 

INSERT [dbo].[STHUE] ([STHUEID], [LOAI], [VAT_NAME], [VAT], [VAT_ORDER], [IS_EXTENSION], [IS_SU_DUNG], [IS_XML], [MO_TA]) VALUES (CAST(1 AS Numeric(18, 0)), N'GTGT', N'Không kê khai thuế', CAST(-2.000000 AS Numeric(18, 6)), 5, NULL, 1, 1, N'1. Hàng hóa, dịch vụ không kê khai nộp thuế GTGT')
INSERT [dbo].[STHUE] ([STHUEID], [LOAI], [VAT_NAME], [VAT], [VAT_ORDER], [IS_EXTENSION], [IS_SU_DUNG], [IS_XML], [MO_TA]) VALUES (CAST(2 AS Numeric(18, 0)), N'GTGT', N'Không chịu thuế', CAST(-1.000000 AS Numeric(18, 6)), 4, NULL, 1, 1, N'2. Hàng hóa, dịch vụ không chịu thuế GTGT')
INSERT [dbo].[STHUE] ([STHUEID], [LOAI], [VAT_NAME], [VAT], [VAT_ORDER], [IS_EXTENSION], [IS_SU_DUNG], [IS_XML], [MO_TA]) VALUES (CAST(3 AS Numeric(18, 0)), N'GTGT', N'0%', CAST(0.000000 AS Numeric(18, 6)), 3, NULL, 1, 1, N'3. Hàng hóa, dịch vụ thuế GTGT chịu thuế 0%')
INSERT [dbo].[STHUE] ([STHUEID], [LOAI], [VAT_NAME], [VAT], [VAT_ORDER], [IS_EXTENSION], [IS_SU_DUNG], [IS_XML], [MO_TA]) VALUES (CAST(4 AS Numeric(18, 0)), N'GTGT', N'5%', CAST(5.000000 AS Numeric(18, 6)), 2, NULL, 1, 1, N'4. Hàng hóa, dịch vụ chịu thuế GTGT 5%')
INSERT [dbo].[STHUE] ([STHUEID], [LOAI], [VAT_NAME], [VAT], [VAT_ORDER], [IS_EXTENSION], [IS_SU_DUNG], [IS_XML], [MO_TA]) VALUES (CAST(5 AS Numeric(18, 0)), N'GTGT', N'8%', CAST(8.000000 AS Numeric(18, 6)), 6, 1, 1, 1, N'5. Hàng hóa, dịch vụ chịu thuế GTGT 8%')
INSERT [dbo].[STHUE] ([STHUEID], [LOAI], [VAT_NAME], [VAT], [VAT_ORDER], [IS_EXTENSION], [IS_SU_DUNG], [IS_XML], [MO_TA]) VALUES (CAST(6 AS Numeric(18, 0)), N'GTGT', N'10%', CAST(10.000000 AS Numeric(18, 6)), 1, NULL, 1, 1, N'6. Hàng hóa, dịch vụ chịu thuế GTGT 10%')
SET IDENTITY_INSERT [dbo].[STHUE] OFF
GO
SET IDENTITY_INSERT [dbo].[STIEU_CHI_PHAN_HOI] ON 

INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (1, N'SMST', N'Sai mã số thuế', N'Mã số thuế', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (2, N'STKH', N'Sai tên người mua', N'Tên người mua', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (3, N'DCNM', N'Sai địa chỉ người mua', N'Địa chỉ người mua', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (4, N'DCGH', N'Sai địa chỉ giao hàng', N'Địa chỉ giao hàng', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (5, N'HTTT', N'Sai hình thức thanh toán', N'Hình thức thanh toán', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (6, N'STHH', N'Sai tên hàng hóa', N'Tên hàng hóa', 0, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (7, N'SDVT', N'Sai đơn vị tính', N'Đơn vị tính', 0, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (8, N'SSLH', N'Sai số lượng', N'Số lượng', 0, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (9, N'SDGH', N'Sai đơn giá', N'Đơn giá', 0, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (10, N'SNET', N'Sai thành tiền', N'Thành tiền', 0, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (11, N'STST', N'Sai thuế suất', N'Thuế suất', 0, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (12, N'SVAT', N'Sai tiền thuế', N'Tiền thuế', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (13, N'STTT', N'Sai tổng tiền', N'Tổng tiền', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (14, N'STBC', N'Sai số tiền bằng chứ', N'Số tiền bằng chữ', 1, NULL, NULL, NULL, NULL)
INSERT [dbo].[STIEU_CHI_PHAN_HOI] ([STIEU_CHI_PHAN_HOIID], [MA_TIEU_CHI], [TEN_TIEU_CHI], [GHI_CHU], [IS_MASTER], [NGAY_TAO], [NGUOI_TAO], [NGAY_SUA], [NGUOI_SUA]) VALUES (15, N'KHAC', N'Khác', N'Khác', 1, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[STIEU_CHI_PHAN_HOI] OFF
GO
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (1, N'Hóa đơn gốc')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (2, N'Hóa đơn bị thay thế')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (3, N'Hóa đơn thay thế')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (4, N'Hóa đơn bị điều chỉnh')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (5, N'Hóa đơn điều chỉnh')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (6, N'Hóa đơn bị xóa bỏ')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (7, N'Hóa đơn xóa bỏ')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (8, N'Hóa đơn hủy')
INSERT [dbo].[STRANG_THAI_HOA_DON] ([TRANG_THAI_DIEU_CHINH], [MO_TA]) VALUES (9, N'Hóa đơn điều chỉnh chiết khấu')
GO
SET IDENTITY_INSERT [dbo].[SYS_GROUP_PERMISSIONS] ON 

INSERT [dbo].[SYS_GROUP_PERMISSIONS] ([SYS_GROUP_PERMISSIONSID], [GROUP_NAME], [GROUP_ORDER], [Username], [MA_DV], [IS_SU_DUNG], [MA_CN]) VALUES (CAST(1 AS Numeric(18, 0)), N'Quản trị', 1, NULL, N'0101300842', 1, NULL)
INSERT [dbo].[SYS_GROUP_PERMISSIONS] ([SYS_GROUP_PERMISSIONSID], [GROUP_NAME], [GROUP_ORDER], [Username], [MA_DV], [IS_SU_DUNG], [MA_CN]) VALUES (CAST(2 AS Numeric(18, 0)), N'Quản lý', 2, NULL, N'0101300842', 1, NULL)
INSERT [dbo].[SYS_GROUP_PERMISSIONS] ([SYS_GROUP_PERMISSIONSID], [GROUP_NAME], [GROUP_ORDER], [Username], [MA_DV], [IS_SU_DUNG], [MA_CN]) VALUES (CAST(3 AS Numeric(18, 0)), N'Xuất hóa đơn', 3, NULL, N'0101300842', 1, NULL)
INSERT [dbo].[SYS_GROUP_PERMISSIONS] ([SYS_GROUP_PERMISSIONSID], [GROUP_NAME], [GROUP_ORDER], [Username], [MA_DV], [IS_SU_DUNG], [MA_CN]) VALUES (CAST(4 AS Numeric(18, 0)), N'Người dùng', 4, NULL, N'0101300842', 1, NULL)
SET IDENTITY_INSERT [dbo].[SYS_GROUP_PERMISSIONS] OFF
GO
SET IDENTITY_INSERT [dbo].[SYS_PERMISSIONS] ON 

INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(1 AS Numeric(18, 0)), N'Hệ thống', N'1000', NULL)
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(2 AS Numeric(18, 0)), N'Phân quyền hệ thống', N'1001', CAST(1 AS Numeric(18, 0)))
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(3 AS Numeric(18, 0)), N'Phát hành hóa đơn', N'2000', NULL)
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(4 AS Numeric(18, 0)), N'Thêm mới nhóm quyền', N'1002', CAST(1 AS Numeric(18, 0)))
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(5 AS Numeric(18, 0)), N'Khởi tạo mẫu hóa đơn', N'2001', CAST(3 AS Numeric(18, 0)))
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(6 AS Numeric(18, 0)), N'Ghi nhận hóa đơn', N'2001', CAST(5 AS Numeric(18, 0)))
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(7 AS Numeric(18, 0)), N'Hóa đơn điện tử', N'4000', NULL)
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(8 AS Numeric(18, 0)), N'Lập hóa đơn điện tử', N'4100', CAST(7 AS Numeric(18, 0)))
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(9 AS Numeric(18, 0)), N'Thêm mới hóa đơn điện tử', N'4101', CAST(8 AS Numeric(18, 0)))
INSERT [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID], [PER_NAME], [PER_CODE], [PARENTID]) VALUES (CAST(10 AS Numeric(18, 0)), N'Xóa hóa đơn', N'4103', CAST(8 AS Numeric(18, 0)))
SET IDENTITY_INSERT [dbo].[SYS_PERMISSIONS] OFF
GO
SET IDENTITY_INSERT [dbo].[SYS_PERMISSIONS_GROUP] ON 

INSERT [dbo].[SYS_PERMISSIONS_GROUP] ([SYS_PERMISSIONS_GROUPID], [SYS_PERMISSIONSID], [SYS_GROUP_PERMISSIONSID], [IS_SU_DUNG]) VALUES (CAST(10 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), 1)
INSERT [dbo].[SYS_PERMISSIONS_GROUP] ([SYS_PERMISSIONS_GROUPID], [SYS_PERMISSIONSID], [SYS_GROUP_PERMISSIONSID], [IS_SU_DUNG]) VALUES (CAST(11 AS Numeric(18, 0)), CAST(4 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), 1)
INSERT [dbo].[SYS_PERMISSIONS_GROUP] ([SYS_PERMISSIONS_GROUPID], [SYS_PERMISSIONSID], [SYS_GROUP_PERMISSIONSID], [IS_SU_DUNG]) VALUES (CAST(52 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), 1)
INSERT [dbo].[SYS_PERMISSIONS_GROUP] ([SYS_PERMISSIONS_GROUPID], [SYS_PERMISSIONSID], [SYS_GROUP_PERMISSIONSID], [IS_SU_DUNG]) VALUES (CAST(53 AS Numeric(18, 0)), CAST(2 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), 1)
INSERT [dbo].[SYS_PERMISSIONS_GROUP] ([SYS_PERMISSIONS_GROUPID], [SYS_PERMISSIONSID], [SYS_GROUP_PERMISSIONSID], [IS_SU_DUNG]) VALUES (CAST(54 AS Numeric(18, 0)), CAST(4 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), 1)
INSERT [dbo].[SYS_PERMISSIONS_GROUP] ([SYS_PERMISSIONS_GROUPID], [SYS_PERMISSIONSID], [SYS_GROUP_PERMISSIONSID], [IS_SU_DUNG]) VALUES (CAST(55 AS Numeric(18, 0)), CAST(8 AS Numeric(18, 0)), CAST(1 AS Numeric(18, 0)), 1)
SET IDENTITY_INSERT [dbo].[SYS_PERMISSIONS_GROUP] OFF
GO
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'ACCESS', N'Truy cập')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'CREATE', N'Tạo mới')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'DELETE', N'Xóa')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'EDIT', N'Sửa')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'EXPORT', N'Export')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'IMPORT', N'Import')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'ISSUE_INVOICE', N'Xuất hóa đơn')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'PRINT', N'In')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'PROCESS_INVOICE', N'Xử lý hóa đơn')
INSERT [dbo].[SYSACTION] ([ACTION_CODE], [DESCRIPTION]) VALUES (N'VIEW', N'Xem')
GO
SET IDENTITY_INSERT [dbo].[SYSACTION_LOG] ON 

INSERT [dbo].[SYSACTION_LOG] ([SYSACTION_LOGID], [FUNCTION_CODE], [ACTION_CODE], [ACTION_TIME], [REFERENCE], [DESCRIPTION], [USER_NAME], [SESSIONID], [PC_NAME]) VALUES (CAST(1 AS Numeric(18, 0)), N'DANG_NHAP', N'ACCESS', CAST(N'2019-06-03T14:30:00.000' AS DateTime), N'', N'Đăng nhập thành công', N'Root', N'1c55fea6-d0f3-49f6-8a0d-6f37cb474a2e', N'TUYENVT')
INSERT [dbo].[SYSACTION_LOG] ([SYSACTION_LOGID], [FUNCTION_CODE], [ACTION_CODE], [ACTION_TIME], [REFERENCE], [DESCRIPTION], [USER_NAME], [SESSIONID], [PC_NAME]) VALUES (CAST(2 AS Numeric(18, 0)), N'DANG_NHAP', N'ACCESS', CAST(N'2019-06-03T14:34:24.000' AS DateTime), N'', N'Đăng nhập thành công', N'Root', N'81f924a0-802e-413a-86cd-f237e6aef0b9', N'TUYENVT')
INSERT [dbo].[SYSACTION_LOG] ([SYSACTION_LOGID], [FUNCTION_CODE], [ACTION_CODE], [ACTION_TIME], [REFERENCE], [DESCRIPTION], [USER_NAME], [SESSIONID], [PC_NAME]) VALUES (CAST(3 AS Numeric(18, 0)), N'DANG_NHAP', N'ACCESS', CAST(N'2019-06-03T16:19:00.000' AS DateTime), N'', N'Đăng nhập thành công', N'Root', N'd520da75-3aaa-4d56-a888-15e21ae0b37b', N'TUYENVT')
INSERT [dbo].[SYSACTION_LOG] ([SYSACTION_LOGID], [FUNCTION_CODE], [ACTION_CODE], [ACTION_TIME], [REFERENCE], [DESCRIPTION], [USER_NAME], [SESSIONID], [PC_NAME]) VALUES (CAST(4 AS Numeric(18, 0)), N'DANG_NHAP', N'ACCESS', CAST(N'2022-12-08T15:17:00.000' AS DateTime), N'', N'Đăng nhập thành công', N'root', N'', N'DESKTOP-OIBJ8H8')
INSERT [dbo].[SYSACTION_LOG] ([SYSACTION_LOGID], [FUNCTION_CODE], [ACTION_CODE], [ACTION_TIME], [REFERENCE], [DESCRIPTION], [USER_NAME], [SESSIONID], [PC_NAME]) VALUES (CAST(5 AS Numeric(18, 0)), N'DANG_NHAP', N'ACCESS', CAST(N'2024-08-05T14:34:21.000' AS DateTime), N'', N'Đăng nhập thành công', N'root', N'', N'LT-DUNGNV')
SET IDENTITY_INSERT [dbo].[SYSACTION_LOG] OFF
GO
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'BáoCáoTìnhS?D?ngHóaÐonToolStripMenuItem', N'4. Báo cáo tình sử dụng hóa đơn    ', N'BáoCáoTìnhS?D?ngHóaÐonToolStripMenuItem', N'Báo cáo', N'BáoCáoTìnhS?D?ngHóaÐonToolStripMenuItem', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'Frm01GTGTDienTu', N'1.1. Lập hóa đơn giá trị gia tăng', N'mnuHDDT_GTGT', N'Sử dụng hóa đơn', N'Frm01GTGTDienTu', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'Frm02GTTTDienTu', N'1.2. Lập hóa đơn bán hàng', N'mnuHDDT_BanHang', N'Sử dụng hóa đơn', N'Frm02GTTTDienTu', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'Frm03XKNBDienTu', N'1.4. Lập phiếu xuất kho kiêm vận chuyển nội bộ', N'mnu03XKNB', N'Sử dụng hóa đơn', N'Frm03XKNBDienTu', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'Frm07KPTQDienTu', N'1.3. Lập hóa đơn bán hàng (tổ chức, cá nhân trong KPTQ)', N'mnuHDDT_KPTQ', N'Sử dụng hóa đơn', N'Frm07KPTQDienTu', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBangKeChitietHoaDon', N'3.1. Bảng kê quyết toán hóa đơn    ', N'mnuQLyHD_BangKeQToan', N'Báo cáo', N'FrmBangKeChitietHoaDon', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBangKeChungTuKhauTruTTNCN', N'6. Bảng kê chứng từ TNCN    ', N'B?ngKêCh?ngT?Thu?TNCNToolStripMenuItem', N'Báo cáo', N'FrmBangKeChungTuKhauTruTTNCN', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBaoCaoBanHang', N'1. Báo cáo bán hàng    ', N'mnuBC_BanHang', N'Báo cáo', N'FrmBaoCaoBanHang', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBaoCaoHongHuyList', N'3.3. Danh sách báo cáo hóa đơn thông báo hủy, quyết toán    ', N'mnuHoaDon_TimKiemBaoCaoHongHuy', N'Báo cáo', N'FrmBaoCaoHongHuyList', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBaoCaoHuyHoaDon', N'3.2. Thông báo kết quả hủy hóa đơn    ', N'mnuHoaDon_BaoCaoHuy', N'Báo cáo', N'FrmBaoCaoHuyHoaDon', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBaoCaoHuyHoaDonCV', N'5. Báo cáo hủy hóa đơn    ', N'mnuBaoCaoHuyHoaDon', N'Báo cáo', N'FrmBaoCaoHuyHoaDonCV', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmBienbanTempLateList', N'7. Mẫu biên bản', N'MenuItem_Danhsachbienban', N'Danh mục', N'FrmBienbanTempLateList', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmCauHinhVanChuyen', N'10. Cấu hình gửi hóa đơn', N'mnuGuiHoaDon', N'Hệ thống', N'frmCauHinhVanChuyen', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmChiNhanhDV', N'4. Quản lý chi nhánh', N'mnuHeThong_QuanLyChiNhanh', N'Hệ thống', N'frmChiNhanhDV', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmChonChiNhanh', N'8. Chọn chi nhánh sử dụng hóa đơn', N'mnuHeThong_ChonChiNhanh', N'Hệ thống', N'frmChonChiNhanh', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmChonDonViSuDung', N'7. Chọn doanh nghiệp sử dụng hóa đơn', N'mnuHeThong_ChonDoanhNghiepSuDungHoaDon', N'Hệ thống', N'frmChonDonViSuDung', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmCoQuanThue', N'13. Cơ quan thuế', N'mnuDMCoQuanThue', N'Danh mục', N'FrmCoQuanThue', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmDangNhap', N'1. Đăng nhập với tài khoản khác', N'mnuHeThong_Truynhapvoitenkhac', N'Hệ thống', N'frmDangNhap', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDanhSachBaoCaoMoRong', N'7. Báo cáo mở rộng    ', N'mnuBaoCaoTongHop', N'Báo cáo', N'FrmDanhSachBaoCaoMoRong', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDanhSachBienBanXslt', N'4. Danh sách biên bản hóa đơn', N'mnuDanhSachBienBan', N'Sử dụng hóa đơn', N'FrmDanhSachBienBanXslt', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDanhSachHoaDonDienTu', N'3. Danh sách hóa đơn điện tử', N'mnuHDDT_DanhSach', N'Sử dụng hóa đơn', N'FrmDanhSachHoaDonDienTu', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDanhSachKySo_V2', N'2. Quản  lý ký số hóa đơn', N'mnuDanhSachKySoHDDT', N'Sử dụng hóa đơn', N'FrmDanhSachKySo_V2', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDanhSachTinhHinhSDHD', N'4.2. Danh sách báo cáo tình hình sử dụng hóa đơn    ', N'mnuBC26ACList', N'Báo cáo', N'FrmDanhSachTinhHinhSDHD', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDanhSachToKhai01GTGT', N'4.4. Danh sách từ khai 01 GTGT    ', N'mnuDanhSachToKhai01GTGT', N'Báo cáo', N'FrmDanhSachToKhai01GTGT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmDataDinhNghiaForm', N'15. Danh mục tự định nghĩa', N'mnuDanhMucTuDinhNghia', N'Danh mục', N'FrmDataDinhNghiaForm', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmHinhThucThanhToan', N'9. Hình thức thanh toán', N'mnuDMHTTT', N'Danh mục', N'FrmHinhThucThanhToan', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmHoaDonTempLateList', N'6. Mẫu hóa đơn', N'mnuDMMauHD', N'Danh mục', N'FrmHoaDonTempLateList', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmKho', N'14. Kho', N'mnuDMKho', N'Danh mục', N'FrmKho', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmKhoHoaDon', N'4.5. Quản lý kho hóa đơn    ', N'mnuThongKe_KhoHoaDon', N'Báo cáo', N'FrmKhoHoaDon', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmKyKeKhai01GTGT', N'4.3. Lập tờ khai 01 GTGT    ', N'toolStriptokhai01GTGT', N'Báo cáo', N'FrmKyKeKhai01GTGT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmKyKeKhaiBC26AC', N'4.1. Lập báo cáo tình hình sử dụng hóa đơn    ', N'mnuBC26AC', N'Báo cáo', N'FrmKyKeKhaiBC26AC', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmLoaiHoaDon', N'5. Loại hóa đơn', N'mnuDMLoaiHD', N'Danh mục', N'FrmLoaiHoaDon', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmNguyenTe', N'10. Tiền thanh toán', N'mnuDMTienTT', N'Danh mục', N'FrmNguyenTe', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmNhatKySuaDoi', N'6.4 Nhật ký sửa đổi hóa đơn', N'mnuHeThong_NhatKySuaDoiHoaDon', N'Hệ thống', N'frmNhatKySuaDoi', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmNhomQuyen', N'6.1 Nhóm người dùng', N'mnuNhomNguoiDung', N'Hệ thống', N'frmNhomQuyen', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmPhatHanhHoaDonDetail', N'3.1 Tạo mới lần phát hành', N'mnuPhatHanhHD_PhatHanh', N'Phát hành hóa đơn', N'FrmPhatHanhHoaDonDetail', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmPhatHanhHoaDonList', N'3.2 Danh sách lần phát hành', N'mnuPhatHanhHD_PhatHanhList', N'Phát hành hóa đơn', N'FrmPhatHanhHoaDonList', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmPhatHanhKhoiTaoDetail', N'2.1 Khởi tạo mẫu hóa đơn', N'mnuPhatHanhHD_TaoMau', N'Phát hành hóa đơn', N'FrmPhatHanhKhoiTaoDetail', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmPhatHanhKhoiTaoList', N'2.2 Danh sách mẫu hóa đơn', N'mnuPhatHanhHD_TaoMauList', N'Phát hành hóa đơn', N'FrmPhatHanhKhoiTaoList', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmQuanLyDongBoWebsite', N'3. Quản lý đồng bộ hóa đơn lên website tra cứu', N'mnuQuanLyDongBoWebsite', N'Gửi hóa don', N'FrmQuanLyDongBoWebsite', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmQuanLyGuiEmail', N'1. Quản lý gửi email', N'mnuQuanLyGuiEmail', N'Gửi hóa don', N'FrmQuanLyGuiEmail', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmQuanLyLuuTruDuLieuCloudThaiSon', N'4. Quản lý đồng bộ hóa đơn lên Cloud Thái Sơn', N'mnuQuanLyDongBoCloudThaiSon', N'Gửi hóa don', N'FrmQuanLyLuuTruDuLieuCloudThaiSon', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmQuanLyService', N'11. Quản lý dịch vụ', N'mnuTienIch_QuanLyDichVu', N'Hệ thống', N'frmQuanLyService', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmQuyetDinhApDungHD', N'1. In quyết định sử dụng HĐĐT', N'mnuPhatHanhHD_QDTuIn', N'Phát hành hóa đơn', N'FrmQuyetDinhApDungHD', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmResetDatabase', N'9.5 Reset dữ liệu', N'mnuHeThong_RefreshDL', N'Hệ thống', N'frmResetDatabase', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSCAUHINH_CKS', N'6.5 Cấu hình chữ ký số cho người dùng', N'mnuCauHinhCSK_ChoNguoi_Dung', N'Hệ thống', N'frmSCAUHINH_CKS', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSDoitac', N'2. Khách hàng đối tác', N'mnuDMDoiTac', N'Danh mục', N'FrmSDoitac', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSDonvi', N'1. Đơn vị sử dụng hóa đơn', N'mnuDMDoanhNghiep', N'Danh mục', N'FrmSDonvi', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSDVT', N'8. Đơn vị tính', N'mnuDMDVT', N'Danh mục', N'FrmSDVT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSHANGHOA', N'4. Hàng hóa thường dùng', N'mnuDMHangHoa', N'Danh mục', N'FrmSHANGHOA', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSHanThanhToan', N'11. Hạn thanh toán', N'ToolStripMenuItem5', N'Danh mục', N'FrmSHanThanhToan', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSLOAIHANG', N'3. Loại hàng', N'mnuDMLoaiHang', N'Danh mục', N'FrmSLOAIHANG', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSMSList', N'2. Quản lý gửi tin nhắn', N'mnuQuanLyGuiSMS', N'Gửi hóa don', N'FrmSMSList', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmSNhanVien', N'12. Danh mục nhân viên', N'mnuDMNhanVien', N'Danh mục', N'FrmSNhanVien', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSYS_BACKUPDATABASE', N'9.1 Sao lưu dữ liệu', N'mnuHeThong_SaoLuuDL', N'Hệ thống', N'frmSYS_BACKUPDATABASE', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSYS_DOIMATKHAU', N'2. Đổi mật khẩu', N'mnuHeThong_DoiMK', N'Hệ thống', N'frmSYS_DOIMATKHAU', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSYS_LOGUSER', N'6.3 Nhật ký người dùng', N'mnuHeThong_NhatKyNguoiDung', N'Hệ thống', N'frmSYS_LOGUSER', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSYS_UPDATEDATABASE', N'9.2 Cập nhật phiên bản CSDL', N'mnuHeThong_CapNhatPhienBanCSDL', N'Hệ thống', N'frmSYS_UPDATEDATABASE', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSYS_USERINFO_REG', N'3. Thông tin doanh nghiệp', N'mnuHeThong_ThongtinDN', N'Hệ thống', N'frmSYS_USERINFO_REG', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmSYS_USERMANAGEMENT', N'6.2 Người dùng', N'mnuNguoiDung', N'Hệ thống', N'frmSYS_USERMANAGEMENT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmT_SQL', N'9.4 T-SQL', N'mnuHeThong_TSQL', N'Hệ thống', N'frmT_SQL', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmThamSoHeThongV2_New', N'5. Thiết lập tham số', N'mnuHeThong_ThietlapThamSo', N'Hệ thống', N'frmThamSoHeThongV2_New', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmThongKeHangHoa', N'2. Bảng kê hàng hóa, dịch vụ    ', N'B?ngKêHàngHóaD?chV?ToolStripMenuItem', N'Báo cáo', N'FrmThongKeHangHoa', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'frmThongKeHangHoaGTGT', N'2.1. Bảng kê chứng từ hàng hóa bán ra GTGT theo thuế    ', N'mnuHoaDon_BaoCaoBangKeGTGTByTax', N'Báo cáo', N'frmThongKeHangHoaGTGT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'FrmUpdateMauHoaDon', N'4. Cập nhật mẫu HĐ đã phát hành', N'mnuUpdateTemplate', N'Phát hành hóa đơn', N'FrmUpdateMauHoaDon', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHD_DieuChinhChietKhau', N'1.5. Lập hóa đơn điều chỉnh chiết khấu', N'mnuHD_DieuChinhChietKhau', N'Sử dụng hóa đơn', N'mnuHD_DieuChinhChietKhau', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHDDCCK_BANHANG', N'1.5.2 Hóa đơn bán hàng', N'mnuHDDCCK_BANHANG', N'Sử dụng hóa đơn', N'mnuHDDCCK_BANHANG', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHDDCCK_GTGT', N'1.5.1 Hóa đơn giá trị gia tăng', N'mnuHDDCCK_GTGT', N'Sử dụng hóa đơn', N'mnuHDDCCK_GTGT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHeThong_QuanLyNSD', N'6. Quản lý người sử dụng', N'mnuHeThong_QuanLyNSD', N'Hệ thống', N'mnuHeThong_QuanLyNSD', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHeThong_Thoat', N'12. Thoát khỏi chương trình', N'mnuHeThong_Thoat', N'Hệ thống', N'mnuHeThong_Thoat', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHeThong_ToiUu', N'9.3 Tối ưu CSDL (Reindex)', N'mnuHeThong_ToiUu', N'Hệ thống', N'mnuHeThong_ToiUu', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuHoaDon_BaoCaoBangKeGTGT', N'2.2. Bảng kê chứng từ hàng hóa bán ra GTGT    ', N'mnuHoaDon_BaoCaoBangKeGTGT', N'Báo cáo', N'mnuHoaDon_BaoCaoBangKeGTGT', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuPhatHanhHD_TNCN', N'5. Đăng ký sử dụng khấu trừ thuế TNCN', N'mnuPhatHanhHD_TNCN', N'Phát hành hóa đơn', N'mnuPhatHanhHD_TNCN', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuQLyHD', N'3. Quản lý sử dụng hóa đơn    ', N'mnuQLyHD', N'Báo cáo', N'mnuQLyHD', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU] ([MENU_NAME], [MENU_CAPTION], [MENU_BAR], [MENU_PARENT], [FRM], [IS_ACCESS_ENABLE], [IS_CREATE_ENABLE], [IS_EDIT_ENABLE], [IS_DELETE_ENABLE], [IS_VIEW_ENABLE], [IS_PRINT_ENABLE], [IS_EXPORT_ENABLE], [IS_IMPORT_ENABLE], [IS_ISSUE_INVOICE_ENABLE], [IS_PROCESS_INVOICE_ENABLE], [IS_PROCESS_INVOICE_SPECIAL_ENABLE]) VALUES (N'mnuQuanLy_CSDL', N'9. Quản lý cơ sở dữ liệu', N'mnuQuanLy_CSDL', N'Hệ thống', N'mnuHeThong_SaoLuuDL', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
GO
SET IDENTITY_INSERT [dbo].[SYSAPP_MENU_GROUP] ON 

INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(500 AS Numeric(18, 0)), N'BáoCáoTìnhS?D?ngHóaÐonToolStripMenuItem', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(501 AS Numeric(18, 0)), N'FrmBangKeChitietHoaDon', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(502 AS Numeric(18, 0)), N'FrmBangKeChungTuKhauTruTTNCN', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(503 AS Numeric(18, 0)), N'FrmBaoCaoBanHang', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(504 AS Numeric(18, 0)), N'FrmBaoCaoHongHuyList', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(505 AS Numeric(18, 0)), N'FrmBaoCaoHuyHoaDon', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(506 AS Numeric(18, 0)), N'FrmBaoCaoHuyHoaDonCV', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(507 AS Numeric(18, 0)), N'FrmDanhSachBaoCaoMoRong', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(508 AS Numeric(18, 0)), N'FrmDanhSachTinhHinhSDHD', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(509 AS Numeric(18, 0)), N'FrmDanhSachToKhai01GTGT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(510 AS Numeric(18, 0)), N'FrmKhoHoaDon', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(511 AS Numeric(18, 0)), N'FrmKyKeKhai01GTGT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(512 AS Numeric(18, 0)), N'FrmKyKeKhaiBC26AC', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(513 AS Numeric(18, 0)), N'FrmThongKeHangHoa', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(514 AS Numeric(18, 0)), N'frmThongKeHangHoaGTGT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(515 AS Numeric(18, 0)), N'mnuHoaDon_BaoCaoBangKeGTGT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(516 AS Numeric(18, 0)), N'mnuQLyHD', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(517 AS Numeric(18, 0)), N'FrmBienbanTempLateList', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(518 AS Numeric(18, 0)), N'FrmCoQuanThue', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(519 AS Numeric(18, 0)), N'FrmDataDinhNghiaForm', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(520 AS Numeric(18, 0)), N'FrmHinhThucThanhToan', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(521 AS Numeric(18, 0)), N'FrmHoaDonTempLateList', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(522 AS Numeric(18, 0)), N'FrmKho', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(523 AS Numeric(18, 0)), N'FrmLoaiHoaDon', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(524 AS Numeric(18, 0)), N'FrmNguyenTe', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(525 AS Numeric(18, 0)), N'FrmSDoitac', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(526 AS Numeric(18, 0)), N'FrmSDonvi', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(527 AS Numeric(18, 0)), N'FrmSDVT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(528 AS Numeric(18, 0)), N'FrmSHANGHOA', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(529 AS Numeric(18, 0)), N'FrmSHanThanhToan', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(530 AS Numeric(18, 0)), N'FrmSLOAIHANG', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(531 AS Numeric(18, 0)), N'FrmSNhanVien', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(532 AS Numeric(18, 0)), N'FrmQuanLyDongBoWebsite', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(533 AS Numeric(18, 0)), N'FrmQuanLyGuiEmail', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(534 AS Numeric(18, 0)), N'FrmQuanLyLuuTruDuLieuCloudThaiSon', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(535 AS Numeric(18, 0)), N'FrmSMSList', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(536 AS Numeric(18, 0)), N'frmCauHinhVanChuyen', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(537 AS Numeric(18, 0)), N'frmChiNhanhDV', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(538 AS Numeric(18, 0)), N'frmChonChiNhanh', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(539 AS Numeric(18, 0)), N'frmChonDonViSuDung', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(540 AS Numeric(18, 0)), N'frmDangNhap', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(541 AS Numeric(18, 0)), N'frmNhatKySuaDoi', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(542 AS Numeric(18, 0)), N'frmNhomQuyen', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(543 AS Numeric(18, 0)), N'frmQuanLyService', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(544 AS Numeric(18, 0)), N'frmResetDatabase', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(545 AS Numeric(18, 0)), N'frmSCAUHINH_CKS', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(546 AS Numeric(18, 0)), N'frmSYS_BACKUPDATABASE', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(547 AS Numeric(18, 0)), N'frmSYS_DOIMATKHAU', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(548 AS Numeric(18, 0)), N'frmSYS_LOGUSER', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(549 AS Numeric(18, 0)), N'frmSYS_UPDATEDATABASE', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(550 AS Numeric(18, 0)), N'frmSYS_USERINFO_REG', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(551 AS Numeric(18, 0)), N'frmSYS_USERMANAGEMENT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(552 AS Numeric(18, 0)), N'frmT_SQL', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(553 AS Numeric(18, 0)), N'frmThamSoHeThongV2_New', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(554 AS Numeric(18, 0)), N'mnuHeThong_QuanLyNSD', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(555 AS Numeric(18, 0)), N'mnuHeThong_Thoat', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(556 AS Numeric(18, 0)), N'mnuHeThong_ToiUu', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(557 AS Numeric(18, 0)), N'mnuQuanLy_CSDL', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(558 AS Numeric(18, 0)), N'FrmPhatHanhHoaDonDetail', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(559 AS Numeric(18, 0)), N'FrmPhatHanhHoaDonList', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(560 AS Numeric(18, 0)), N'FrmPhatHanhKhoiTaoDetail', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(561 AS Numeric(18, 0)), N'FrmPhatHanhKhoiTaoList', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(562 AS Numeric(18, 0)), N'FrmQuyetDinhApDungHD', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(563 AS Numeric(18, 0)), N'FrmUpdateMauHoaDon', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(564 AS Numeric(18, 0)), N'mnuPhatHanhHD_TNCN', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(565 AS Numeric(18, 0)), N'Frm01GTGTDienTu', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(566 AS Numeric(18, 0)), N'Frm02GTTTDienTu', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(567 AS Numeric(18, 0)), N'Frm03XKNBDienTu', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(568 AS Numeric(18, 0)), N'Frm07KPTQDienTu', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(569 AS Numeric(18, 0)), N'FrmDanhSachBienBanXslt', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(570 AS Numeric(18, 0)), N'FrmDanhSachHoaDonDienTu', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(571 AS Numeric(18, 0)), N'FrmDanhSachKySo_V2', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(572 AS Numeric(18, 0)), N'mnuHD_DieuChinhChietKhau', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(573 AS Numeric(18, 0)), N'mnuHDDCCK_BANHANG', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(574 AS Numeric(18, 0)), N'mnuHDDCCK_GTGT', CAST(7 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(575 AS Numeric(18, 0)), N'mnuQLyHD', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(576 AS Numeric(18, 0)), N'BáoCáoTìnhS?D?ngHóaÐonToolStripMenuItem', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(577 AS Numeric(18, 0)), N'FrmBangKeChungTuKhauTruTTNCN', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(578 AS Numeric(18, 0)), N'FrmBaoCaoHongHuyList', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(579 AS Numeric(18, 0)), N'FrmBaoCaoHuyHoaDonCV', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(580 AS Numeric(18, 0)), N'FrmDanhSachTinhHinhSDHD', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(581 AS Numeric(18, 0)), N'FrmKhoHoaDon', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(582 AS Numeric(18, 0)), N'FrmKyKeKhaiBC26AC', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(583 AS Numeric(18, 0)), N'frmThongKeHangHoaGTGT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(584 AS Numeric(18, 0)), N'mnuHoaDon_BaoCaoBangKeGTGT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(585 AS Numeric(18, 0)), N'FrmCoQuanThue', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(586 AS Numeric(18, 0)), N'FrmHinhThucThanhToan', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(587 AS Numeric(18, 0)), N'FrmKho', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(588 AS Numeric(18, 0)), N'FrmNguyenTe', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(589 AS Numeric(18, 0)), N'FrmSDonvi', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(590 AS Numeric(18, 0)), N'FrmSHANGHOA', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(591 AS Numeric(18, 0)), N'FrmSLOAIHANG', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(592 AS Numeric(18, 0)), N'FrmSNhanVien', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(593 AS Numeric(18, 0)), N'FrmQuanLyGuiEmail', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(594 AS Numeric(18, 0)), N'FrmSMSList', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(595 AS Numeric(18, 0)), N'frmCauHinhVanChuyen', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(596 AS Numeric(18, 0)), N'frmChonChiNhanh', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(597 AS Numeric(18, 0)), N'frmDangNhap', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(598 AS Numeric(18, 0)), N'frmNhomQuyen', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
GO
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(599 AS Numeric(18, 0)), N'frmResetDatabase', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(600 AS Numeric(18, 0)), N'frmSYS_BACKUPDATABASE', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(601 AS Numeric(18, 0)), N'frmSYS_LOGUSER', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(602 AS Numeric(18, 0)), N'frmSYS_USERINFO_REG', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(603 AS Numeric(18, 0)), N'frmT_SQL', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(604 AS Numeric(18, 0)), N'mnuHeThong_QuanLyNSD', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(605 AS Numeric(18, 0)), N'mnuHeThong_ToiUu', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(606 AS Numeric(18, 0)), N'mnuQuanLy_CSDL', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(607 AS Numeric(18, 0)), N'FrmPhatHanhHoaDonList', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(608 AS Numeric(18, 0)), N'FrmPhatHanhKhoiTaoList', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(609 AS Numeric(18, 0)), N'FrmUpdateMauHoaDon', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(610 AS Numeric(18, 0)), N'mnuPhatHanhHD_TNCN', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(611 AS Numeric(18, 0)), N'Frm02GTTTDienTu', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(612 AS Numeric(18, 0)), N'Frm07KPTQDienTu', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(613 AS Numeric(18, 0)), N'FrmDanhSachHoaDonDienTu', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(614 AS Numeric(18, 0)), N'mnuHD_DieuChinhChietKhau', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(615 AS Numeric(18, 0)), N'mnuHDDCCK_GTGT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(616 AS Numeric(18, 0)), N'mnuHDDCCK_BANHANG', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(617 AS Numeric(18, 0)), N'FrmDanhSachKySo_V2', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(618 AS Numeric(18, 0)), N'FrmDanhSachBienBanXslt', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(619 AS Numeric(18, 0)), N'Frm03XKNBDienTu', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(620 AS Numeric(18, 0)), N'Frm01GTGTDienTu', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(621 AS Numeric(18, 0)), N'FrmQuyetDinhApDungHD', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(622 AS Numeric(18, 0)), N'FrmPhatHanhKhoiTaoDetail', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(623 AS Numeric(18, 0)), N'FrmPhatHanhHoaDonDetail', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(624 AS Numeric(18, 0)), N'mnuHeThong_Thoat', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(625 AS Numeric(18, 0)), N'frmThamSoHeThongV2_New', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(626 AS Numeric(18, 0)), N'frmSYS_USERMANAGEMENT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(627 AS Numeric(18, 0)), N'frmSYS_UPDATEDATABASE', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(628 AS Numeric(18, 0)), N'frmSYS_DOIMATKHAU', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(629 AS Numeric(18, 0)), N'frmSCAUHINH_CKS', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(630 AS Numeric(18, 0)), N'frmQuanLyService', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(631 AS Numeric(18, 0)), N'frmNhatKySuaDoi', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(632 AS Numeric(18, 0)), N'frmChonDonViSuDung', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(633 AS Numeric(18, 0)), N'frmChiNhanhDV', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(634 AS Numeric(18, 0)), N'FrmQuanLyLuuTruDuLieuCloudThaiSon', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(635 AS Numeric(18, 0)), N'FrmQuanLyDongBoWebsite', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(636 AS Numeric(18, 0)), N'FrmSHanThanhToan', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(637 AS Numeric(18, 0)), N'FrmSDVT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(638 AS Numeric(18, 0)), N'FrmSDoitac', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(639 AS Numeric(18, 0)), N'FrmLoaiHoaDon', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(640 AS Numeric(18, 0)), N'FrmHoaDonTempLateList', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(641 AS Numeric(18, 0)), N'FrmDataDinhNghiaForm', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(642 AS Numeric(18, 0)), N'FrmBienbanTempLateList', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(643 AS Numeric(18, 0)), N'FrmThongKeHangHoa', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(644 AS Numeric(18, 0)), N'FrmKyKeKhai01GTGT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(645 AS Numeric(18, 0)), N'FrmDanhSachToKhai01GTGT', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(646 AS Numeric(18, 0)), N'FrmDanhSachBaoCaoMoRong', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(647 AS Numeric(18, 0)), N'FrmBaoCaoHuyHoaDon', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(648 AS Numeric(18, 0)), N'FrmBaoCaoBanHang', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
INSERT [dbo].[SYSAPP_MENU_GROUP] ([SYSAPP_MENU_GROUPID], [MENU_NAME], [SYSGROUPID], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(649 AS Numeric(18, 0)), N'FrmBangKeChitietHoaDon', CAST(6 AS Numeric(18, 0)), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL)
SET IDENTITY_INSERT [dbo].[SYSAPP_MENU_GROUP] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSAPP_MENU_USER] ON 

INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(1 AS Numeric(18, 0)), N'frm01GTGTDienTu', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(2 AS Numeric(18, 0)), N'frm01GTGTXacThuc', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(3 AS Numeric(18, 0)), N'frm01GTGTXacThuc_ChietKhau', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(4 AS Numeric(18, 0)), N'frm02GTTTDienTu', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(5 AS Numeric(18, 0)), N'frm02GTTTXacThuc', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(6 AS Numeric(18, 0)), N'frm02GTTTXacThuc_ChietKhau', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(7 AS Numeric(18, 0)), N'frm07KPTQXacThuc', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(8 AS Numeric(18, 0)), N'frmBangKeChitietHoaDon', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(9 AS Numeric(18, 0)), N'frmBaoCaoBanHang', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(10 AS Numeric(18, 0)), N'frmBaoCaoBanHangCongVang', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(11 AS Numeric(18, 0)), N'frmBaoCaoBanHangCongVangMau02', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(12 AS Numeric(18, 0)), N'frmBaoCaoBanHangTheoCaCongVang', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(13 AS Numeric(18, 0)), N'frmBaoCaoChuyenHoaDon', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(14 AS Numeric(18, 0)), N'frmBaoCaoDoanhThuVFS', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(15 AS Numeric(18, 0)), N'frmBaoCaoHongHoaDon', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(16 AS Numeric(18, 0)), N'frmBaoCaoHongHuyList', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(17 AS Numeric(18, 0)), N'frmBaoCaoHuyHoaDon', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(18 AS Numeric(18, 0)), N'frmBaoCaoTongHopVFS', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(19 AS Numeric(18, 0)), N'frmBaoXuatHangTheoKhachHangCongVang', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(20 AS Numeric(18, 0)), N'frmBXImportHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(21 AS Numeric(18, 0)), N'frmCauHinhCKS', N'Root', 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(22 AS Numeric(18, 0)), N'frmCauHinhHDDT_XacThuc', N'Root', 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(23 AS Numeric(18, 0)), N'frmCauHinhNhieuMST', N'Root', 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(24 AS Numeric(18, 0)), N'frmCauHinhWebService', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(25 AS Numeric(18, 0)), N'frmChiNhanhDV', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(26 AS Numeric(18, 0)), N'frmChonChiNhanh', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(27 AS Numeric(18, 0)), N'frmChonDonViSuDung', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(28 AS Numeric(18, 0)), N'frmCoQuanThue', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(29 AS Numeric(18, 0)), N'frmDanhSachDHDT', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(30 AS Numeric(18, 0)), N'frmDanhSachHD_DL', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(31 AS Numeric(18, 0)), N'frmDanhSachHoaDonCanLap', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(32 AS Numeric(18, 0)), N'frmDanhSachHoaDonCanLap_DienTu', N'Root', 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(33 AS Numeric(18, 0)), N'frmDanhSachHoaDonCanLapTuIn', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(34 AS Numeric(18, 0)), N'frmDanhSachMaLoi', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(35 AS Numeric(18, 0)), N'frmDanhSachTinhHinhSDHD', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(36 AS Numeric(18, 0)), N'frmDongBoDanhMucServer', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(37 AS Numeric(18, 0)), N'frmExport', N'Root', 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(38 AS Numeric(18, 0)), N'frmExportHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(39 AS Numeric(18, 0)), N'frmExportHoaDonList', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(40 AS Numeric(18, 0)), N'frmExportPhatHanhHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(41 AS Numeric(18, 0)), N'frmGachNoHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(42 AS Numeric(18, 0)), N'frmGiuLaiHoaDon', N'Root', 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(43 AS Numeric(18, 0)), N'frmGiuLaiHoaDonList', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(44 AS Numeric(18, 0)), N'frmHDDTToServerList', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(45 AS Numeric(18, 0)), N'frmHDonTransportLIST', N'Root', 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(46 AS Numeric(18, 0)), N'frmHinhThucThanhToan', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(47 AS Numeric(18, 0)), N'frmHoaDon', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(48 AS Numeric(18, 0)), N'frmHoaDon_TNCN', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(49 AS Numeric(18, 0)), N'frmHoaDonBanHang', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(50 AS Numeric(18, 0)), N'frmHoaDonBanHangTCCN', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(51 AS Numeric(18, 0)), N'frmHoaDonLIST', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(52 AS Numeric(18, 0)), N'frmHoaDonLIST02', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(53 AS Numeric(18, 0)), N'frmHoaDonLIST03', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(54 AS Numeric(18, 0)), N'frmHoaDonLIST04', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(55 AS Numeric(18, 0)), N'frmHoaDonLIST05', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(56 AS Numeric(18, 0)), N'frmHoaDonLIST06', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(57 AS Numeric(18, 0)), N'frmHoaDonLIST07', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(58 AS Numeric(18, 0)), N'frmHoaDonTempLateList', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(59 AS Numeric(18, 0)), N'frmHoaDonToServerList', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(60 AS Numeric(18, 0)), N'frmHoaDonXuatKhau', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(61 AS Numeric(18, 0)), N'frmHOPDONGLIST', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(62 AS Numeric(18, 0)), N'frmImportHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(63 AS Numeric(18, 0)), N'frmImportPHATHANH', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(64 AS Numeric(18, 0)), N'frmImportTTHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(65 AS Numeric(18, 0)), N'frmKho', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(66 AS Numeric(18, 0)), N'frmKhoHoaDon', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(67 AS Numeric(18, 0)), N'frmKyKeKhaiBC26AC', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(68 AS Numeric(18, 0)), N'frmLayPhatHanhServer', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(69 AS Numeric(18, 0)), N'frmLayThongTinTaiKhoan', N'Root', 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(70 AS Numeric(18, 0)), N'frmLoaiHinhKhuyenMai', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(71 AS Numeric(18, 0)), N'frmLoaiHoaDon', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(72 AS Numeric(18, 0)), N'frmNguyenTe', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(73 AS Numeric(18, 0)), N'frmNhatKySuaDoi', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(74 AS Numeric(18, 0)), N'frmPhatHanhHoaDonDetail', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(75 AS Numeric(18, 0)), N'frmPhatHanhHoaDonList', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(76 AS Numeric(18, 0)), N'frmPhatHanhKhoiTaoDetail', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(77 AS Numeric(18, 0)), N'frmPhatHanhKhoiTaoList', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(78 AS Numeric(18, 0)), N'frmPheDuyetHoaDon', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(79 AS Numeric(18, 0)), N'frmPheDuyetHoaDonDienTu', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(80 AS Numeric(18, 0)), N'frmPheDuyetTuDongXuatHoaDon', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(81 AS Numeric(18, 0)), N'frmPhieuXuatKhoDaiLy', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(82 AS Numeric(18, 0)), N'frmPhieuXuatKhoNoiBo', N'Root', 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(83 AS Numeric(18, 0)), N'frmPosXuatVoucher', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(84 AS Numeric(18, 0)), N'frmPosXuatVoucherChiTiet', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(85 AS Numeric(18, 0)), N'frmPREVIEW_TEMPALTE', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(86 AS Numeric(18, 0)), N'frmQuanLyService', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(87 AS Numeric(18, 0)), N'frmQuyetDinhApDungHD', N'Root', 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(88 AS Numeric(18, 0)), N'frmResetDatabase', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(89 AS Numeric(18, 0)), N'frmSDoitac', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(90 AS Numeric(18, 0)), N'frmSDoitacXe', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(91 AS Numeric(18, 0)), N'frmSDonvi', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(92 AS Numeric(18, 0)), N'frmSDVT', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(93 AS Numeric(18, 0)), N'frmSGiaoDich', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(94 AS Numeric(18, 0)), N'frmSHANGHOA', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(95 AS Numeric(18, 0)), N'frmShowBillDetail', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(96 AS Numeric(18, 0)), N'frmShowBillDiff', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(97 AS Numeric(18, 0)), N'frmSLOAIHANG', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(98 AS Numeric(18, 0)), N'frmSMSList', N'Root', 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(99 AS Numeric(18, 0)), N'frmSNhanVien', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
GO
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(100 AS Numeric(18, 0)), N'frmSNUOC', N'Root', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(101 AS Numeric(18, 0)), N'frmSYS_ADDUSER', N'Root', 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(102 AS Numeric(18, 0)), N'frmSYS_BACKUPDATABASE', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(103 AS Numeric(18, 0)), N'frmSYS_LOGUSER', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(104 AS Numeric(18, 0)), N'frmSYS_THIETLAPCONGKY', N'Root', 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(105 AS Numeric(18, 0)), N'frmSYS_UPDATEDATABASE', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(106 AS Numeric(18, 0)), N'frmSYS_USERINFO_REG', N'Root', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(107 AS Numeric(18, 0)), N'frmT_SQLPass', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(108 AS Numeric(18, 0)), N'frmThamSoHeThong', N'Root', 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(109 AS Numeric(18, 0)), N'frmThietKeMauIn', N'Root', 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(110 AS Numeric(18, 0)), N'frmThongKeHangHoa', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(111 AS Numeric(18, 0)), N'frmThongKeHangHoaByPOS', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(112 AS Numeric(18, 0)), N'frmThongKeHangHoaGTGT', N'Root', 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(113 AS Numeric(18, 0)), N'frmThongKeHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(114 AS Numeric(18, 0)), N'frmThongSoKetNoiCRM1', N'Root', 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(115 AS Numeric(18, 0)), N'frmUpdateMauHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(116 AS Numeric(18, 0)), N'frmViewUserLog', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(117 AS Numeric(18, 0)), N'frmXacThucHoaDon', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(118 AS Numeric(18, 0)), N'frmXacThucHoaDonVAN', N'Root', 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(119 AS Numeric(18, 0)), N'mnQuanLyDichVu', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(120 AS Numeric(18, 0)), N'mnuHDDT_KPTQ', N'Root', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(121 AS Numeric(18, 0)), N'mnuHDDTChietKhau', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(122 AS Numeric(18, 0)), N'mnuHDXT_HoaDonDieuChinh', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(123 AS Numeric(18, 0)), N'mnuHDXT_HoaDonDieuChinhChietKhau', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(124 AS Numeric(18, 0)), N'mnuHDXT_HoaDonThayThe', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(125 AS Numeric(18, 0)), N'mnuHDXT_HoaDonXoaBo', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(126 AS Numeric(18, 0)), N'mnuHDXT_PhieuXuatKho', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(127 AS Numeric(18, 0)), N'mnuHDXT_PhieuXuatKhoDaiLy', N'Root', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(128 AS Numeric(18, 0)), N'mnuHeThong_KetNoiPMKT_Parent', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(129 AS Numeric(18, 0)), N'mnuHeThong_XuatNhapDlieuCN', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(130 AS Numeric(18, 0)), N'mnuHoaDon_BaoCaoBangKeGTGT01', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(131 AS Numeric(18, 0)), N'mnuHoaDon_BaoCaoBangKeGTGT02', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(132 AS Numeric(18, 0)), N'mnuKiemTraHoaDonTrenCQT', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(133 AS Numeric(18, 0)), N'mnuPhanTichXML', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(134 AS Numeric(18, 0)), N'mnuPhatHanhHD_TNCN', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(135 AS Numeric(18, 0)), N'mnuQuanLyPhienBan', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(136 AS Numeric(18, 0)), N'mnuThongKeTheoDoiTuong', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(137 AS Numeric(18, 0)), N'mnuTrogiup_DangKyBanQuyen', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(138 AS Numeric(18, 0)), N'mnuTrogiup_DangKyDuyTri', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(139 AS Numeric(18, 0)), N'mnuTSQLOrther', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
INSERT [dbo].[SYSAPP_MENU_USER] ([SYSAPP_MENU_USERID], [MENU_NAME], [USER_NAME], [IS_ALL], [IS_ACCESS], [IS_CREATE], [IS_EDIT], [IS_DELETE], [IS_VIEW], [IS_PRINT], [IS_EXPORT], [IS_IMPORT], [IS_ISSUE_INVOICE], [IS_PROCESS_INVOICE], [IS_PROCESS_INVOICE_SPECIAL]) VALUES (CAST(140 AS Numeric(18, 0)), N'ToiUuCSDL', N'Root', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
SET IDENTITY_INSERT [dbo].[SYSAPP_MENU_USER] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSAPPUSER] ON 

INSERT [dbo].[SYSAPPUSER] ([SYSAPPUSERID], [FULL_NAME], [USERNAME], [PASSWORD], [IS_ACTIVE], [GHI_CHU], [NGUOI_LAP_HOA_DON], [SNHAN_VIENID], [SYSGROUPID], [IS_SYSTEM], [PHAM_VI_SU_DUNG], [HE_THONG_TICH_HOPID], [FullName], [IsActive], [DATE_PASSWORD], [OLD_PASSWORD]) VALUES (CAST(7 AS Numeric(18, 0)), N'Root', N'Root', N'd41d8cd98f00b204e9800998ecf8427e', 1, N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'')
SET IDENTITY_INSERT [dbo].[SYSAPPUSER] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSERROR_CODE] ON 

INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(1 AS Numeric(18, 0)), N'200', NULL, N'Hóa đơn đã được xác thực thành công.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(2 AS Numeric(18, 0)), N'400', NULL, N'Hóa đơn chưa được xác thực.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(3 AS Numeric(18, 0)), N'401', NULL, N'Không có quyền truy cập.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(4 AS Numeric(18, 0)), N'404', NULL, N'Không tìm thấy', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(5 AS Numeric(18, 0)), N'422', NULL, N'Lỗi lưu dữ liệu xác thực', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(6 AS Numeric(18, 0)), N'500', NULL, N'Xảy ra lỗi trong quá trình xác thực.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(7 AS Numeric(18, 0)), N'504', NULL, N'Lỗi timeout trong quá trình xác thực.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(8 AS Numeric(18, 0)), N'560', NULL, N'Lỗi kết nối đến service.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(9 AS Numeric(18, 0)), N'1001', NULL, N'Định dạng dữ liệu không đúng', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(10 AS Numeric(18, 0)), N'1002', NULL, N'Không tìm thấy người sử dụng', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(11 AS Numeric(18, 0)), N'1003', NULL, N'Người sử dụng đã bị khóa', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(12 AS Numeric(18, 0)), N'1004', NULL, N'MST người bán không hợp lệ.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(13 AS Numeric(18, 0)), N'1005', NULL, N'CTS không hợp lệ.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(14 AS Numeric(18, 0)), N'1006', NULL, N'Chữ ký không hợp lệ.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(15 AS Numeric(18, 0)), N'1007', NULL, N'Chữ ký không hợp lệ', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(16 AS Numeric(18, 0)), N'1008', NULL, N'MST người mua không hợp lệ.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(17 AS Numeric(18, 0)), N'1009', NULL, N'Không có số hóa đơn gốc.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(18 AS Numeric(18, 0)), N'1010', NULL, N'Doanh nghiệp chưa được cấp phép xuất hóa đơn.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(19 AS Numeric(18, 0)), N'1011', NULL, N'Mã hệ thống của hóa đơn và chuỗi xác thực không trùng nhau', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(20 AS Numeric(18, 0)), N'1012', NULL, N'Số hóa đơn chưa được đăng ký phát hành.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(21 AS Numeric(18, 0)), N'1013', NULL, N'Số hóa đơn sử dụng trước ngày đăng ký phát hành.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(22 AS Numeric(18, 0)), N'1014', NULL, N'Số hóa đơn thuộc hóa đơn đã hủy.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(23 AS Numeric(18, 0)), N'1015', NULL, N'Chứng thư số chưa đăng ký sử dụng.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(24 AS Numeric(18, 0)), N'1016', NULL, N'Mã số thuế người bán của hóa đơn và chuỗi xác thực không trùng nhau.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(25 AS Numeric(18, 0)), N'1017', NULL, N'Số hóa đơn nằm trong dải mẫu hóa đơn hủy.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(26 AS Numeric(18, 0)), N'1018', NULL, N'Hóa đơn trùng trong cùng giao dịch.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(27 AS Numeric(18, 0)), N'1019', NULL, N'Hóa đơn trùng số với hóa đơn đã có.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(28 AS Numeric(18, 0)), N'1020', NULL, N'Hóa đơn gốc không thuộc đơn vị phát hành.', NULL)
INSERT [dbo].[SYSERROR_CODE] ([SYSERRORID], [ERROR_CODE], [ERROR_NAME], [ERROR_DESCRIPTION_VN], [ERROR_DESCRIPTION_EN]) VALUES (CAST(29 AS Numeric(18, 0)), N'1021', NULL, N'Ngày lập hóa đơn phải lớn hơn ngày lập của hóa đơn gốc.', NULL)
SET IDENTITY_INSERT [dbo].[SYSERROR_CODE] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSGROUP] ON 

INSERT [dbo].[SYSGROUP] ([SYSGROUPID], [GROUP_NAME], [DESCRIPTION], [IS_SHOW], [IS_SYSTEM], [MA_DV]) VALUES (CAST(6 AS Numeric(18, 0)), N'Admin', NULL, CAST(1 AS Numeric(18, 0)), NULL, N'0100507058')
INSERT [dbo].[SYSGROUP] ([SYSGROUPID], [GROUP_NAME], [DESCRIPTION], [IS_SHOW], [IS_SYSTEM], [MA_DV]) VALUES (CAST(7 AS Numeric(18, 0)), N'Xuất hóa đơn', NULL, CAST(1 AS Numeric(18, 0)), NULL, N'0100507058')
SET IDENTITY_INSERT [dbo].[SYSGROUP] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSPARA] ON 

INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'DBVERSION', CAST(N'1900-01-02T00:00:00.000' AS DateTime), CAST(165 AS Numeric(10, 0)), N'', NULL, NULL, CAST(1 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'ECUSVALUE1', NULL, NULL, N'DCOIwDBefV=>];', NULL, NULL, CAST(2 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'ECUSVALUE2', NULL, NULL, N'DCOIwDBefV=>^;', NULL, NULL, CAST(3 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'ECUSVALUE3', NULL, NULL, N'E;', NULL, NULL, CAST(4 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'ECUSVALUE4', NULL, NULL, N'j?VM]TXw[LNN[uR;Ynaca`dLY[O`sHY>AR=CE<uRudUxEEYjx@A>o;', NULL, NULL, CAST(5 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'TEMPLATE_VERSION', NULL, NULL, N'12', NULL, NULL, CAST(11 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'EIV_VERSION_TYPE', NULL, NULL, N'V2', NULL, NULL, CAST(10377 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'APPVERSION', NULL, CAST(2 AS Numeric(10, 0)), NULL, NULL, NULL, CAST(10568 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'IS_TU_NHAP_STT', NULL, NULL, N'0', NULL, NULL, CAST(10573 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'KY_SO_SAU_KHI_XUAT_HOA_DON', NULL, NULL, N'4', NULL, NULL, CAST(10574 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'DataBaseName', NULL, NULL, N'EINVOICENETV2_BLANK', NULL, NULL, CAST(10575 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'DBServerName', NULL, NULL, N'DESKTOP-OIBJ8H8', NULL, NULL, CAST(10576 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'Key_MADN', NULL, NULL, N'3600253505-011', NULL, NULL, CAST(10577 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'Key_MACN', NULL, NULL, N'', NULL, NULL, CAST(10578 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'Key_TENCN', NULL, NULL, N'', NULL, NULL, CAST(10579 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'UserID', NULL, NULL, N'sa', NULL, NULL, CAST(10580 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'gsPassword', NULL, NULL, N'gkhQil6i+AMeJdUhr2ViWDerSu842pc+0ogodtLBWYclFwCNE7HZp7RlSylbTm4ZyklbKKj/qBgovS+5o5YQnumV34iMM+W8DLLCoEBhaEL1zdnBJJhIjS6+wC4n6RHw', NULL, NULL, CAST(10581 AS Numeric(18, 0)), N'3600253505-011')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'URL_BAN_TIN_MOI', NULL, NULL, N'http://210.245.8.58:9731/ServiceBT.asmx', NULL, NULL, CAST(10582 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'NGAY_HET_HAN_CKS', NULL, NULL, N'20250306', NULL, NULL, CAST(10583 AS Numeric(18, 0)), NULL)
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'IS_TU_NHAP_STT', NULL, NULL, N'0', NULL, NULL, CAST(10584 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'KY_SO_SAU_KHI_XUAT_HOA_DON', NULL, NULL, N'4', NULL, NULL, CAST(10585 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'DataBaseName', NULL, NULL, N'EINVOICENETV2', NULL, NULL, CAST(10586 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'DBServerName', NULL, NULL, N'LT-DUNGNV\DUNGNV', NULL, NULL, CAST(10587 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'Key_MADN', NULL, NULL, N'0305707643', NULL, NULL, CAST(10588 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'Key_MACN', NULL, NULL, N'', NULL, NULL, CAST(10589 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'Key_TENCN', NULL, NULL, N'', NULL, NULL, CAST(10590 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'UserID', NULL, NULL, N'sa', NULL, NULL, CAST(10591 AS Numeric(18, 0)), N'0305707643')
INSERT [dbo].[SYSPARA] ([Code], [ECUSValue], [ECUSNumber], [ECUSString], [DNCODE], [LICENSECODE], [SYSPARAID], [MA_DV]) VALUES (N'gsPassword', NULL, NULL, N'Mw9o6YgMxNzLKSKeEZzudXhS6p8WAd1ZMP72KItQiWUeJeJOiCgSETuXbkqe5yDkqLk+AzxdoG+kFhesdQcglVat+aTBbjKKRpRJNLgiBY1MrZDJKyoOfYeJugBjYrHO', NULL, NULL, CAST(10592 AS Numeric(18, 0)), N'0305707643')
SET IDENTITY_INSERT [dbo].[SYSPARA] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSPARA_USER] ON 

INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(1 AS Numeric(18, 0)), N'root', N'EMAIL_PORT', N'587', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(2 AS Numeric(18, 0)), N'root', N'EMAIL_SMTP', N'SMTP', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(3 AS Numeric(18, 0)), N'root', N'EMAIL_EMAIL', N'phuongtd444@gmail.com', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(4 AS Numeric(18, 0)), N'root', N'EMAIL_ACCOUNT', N'phuongtd444@gmail.com', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(5 AS Numeric(18, 0)), N'root', N'EMAIL_PASSWORD', N'1234', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(6 AS Numeric(18, 0)), N'root', N'EMAIL_ENABLE_SSL', N'0', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(7 AS Numeric(18, 0)), N'root', N'EMAIL_TEMPLATE_FILE', N'', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(8 AS Numeric(18, 0)), N'root', N'EMAIL_IS_SU_DUNG', N'1', N'3500614363')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(9 AS Numeric(18, 0)), N'root', N'EMAIL_PORT', N'1', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(10 AS Numeric(18, 0)), N'root', N'EMAIL_SMTP', N'a', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(11 AS Numeric(18, 0)), N'root', N'EMAIL_EMAIL', N'1', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(12 AS Numeric(18, 0)), N'root', N'EMAIL_ACCOUNT', N'1', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(13 AS Numeric(18, 0)), N'root', N'EMAIL_PASSWORD', N'1', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(14 AS Numeric(18, 0)), N'root', N'EMAIL_ENABLE_SSL', N'1', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(15 AS Numeric(18, 0)), N'root', N'EMAIL_TEMPLATE_FILE', N'', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(16 AS Numeric(18, 0)), N'root', N'EMAIL_IS_SU_DUNG', N'1', N'0101300842')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(17 AS Numeric(18, 0)), N'root', N'EMAIL_PORT', N'', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(18 AS Numeric(18, 0)), N'root', N'EMAIL_SMTP', N'g', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(19 AS Numeric(18, 0)), N'root', N'EMAIL_EMAIL', N'ff', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(20 AS Numeric(18, 0)), N'root', N'EMAIL_ACCOUNT', N'f', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(21 AS Numeric(18, 0)), N'root', N'EMAIL_PASSWORD', N'f', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(22 AS Numeric(18, 0)), N'root', N'EMAIL_ENABLE_SSL', N'0', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(23 AS Numeric(18, 0)), N'root', N'EMAIL_TEMPLATE_FILE', N'f', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(24 AS Numeric(18, 0)), N'root', N'EMAIL_IS_SU_DUNG', N'1', N'0306182043')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(25 AS Numeric(18, 0)), N'Root', N'URL_WEB_POST', N'fdhfhfhsdfh', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(26 AS Numeric(18, 0)), N'Root', N'EMAIL_PORT', N'9999', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(27 AS Numeric(18, 0)), N'Root', N'EMAIL_SMTP', N'sssa', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(28 AS Numeric(18, 0)), N'Root', N'EMAIL_EMAIL', N'admin@ss.com', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(29 AS Numeric(18, 0)), N'Root', N'EMAIL_ACCOUNT', N'sssss', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(30 AS Numeric(18, 0)), N'Root', N'EMAIL_PASSWORD', N'ưqrwer32r53r3', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(31 AS Numeric(18, 0)), N'Root', N'EMAIL_ENABLE_SSL', N'1', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(32 AS Numeric(18, 0)), N'Root', N'EMAIL_TEMPLATE_FILE', N'BienBanThuHoiHoaDon.html', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(33 AS Numeric(18, 0)), N'Root', N'EMAIL_IS_SU_DUNG', N'0', N'0101300842-999')
INSERT [dbo].[SYSPARA_USER] ([SYSPARA_USERID], [UserName], [PARA_NAME], [PARA_VALUE], [MA_DV]) VALUES (CAST(34 AS Numeric(18, 0)), N'Root', N'EMAIL_TEMPLATE_DATA', N'<html xmlns:inv="http://laphoadon.gdt.gov.vn/2014/09/invoicexml/v1">
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Biên bản thu hồi hóa đơn</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  </head>
  <style type="text/css">
                canvas{display:inline-block}
                html{font-size:100%}
                input{margin:0;vertical-align:middle}
                tr{page-break-inside:avoid}
                p{orphans:3;widows:3}
                body{margin:0;font-family:"Times New Roman",Times New Roman,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}[class*=span]{float:left;min-height:1px;margin-left:20px}
                .span12{width:940px}.span9{width:700px}.span8{width:600px}.span6{width:460px}.span4{width:300px}.span3_1{width:200px}.span3{width:200px}.row-fluid{width:99%;padding-left:10px}.row-fluid [class*=span]{display:block;float:left;width:100%;margin-left:2.12766%;padding-left:0px;box-sizing:border-box}.row-fluid .span12{width:100%}.row-fluid .span9{width:74.4681%}.row-fluid .span8{width:53.191%}.row-fluid .span4{width:31.9149%}.row-fluid .span3{width:21.276%}

                .container{margin-right:auto;margin-left:auto}
                p{margin:0 0 10px}.text-left{text-align:left}
                .text-right{text-align:right}
                .text-center{text-align:center}fieldset{padding:0;margin:0;border:0 none}
                legend{display:block;width:100%;padding:0;color:#333;border-width:0 0 1px;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color #e5e5e5;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none}
                input{font-size:14px;font-weight:400;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;width:206px;margin-left:0}
                table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%}.table td,
                .table th{padding:8px;text-align:left;vertical-align:top}.table td{border-bottom:1px solid #DDD}
                .table th{border-bottom:1px solid #000;font-weight:700}
                .table-condensed td,.table-condensed th{padding:3px 4px}
                .table-bordered{border-width:1px 1px 1px 0;border-style:solid solid solid none;border-color:#000;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image:none;border-collapse:separate;border-radius:0px}
                .table-bordered td,.table-bordered th{border-left:1px solid #000}.table-bordered tbody:first-child tr:first-child>td:first-child,.table-bordered tbody:first-child tr:first-child>th:first-child{border-top-left-radius:0px}.table-bordered tbody:first-child tr:first-child>td:last-child,.table-bordered tbody:first-child tr:first-child>th:last-child{border-top-right-radius:0px}
                .table-bordered tbody:last-child tr:last-child>td:first-child{border-bottom-left-radius:0px}.table-bordered tbody:last-child tr:last-child>td:last-child{border-bottom-right-radius:0px}
                .container{
                position: relative;
                width:720px;
                font-size:14px;
                line-height:20px;
                padding:0px;
                border: 0px solid #000 !important;
		
                }

                .invName{text-align:center;font-size:18px;font-weight:700;margin:0 0 3px;text-transform:uppercase}legend{border-bottom-color:#DDD;text-align:center;line-height:16px;font-size:14px;font-weight:700;margin-bottom:8px}.table td,.table th{line-height:18px;font-size:13px}.table-bordered>tbody>tr.thead>th{text-align:center}.table tr.thead th{vertical-align:middle}.table{margin-bottom:0px}.table td.text-right{text-align:right}.table td.text-center{text-align:center}.row-fluid [class*=span]:first-child{margin-left:0}.row-fluid .span6{width:48.9362%}.row-fluid [class*=span]{min-height:20px}.footer{font-style:italic;font-weight:700;margin-bottom:0;font-size:10px}.row-fluid:after{clear:both}.row-fluid:after,.row-fluid:before{content:"";display:table;line-height:0}.pull-right[class*=span],.row-fluid .pull-right[class*=span]{float:right}.percentage:after{content:" %"}tr:last-child td{border-bottom:none}@media print{.container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.no-print{display:none!important}}.divButton{margin-right:auto;margin-left:auto;width:700px;line-height:16px;padding:10px}.divButton .button{float:right}.divButton:after,.divButton:before{content:"";display:table;line-height:0}.divButton:after{clear:both}.button{border-top:1px solid #96d1f8;background:#65a9d7;background:-webkit-gradient(linear,left top,left bottom,from(#3e779d),to(#65a9d7));background:-webkit-linear-gradient(top,#3e779d,#65a9d7);background:-moz-linear-gradient(top,#3e779d,#65a9d7);background:-ms-linear-gradient(top,#3e779d,#65a9d7);background:-o-linear-gradient(top,#3e779d,#65a9d7);padding:5px 10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:rgba(0,0,0,1)0 1px 0;-moz-box-shadow:rgba(0,0,0,1)0 1px 0;box-shadow:rgba(0,0,0,1)0 1px 0;text-shadow:rgba(0,0,0,.4)0 1px 0;color:#fff;font-size:14px;font-family:Georgia,serif;text-decoration:none;vertical-align:middle}.button:hover{border-top-color:#28597a;background:#28597a;color:#ccc;cursor:pointer}.button:active{border-top-color:#1b435e;background:#1b435e}[class*=" icon-"],[class^=icon-]{background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;display:inline-block;height:16px;line-height:16px;margin-top:1px;vertical-align:text-top;width:14px}.icon-white{background-image:url(../img/glyphicons-halflings-white.png)}.icon-print{background-position:-96px -48px}
                .abcdef{
                border: 3px #000000;
                font-weight: bold;
                padding: 30px 70px;
                font-size: 40px;
                position: absolute;
                opacity: 0.16;
                filter: alpha(opacity=100);
                top: 418px;
                left: 94px;
                width:366px;
                background: none
                z-index: 1;
                }
                .next-page { page-break-inside:always;  page-break-after:always}
                .bodertable
                {

                border: 1px solid #8F9AA3;
                border-collapse: collapse;
                padding-bottom: 2px;
                padding-left: 5px;
                padding-right: 2px;
                padding-top: 0px;
                }
                .giatri
                {
                font-size: 14px;

                font-weight: bold;
                }
                .TieuDe
                {
                font-size: 14px;

                }
                .Nhom
                {
                font-size: 14px;

                font-weight: bold;
                }
                .Bang
                {
                width: 890px;
                }
                .Bang1
                {
                width: 800px;
                }
                .hrRed {
                color: red;
                width: 100%;
                border: 0;
                height: 2px;
                background: red;
                }
                .hrblack {
                color: black;
                width: 100%;
                border: 0;
                height: 1px;
                background: black;
                }
                .TitleHD {
                text-transform: uppercase;
                font-size: 22px;
                font-weight: bold;
                }
                .headTable {
                width: 100%;
                border: 0px;
                }
                .headContent{
                font-weight: bold;
                }
                .nom{
                font-weight: normal !important;
                }
                .boderTop{
                border-top: 1px solid #000 !important;
                }
                .textThaiSon{
                position: absolute;
                top:450px;
                display: block;
                right:-214px;
                font-style: italic;
                font-size: 11px;
                -ms-transform: rotate(270deg); /* IE 9 */
                -webkit-transform: rotate(270deg); /* Safari */
                transform: rotate(270deg); /* Standard syntax */

                }
                .textThaiSon2{
                position: absolute;
                top:250px;
                display: block;
                right:0px;
                font-style: italic;
                font-size: 11px;

                -ms-writing-mode:bt-lr;
                -ms-transform: rotate(180deg);
                transform: rotate(180deg);

                }
                .phathanh{
                position:absolute;
                opacity:0.8;
                filter:alpha(opacity=100);
                top:297px;
                left:180px;
                width:300px;
                height:auto;
                z-index:1;
                background: none;
                }
            </style><script></script><body style="font-size:8px;">
    <div class="container">
      <div class="row-fluid" style="margin-top:10px;font-sizE:16px">
        <div class="text-center"><b>CÔNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM</b></div>
        <div class="text-center"><b>Độc lập - Tự do - Hạnh phúc</b></div>
        <div class="text-center">-----***-----</div>
      </div>
      <div class="row-fluid" style="padding-top: 15px;padding-left:10px">
        <div class="TitleHD headContent text-center">
                            BIÊN BẢN THU HỒI HÓA ĐƠN
                        </div>
        <div class="text-center"><i>Số: 01FACC/BBTH ngày 2017/05/31</i></div><br><div>
                            - Căn cứ vào các quy định hiện hành về quản lý và sử dụng hóa đơn:
                        </div>
        <div>
                            Biên bản lập ngày 2017/05/31 giữa:
                        </div>
        <div class="row-fluid">
          <div class="span3 text-center" style="width:13%">
                                1. 
                            </div>
          <div class="span9">
            <div>CÔNG TY HONDA VIỆT NAM</div>
            <div>
                                    Địa chỉ: 
    </div>
            <div>
                                    Mã số thuế: 2500150543</div>
          </div>
        </div>
        <div class="row-fluid">
          <div class="span3 text-center" style="width:13%">
                                2. 
                            </div>
          <div class="span9">
            <div style="text-transform: uppercase;">CÔNG TY TNHH DỊCH VỤ Ô TÔ QUANG TRUNG</div>
            <div>
                                    Địa chỉ: Số 92 Đại Lộ Lê Lợi, Phường Đông Hương, TPThanh Hóa, Tỉnh Thanh Hóa</div>
            <div>
                                    Mã số thuế: 2802150758</div>
          </div>
        </div><br><div>
                            Theo các nội dung như sau:
                        </div>
        <div class="row-fluid">
          <div class="span3 text-center" style="width:13%">
                                a. 
                            </div>
          <div class="span9">
                                Thu hồi hóa đơn:
                            </div>
        </div>
        <div>
          <table class="table table-condensed table-bordered">
            <tr class="thead">
              <th style="width:40px">
                                        Ký hiệu
                                    </th>
              <th style="width:40px">
                                        Số hóa đơn
                                    </th>
              <th style="width:55px">
                                        Ngày hóa đơn
                                    </th>
              <th style="width:250px">
                                        Nội dung

                                    </th>
              <th style="width:30px">
                                        Số lượng

                                    </th>
              <th style="width:70px">
                                        Số tiền

                                    </th>
              <th style="width:30px">
                                        Thuế suất (%)

                                    </th>
              <th style="width:70px">
                                        Thuế GTGT

                                    </th>
              <th style="width:80px">
                                        Tổng số

                                    </th>
            </tr>
            <tr>
              <td class="text-center">YX/17E</td>
              <td class="text-center">0000002</td>
              <td class="text-center">2017/05/10</td>
              <td>Cấp lại thẻ thợ kỹ thuật</td>
              <td class="text-center">5</td>
              <td class="text-right">500.000</td>
              <td class="text-center"></td>
              <td class="text-right">0</td>
              <td class="text-right">500.000</td>
            </tr>
            <tr>
              <td class="boderTop text-center" colspan="5">
                                        Tổng cộng:
                                    </td>
              <td class="boderTop text-right">500.000</td>
              <td class="boderTop text-right"></td>
              <td class="boderTop text-right">0</td>
              <td class="boderTop text-right">500.000</td>
            </tr>
          </table>
        </div><br><div class="row-fluid">
          <div class="span3 text-center" style="width:13%">
                                b. 
                            </div>
          <div class="span9" style="width:84%">
                                Lý do: 
    </div>
        </div>
        <div>Biên bản này được lập thành hai (02) bản có giá trị như nhau, mỗi bên giữ một bản./.</div>
      </div><br><div class="row-fluid">
        <div class="span6 text-center" style="text-transform: uppercase;"><b>CÔNG TY TNHH DỊCH VỤ Ô TÔ QUANG TRUNG</b></div>
        <div class="span6 text-center" style="text-transform: uppercase;"><b>CÔNG TY HONDA VIỆT NAM</b></div>
      </div><br><br><br><br><br><br><input type="hidden" id="qrcodeContent" value=""></div>
  </body>
</html>', N'0101300842-999')
SET IDENTITY_INSERT [dbo].[SYSPARA_USER] OFF
GO
SET IDENTITY_INSERT [dbo].[SYSUSER_CKS] ON 

INSERT [dbo].[SYSUSER_CKS] ([SYSUSER_CKSID], [MA_DV], [USER_NAME], [SERIAL], [SUBJECT], [MST], [MA_CN], [NGAY_HET_HAN], [GHI_CHU], [USER_FULL_NAME]) VALUES (CAST(2 AS Numeric(18, 0)), N'0101300842-999', N'quynhanh', N'5402BC5CACCE669C201500000002D6CA', N'E=thaisonmienbac@gmail.com, CN=Công ty TNHH Phát Triển Công Nghệ Thái Sơn, OU="Test  ETAX, EINVOICE", O=Công ty TNHH Phát Triển Công Nghệ Thái Sơn, L="Số 11, Đặng Thùy Trâm, Hoàng Quốc Việt, Cầu Giấy, Hà Nội", S=MST:0101300842-999, C=VN', NULL, NULL, CAST(N'2018-05-09T14:29:23.000' AS DateTime), NULL, N'quynhanh')
INSERT [dbo].[SYSUSER_CKS] ([SYSUSER_CKSID], [MA_DV], [USER_NAME], [SERIAL], [SUBJECT], [MST], [MA_CN], [NGAY_HET_HAN], [GHI_CHU], [USER_FULL_NAME]) VALUES (CAST(4 AS Numeric(18, 0)), N'0101300842-999', N'Admin', N'5402BC5CACCE669C201500000002D6CA', N'E=thaisonmienbac@gmail.com, CN=Công ty TNHH Phát Triển Công Nghệ Thái Sơn, OU="Test  ETAX, EINVOICE", O=Công ty TNHH Phát Triển Công Nghệ Thái Sơn, L="Số 11, Đặng Thùy Trâm, Hoàng Quốc Việt, Cầu Giấy, Hà Nội", S=MST:0101300842-999, C=VN', NULL, NULL, CAST(N'2018-05-09T14:29:23.000' AS DateTime), NULL, N'Admin')
SET IDENTITY_INSERT [dbo].[SYSUSER_CKS] OFF
GO
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (100, N'Gửi tờ khai đăng ký, thay đổi thông tin sử dụng hóa đơn điện tử', 1, NULL, N'2.0.1')
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (101, N'Gửi tờ khai đăng ký thay đổi thông tin đăng ký sử dụng HDDT khi ủy nhiệm, nhận ủy nhiệm lập hóa đơn', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (102, N'Thông báo về việc tiếp nhận/không tiếp nhận tờ khai đăng ký/thay đổi thông tin sử dụng HĐĐT', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (103, N'Thông báo về việc chấp nhận/không chấp nhận đăng ký/thay đổi thông tin sử dụng hóa đơn điện tử', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (104, N'Thông báo về việc chấp nhận/không chấp nhận đăng ký thay đổi thông tin đăng k‎ý sử dụng HĐĐT khi ủy nhiệm/nhận ủy nhiệm lập hoá đơn', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (105, N'Thông báo về việc hết thời gian sử dụng hóa đơn điện tử có mã qua cổng thông tin điện tử Tổng cục Thuế', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (106, N'Gửi Đơn đề nghị cấp hóa đơn điện tử có mã của CQT theo từng lần phát sinh', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (200, N'Gửi hóa đơn điện tử tới cơ quan thuế để cấp mã ', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (201, N'Gửi hóa đơn điện tử tới cơ quan thuế để cấp mã theo từng lần phát sinh', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (202, N'Thông báo kết quả cấp mã hóa đơn điện tử của cơ quan thuế', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (203, N'Chuyển dữ liệu hóa đơn điện tử không mã đến cơ quan thuế', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (204, N'Thông báo mẫu số 01/TB-KTDL về việc kết quả kiểm tra dữ liệu hóa đơn điện tử', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (205, N'Phản hồi về hồ sơ đề nghị cấp hóa đơn điện tử có mã của cơ quan thuế theo từng lần pháp sinh. ', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (206, N'Gửi hóa đơn khởi tạo từ máy tính tiền đã cấp mã tới cơ quan thuế', 1, N'2.0.1', NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (300, N'Thông báo về hóa đơn điện tử đã lập có sai sót', 1, NULL, N'2.0.1')
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (301, N'Gửi thông báo về việc tiếp nhận và kết quả xử lý về việc hóa đơn điện tử đã lập có sai sót', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (302, N'Thông báo về hóa đơn điện tử cần rà soát', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (303, N'Thông báo về hóa đơn điện tử khởi tạo từ máy tính tiền có sai sót', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (400, N'Chuyển bảng tổng hợp dữ liệu hóa đơn điện tử đến cơ quan thuế', 1, NULL, N'2.0.1')
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (500, N'Chuyển dữ liệu hóa đơn điện tử do TCTN uỷ quyền cấp mã đến cơ quan thuế', 1, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (999, N'Phản hồi kỹ thuật', 2, NULL, NULL)
INSERT [dbo].[TRUYEN_NHAN_LOAI_THONG_DIEP] ([TRUYEN_NHAN_LOAI_THONG_DIEPID], [TEN_THONG_DIEP], [LOAI_THONG_DIEP], [PHIEN_BAN_XML], [PHIEN_BAN_NOI_DUNG]) VALUES (1000, N'Cấp mã theo lo', 1, NULL, NULL)
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DCHINHANH_PHAN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DCHINHANH_PHAN] ON [dbo].[DCHINHANH_PHAN]
(
	[DPHATHANH_CHITIETID] ASC,
	[MA_LOAI_HOA_DON] ASC,
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHANGHOA]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA] ON [dbo].[DHANGHOA]
(
	[TEN_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHANGHOA_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_1] ON [dbo].[DHANGHOA]
(
	[MA_LOAI_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHANGHOA_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_2] ON [dbo].[DHANGHOA]
(
	[MA_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHANGHOA_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_3] ON [dbo].[DHANGHOA]
(
	[VAT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHANGHOA_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_4] ON [dbo].[DHANGHOA]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHANGHOA_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_5] ON [dbo].[DHANGHOA]
(
	[DHANGHOAIDTempt] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHANGHOA_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_6] ON [dbo].[DHANGHOA]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHANGHOA_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHANGHOA_7] ON [dbo].[DHANGHOA]
(
	[DHANGHOAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_IS_BEN_BAN_KY_SO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_IS_BEN_BAN_KY_SO] ON [dbo].[DHOADON]
(
	[IS_BEN_BAN_KY_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_IS_TT68]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_IS_TT68] ON [dbo].[DHOADON]
(
	[IS_TT68] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_KY_HIEU]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_KY_HIEU] ON [dbo].[DHOADON]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_HINHTHUCTT]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_HINHTHUCTT] ON [dbo].[DHOADON]
(
	[MA_HINHTHUCTT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_LOAI_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_LOAI_HOA_DON] ON [dbo].[DHOADON]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MAU_SO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MAU_SO] ON [dbo].[DHOADON]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_SO_BIEN_LAI]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_SO_BIEN_LAI] ON [dbo].[DHOADON]
(
	[SO_BIEN_LAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_SO_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_SO_HOA_DON] ON [dbo].[DHOADON]
(
	[SO_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TRANG_THAI_DIEU_CHINH]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_TRANG_THAI_DIEU_CHINH] ON [dbo].[DHOADON]
(
	[TRANG_THAI_DIEU_CHINH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TRANG_THAI_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_TRANG_THAI_HOA_DON] ON [dbo].[DHOADON]
(
	[TRANG_THAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_11]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_11] ON [dbo].[DHOADON]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_13]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_13] ON [dbo].[DHOADON]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_15]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_15] ON [dbo].[DHOADON]
(
	[SO_THAM_CHIEU_2] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_16]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_16] ON [dbo].[DHOADON]
(
	[SO_THAM_CHIEU_1] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_17]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_17] ON [dbo].[DHOADON]
(
	[RECEITP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_2] ON [dbo].[DHOADON]
(
	[BEN_MUA_MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_3] ON [dbo].[DHOADON]
(
	[BEN_MUA_MA] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_4] ON [dbo].[DHOADON]
(
	[BEN_BAN_MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_5] ON [dbo].[DHOADON]
(
	[BEN_MUA_TEN_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_6] ON [dbo].[DHOADON]
(
	[NGAY_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_7] ON [dbo].[DHOADON]
(
	[NGUOI_TAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_8] ON [dbo].[DHOADON]
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_9]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_9] ON [dbo].[DHOADON]
(
	[TRANG_THAI_THANH_TOAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON8] ON [dbo].[DHOADON]
(
	[MA_NHAN_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON9]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON9] ON [dbo].[DHOADON]
(
	[GUID_DHOADON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRANG_THAI_TRUYEN_NHAN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRANG_THAI_TRUYEN_NHAN] ON [dbo].[DHOADON]
(
	[TRANG_THAI_TRUYEN_NHAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRANG_THAI_TRUYEN_NHAN_SAI_SOT]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRANG_THAI_TRUYEN_NHAN_SAI_SOT] ON [dbo].[DHOADON]
(
	[TRANG_THAI_TRUYEN_NHAN_SAI_SOT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN] ON [dbo].[DHOADON_BIENBAN]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_1] ON [dbo].[DHOADON_BIENBAN]
(
	[DHOADONID_MOI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_10]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_10] ON [dbo].[DHOADON_BIENBAN]
(
	[SO_BIEN_BAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_11]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_11] ON [dbo].[DHOADON_BIENBAN]
(
	[SBIENBAN_TEMPLATEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_12]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_12] ON [dbo].[DHOADON_BIENBAN]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_13]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_13] ON [dbo].[DHOADON_BIENBAN]
(
	[TRANG_THAI_KY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_14]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_14] ON [dbo].[DHOADON_BIENBAN]
(
	[TRANG_THAI_DONG_BO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_2] ON [dbo].[DHOADON_BIENBAN]
(
	[IS_DONG_BO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_3] ON [dbo].[DHOADON_BIENBAN]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_4] ON [dbo].[DHOADON_BIENBAN]
(
	[KY_HIEU_MOI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_5] ON [dbo].[DHOADON_BIENBAN]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_6] ON [dbo].[DHOADON_BIENBAN]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_7] ON [dbo].[DHOADON_BIENBAN]
(
	[MAU_SO_MOI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_8] ON [dbo].[DHOADON_BIENBAN]
(
	[NGAY_BIEN_BAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_9]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_9] ON [dbo].[DHOADON_BIENBAN]
(
	[NGAY_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_BEN_MUA_MA_DV]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_BEN_MUA_MA_DV] ON [dbo].[DHOADON_BIENBAN_CHITIET]
(
	[BEN_MUA_MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADONID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADONID] ON [dbo].[DHOADON_BIENBAN_CHITIET]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_BIENBAN_CHITIET]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_BIENBAN_CHITIET] ON [dbo].[DHOADON_BIENBAN_CHITIET]
(
	[DHOADON_BIEN_BANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_CT_KEM]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_CT_KEM] ON [dbo].[DHOADON_CT_KEM]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_DIENTU_FILE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_DIENTU_FILE] ON [dbo].[DHOADON_DIENTU_FILE]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EMAIL_ISSEND]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_EMAIL_ISSEND] ON [dbo].[DHOADON_EMAIL]
(
	[EMAIL_ISSEND] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_DV]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_DV] ON [dbo].[DHOADON_EMAIL]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_EMAIL]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL] ON [dbo].[DHOADON_EMAIL]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EMAIL_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_1] ON [dbo].[DHOADON_EMAIL]
(
	[EMAIL_FROM] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EMAIL_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_2] ON [dbo].[DHOADON_EMAIL]
(
	[EMAIL_GUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_EMAIL_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_3] ON [dbo].[DHOADON_EMAIL]
(
	[EMAIL_SENDTIME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EMAIL_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_4] ON [dbo].[DHOADON_EMAIL]
(
	[EMAIL_TO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EMAIL_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_5] ON [dbo].[DHOADON_EMAIL]
(
	[GUID_DHOADON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EMAIL_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_6] ON [dbo].[DHOADON_EMAIL]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EMAIL_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EMAIL_7] ON [dbo].[DHOADON_EMAIL]
(
	[USER_CREATE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON_BIENBANID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON_BIENBANID] ON [dbo].[DHOADON_EMAIL_BIENBAN]
(
	[DHOADON_BIENBANID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EMAIL_ISSEND]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_EMAIL_ISSEND] ON [dbo].[DHOADON_EMAIL_BIENBAN]
(
	[EMAIL_ISSEND] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_DV]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_DV] ON [dbo].[DHOADON_EMAIL_BIENBAN]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_EXPORT_XML]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EXPORT_XML] ON [dbo].[DHOADON_EXPORT_XML]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EXPORT_XML_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EXPORT_XML_1] ON [dbo].[DHOADON_EXPORT_XML]
(
	[SO_HOA_DON] ASC,
	[MAU_SO] ASC,
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_EXPORT_XML_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EXPORT_XML_2] ON [dbo].[DHOADON_EXPORT_XML]
(
	[IS_EXPORT_FILE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EXPORT_XML_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EXPORT_XML_3] ON [dbo].[DHOADON_EXPORT_XML]
(
	[NGUOI_TAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_EXPORT_XML_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EXPORT_XML_4] ON [dbo].[DHOADON_EXPORT_XML]
(
	[NGAY_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_EXPORT_XML_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_EXPORT_XML_5] ON [dbo].[DHOADON_EXPORT_XML]
(
	[NGAY_TAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADONID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADONID] ON [dbo].[DHOADON_EXTENSION]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_FILE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE] ON [dbo].[DHOADON_FILE]
(
	[DHOADON_FILEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_FILE_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_1] ON [dbo].[DHOADON_FILE]
(
	[FILE_DATECREATE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_FILE_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_2] ON [dbo].[DHOADON_FILE]
(
	[FILE_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_FILE_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_3] ON [dbo].[DHOADON_FILE]
(
	[FILE_TYPE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_FILE_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_4] ON [dbo].[DHOADON_FILE]
(
	[GUID_DHOADON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_FILE_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_5] ON [dbo].[DHOADON_FILE]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_FILE_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_6] ON [dbo].[DHOADON_FILE]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_FILE_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_7] ON [dbo].[DHOADON_FILE]
(
	[USER_CREATE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_FILE_8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_8] ON [dbo].[DHOADON_FILE]
(
	[FILE_ISSIGN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_FILE_9]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_9] ON [dbo].[DHOADON_FILE]
(
	[DHOADON_FILE_PARTITION_TEMPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_FILE_PARTITION]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_FILE_PARTITION] ON [dbo].[DHOADON_FILE_PARTITION]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_GL]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL] ON [dbo].[DHOADON_GL]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_1] ON [dbo].[DHOADON_GL]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_2] ON [dbo].[DHOADON_GL]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_3] ON [dbo].[DHOADON_GL]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_4] ON [dbo].[DHOADON_GL]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_GL_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_5] ON [dbo].[DHOADON_GL]
(
	[NGAY_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET] ON [dbo].[DHOADON_GL_CHITIET]
(
	[DHOADON_GLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_1] ON [dbo].[DHOADON_GL_CHITIET]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_2] ON [dbo].[DHOADON_GL_CHITIET]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_3] ON [dbo].[DHOADON_GL_CHITIET]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_4] ON [dbo].[DHOADON_GL_CHITIET]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_5] ON [dbo].[DHOADON_GL_CHITIET]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_6] ON [dbo].[DHOADON_GL_CHITIET]
(
	[SO_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_GL_CHITIET_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_GL_CHITIET_7] ON [dbo].[DHOADON_GL_CHITIET]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HANG_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_1] ON [dbo].[DHOADON_HANG]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HANG_11]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_11] ON [dbo].[DHOADON_HANG]
(
	[DHOADON_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HANG_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_4] ON [dbo].[DHOADON_HANG]
(
	[GUID_DHOADON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HANG_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_5] ON [dbo].[DHOADON_HANG]
(
	[MA_DVT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HANG_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_6] ON [dbo].[DHOADON_HANG]
(
	[MA_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HANG_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_7] ON [dbo].[DHOADON_HANG]
(
	[MA_KHO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HANG_8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_8] ON [dbo].[DHOADON_HANG]
(
	[SO_DON_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SLOAI_DIEU_CHINHID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SLOAI_DIEU_CHINHID] ON [dbo].[DHOADON_HANG]
(
	[SLOAI_DIEU_CHINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HANG_EXTENSION]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_EXTENSION] ON [dbo].[DHOADON_HANG_EXTENSION]
(
	[DHOADON_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HANG_EXTENSION_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HANG_EXTENSION_1] ON [dbo].[DHOADON_HANG_EXTENSION]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HUY]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY] ON [dbo].[DHOADON_HUY]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HUY_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_1] ON [dbo].[DHOADON_HUY]
(
	[MA_LOAI_HUY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HUY_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_2] ON [dbo].[DHOADON_HUY]
(
	[NGAY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HUY_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_3] ON [dbo].[DHOADON_HUY]
(
	[NGAY_CT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HUY_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_4] ON [dbo].[DHOADON_HUY]
(
	[NGAY_NHAP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HUY_CHITIET]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_CHITIET] ON [dbo].[DHOADON_HUY_CHITIET]
(
	[DHOADON_HUYID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HUY_CHITIET_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_CHITIET_1] ON [dbo].[DHOADON_HUY_CHITIET]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HUY_CHITIET_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_CHITIET_2] ON [dbo].[DHOADON_HUY_CHITIET]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HUY_CHITIET_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_CHITIET_3] ON [dbo].[DHOADON_HUY_CHITIET]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_HUY_CHITIET_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_CHITIET_4] ON [dbo].[DHOADON_HUY_CHITIET]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_HUY_CHITIET_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_HUY_CHITIET_5] ON [dbo].[DHOADON_HUY_CHITIET]
(
	[QUYET_TOAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IMPORT_LIST]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_LIST] ON [dbo].[DHOADON_IMPORT_LIST]
(
	[DHOADON_IMPORT_LISTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_LIST_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_LIST_1] ON [dbo].[DHOADON_IMPORT_LIST]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_LIST_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_LIST_2] ON [dbo].[DHOADON_IMPORT_LIST]
(
	[BEN_MUA_MA] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_LIST_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_LIST_3] ON [dbo].[DHOADON_IMPORT_LIST]
(
	[BEN_MUA_MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_LIST_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_LIST_4] ON [dbo].[DHOADON_IMPORT_LIST]
(
	[MA_HANG_HOA] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADONID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADONID] ON [dbo].[DHOADON_IMPORT_XML]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_KY_HIEU]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_KY_HIEU] ON [dbo].[DHOADON_IMPORT_XML]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_LOAI_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_LOAI_HOA_DON] ON [dbo].[DHOADON_IMPORT_XML]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MAU_SO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MAU_SO] ON [dbo].[DHOADON_IMPORT_XML]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_SO_BIEN_LAI]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_SO_BIEN_LAI] ON [dbo].[DHOADON_IMPORT_XML]
(
	[SO_BIEN_LAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_SO_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_SO_HOA_DON] ON [dbo].[DHOADON_IMPORT_XML]
(
	[SO_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XML_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XML_1] ON [dbo].[DHOADON_IMPORT_XML]
(
	[SO_THAM_CHIEU_1] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XML_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XML_2] ON [dbo].[DHOADON_IMPORT_XML]
(
	[RECEITP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XML_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XML_3] ON [dbo].[DHOADON_IMPORT_XML]
(
	[NGAY_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XML_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XML_4] ON [dbo].[DHOADON_IMPORT_XML]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XML_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XML_5] ON [dbo].[DHOADON_IMPORT_XML]
(
	[BEN_BAN_MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XML_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XML_6] ON [dbo].[DHOADON_IMPORT_XML]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON_IMPORT_XMLID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON_IMPORT_XMLID] ON [dbo].[DHOADON_IMPORT_XML_EXTENSION]
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON_IMPORT_XMLID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON_IMPORT_XMLID] ON [dbo].[DHOADON_IMPORT_XML_HANG]
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON_IMPORT_XML_HANGID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON_IMPORT_XML_HANGID] ON [dbo].[DHOADON_IMPORT_XML_HANG_EXTENSION]
(
	[DHOADON_IMPORT_XML_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON_IMPORT_XMLID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON_IMPORT_XMLID] ON [dbo].[DHOADON_IMPORT_XML_HANG_EXTENSION]
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON_IMPORT_XMLID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON_IMPORT_XMLID] ON [dbo].[DHOADON_IMPORT_XML_VAT_EXTENSION]
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IMPORT_XMLID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IMPORT_XMLID] ON [dbo].[DHOADON_IMPORT_XML_VAT_EXTENSION]
(
	[DHOADON_IMPORT_XMLID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IN] ON [dbo].[DHOADON_IN]
(
	[LAN_IN] ASC,
	[NGAY_IN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IN_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IN_1] ON [dbo].[DHOADON_IN]
(
	[LAN_IN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IN_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IN_2] ON [dbo].[DHOADON_IN]
(
	[NGUOI_IN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_IN_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IN_3] ON [dbo].[DHOADON_IN]
(
	[NGAY_IN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_IN_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_IN_4] ON [dbo].[DHOADON_IN]
(
	[MAY_TINH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP] ON [dbo].[DHOADON_NHAP]
(
	[BEN_BAN_MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_1] ON [dbo].[DHOADON_NHAP]
(
	[CODE_KHO_NHAP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_NHAP_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_2] ON [dbo].[DHOADON_NHAP]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_NHAP_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_3] ON [dbo].[DHOADON_NHAP]
(
	[DMAU_INID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_4] ON [dbo].[DHOADON_NHAP]
(
	[SO_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_5] ON [dbo].[DHOADON_NHAP]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_6] ON [dbo].[DHOADON_NHAP]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_NHAP_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_7] ON [dbo].[DHOADON_NHAP]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_8] ON [dbo].[DHOADON_NHAP]
(
	[MA_KHO_NHAP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_9]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_9] ON [dbo].[DHOADON_NHAP]
(
	[MA_KHO_XUAT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_NHAP_HANG]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_HANG] ON [dbo].[DHOADON_NHAP_HANG]
(
	[DHOADON_HANGIDTempt] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_NHAP_HANG_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_HANG_1] ON [dbo].[DHOADON_NHAP_HANG]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_HANG_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_HANG_2] ON [dbo].[DHOADON_NHAP_HANG]
(
	[MA_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_NHAP_HANG_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_HANG_3] ON [dbo].[DHOADON_NHAP_HANG]
(
	[MA_KHO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_NHAP_HANG_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_NHAP_HANG_4] ON [dbo].[DHOADON_NHAP_HANG]
(
	[DHOADON_HANGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS] ON [dbo].[DHOADON_SMS]
(
	[NGAY_GUI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_SMS_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_1] ON [dbo].[DHOADON_SMS]
(
	[SO_DIEN_THOAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_2] ON [dbo].[DHOADON_SMS]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_3] ON [dbo].[DHOADON_SMS]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_4] ON [dbo].[DHOADON_SMS]
(
	[DMSMID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_LOG]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_LOG] ON [dbo].[DHOADON_SMS_LOG]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_LOG_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_LOG_1] ON [dbo].[DHOADON_SMS_LOG]
(
	[NGAY_GUI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_LOG_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_LOG_2] ON [dbo].[DHOADON_SMS_LOG]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_LOG_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_LOG_3] ON [dbo].[DHOADON_SMS_LOG]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_SMS_LOG_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_SMS_LOG_4] ON [dbo].[DHOADON_SMS_LOG]
(
	[DHOADON_SMS_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_TNCN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_TNCN] ON [dbo].[DHOADON_TNCN]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_TNCN_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_TNCN_1] ON [dbo].[DHOADON_TNCN]
(
	[MA_QUOC_TICH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOADON_TNCN_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_TNCN_2] ON [dbo].[DHOADON_TNCN]
(
	[NGUOI_NOP_NOI_CAP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADON_TNCN_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADON_TNCN_3] ON [dbo].[DHOADON_TNCN]
(
	[DHOADON_TNCNID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOADONID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOADONID] ON [dbo].[DHOADON_VAT_EXTENSION]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_GUID_DHOADON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_GUID_DHOADON] ON [dbo].[DHOADON_VAT_EXTENSION]
(
	[GUID_DHOADON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOPDONG_DOITAC]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOPDONG_DOITAC] ON [dbo].[DHOPDONG_DOITAC]
(
	[MA_DV_SD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOPDONG_DOITAC_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOPDONG_DOITAC_1] ON [dbo].[DHOPDONG_DOITAC]
(
	[MA_SO_THUE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOPDONG_DOITAC_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOPDONG_DOITAC_2] ON [dbo].[DHOPDONG_DOITAC]
(
	[SO_HOP_DONG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DHOPDONG_DOITAC_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOPDONG_DOITAC_3] ON [dbo].[DHOPDONG_DOITAC]
(
	[SO_TAI_KHOAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DHOPDONG_DOITAC_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DHOPDONG_DOITAC_4] ON [dbo].[DHOPDONG_DOITAC]
(
	[DHOPDONG_DOITACID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_PROFILE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_PROFILE] ON [dbo].[DLAM_TRON]
(
	[NguoiDung] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_PROFILEVALUE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_PROFILEVALUE] ON [dbo].[DLAM_TRON_CHI_TIET]
(
	[ProfileID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DLOAI_HANG]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DLOAI_HANG] ON [dbo].[DLOAI_HANG]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DLOAI_HANG_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DLOAI_HANG_1] ON [dbo].[DLOAI_HANG]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DLOAI_HANG_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DLOAI_HANG_2] ON [dbo].[DLOAI_HANG]
(
	[MA_LOAI_HANG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DLOAI_HANG_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DLOAI_HANG_3] ON [dbo].[DLOAI_HANG]
(
	[IS_HIENTHI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DMAU_IN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DMAU_IN] ON [dbo].[DMAU_IN]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DMAU_IN_CHI_TIET]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DMAU_IN_CHI_TIET] ON [dbo].[DMAU_IN_CHI_TIET]
(
	[DMAU_INID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DMAU_IN_CHI_TIET_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DMAU_IN_CHI_TIET_1] ON [dbo].[DMAU_IN_CHI_TIET]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_IS_BANG_TONG_HOP]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_IS_BANG_TONG_HOP] ON [dbo].[DPHATHANH_CHITIET]
(
	[IS_BANG_TONG_HOP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_IS_PHAT_HANH]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_IS_PHAT_HANH] ON [dbo].[DPHATHANH_CHITIET]
(
	[IS_PHAT_HANH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MAU_SO_HD]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MAU_SO_HD] ON [dbo].[DPHATHANH_CHITIET]
(
	[MAU_SO_HD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_SU_DUNG_DEN_NGAY]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_SU_DUNG_DEN_NGAY] ON [dbo].[DPHATHANH_CHITIET]
(
	[SU_DUNG_DEN_NGAY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_SU_DUNG_DEN_SO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_SU_DUNG_DEN_SO] ON [dbo].[DPHATHANH_CHITIET]
(
	[SU_DUNG_DEN_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET] ON [dbo].[DPHATHANH_CHITIET]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET_1] ON [dbo].[DPHATHANH_CHITIET]
(
	[GUID_DPHATHANH_CHITIET] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET_2] ON [dbo].[DPHATHANH_CHITIET]
(
	[GUID_DPHATHANH_KHOITAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET_3] ON [dbo].[DPHATHANH_CHITIET]
(
	[KY_HIEU_FULL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET_4] ON [dbo].[DPHATHANH_CHITIET]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET_5] ON [dbo].[DPHATHANH_CHITIET]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_CHITIET_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_CHITIET_6] ON [dbo].[DPHATHANH_CHITIET]
(
	[MA_DV_CHU_QUAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON]    Script Date: 05/08/2024 2:42:23 PM ******/
ALTER TABLE [dbo].[DPHATHANH_HOADON] ADD  CONSTRAINT [IX_DPHATHANH_HOADON] UNIQUE NONCLUSTERED 
(
	[MA_LOAI_HOA_DON] ASC,
	[MA_DV] ASC,
	[SO_HOA_DON] ASC,
	[MAU_SO] ASC,
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_1] ON [dbo].[DPHATHANH_HOADON]
(
	[MA_LOAI_HOA_DON] ASC,
	[MA_DV] ASC,
	[MAU_SO] ASC,
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_10]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_10] ON [dbo].[DPHATHANH_HOADON]
(
	[GUID_DPHATHANH_CHITIET] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_11]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_11] ON [dbo].[DPHATHANH_HOADON]
(
	[GUID_DPHATHANH_HOADON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_12]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_12] ON [dbo].[DPHATHANH_HOADON]
(
	[GUID_DPHATHANH_KHOITAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_13]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_13] ON [dbo].[DPHATHANH_HOADON]
(
	[IS_SU_DUNG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_14]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_14] ON [dbo].[DPHATHANH_HOADON]
(
	[DPHATHANH_HOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_2] ON [dbo].[DPHATHANH_HOADON]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_3] ON [dbo].[DPHATHANH_HOADON]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_4] ON [dbo].[DPHATHANH_HOADON]
(
	[SO_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_5] ON [dbo].[DPHATHANH_HOADON]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_6]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_6] ON [dbo].[DPHATHANH_HOADON]
(
	[KY_HIEU] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_7]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_7] ON [dbo].[DPHATHANH_HOADON]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_8]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_8] ON [dbo].[DPHATHANH_HOADON]
(
	[NGAY_SU_DUNG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_HOADON_9]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_HOADON_9] ON [dbo].[DPHATHANH_HOADON]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO] ON [dbo].[DPHATHANH_KHOITAO]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_1] ON [dbo].[DPHATHANH_KHOITAO]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_2] ON [dbo].[DPHATHANH_KHOITAO]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_3] ON [dbo].[DPHATHANH_KHOITAO]
(
	[KY_HIEU_FULL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_4] ON [dbo].[DPHATHANH_KHOITAO]
(
	[GUID_DPHATHANH_KHOITAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_5] ON [dbo].[DPHATHANH_KHOITAO]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_TEMPLATE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_TEMPLATE] ON [dbo].[DPHATHANH_KHOITAO_TEMPLATE]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_TEMPLATE_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_TEMPLATE_1] ON [dbo].[DPHATHANH_KHOITAO_TEMPLATE]
(
	[GUID_DPHATHANH_KHOITAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_TEMPLATE_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_TEMPLATE_2] ON [dbo].[DPHATHANH_KHOITAO_TEMPLATE]
(
	[MA_HOA_DON_TEMPLATE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_TEMPLATE_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_TEMPLATE_3] ON [dbo].[DPHATHANH_KHOITAO_TEMPLATE]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_TEMPLATE_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_TEMPLATE_4] ON [dbo].[DPHATHANH_KHOITAO_TEMPLATE]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_KHOITAO_TEMPLATE_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KHOITAO_TEMPLATE_5] ON [dbo].[DPHATHANH_KHOITAO_TEMPLATE]
(
	[DPHATHANH_KHOITAO_TMPLATEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KYHIEU]    Script Date: 05/08/2024 2:42:23 PM ******/
ALTER TABLE [dbo].[DPHATHANH_KYHIEU] ADD  CONSTRAINT [IX_DPHATHANH_KYHIEU] UNIQUE NONCLUSTERED 
(
	[DPHATHANH_KHOITAOID] ASC,
	[KY_HIEU_FULL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
/****** Object:  Index [IX_DPHATHANH_KYHIEU_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KYHIEU_1] ON [dbo].[DPHATHANH_KYHIEU]
(
	[IS_PHAT_HANH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KYHIEU_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KYHIEU_2] ON [dbo].[DPHATHANH_KYHIEU]
(
	[KY_HIEU_FULL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DPHATHANH_KYHIEU_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DPHATHANH_KYHIEU_3] ON [dbo].[DPHATHANH_KYHIEU]
(
	[GUID_DPHATHANH_KHOITAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DQUYET_DINH]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DQUYET_DINH] ON [dbo].[DQUYET_DINH]
(
	[SO_QUYET_DINH] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_DQUYET_DINH_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DQUYET_DINH_1] ON [dbo].[DQUYET_DINH]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_DQUYET_DINH_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_DQUYET_DINH_2] ON [dbo].[DQUYET_DINH]
(
	[QUYET_DINHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_IS_KYSO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_IS_KYSO] ON [dbo].[DTHONG_BAO_SAI_SOT]
(
	[IS_KYSO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_IS_XACNHAN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_IS_XACNHAN] ON [dbo].[DTHONG_BAO_SAI_SOT]
(
	[IS_XACNHAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_LOAI_THONG_BAO]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_LOAI_THONG_BAO] ON [dbo].[DTHONG_BAO_SAI_SOT]
(
	[LOAI_THONG_BAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_DV]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_DV] ON [dbo].[DTHONG_BAO_SAI_SOT]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TRANG_THAI_TRUYEN_NHAN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_TRANG_THAI_TRUYEN_NHAN] ON [dbo].[DTHONG_BAO_SAI_SOT]
(
	[TRANG_THAI_TRUYEN_NHAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADONID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADONID] ON [dbo].[DTHONG_BAO_SAI_SOT_CHI_TIET]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DTHONG_BAO_SAI_SOTID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DTHONG_BAO_SAI_SOTID] ON [dbo].[DTHONG_BAO_SAI_SOT_CHI_TIET]
(
	[DTHONG_BAO_SAI_SOTID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_EINVOICE_SEND]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND] ON [dbo].[EINVOICE_SEND]
(
	[GIAO_DICHID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_1] ON [dbo].[EINVOICE_SEND]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_2] ON [dbo].[EINVOICE_SEND]
(
	[MA_LOAI_GD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_3] ON [dbo].[EINVOICE_SEND]
(
	[USER_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_4] ON [dbo].[EINVOICE_SEND]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_EINVOICE_SEND_5]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_5] ON [dbo].[EINVOICE_SEND]
(
	[EINVOICE_SENDID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_EINVOICE_SEND_WEBSITE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_WEBSITE] ON [dbo].[EINVOICE_SEND_WEBSITE]
(
	[EINVOICE_SEND_WEBSITEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_WEBSITE_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_WEBSITE_1] ON [dbo].[EINVOICE_SEND_WEBSITE]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_WEBSITE_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_WEBSITE_2] ON [dbo].[EINVOICE_SEND_WEBSITE]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_EINVOICE_SEND_WEBSITE_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_WEBSITE_3] ON [dbo].[EINVOICE_SEND_WEBSITE]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_EINVOICE_SEND_WEBSITE_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_EINVOICE_SEND_WEBSITE_4] ON [dbo].[EINVOICE_SEND_WEBSITE]
(
	[TRANG_THAI_TT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCANH_BAO_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCANH_BAO_HOA_DON] ON [dbo].[SCANH_BAO_HOA_DON]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCANH_BAO_HOA_DON_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCANH_BAO_HOA_DON_1] ON [dbo].[SCANH_BAO_HOA_DON]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SCANH_BAO_HOA_DON_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCANH_BAO_HOA_DON_2] ON [dbo].[SCANH_BAO_HOA_DON]
(
	[IS_CANH_BAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCANH_BAO_HOA_DON_OPTION]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCANH_BAO_HOA_DON_OPTION] ON [dbo].[SCANH_BAO_HOA_DON_OPTION]
(
	[USERNAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SCANH_BAO_HOA_DON_OPTION_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCANH_BAO_HOA_DON_OPTION_1] ON [dbo].[SCANH_BAO_HOA_DON_OPTION]
(
	[IS_CANH_BAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SCANH_BAO_HOA_DON_OPTION_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCANH_BAO_HOA_DON_OPTION_2] ON [dbo].[SCANH_BAO_HOA_DON_OPTION]
(
	[LOAI_CANH_BAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCHI_NHANH]    Script Date: 05/08/2024 2:42:23 PM ******/
ALTER TABLE [dbo].[SCHI_NHANH] ADD  CONSTRAINT [IX_SCHI_NHANH] UNIQUE NONCLUSTERED 
(
	[MA_DV] ASC,
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCHI_NHANH_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCHI_NHANH_1] ON [dbo].[SCHI_NHANH]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCHI_NHANH_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCHI_NHANH_2] ON [dbo].[SCHI_NHANH]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SCHI_NHANH_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SCHI_NHANH_3] ON [dbo].[SCHI_NHANH]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDOITAC]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SDOITAC] ON [dbo].[SDOITAC]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDOITAC_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SDOITAC_1] ON [dbo].[SDOITAC]
(
	[TEN_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDOITAC_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SDOITAC_2] ON [dbo].[SDOITAC]
(
	[MA_SO_THUE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDOITAC_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SDOITAC_3] ON [dbo].[SDOITAC]
(
	[MA_DV_SD] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDOITAC_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SDOITAC_4] ON [dbo].[SDOITAC]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDONVI]    Script Date: 05/08/2024 2:42:23 PM ******/
ALTER TABLE [dbo].[SDONVI] ADD  CONSTRAINT [IX_SDONVI] UNIQUE NONCLUSTERED 
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SDVT]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SDVT] ON [dbo].[SDVT]
(
	[TEN_DVT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SHOADON_TEMPLATE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SHOADON_TEMPLATE] ON [dbo].[SHOADON_TEMPLATE]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SHOADON_TEMPLATE_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SHOADON_TEMPLATE_1] ON [dbo].[SHOADON_TEMPLATE]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SHOADON_TEMPLATE_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SHOADON_TEMPLATE_2] ON [dbo].[SHOADON_TEMPLATE]
(
	[GUID_DPHATHANH_KHOITAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SHOADON_TEMPLATE_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SHOADON_TEMPLATE_3] ON [dbo].[SHOADON_TEMPLATE]
(
	[IS_XAC_THUC] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SLOAI_HOA_DON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SLOAI_HOA_DON] ON [dbo].[SLOAI_HOA_DON]
(
	[TEN_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SNHAN_VIEN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SNHAN_VIEN] ON [dbo].[SNHAN_VIEN]
(
	[MA_NV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [PK_STHUE]    Script Date: 05/08/2024 2:42:23 PM ******/
ALTER TABLE [dbo].[STHUE] ADD  CONSTRAINT [PK_STHUE] PRIMARY KEY NONCLUSTERED 
(
	[STHUEID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSAPP_MENU_GROUP]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSAPP_MENU_GROUP] ON [dbo].[SYSAPP_MENU_GROUP]
(
	[MENU_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSAPP_MENU_GROUP_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSAPP_MENU_GROUP_1] ON [dbo].[SYSAPP_MENU_GROUP]
(
	[SYSGROUPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSAPP_MENU_USER]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSAPP_MENU_USER] ON [dbo].[SYSAPP_MENU_USER]
(
	[MENU_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSAPPUSER]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSAPPUSER] ON [dbo].[SYSAPPUSER]
(
	[IS_ACTIVE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSAPPUSER_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSAPPUSER_1] ON [dbo].[SYSAPPUSER]
(
	[FULL_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSERROR_CODE]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSERROR_CODE] ON [dbo].[SYSERROR_CODE]
(
	[ERROR_CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSPARA]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSPARA] ON [dbo].[SYSPARA]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSPARA_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSPARA_1] ON [dbo].[SYSPARA]
(
	[Code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSPC]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSPC] ON [dbo].[SYSPC]
(
	[PC_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSPC_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSPC_1] ON [dbo].[SYSPC]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSPC_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSPC_2] ON [dbo].[SYSPC]
(
	[SYSPCID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSER_HOADON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_HOADON] ON [dbo].[SYSUSER_HOADON]
(
	[MA_LOAI_HOA_DON] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSER_HOADON_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_HOADON_1] ON [dbo].[SYSUSER_HOADON]
(
	[MAU_SO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSER_HOADON_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_HOADON_2] ON [dbo].[SYSUSER_HOADON]
(
	[MA_CN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSER_HOADON_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_HOADON_3] ON [dbo].[SYSUSER_HOADON]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSUSER_HOADON_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_HOADON_4] ON [dbo].[SYSUSER_HOADON]
(
	[DPHATHANH_KHOITAOID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSUSER_PHANQUYEN_LOG]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_PHANQUYEN_LOG] ON [dbo].[SYSUSER_PHANQUYEN_LOG]
(
	[NGAY_CAP_NHAT] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSUSER_PHANQUYEN_LOG_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_PHANQUYEN_LOG_1] ON [dbo].[SYSUSER_PHANQUYEN_LOG]
(
	[SYSUSER_PHANQUYEN_LOGID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSER_PHANQUYEN_LOG_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_PHANQUYEN_LOG_2] ON [dbo].[SYSUSER_PHANQUYEN_LOG]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSUSER_PHANQUYEN_LOG_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSER_PHANQUYEN_LOG_3] ON [dbo].[SYSUSER_PHANQUYEN_LOG]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSERLOG]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSERLOG] ON [dbo].[SYSUSERLOG]
(
	[PC_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_SYSUSERLOG_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSERLOG_1] ON [dbo].[SYSUSERLOG]
(
	[USERNAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_SYSUSERLOG_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_SYSUSERLOG_2] ON [dbo].[SYSUSERLOG]
(
	[THOI_GIAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRINH_KY]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRINH_KY] ON [dbo].[TRINH_KY]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRINH_KY_1]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRINH_KY_1] ON [dbo].[TRINH_KY]
(
	[IS_DA_KY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_TRINH_KY_2]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRINH_KY_2] ON [dbo].[TRINH_KY]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRINH_KY_3]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRINH_KY_3] ON [dbo].[TRINH_KY]
(
	[NGAY_KY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRINH_KY_4]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRINH_KY_4] ON [dbo].[TRINH_KY]
(
	[TRINH_KYID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_BTH]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_BTH] ON [dbo].[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET]
(
	[TRUYEN_NHAN_BANG_TONG_HOPID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DHOADON]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_DHOADON] ON [dbo].[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET]
(
	[DHOADONID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TINH_CHAT_TB]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_TINH_CHAT_TB] ON [dbo].[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET]
(
	[TINH_CHAT_THONG_BAO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TRANG_THAI_TN]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_TRANG_THAI_TN] ON [dbo].[TRUYEN_NHAN_BANG_TONG_HOP_CHI_TIET]
(
	[TRANG_THAI_TRUYEN_NHAN] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_DV]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_DV] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_MA_LOAI]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_MA_LOAI] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI]
(
	[MA_LOAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_MA_THONG_DIEP]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_MA_THONG_DIEP] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI]
(
	[MA_THONG_DIEP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRANG_THAI_PHAN_HOI]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRANG_THAI_PHAN_HOI] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI]
(
	[TRANG_THAI_PHAN_HOI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_GUI_LAI]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_GUI_LAI] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET]
(
	[GUI_LAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_MA_LOAI_DETAIL]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_MA_LOAI_DETAIL] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET]
(
	[MA_LOAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_NGHIEP_VUID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_NGHIEP_VUID] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET]
(
	[NGHIEP_VUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IX_TRUYEN_NHAN_THONG_BAO_GUIID]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IX_TRUYEN_NHAN_THONG_BAO_GUIID] ON [dbo].[TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET]
(
	[TRUYEN_NHAN_THONG_BAO_GUIID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_MA_DV]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_DV] ON [dbo].[TRUYEN_NHAN_TRANSACTION]
(
	[MA_DV] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_MA_LOAI_THONG_DIEP]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_MA_LOAI_THONG_DIEP] ON [dbo].[TRUYEN_NHAN_TRANSACTION]
(
	[MA_LOAI_THONG_DIEP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_NGUOI_XU_LY]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_NGUOI_XU_LY] ON [dbo].[TRUYEN_NHAN_TRANSACTION]
(
	[NGUOI_XU_LY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TRANG_THAI]    Script Date: 05/08/2024 2:42:23 PM ******/
CREATE NONCLUSTERED INDEX [IDX_TRANG_THAI] ON [dbo].[TRUYEN_NHAN_TRANSACTION]
(
	[TRANG_THAI] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DAUVAO_HOADON] ADD  CONSTRAINT [DF_DAUVAO_HOADON_TONG_CHIET_XUAT]  DEFAULT ((0)) FOR [TONG_CHIET_KHAU]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_InvoiceType]  DEFAULT ('') FOR [InvoiceType]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_Region]  DEFAULT ((0)) FOR [Region]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_Order]  DEFAULT ((0)) FOR [Order]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_NameShow]  DEFAULT ('') FOR [NameShow]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_DataType]  DEFAULT ('') FOR [DataType]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_DBName]  DEFAULT ('') FOR [DBName]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_AdjustType]  DEFAULT ('') FOR [AdjustType]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_InforType]  DEFAULT ((0)) FOR [InforType]
GO
ALTER TABLE [dbo].[DCONFIG_XML68] ADD  CONSTRAINT [DF_DCONFIG_XML68_IsExtend]  DEFAULT ((0)) FOR [IsExtend]
GO
ALTER TABLE [dbo].[DHANGHOA] ADD  CONSTRAINT [DF_DHANGHOA_IS_DUNG_CHUNG]  DEFAULT ((0)) FOR [IS_DUNG_CHUNG]
GO
ALTER TABLE [dbo].[DHIEN_THI_COT_MAC_DINH] ADD  CONSTRAINT [DF_DHIEN_THI_COT_MAC_DINH_CHON]  DEFAULT ((0)) FOR [CHON]
GO
ALTER TABLE [dbo].[DHOADON] ADD  CONSTRAINT [DF_DHOADON_TRANG_THAI]  DEFAULT ((0)) FOR [TRANG_THAI]
GO
ALTER TABLE [dbo].[DHOADON] ADD  CONSTRAINT [DF__DHOADON__TRANG_T__09003183]  DEFAULT ((1)) FOR [TRANG_THAI_HOA_DON]
GO
ALTER TABLE [dbo].[DHOADON_IMPORT_XML_DETAIL_LOG] ADD  CONSTRAINT [DF__DHOADON_I__STATU__23F3538A]  DEFAULT ((1)) FOR [STATUS]
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO] ADD  CONSTRAINT [DF_DPHATHANH_KHOITAO_IS_PHAT_HANH]  DEFAULT ((0)) FOR [IS_PHAT_HANH]
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO] ADD  CONSTRAINT [DF_DPHATHANH_KHOITAO_IS_CHU_QUAN]  DEFAULT ((0)) FOR [IS_CHU_QUAN]
GO
ALTER TABLE [dbo].[HIENTHICOT] ADD  CONSTRAINT [DF_SHOW_COLUMN_CHON]  DEFAULT ((0)) FOR [CHON]
GO
ALTER TABLE [dbo].[SCANH_BAO_HOA_DON_OPTION] ADD  CONSTRAINT [DF_SCANH_BAO_HOA_DON_OPTION_LOAI_CANH_BAO]  DEFAULT ((0)) FOR [LOAI_CANH_BAO]
GO
ALTER TABLE [dbo].[SNUOC] ADD  CONSTRAINT [DF_SNUOC_HienThi]  DEFAULT ((-1)) FOR [HienThi]
GO
ALTER TABLE [dbo].[SYSAPP_MENU] ADD  CONSTRAINT [df_IS_PROCESS_INVOICE_SPECIAL_ENABLE]  DEFAULT ((0)) FOR [IS_PROCESS_INVOICE_SPECIAL_ENABLE]
GO
ALTER TABLE [dbo].[DAUVAO_HOADON_HANG]  WITH NOCHECK ADD  CONSTRAINT [FK_DAUVAO_HOADON_HANG_DAUVAO_HOADON] FOREIGN KEY([DAUVAO_HOADONID])
REFERENCES [dbo].[DAUVAO_HOADON] ([DAUVAO_HOADONID])
GO
ALTER TABLE [dbo].[DAUVAO_HOADON_HANG] CHECK CONSTRAINT [FK_DAUVAO_HOADON_HANG_DAUVAO_HOADON]
GO
ALTER TABLE [dbo].[DBAOCAO_SDHD_CHITIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DBAOCAO_SDHD_CHITIET_DBAOCAO_SDHD] FOREIGN KEY([DBAOCAO_SDHDID])
REFERENCES [dbo].[DBAOCAO_SDHD] ([DBAOCAO_SDHDID])
GO
ALTER TABLE [dbo].[DBAOCAO_SDHD_CHITIET] CHECK CONSTRAINT [FK_DBAOCAO_SDHD_CHITIET_DBAOCAO_SDHD]
GO
ALTER TABLE [dbo].[DBAOCAO_SDHD_CHITIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DBAOCAO_SDHD_CHITIET_SLOAI_HOA_DON] FOREIGN KEY([MA_LOAI_HOA_DON])
REFERENCES [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON])
GO
ALTER TABLE [dbo].[DBAOCAO_SDHD_CHITIET] CHECK CONSTRAINT [FK_DBAOCAO_SDHD_CHITIET_SLOAI_HOA_DON]
GO
ALTER TABLE [dbo].[DCHINHANH_PHAN]  WITH NOCHECK ADD  CONSTRAINT [FK_DCHINHANH_PHAN_SDONVI] FOREIGN KEY([MA_DV])
REFERENCES [dbo].[SDONVI] ([MA_DV])
GO
ALTER TABLE [dbo].[DCHINHANH_PHAN] CHECK CONSTRAINT [FK_DCHINHANH_PHAN_SDONVI]
GO
ALTER TABLE [dbo].[DCHINHANH_PHAN_CHITIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DCHINHANH_PHAN_CHITIET_DCHINHANH_PHAN] FOREIGN KEY([DCHINHANH_PHANID])
REFERENCES [dbo].[DCHINHANH_PHAN] ([DCHINHANH_PHANID])
GO
ALTER TABLE [dbo].[DCHINHANH_PHAN_CHITIET] CHECK CONSTRAINT [FK_DCHINHANH_PHAN_CHITIET_DCHINHANH_PHAN]
GO
ALTER TABLE [dbo].[DHOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_DPHATHANH_KHOITAO] FOREIGN KEY([DPHATHANH_KHOITAOID])
REFERENCES [dbo].[DPHATHANH_KHOITAO] ([DPHATHANH_KHOITAOID])
GO
ALTER TABLE [dbo].[DHOADON] CHECK CONSTRAINT [FK_DHOADON_DPHATHANH_KHOITAO]
GO
ALTER TABLE [dbo].[DHOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_SLOAI_HOA_DON] FOREIGN KEY([MA_LOAI_HOA_DON])
REFERENCES [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON])
GO
ALTER TABLE [dbo].[DHOADON] CHECK CONSTRAINT [FK_DHOADON_SLOAI_HOA_DON]
GO
ALTER TABLE [dbo].[DHOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_SNGTE] FOREIGN KEY([MA_NT])
REFERENCES [dbo].[SNGTE] ([MA_NT])
GO
ALTER TABLE [dbo].[DHOADON] CHECK CONSTRAINT [FK_DHOADON_SNGTE]
GO
ALTER TABLE [dbo].[DHOADON_BIENBAN]  WITH CHECK ADD  CONSTRAINT [FK_DHOADON_BIEN_BAN_SBIEN_BAN_TEMPLATE] FOREIGN KEY([SBIENBAN_TEMPLATEID])
REFERENCES [dbo].[SBIENBAN_TEMPLATE] ([SBIENBAN_TEMPLATEID])
GO
ALTER TABLE [dbo].[DHOADON_BIENBAN] CHECK CONSTRAINT [FK_DHOADON_BIEN_BAN_SBIEN_BAN_TEMPLATE]
GO
ALTER TABLE [dbo].[DHOADON_BIENBAN_CHITIET]  WITH CHECK ADD  CONSTRAINT [FK_DHOADON_BIENBAN_CHITIET_DHOADON_BIENBAN] FOREIGN KEY([DHOADON_BIEN_BANID])
REFERENCES [dbo].[DHOADON_BIENBAN] ([DHOADON_BIENBANID])
GO
ALTER TABLE [dbo].[DHOADON_BIENBAN_CHITIET] CHECK CONSTRAINT [FK_DHOADON_BIENBAN_CHITIET_DHOADON_BIENBAN]
GO
ALTER TABLE [dbo].[DHOADON_CT_KEM]  WITH CHECK ADD  CONSTRAINT [FK_DHOADON_CT_KEM_DHOADON] FOREIGN KEY([DHOADONID])
REFERENCES [dbo].[DHOADON] ([DHOADONID])
GO
ALTER TABLE [dbo].[DHOADON_CT_KEM] CHECK CONSTRAINT [FK_DHOADON_CT_KEM_DHOADON]
GO
ALTER TABLE [dbo].[DHOADON_FILE]  WITH CHECK ADD  CONSTRAINT [FK_DHOADON_FILE_DHOADON] FOREIGN KEY([DHOADONID])
REFERENCES [dbo].[DHOADON] ([DHOADONID])
GO
ALTER TABLE [dbo].[DHOADON_FILE] CHECK CONSTRAINT [FK_DHOADON_FILE_DHOADON]
GO
ALTER TABLE [dbo].[DHOADON_HANG]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_HANG_DHOADON] FOREIGN KEY([DHOADONID])
REFERENCES [dbo].[DHOADON] ([DHOADONID])
GO
ALTER TABLE [dbo].[DHOADON_HANG] CHECK CONSTRAINT [FK_DHOADON_HANG_DHOADON]
GO
ALTER TABLE [dbo].[DHOADON_HANG_EXTENSION]  WITH CHECK ADD  CONSTRAINT [FK_DHOADON_HANG_EXTENSION_DHOADON_HANG] FOREIGN KEY([DHOADON_HANGID])
REFERENCES [dbo].[DHOADON_HANG] ([DHOADON_HANGID])
GO
ALTER TABLE [dbo].[DHOADON_HANG_EXTENSION] CHECK CONSTRAINT [FK_DHOADON_HANG_EXTENSION_DHOADON_HANG]
GO
ALTER TABLE [dbo].[DHOADON_HUY]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_HUY_SDONVI] FOREIGN KEY([MA_DV])
REFERENCES [dbo].[SDONVI] ([MA_DV])
GO
ALTER TABLE [dbo].[DHOADON_HUY] CHECK CONSTRAINT [FK_DHOADON_HUY_SDONVI]
GO
ALTER TABLE [dbo].[DHOADON_HUY_CHITIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_HUY_CHITIET_DHOADON_HUY] FOREIGN KEY([DHOADON_HUYID])
REFERENCES [dbo].[DHOADON_HUY] ([DHOADON_HUYID])
GO
ALTER TABLE [dbo].[DHOADON_HUY_CHITIET] CHECK CONSTRAINT [FK_DHOADON_HUY_CHITIET_DHOADON_HUY]
GO
ALTER TABLE [dbo].[DHOADON_HUY_CHITIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_HUY_CHITIET_SLOAI_HOA_DON] FOREIGN KEY([MA_LOAI_HOA_DON])
REFERENCES [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON])
GO
ALTER TABLE [dbo].[DHOADON_HUY_CHITIET] CHECK CONSTRAINT [FK_DHOADON_HUY_CHITIET_SLOAI_HOA_DON]
GO
ALTER TABLE [dbo].[DHOADON_IN]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_IN_DHOADON] FOREIGN KEY([DHOADONID])
REFERENCES [dbo].[DHOADON] ([DHOADONID])
GO
ALTER TABLE [dbo].[DHOADON_IN] CHECK CONSTRAINT [FK_DHOADON_IN_DHOADON]
GO
ALTER TABLE [dbo].[DHOADON_NHAP_HANG]  WITH CHECK ADD  CONSTRAINT [FK_DHOADON_NHAP_HANG_DHOADON_NHAP] FOREIGN KEY([DHOADONID])
REFERENCES [dbo].[DHOADON_NHAP] ([DHOADONID])
GO
ALTER TABLE [dbo].[DHOADON_NHAP_HANG] CHECK CONSTRAINT [FK_DHOADON_NHAP_HANG_DHOADON_NHAP]
GO
ALTER TABLE [dbo].[DHOADON_TNCN]  WITH NOCHECK ADD  CONSTRAINT [FK_DHOADON_TNCN_DHOADON] FOREIGN KEY([DHOADONID])
REFERENCES [dbo].[DHOADON] ([DHOADONID])
GO
ALTER TABLE [dbo].[DHOADON_TNCN] CHECK CONSTRAINT [FK_DHOADON_TNCN_DHOADON]
GO
ALTER TABLE [dbo].[DMAU_IN_CHI_TIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DMAU_IN_CHI_TIET_DMAU_IN] FOREIGN KEY([DMAU_INID])
REFERENCES [dbo].[DMAU_IN] ([DMAU_INID])
GO
ALTER TABLE [dbo].[DMAU_IN_CHI_TIET] CHECK CONSTRAINT [FK_DMAU_IN_CHI_TIET_DMAU_IN]
GO
ALTER TABLE [dbo].[DPHATHANH_CHITIET]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_CHITIET_DPHATHANH_KHOITAO] FOREIGN KEY([DPHATHANH_KHOITAOID])
REFERENCES [dbo].[DPHATHANH_KHOITAO] ([DPHATHANH_KHOITAOID])
GO
ALTER TABLE [dbo].[DPHATHANH_CHITIET] CHECK CONSTRAINT [FK_DPHATHANH_CHITIET_DPHATHANH_KHOITAO]
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_HOADON_DPHATHANH_CHITIET] FOREIGN KEY([DPHATHANH_CHITIETID])
REFERENCES [dbo].[DPHATHANH_CHITIET] ([DPHATHANH_CHITIETID])
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON] CHECK CONSTRAINT [FK_DPHATHANH_HOADON_DPHATHANH_CHITIET]
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_HOADON_DPHATHANH_KHOITAO] FOREIGN KEY([DPHATHANH_KHOITAOID])
REFERENCES [dbo].[DPHATHANH_KHOITAO] ([DPHATHANH_KHOITAOID])
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON] CHECK CONSTRAINT [FK_DPHATHANH_HOADON_DPHATHANH_KHOITAO]
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_HOADON_SDONVI] FOREIGN KEY([MA_DV])
REFERENCES [dbo].[SDONVI] ([MA_DV])
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON] CHECK CONSTRAINT [FK_DPHATHANH_HOADON_SDONVI]
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_HOADON_SLOAI_HOA_DON] FOREIGN KEY([MA_LOAI_HOA_DON])
REFERENCES [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON])
GO
ALTER TABLE [dbo].[DPHATHANH_HOADON] CHECK CONSTRAINT [FK_DPHATHANH_HOADON_SLOAI_HOA_DON]
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_KHOITAO_SDONVI] FOREIGN KEY([MA_DV])
REFERENCES [dbo].[SDONVI] ([MA_DV])
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO] CHECK CONSTRAINT [FK_DPHATHANH_KHOITAO_SDONVI]
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_KHOITAO_SLOAI_HOA_DON] FOREIGN KEY([MA_LOAI_HOA_DON])
REFERENCES [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON])
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO] CHECK CONSTRAINT [FK_DPHATHANH_KHOITAO_SLOAI_HOA_DON]
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO_TEMPLATE]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_KHOITAO_TEMPLATE_DPHATHANH_KHOITAO] FOREIGN KEY([DPHATHANH_KHOITAOID])
REFERENCES [dbo].[DPHATHANH_KHOITAO] ([DPHATHANH_KHOITAOID])
GO
ALTER TABLE [dbo].[DPHATHANH_KHOITAO_TEMPLATE] CHECK CONSTRAINT [FK_DPHATHANH_KHOITAO_TEMPLATE_DPHATHANH_KHOITAO]
GO
ALTER TABLE [dbo].[DPHATHANH_KYHIEU]  WITH NOCHECK ADD  CONSTRAINT [FK_DPHATHANH_KYHIEU_DPHATHANH_KHOITAO] FOREIGN KEY([DPHATHANH_KHOITAOID])
REFERENCES [dbo].[DPHATHANH_KHOITAO] ([DPHATHANH_KHOITAOID])
GO
ALTER TABLE [dbo].[DPHATHANH_KYHIEU] CHECK CONSTRAINT [FK_DPHATHANH_KYHIEU_DPHATHANH_KHOITAO]
GO
ALTER TABLE [dbo].[SCHI_NHANH]  WITH NOCHECK ADD  CONSTRAINT [FK_SCHI_NHANH_SDONVI] FOREIGN KEY([MA_DV])
REFERENCES [dbo].[SDONVI] ([MA_DV])
GO
ALTER TABLE [dbo].[SCHI_NHANH] CHECK CONSTRAINT [FK_SCHI_NHANH_SDONVI]
GO
ALTER TABLE [dbo].[SHOADON_TEMPLATE]  WITH NOCHECK ADD  CONSTRAINT [FK_SHOADON_TEMPLATE_SLOAI_HOA_DON] FOREIGN KEY([MA_LOAI_HOA_DON])
REFERENCES [dbo].[SLOAI_HOA_DON] ([MA_LOAI_HOA_DON])
GO
ALTER TABLE [dbo].[SHOADON_TEMPLATE] CHECK CONSTRAINT [FK_SHOADON_TEMPLATE_SLOAI_HOA_DON]
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_GROUP]  WITH CHECK ADD  CONSTRAINT [FK_SYS_PERMISSIONS_GROUP_SYS_GROUP_PERMISSIONS] FOREIGN KEY([SYS_GROUP_PERMISSIONSID])
REFERENCES [dbo].[SYS_GROUP_PERMISSIONS] ([SYS_GROUP_PERMISSIONSID])
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_GROUP] CHECK CONSTRAINT [FK_SYS_PERMISSIONS_GROUP_SYS_GROUP_PERMISSIONS]
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_GROUP]  WITH CHECK ADD  CONSTRAINT [FK_SYS_PERMISSIONS_GROUP_SYS_PERMISSIONS] FOREIGN KEY([SYS_PERMISSIONSID])
REFERENCES [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID])
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_GROUP] CHECK CONSTRAINT [FK_SYS_PERMISSIONS_GROUP_SYS_PERMISSIONS]
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_USER]  WITH CHECK ADD  CONSTRAINT [FK_SYS_GROUP_PERMISSIONS_SYS_PERMISSIONS_USER] FOREIGN KEY([SYS_GROUP_PERMISSIONSID])
REFERENCES [dbo].[SYS_GROUP_PERMISSIONS] ([SYS_GROUP_PERMISSIONSID])
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_USER] CHECK CONSTRAINT [FK_SYS_GROUP_PERMISSIONS_SYS_PERMISSIONS_USER]
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_USER]  WITH CHECK ADD  CONSTRAINT [FK_SYS_PERMISSIONS_USER_SYS_PERMISSIONS] FOREIGN KEY([SYS_PERMISSIONSID])
REFERENCES [dbo].[SYS_PERMISSIONS] ([SYS_PERMISSIONSID])
GO
ALTER TABLE [dbo].[SYS_PERMISSIONS_USER] CHECK CONSTRAINT [FK_SYS_PERMISSIONS_USER_SYS_PERMISSIONS]
GO
/****** Object:  StoredProcedure [dbo].[AUTO_Check_Issue_Invoice]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 create PROCEDURE [dbo].[AUTO_Check_Issue_Invoice]
	-- Add the parameters for the stored procedure here
	
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

  if MONTH(getdate())>1
   return;
  if day(getdate())>10
   return;
  
   declare @Nam int, @MaDV varchar(20)
   set @Nam =YEAR(getdate())
   	declare _CursorDV cursor for select distinct MA_DV from SDONVI
		open _CursorDV
		fetch next from _CursorDV into @MaDV
		while @@FETCH_STATUS=0
			begin  
			exec SP_TAO_DAI_SO_MaDV @Nam,@MaDV
			fetch next from _CursorDV into @MaDV
			end
		close _CursorDV
		deallocate _CursorDV     
END
GO
/****** Object:  StoredProcedure [dbo].[BaoCaoHuyHoaDon]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
--select * from DHOADON 
-- EXEC BaoCaoHuyHoaDon '0302203609','20160101','20170303','','','','',''
-- EXEC BaoCaoHuyHoaDon '0102721191-001','20170101','20170303','','','','',''
CREATE PROC [dbo].[BaoCaoHuyHoaDon]
(
@MST nvarchar(50),
@TuNgay nvarchar(50),
@denNgay nvarchar(50),
@KyHieu nvarchar(50),
@SoHoaDon nvarchar(50),
@MaChiNhanh nvarchar(250),
@MaSoThueDoiTac nvarchar(550),
@TenDoiTac nvarchar(550)
)
AS

SELECT ROW_NUMBER() OVER(ORder by T.guid_DHOADON) AS STT,  T.*,ISNULL(T1.SO_HOA_DON,'') AS SO_HOA_DON_TT,ISNULL(T1.KY_HIEU,'') AS KY_HIEU_TT ,ISNULL(T1.SO_HOA_DON,'') AS SO_HOA_DON_TT,ISNULL(T1.BEN_MUA_TEN_DV,'') AS BEN_MUA_TEN_DV_TT ,ISNULL(T1.MA_NHAN_HOA_DON,'') MA_NHAN_HOA_DON,ISNULL(T1.TONG_TIEN_HANG,0) TONG_TIEN_HANG_TT,ISNULL(T1.TONG_VAT,0) TONG_VAT_TT,ISNULL(T1.TONG_THANH_TOAN,0) AS TONG_THANH_TOAN_TT,T1.NGAY_HOA_DON as NGAY_HOA_DON_TT,isnull(T1.BEN_MUA_TEN_DV ,'')  BEN_MUA_TEN_DV_TT  
 FROM 
(
SELECT T.GUID_DHOADON,T.SO_HOA_DON,T.NGAY_HOA_DON,T.KY_HIEU,T.MAU_SO,T.RECEITP,T.MA_CN,T2.MO_TA,T.BEN_MUA_MA_DV,CASE WHEN ISNULL(T.BEN_MUA_TEN_DV,'')='' then T.BEN_MUA_HO_TEN ELSE T.BEN_MUA_TEN_DV END BEN_MUA_TEN_DV ,T.TONG_TIEN_HANG ,ISNULL(T.TONG_VAT5,0) + ISNULL(t.TONG_VAT,0) AS TONG_VAT,T.TONG_THANH_TOAN FROM DHOADON T LEFT JOIN STRANG_THAI_HOA_DON T2 ON T2.TRANG_THAI_DIEU_CHINH=T.TRANG_THAI_DIEU_CHINH   Where T.BEN_BAN_MA_DV =@MST AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) >=@TuNgay AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) <=@denNgay and T.TRANG_THAI <0 AND (@KyHieu ='' OR T.KY_HIEU =@KyHieu) AND (@SoHoaDon ='' OR T.SO_HOA_DON =@SoHoaDon) AND (@MaChiNhanh ='' OR T.MA_CN  =@MaChiNhanh) AND (@MaSoThueDoiTac ='' OR T.BEN_MUA_MA_DV  =@MaSoThueDoiTac) AND (@TenDoiTac ='' OR T.BEN_MUA_TEN_DV  =@TenDoiTac)
)  T  
LEFT JOIN (
SELECT T.GUID_DHOADON_GOC,T.SO_HOA_DON,T.NGAY_HOA_DON,T.KY_HIEU,T.MAU_SO,T.RECEITP,T.MA_CN,T2.MO_TA,T.BEN_MUA_MA_DV,T.MA_NHAN_HOA_DON,CASE WHEN ISNULL(T.BEN_MUA_TEN_DV,'')='' then T.BEN_MUA_HO_TEN ELSE T.BEN_MUA_TEN_DV END BEN_MUA_TEN_DV,T.TONG_TIEN_HANG ,ISNULL(T.TONG_VAT5,0) + ISNULL(t.TONG_VAT,0) AS TONG_VAT,T.TONG_THANH_TOAN FROM DHOADON T  LEFT JOIN STRANG_THAI_HOA_DON T2 ON T2.TRANG_THAI_DIEU_CHINH=T.TRANG_THAI_DIEU_CHINH   Where T.BEN_BAN_MA_DV =@MST AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) >=@TuNgay AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) <=@denNgay  AND GUID_DHOADON_GOC IS NOT NULL AND T.TRANG_THAI_DIEU_CHINH not in( 4,5) AND (@KyHieu ='' OR T.KY_HIEU =@KyHieu) AND (@SoHoaDon ='' OR T.SO_HOA_DON =@SoHoaDon) AND (@MaChiNhanh ='' OR T.MA_CN  =@MaChiNhanh) AND (@MaSoThueDoiTac ='' OR T.BEN_MUA_MA_DV  =@MaSoThueDoiTac) AND (@TenDoiTac ='' OR T.BEN_MUA_TEN_DV  =@TenDoiTac)
) AS T1 ON T.GUID_DHOADON =T1.GUID_DHOADON_GOC 


GO
/****** Object:  StoredProcedure [dbo].[BaoCaoHuyHoaDon_Konica]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
--- EXEC BaoCaoHuyHoaDon_Konica '0311782575','20201001','20201027','','','','',''
--  EXEC BaoCaoHuyHoaDon_Konica '0311782575','20201028','20201028','','','','',''
CREATE PROC [dbo].[BaoCaoHuyHoaDon_Konica]
(
@MST nvarchar(50),
@TuNgay nvarchar(50),
@denNgay nvarchar(50),
@KyHieu nvarchar(50),
@SoHoaDon nvarchar(50),
@MaChiNhanh nvarchar(250),
@MaSoThueDoiTac nvarchar(550),
@TenDoiTac nvarchar(550)
)
AS

SELECT ROW_NUMBER() OVER(ORder by T.guid_DHOADON) AS STT,  T.*,ISNULL(T1.SO_HOA_DON,'') AS SO_HOA_DON_TT,ISNULL(T1.KY_HIEU,'') AS KY_HIEU_TT ,ISNULL(T1.SO_HOA_DON,'') AS SO_HOA_DON_TT,ISNULL(T1.BEN_MUA_TEN_DV,'') AS BEN_MUA_TEN_DV_TT ,ISNULL(T1.MA_NHAN_HOA_DON,'') MA_NHAN_HOA_DON,ISNULL(T1.TONG_TIEN_HANG,0) TONG_TIEN_HANG_TT, ((CASE WHEN T.TRANG_THAI_DIEU_CHINH=6 then 0 WHEN T.TRANG_THAI_DIEU_CHINH=7 then 0 else 1 end) *(ISNULL(T.TONG_TIEN_THUE_5,0) + ISNULL(T.TONG_TIEN_THUE_10,0)))  TONG_VAT_TT,ISNULL(T1.TONG_THANH_TOAN,0) AS TONG_THANH_TOAN_TT,T1.NGAY_HOA_DON as NGAY_HOA_DON_TT,isnull(T1.BEN_MUA_TEN_DV ,'')  BEN_MUA_TEN_DV_TT  
 FROM 
(
		SELECT T.GUID_DHOADON,T.SO_HOA_DON,T.NGAY_HOA_DON,T.KY_HIEU,T.MAU_SO,T.RECEITP,T.MA_CN,T2.MO_TA,T.BEN_MUA_MA_DV,CASE WHEN ISNULL(T.BEN_MUA_TEN_DV,'')='' then T.BEN_MUA_HO_TEN ELSE T.BEN_MUA_TEN_DV END BEN_MUA_TEN_DV ,T.TONG_TIEN_HANG ,(isnull(T.TONG_TIEN_THUE_5,0) + isnull(T.TONG_TIEN_THUE_10,0) ) AS TONG_VAT,T.TONG_THANH_TOAN, T.TONG_TIEN_THUE_5 TONG_TIEN_THUE_5,T.TONG_TIEN_THUE_10 TONG_TIEN_THUE_10,T.TRANG_THAI_DIEU_CHINH
		
		FROM DHOADON T LEFT JOIN 
		STRANG_THAI_HOA_DON T2 ON T2.TRANG_THAI_DIEU_CHINH=T.TRANG_THAI_DIEU_CHINH   
		Where T.BEN_BAN_MA_DV =@MST AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) >=@TuNgay AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) <=@denNgay and T.TRANG_THAI <0 AND (@KyHieu ='' OR T.KY_HIEU =@KyHieu) AND (@SoHoaDon ='' OR T.SO_HOA_DON =@SoHoaDon) AND (@MaChiNhanh ='' OR T.MA_CN  =@MaChiNhanh) AND (@MaSoThueDoiTac ='' OR T.BEN_MUA_MA_DV  =@MaSoThueDoiTac) AND (@TenDoiTac ='' OR T.BEN_MUA_TEN_DV  =@TenDoiTac)
)  T  
LEFT JOIN (
SELECT T.GUID_DHOADON_GOC,T.SO_HOA_DON,T.NGAY_HOA_DON,T.KY_HIEU,T.MAU_SO,T.RECEITP,T.MA_CN,T2.MO_TA,T.BEN_MUA_MA_DV,T.MA_NHAN_HOA_DON,CASE WHEN ISNULL(T.BEN_MUA_TEN_DV,'')='' then T.BEN_MUA_HO_TEN ELSE T.BEN_MUA_TEN_DV END BEN_MUA_TEN_DV,T.TONG_TIEN_HANG ,ISNULL(T.TONG_VAT5,0) + ISNULL(t.TONG_VAT,0) AS TONG_VAT,T.TONG_THANH_TOAN
 FROM DHOADON T  
 LEFT JOIN STRANG_THAI_HOA_DON T2 ON T2.TRANG_THAI_DIEU_CHINH=T.TRANG_THAI_DIEU_CHINH  
  Where T.BEN_BAN_MA_DV =@MST AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) >=@TuNgay AND CONVERT (varchar(20), T.NGAY_HOA_DON,112) <=@denNgay  AND GUID_DHOADON_GOC IS NOT NULL AND T.TRANG_THAI_DIEU_CHINH not in( 4,5) AND (@KyHieu ='' OR T.KY_HIEU =@KyHieu) AND (@SoHoaDon ='' OR T.SO_HOA_DON =@SoHoaDon) AND (@MaChiNhanh ='' OR T.MA_CN  =@MaChiNhanh) AND (@MaSoThueDoiTac ='' OR T.BEN_MUA_MA_DV  =@MaSoThueDoiTac) AND (@TenDoiTac ='' OR T.BEN_MUA_TEN_DV  =@TenDoiTac)
) AS T1 ON T.GUID_DHOADON =T1.GUID_DHOADON_GOC 

--Select TONG_VAT5,TONG_VAT10 from DHOADON where BEN_BAN_MA_DV ='0311782575' and SO_HOA_DON='0000107'


GO
/****** Object:  StoredProcedure [dbo].[ReIndexAll]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ReIndexAll] AS

DECLARE @TableName varchar(255) 

DECLARE TableCursor CURSOR FOR 
SELECT table_name FROM information_schema.tables 
WHERE table_type = 'base table' 

OPEN TableCursor 

FETCH NEXT FROM TableCursor INTO @TableName 
WHILE @@FETCH_STATUS = 0 
BEGIN 
DBCC DBREINDEX(@TableName,' ',80) 
FETCH NEXT FROM TableCursor INTO @TableName 
END 

CLOSE TableCursor 

DEALLOCATE TableCursor


GO
/****** Object:  StoredProcedure [dbo].[SP_BangTongHop_TheoNgay]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_BangTongHop_TheoNgay] 
	-- Add the parameters for the stored procedure here
	@IsNew int=0,
	@MaDV varchar(50),
	@NamTongHop varchar(4),
	@TTDongBo int = 0,	
	@NgayTongHop datetime
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	Declare @NgayBatDau datetime = @NamTongHop + '0101' -- Đầu năm, VD: 2021-01-01 (20210101)
	Declare @LoaiKy varchar(1) = 'N'
	
	-- Ngày bắt đầu chính là ngày tổng hợp cuối cùng đã lưu
	Set @NgayBatDau = (Select Max(NGAY_TONG_HOP) From TRUYEN_NHAN_BANG_TONG_HOP Where LOAI_KY=@LoaiKy And MA_DV=@MaDV)
	If @NgayBatDau Is Null
	Begin
		Set @NgayBatDau = @NamTongHop + '0101'
	End;
		
	Select * into #temBangTongHopNgay From 
	(
		Select T3.*,
		
			TRANG_THAI_TRUYEN_NHAN,SO_THU_TU,

			CASE 
				WHEN ISNULL(TT.TRANG_THAI_TRUYEN_NHAN,0) = 0 THEN N'Chưa đồng bộ'
				WHEN ISNULL(TT.TRANG_THAI_TRUYEN_NHAN,0) >= 1 And ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) < 7 THEN N'Đang đồng bộ'
				WHEN ISNULL(TT.TRANG_THAI_TRUYEN_NHAN,0) >= 7 THEN N'Đã đồng bộ'
				WHEN ISNULL(TT.TRANG_THAI_TRUYEN_NHAN,0) < 0 THEN N'Đồng bộ lỗi'
			END As TRANG_THAI_DONGBO,

			CASE 
				WHEN ISNULL(TT.TRANG_THAI_XAC_NHAN_GUI,0) = 0 THEN N'Chưa xác nhận'
				WHEN ISNULL(TT.TRANG_THAI_XAC_NHAN_GUI,0) > 0 THEN N'Đã xác nhận'
			END As TEN_TRANG_THAI_XAC_NHAN_GUI,
			TRANG_THAI_XAC_NHAN_GUI,

			CASE WHEN TRUYEN_NHAN_BANG_TONG_HOPID IS NULL THEN		
				ISNULL(TT.LAN_TONG_HOP,1)--Chưalưu->Lần1
			ELSE
				CASE WHEN @IsNew=1 THEN
					CASE WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) = 0 THEN ISNULL(TT.LAN_TONG_HOP,0) --Chưa gửi, khi tạo mới
					ELSE ISNULL(TT.LAN_TONG_HOP,0) + 1 END --Lần mới, khi đã gửi / gửi lỗi
				ELSE ISNULL(TT.LAN_TONG_HOP,0) END --Load
			END As LAN_TONG_HOP,

			CASE WHEN @IsNew=1 THEN 
				GETDATE()
			ELSE
				ISNULL(TT.NGAY_TONG_HOP,GETDATE()) 
			END As NGAY_TONG_HOP,

			'' As NGUOI_TONG_HOP,
			'' As IS_CHON,
			TRUYEN_NHAN_BANG_TONG_HOPID
		From 
		(			
			Select 
				N'Theo Ngày' As KY_TONG_HOP, 'N' As LOAI_KY,
				RIGHT('00' + CAST(Datepart(Day, @NgayTongHop) As NVARCHAR(2)), 2) + '/' + RIGHT('00' + (CAST(Datepart(Month, @NgayTongHop) As NVARCHAR(2)) + '/' + CAST(Datepart(Year, @NgayTongHop) As NVARCHAR(4))),7) As KY_DU_LIEU,
				(N'Ngày ' + (RIGHT('00' + CAST(Datepart(Day, @NgayTongHop) As NVARCHAR(2)), 2) + '/' + RIGHT('00' + (CAST(Datepart(Month, @NgayTongHop) As NVARCHAR(2)) + '/' + CAST(Datepart(Year, @NgayTongHop) As NVARCHAR(4))),7))) As TEN_KY,
				MAX(NAM) as NAM,
				SUM(NotTrans) As ChuaGui,
				SUM(Ok1+Ok3+Ok5) As DangGui,
				SUM(Ok7+Ok9) As DaGui,
				SUM(Err1+Err3+Err5+Err7+Err9) As GuiLoi,
				SUM(NotTrans + (Ok1+Ok3+Ok5+Ok7+Ok9) + (Err1+Err3+Err5+Err7+Err9)) As TongSo
			From
			(
				Select NAM,
					ISNULL([0],0) As NotTrans,
					ISNULL([1],0) As Ok1,ISNULL([3],0) As Ok3,ISNULL([5],0) As Ok5,ISNULL([7],0) As Ok7,ISNULL([9],0) As Ok9,		
					ISNULL([-1],0) As Err1,ISNULL([-3],0) As Err3,ISNULL([-5],0) As Err5,ISNULL([-7],0) As Err7,ISNULL([-9],0) As Err9
				From
				(
					Select Datepart(Year, NGAY_HOA_DON) As NAM, Datepart(MONTH, NGAY_HOA_DON) As THANG, Datepart(Day, NGAY_HOA_DON) As NGAY,
						Count(*) As SoLuong, ISNULL(TRANG_THAI_TRUYEN_NHAN,0) As TRANG_THAI_TRUYEN_NHAN
					From (
						Select a.* From DHOADON a
							inner join (
								Select DPHATHANH_KHOITAOID, KY_HIEU_FULL
								From DPHATHANH_CHITIET
								Where IS_BANG_TONG_HOP='1'
								Group by DPHATHANH_KHOITAOID, KY_HIEU_FULL
							) b On a.DPHATHANH_KHOITAOID=b.DPHATHANH_KHOITAOID and a.KY_HIEU=b.KY_HIEU_FULL 
						Where Datepart(Year, NGAY_HOA_DON)=@NamTongHop					
							And (SO_HOA_DON <> '0000000' And IS_BEN_BAN_KY_SO=1 And IS_TT68=3)
							And (TRANG_THAI_TRUYEN_NHAN in (-9,-7,-5,-3,-1,0,+1,+3,+5,+7,+9) Or TRANG_THAI_TRUYEN_NHAN Is Null Or XAC_NHAN_GUI_LAI=1)
							And BEN_BAN_MA_DV=@MaDV							
							And (@IsNew=0 Or (@IsNew=1 And (NGAY_HOA_DON >= Convert(date, @NgayBatDau) And NGAY_HOA_DON <= Convert(date, @NgayTongHop))))
					) T0
					Group by Datepart(Year, NGAY_HOA_DON), Datepart(Month, NGAY_HOA_DON), Datepart(Day, NGAY_HOA_DON), TRANG_THAI_TRUYEN_NHAN
				) T1
				Pivot (
					SUM(SoLuong) For TRANG_THAI_TRUYEN_NHAN In ([-1],[-3],[-5],[-7],[-9],[0],[1],[3],[5],[7],[9])
				) As PV1
			) T2
		) T3
		Left Join TRUYEN_NHAN_BANG_TONG_HOP TT On T3.KY_DU_LIEU=TT.KY_DU_LIEU And T3.LOAI_KY=TT.LOAI_KY And TT.MA_DV=@MaDV
		Where 1=1 and TT.TRANG_THAI_TRUYEN_NHAN is null or TT.TRANG_THAI_TRUYEN_NHAN=0
		Group by TRUYEN_NHAN_BANG_TONG_HOPID,SO_THU_TU,TRANG_THAI_TRUYEN_NHAN,TRANG_THAI_XAC_NHAN_GUI,KY_TONG_HOP,T3.LOAI_KY,T3.KY_DU_LIEU,TEN_KY,NAM,ChuaGui,DangGui,DaGui,GuiLoi,TongSo,LAN_TONG_HOP,NGAY_TONG_HOP
	) Tem1;

	Declare @CurStt int = 1
	--Set @CurStt = (Select ISNULL(Max(SO_THU_TU),0) From TRUYEN_NHAN_BANG_TONG_HOP Where LOAI_KY=@LoaiKy And MA_DV=@MaDV)

	Declare @Sql varchar(2000) = '';
	Set @Sql = CASE WHEN @IsNew=1 THEN -- Lập mới
		'Select (' + Convert(varchar(50), @CurStt) + 
		--' + (ROW_NUMBER() OVER(ORDER BY NAM ASC))' + 
		') As STT,  *' +
		' From #temBangTongHopNgay' +
		' Where ((TRANG_THAI_TRUYEN_NHAN Is null)' +
		' Or (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 0)' +
		' Or (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 7 And (GuiLoi > 0 or ChuaGui > 0))' +
		' )'
	ELSE 
		'Select SO_THU_TU As STT,  * from #temBangTongHopNgay' +
		' Where TRANG_THAI_TRUYEN_NHAN Is Not Null' +
		CASE WHEN @TTDongBo = 1 THEN -- Đang đồng bộ
			' And (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 1 And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 7)'
		WHEN @TTDongBo = 2 THEN -- Đã đồng bộ
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 7'
		WHEN @TTDongBo < 0 THEN -- Đồng bộ lỗi
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 0'
		WHEN @TTDongBo = 0 THEN -- Chưa đồng bộ
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0)=0'
		ELSE 
			' And 1=0' --Nothing Show
		END
		--+
		--CASE WHEN (@iQuy > 0) THEN
		--	' And QQ_TH=' + Convert(varchar(50), @iQuy)
		--ELSE 
		--	'' 
		--END
	END;
	Set @Sql += ' Order by NAM'; 
	Exec (@Sql);
	
	Drop Table #temBangTongHopNgay;

	Return 1;
END
GO
/****** Object:  StoredProcedure [dbo].[SP_BangTongHop_TheoQuy]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_BangTongHop_TheoQuy] 
	-- Add the parameters for the stored procedure here
	@IsNew int=0,
	@MaDV varchar(50),
	@NamTongHop varchar(4),
	@TTDongBo int = 0,
	@iQuy int = 0
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	Declare @LoaiKy varchar(1) = 'Q'

	Select * into #temBangTongHop From
	(
		Select T3.*,

			TRANG_THAI_TRUYEN_NHAN,SO_THU_TU,

			CASE 
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) = 0 THEN N'Chưa đồng bộ'
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) >= 1 And ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) < 7 THEN N'Đang đồng bộ'
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) >= 7 THEN N'Đã đồng bộ'
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) < 0 THEN N'Đồng bộ lỗi'
			END As TRANG_THAI_DONGBO,

			CASE 
				WHEN ISNULL(TT.TRANG_THAI_XAC_NHAN_GUI,0) = 0 THEN N'Chưa xác nhận'
				WHEN ISNULL(TT.TRANG_THAI_XAC_NHAN_GUI,0) > 0 THEN N'Đã xác nhận'
			END As TEN_TRANG_THAI_XAC_NHAN_GUI,
			TRANG_THAI_XAC_NHAN_GUI,

			CASE WHEN TRUYEN_NHAN_BANG_TONG_HOPID IS NULL THEN		
				ISNULL(TT.LAN_TONG_HOP,1)--Chưalưu->Lần1
			ELSE
				CASE WHEN @IsNew=1 THEN
					CASE WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) = 0 THEN ISNULL(TT.LAN_TONG_HOP,0) --Chưa gửi, khi tạo mới
					ELSE ISNULL(TT.LAN_TONG_HOP,0) + 1 END --Lần mới, khi đã gửi / gửi lỗi
				ELSE ISNULL(TT.LAN_TONG_HOP,0) END --Load
			END As LAN_TONG_HOP,

			CASE WHEN @IsNew=1 THEN 
				GETDATE()
			ELSE
				ISNULL(TT.NGAY_TONG_HOP,GETDATE()) 
			END As NGAY_TONG_HOP,

			'' As NGUOI_TONG_HOP, '' As IS_CHON, TRUYEN_NHAN_BANG_TONG_HOPID
		From 
		(
			Select 
				N'Theo Quý' As KY_TONG_HOP, 'Q' As LOAI_KY,
				RIGHT('00' + (CAST(QUY As NVARCHAR(2)) + '/' + CAST(NAM As NVARCHAR(4))),7) As KY_DU_LIEU,
				(N'Quý ' + CAST(QUY As NVARCHAR(2))) As TEN_KY,
				NAM, QUY As QQ_TH,
				NotTrans As ChuaGui,
				(Ok1+Ok3+Ok5) As DangGui,
				(Ok7+Ok9) As DaGui,
				(Err1+Err3+Err5+Err7+Err9) As GuiLoi,
				NotTrans + (Ok1+Ok3+Ok5+Ok7+Ok9) + (Err1+Err3+Err5+Err7+Err9) As TongSo
			From
			(
				Select NAM,QUY,
					ISNULL([0],0) As NotTrans,
					ISNULL([1],0) As Ok1,ISNULL([3],0) As Ok3,ISNULL([5],0) As Ok5,ISNULL([7],0) As Ok7,ISNULL([9],0) As Ok9,		
					ISNULL([-1],0) As Err1,ISNULL([-3],0) As Err3,ISNULL([-5],0) As Err5,ISNULL([-7],0) As Err7,ISNULL([-9],0) As Err9
				From
				(
					Select Datepart(Year, NGAY_HOA_DON) As NAM, Datepart(Quarter, NGAY_HOA_DON) As QUY,
						Count(*) As SoLuong, ISNULL(TRANG_THAI_TRUYEN_NHAN,0) As TRANG_THAI_TRUYEN_NHAN
					From (
						Select a.* From DHOADON a
							inner join (
								Select DPHATHANH_KHOITAOID, KY_HIEU_FULL
								From DPHATHANH_CHITIET
								Where IS_BANG_TONG_HOP='1'
								Group by DPHATHANH_KHOITAOID, KY_HIEU_FULL
							) b On a.DPHATHANH_KHOITAOID=b.DPHATHANH_KHOITAOID and a.KY_HIEU=b.KY_HIEU_FULL  
						Where Datepart(Year, NGAY_HOA_DON) = @NamTongHop
							And (SO_HOA_DON <> '0000000' And IS_BEN_BAN_KY_SO=1 And IS_TT68=3)
							And (TRANG_THAI_TRUYEN_NHAN in (-9,-7,-5,-3,-1,0,+1,+3,+5,+7,+9) Or TRANG_THAI_TRUYEN_NHAN Is Null Or XAC_NHAN_GUI_LAI=1)
							And BEN_BAN_MA_DV=@MaDV
					) T0
					Group by Datepart(Year, NGAY_HOA_DON), Datepart(Quarter, NGAY_HOA_DON), TRANG_THAI_TRUYEN_NHAN
				) T1
				Pivot (
					SUM(SoLuong) For TRANG_THAI_TRUYEN_NHAN In ([-1],[-3],[-5],[-7],[-9],[0],[1],[3],[5],[7],[9])
				) As PV1
			) TT2
		) T3
		Left Join TRUYEN_NHAN_BANG_TONG_HOP TT On T3.KY_DU_LIEU=TT.KY_DU_LIEU And T3.LOAI_KY=TT.LOAI_KY And TT.MA_DV=@MaDV
		Where 1=1 and TT.TRANG_THAI_TRUYEN_NHAN is null or TT.TRANG_THAI_TRUYEN_NHAN=0
		Group by TRUYEN_NHAN_BANG_TONG_HOPID,SO_THU_TU,TRANG_THAI_TRUYEN_NHAN,TRANG_THAI_XAC_NHAN_GUI,KY_TONG_HOP,T3.LOAI_KY,T3.KY_DU_LIEU,TEN_KY,NAM,QQ_TH,ChuaGui,DangGui,DaGui,GuiLoi,TongSo,LAN_TONG_HOP,NGAY_TONG_HOP
	) Tem1;

	Declare @CurStt int = 1
	--Set @CurStt = (Select ISNULL(Max(SO_THU_TU),0) From TRUYEN_NHAN_BANG_TONG_HOP Where LOAI_KY=@LoaiKy And MA_DV=@MaDV)

	Declare @Sql varchar(2000) = '';
	Set @Sql = CASE WHEN @IsNew=1 THEN -- Lập mới
		'Select (' + Convert(varchar(50), @CurStt) + 
		--' + (ROW_NUMBER() OVER(ORDER BY NAM ASC)) ' +
		') As STT,  *' +
		' From #temBangTongHop' +
		' Where ((TRANG_THAI_TRUYEN_NHAN Is null)' +
		' Or (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 0)' +
		' Or (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 7 And (GuiLoi > 0 or ChuaGui > 0))' +
		' )'
	ELSE 
		'Select SO_THU_TU As STT,  * from #temBangTongHop' +
		' Where TRANG_THAI_TRUYEN_NHAN Is Not Null' +
		CASE WHEN @TTDongBo = 1 THEN -- Đang đồng bộ
			' And (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 1 And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 7)'
		WHEN @TTDongBo = 2 THEN -- Đã đồng bộ
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 7'
		WHEN @TTDongBo < 0 THEN -- Đồng bộ lỗi
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 0'
		WHEN @TTDongBo = 0 THEN -- Chưa đồng bộ
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0)=0'
		ELSE 
			' And 1=0' --Nothing Show
		END
		 +
		CASE WHEN (@iQuy > 0) THEN
			' And QQ_TH=' + Convert(varchar(50), @iQuy)
		ELSE 
			'' 
		END
	END;
	Set @Sql += ' Order by NAM, QQ_TH'; 
	Exec (@Sql);
	
	Drop Table #temBangTongHop;

	Return 1;
END
GO
/****** Object:  StoredProcedure [dbo].[SP_BangTongHop_TheoThang]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_BangTongHop_TheoThang] 
	-- Add the parameters for the stored procedure here
	@IsNew int=0,
	@MaDV varchar(50),
	@NamTongHop varchar(4),
	@TTDongBo int = 0,
	@iThang int = 0
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	Declare @LoaiKy varchar(1) = 'T'

	Select * into #temBangTongHop From
	(
		Select T3.*,
			
			TRANG_THAI_TRUYEN_NHAN,SO_THU_TU,

			CASE 
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) = 0 THEN N'Chưa đồng bộ'
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) >= 1 And ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) < 7 THEN N'Đang đồng bộ'
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) >= 7 THEN N'Đã đồng bộ'
				WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) < 0 THEN N'Đồng bộ lỗi'
			END As TRANG_THAI_DONGBO,

			CASE 
				WHEN ISNULL(TT.TRANG_THAI_XAC_NHAN_GUI,0) = 0 THEN N'Chưa xác nhận'
				WHEN ISNULL(TT.TRANG_THAI_XAC_NHAN_GUI,0) > 0 THEN N'Đã xác nhận'
			END As TEN_TRANG_THAI_XAC_NHAN_GUI,
			TRANG_THAI_XAC_NHAN_GUI,

			CASE WHEN TRUYEN_NHAN_BANG_TONG_HOPID IS NULL THEN		
				ISNULL(TT.LAN_TONG_HOP,1)--Chưalưu->Lần1
			ELSE
				CASE WHEN @IsNew=1 THEN
					CASE WHEN ISNULL(MAX(TT.TRANG_THAI_TRUYEN_NHAN),0) = 0 THEN ISNULL(TT.LAN_TONG_HOP,0) --Chưa gửi, khi tạo mới
					ELSE ISNULL(TT.LAN_TONG_HOP,0) + 1 END --Lần mới, khi đã gửi / gửi lỗi
				ELSE ISNULL(TT.LAN_TONG_HOP,0) END --Load
			END As LAN_TONG_HOP,

			CASE WHEN @IsNew=1 THEN 
				GETDATE()
			ELSE
				ISNULL(TT.NGAY_TONG_HOP,GETDATE()) 
			END As NGAY_TONG_HOP,

			'' As NGUOI_TONG_HOP, '' As IS_CHON, TRUYEN_NHAN_BANG_TONG_HOPID
		From 
		(
			Select 
				N'Theo Tháng' As KY_TONG_HOP, 'T' As LOAI_KY,
				RIGHT('00' + (CAST(THANG As NVARCHAR(2)) + '/' + CAST(NAM As NVARCHAR(4))),7) As KY_DU_LIEU,
				(N'Tháng ' + CAST(THANG As NVARCHAR(2))) As TEN_KY,
				NAM, THANG As QQ_TH,
				NotTrans As ChuaGui,
				(Ok1+Ok3+Ok5) As DangGui,
				(Ok7+Ok9) As DaGui,
				(Err1+Err3+Err5+Err7+Err9) As GuiLoi,
				NotTrans + (Ok1+Ok3+Ok5+Ok7+Ok9) + (Err1+Err3+Err5+Err7+Err9) As TongSo
			From
			(
				Select NAM,THANG,
					ISNULL([0],0) As NotTrans,
					ISNULL([1],0) As Ok1,ISNULL([3],0) As Ok3,ISNULL([5],0) As Ok5,ISNULL([7],0) As Ok7,ISNULL([9],0) As Ok9,		
					ISNULL([-1],0) As Err1,ISNULL([-3],0) As Err3,ISNULL([-5],0) As Err5,ISNULL([-7],0) As Err7,ISNULL([-9],0) As Err9
				From
				(
					Select Datepart(Year, NGAY_HOA_DON) As NAM, Datepart(MONTH, NGAY_HOA_DON) As THANG,
						Count(*) As SoLuong, ISNULL(TRANG_THAI_TRUYEN_NHAN,0) As TRANG_THAI_TRUYEN_NHAN
					From (
						Select a.* From DHOADON a
							inner join (
								Select DPHATHANH_KHOITAOID, KY_HIEU_FULL
								From DPHATHANH_CHITIET
								Where IS_BANG_TONG_HOP='1'
								Group by DPHATHANH_KHOITAOID, KY_HIEU_FULL
							) b On a.DPHATHANH_KHOITAOID=b.DPHATHANH_KHOITAOID and a.KY_HIEU=b.KY_HIEU_FULL 
						Where Datepart(Year, NGAY_HOA_DON)=@NamTongHop					
							And (SO_HOA_DON <> '0000000' And IS_BEN_BAN_KY_SO=1 And IS_TT68=3)
							And (TRANG_THAI_TRUYEN_NHAN in (-9,-7,-5,-3,-1,0,+1,+3,+5,+7,+9) Or TRANG_THAI_TRUYEN_NHAN Is Null Or XAC_NHAN_GUI_LAI=1)
							And BEN_BAN_MA_DV=@MaDV
					) T0
					Group by Datepart(Year, NGAY_HOA_DON), Datepart(Month, NGAY_HOA_DON), TRANG_THAI_TRUYEN_NHAN
				) T1
				Pivot (
					SUM(SoLuong) For TRANG_THAI_TRUYEN_NHAN In ([-1],[-3],[-5],[-7],[-9],[0],[1],[3],[5],[7],[9])
				) As PV1
			) T2
		) T3
		Left Join TRUYEN_NHAN_BANG_TONG_HOP TT On T3.KY_DU_LIEU=TT.KY_DU_LIEU And T3.LOAI_KY=TT.LOAI_KY And TT.MA_DV=@MaDV
		Where 1=1
			and TT.TRANG_THAI_TRUYEN_NHAN is null or TT.TRANG_THAI_TRUYEN_NHAN=0
		Group by TRUYEN_NHAN_BANG_TONG_HOPID,SO_THU_TU,TRANG_THAI_TRUYEN_NHAN,TRANG_THAI_XAC_NHAN_GUI,KY_TONG_HOP,T3.LOAI_KY,T3.KY_DU_LIEU,TEN_KY,NAM,QQ_TH,ChuaGui,DangGui,DaGui,GuiLoi,TongSo,LAN_TONG_HOP,NGAY_TONG_HOP		
	) Tem1;

	Declare @CurStt int = 1
	--Set @CurStt = (Select ISNULL(Max(SO_THU_TU),0) From TRUYEN_NHAN_BANG_TONG_HOP Where LOAI_KY=@LoaiKy And MA_DV=@MaDV)
	
	--select * from #temBangTongHop

	Declare @Sql varchar(2000) = '';
	Set @Sql = CASE WHEN @IsNew=1 THEN -- Lập mới
		'Select (' + Convert(varchar(50), @CurStt) + 
		--' + (ROW_NUMBER() OVER(ORDER BY NAM ASC)) ' +
		') As STT,  *' +
		' From #temBangTongHop' +
		' Where ((TRANG_THAI_TRUYEN_NHAN Is null)' +
		' Or (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) <= 0)' +
		' Or (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 7 And (GuiLoi > 0 or ChuaGui > 0))' +
		' )'
	ELSE 
		'Select SO_THU_TU As STT,  * from #temBangTongHop' +
		' Where TRANG_THAI_TRUYEN_NHAN Is Not Null' +
		CASE WHEN @TTDongBo = 1 THEN -- Đang đồng bộ
			' And (ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 1 And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 7)'
		WHEN @TTDongBo = 2 THEN -- Đã đồng bộ
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) >= 7'
		WHEN @TTDongBo < 0 THEN -- Đồng bộ lỗi
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0) < 0'
		WHEN @TTDongBo = 0 THEN -- Chưa đồng bộ
			' And ISNULL(TRANG_THAI_TRUYEN_NHAN,0)=0'
		ELSE 
			' And 1=0' --Nothing Show
		END
		 +
		CASE WHEN (@iThang > 0) THEN
			' And QQ_TH=' + Convert(varchar(50), @iThang)		
		ELSE 
			'' 
		END
	END;
	Set @Sql += ' Order by NAM, QQ_TH'; 
	print @SQL
	Exec (@Sql);
	
	Drop Table #temBangTongHop;

	Return 1;

END
GO
/****** Object:  StoredProcedure [dbo].[SP_BAO_CAO_THSDHD]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 create PROC [dbo].[SP_BAO_CAO_THSDHD]
(
@MA_DV NVARCHAR(50),
@TU_NGAY DATETIME,
@DEN_NGAY DATETIME,
@KyHieu NVARCHAR(250),
@isTheoNGay INT = 0
)
AS
 begin
DECLARE @QUY INT, @NAM INT,@QUY_TRUOC INT, @NAM_TRUOC INT
DECLARE @THANG INT,@THANG_TRUOC INT
SELECT @THANG= MONTH(@TU_NGAY)

SELECT @THANG_TRUOC= CASE WHEN @THANG=1 THEN 12 ELSE @THANG-1 END
SELECT @QUY= DATEPART(QUARTER,@TU_NGAY)
SELECT @NAM= DATEPART(YEAR,@TU_NGAY)
SELECT @QUY_TRUOC= CASE WHEN @QUY=1 THEN 4 ELSE @QUY-1 END
SELECT @NAM_TRUOC= CASE WHEN @QUY=1 THEN @NAM-1 ELSE @NAM END


SELECT * INTO #DBAOCAO FROM [dbo].[DBAOCAO_SDHD_CHITIET] WHERE 1=2


IF @isTheoNGay = 1
BEGIN
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL,0 SO_LUONG,0,0,0 As TU_SO, 0 As DEN_SO
	 --Sum(b.SO_LUONG) As SO_LUONG,0,0,Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO
	From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
    Where a.MA_DV = @MA_DV   AND  b.IS_PHAT_HANH in (1 ,2) and a.IS_TT68=3
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
END
ELSE if @isTheoNGay =0
BEGIN
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
Select MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL, 0 As SO_LUONG,  MAX(TON_DAU_TU_SO),MAX(TON_DAU_DEN_SO),Min(TU_SO) As TU_SO, Max(DEN_SO)As DEN_SO From (
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL, 0 As SO_LUONG,0 as TON_DAU_TU_SO,0 as TON_DAU_DEN_SO,0 As TU_SO, 0As DEN_SO From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
	 Where a.MA_DV = @MA_DV AND  b.IS_PHAT_HANH in (1 ,2) and a.IS_TT68=3 --AND b.NGAY_BAT_DAU_SU_DUNG >= @TU_NGAY AND b.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
	--Union All 
	--Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD, 0 As SO_LUONG, 0 As TU_SO,0 As DEN_SO,0,0  from DBAOCAO_SDHD_CHITIET a Inner join DBAOCAO_SDHD b ON a.DBAOCAO_SDHDID = b.DBAOCAO_SDHDID 
	--Where b.MA_DV = @MA_DV AND a.TON_CUOI_KY_SO_LUONG > 0 AND b.QUY = @QUY_TRUOC AND b.NAM = @NAM_TRUOC
	--Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD
  ) AA Group by MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL
END
else
begin
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
Select MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL, Sum(SO_LUONG) As SO_LUONG,  MAX(TON_DAU_TU_SO),MAX(TON_DAU_DEN_SO),Min(TU_SO) As TU_SO, Max(DEN_SO)As DEN_SO From (
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL,0 As SO_LUONG,0 as TON_DAU_TU_SO,0 as TON_DAU_DEN_SO, 0 As TU_SO, Max(b.DEN_SO)As DEN_SO From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
	 Where a.MA_DV = @MA_DV AND  b.IS_PHAT_HANH in (1 ,2) and a.IS_TT68=3 -- AND b.NGAY_BAT_DAU_SU_DUNG >= @TU_NGAY AND b.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
	--Union All 
	--Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD, Sum(a.TON_CUOI_KY_SO_LUONG) As SO_LUONG, Min(a.TON_CUOI_KY_TU_SO) As TU_SO, Max(a.TON_CUOI_KY_DEN_SO)As DEN_SO,0,0  from DBAOCAO_SDHD_CHITIET a Inner join DBAOCAO_SDHD b ON a.DBAOCAO_SDHDID = b.DBAOCAO_SDHDID 
	--Where b.MA_DV = @MA_DV AND a.TON_CUOI_KY_SO_LUONG > 0 AND b.THANG = @THANG_TRUOC AND b.NAM = @NAM_TRUOC
	--Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD
  ) AA Group by MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL

end
 
  Select C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD,COUNT(*)SO_LUONG_SU_DUNG,  Min(Cast(b.SO_HOA_DON As numeric(8,0)))AS SU_DUNG_TU_SO ,  MAX(Cast(b.SO_HOA_DON As numeric(8,0)))AS SU_DUNG_DEN_SO INTO #SU_DUNG_TRONG_KY 
 from #DBAOCAO c
	Inner join DHOADON b ON b.MA_LOAI_HOA_DON =C.MA_LOAI_HOA_DON AND MAU_SO = C.KY_HIEU_MAU_HD AND B.KY_HIEU = C.KY_HIEU_HD AND B.BEN_BAN_MA_DV= @MA_DV
  Where  b.NGAY_HOA_DON Between @TU_NGAY AND @DEN_NGAY AND b.SO_HOA_DON<>'0000000' 
  GROUP BY  C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD
 
  UPDATE D SET D.SU_DUNG_TU_SO=ISNULL(P.SU_DUNG_TU_SO,0),D.SU_DUNG_DEN_SO=ISNULL(P.SU_DUNG_DEN_SO,0),D.SU_DUNG_TONG=ISNULL(P.SO_LUONG_SU_DUNG,0)
  FROM #DBAOCAO D LEFT JOIN #SU_DUNG_TRONG_KY P ON D.MA_LOAI_HOA_DON=P.MA_LOAI_HOA_DON AND D.KY_HIEU_HD=P.KY_HIEU_HD AND D.KY_HIEU_MAU_HD=P.KY_HIEU_MAU_HD
  --cap nhat chi tiet: huy, xoa bo, mat, su dung

  SELECT BC.KY_HIEU_MAU_HD,BC.KY_HIEU_HD,CASE WHEN PH.SO_HOA_DON IS NULL THEN 0 ELSE 1 END  GIA_TRI,  PH.SO_HOA_DON SO_HOA_DON ,PH.TRANG_THAI 
  into #HD_HUY_XOA_MAT FROM #DBAOCAO BC LEFT JOIN DHOADON PH ON BC.KY_HIEU_MAU_HD=PH.MAU_SO AND BC.KY_HIEU_HD=KY_HIEU and ph.SO_HOA_DON<>'0000000' AND ph.TRANG_THAI<0 and PH.NGAY_HOA_DON BETWEEN  @TU_NGAY AND @DEN_NGAY AND  PH.BEN_BAN_MA_DV=@MA_DV 
  --HUY

  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI) SO_LUONG_XOA, HOA_DON_XOA= STUFF((SELECT N'; ' + SO_HOA_DON 
  FROM #HD_HUY_XOA_MAT AS p2
   WHERE p2.KY_HIEU_HD = p.KY_HIEU_HD and p2.KY_HIEU_MAU_HD = p.KY_HIEU_MAU_HD AND TRANG_THAI=-2
   ORDER BY SO_HOA_DON
   FOR XML PATH(N'')), 1, 2, N'')
   INTO #HOADON_XOA
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-2 
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD

--MAT
  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI)  SO_LUONG_MAT, HOA_DON_MAT= STUFF((SELECT N'; ' + SO_HOA_DON 
  FROM #HD_HUY_XOA_MAT AS p2
   WHERE p2.KY_HIEU_HD = p.KY_HIEU_HD and p2.KY_HIEU_MAU_HD = p.KY_HIEU_MAU_HD AND TRANG_THAI=-3
   ORDER BY SO_HOA_DON
   FOR XML PATH(N'')), 1, 2, N'')
   INTO #HOADON_MAT
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-3 
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD

UPDATE BC  SET BC.TRONG_DO_MAT_SO=ISNULL(HD.HOA_DON_MAT,''),BC.TRONG_DO_MAT_SO_LUONG=ISNULL(HD.SO_LUONG_MAT,0)
FROM #DBAOCAO BC 
LEFT JOIN #HOADON_MAT HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD
  
  UPDATE BC  SET BC.TRONG_DO_XOA_SO=ISNULL(HD.HOA_DON_XOA,''),BC.TRONG_DO_XOA_SO_LUONG=ISNULL(HD.SO_LUONG_XOA,0)
FROM #DBAOCAO BC 
LEFT JOIN #HOADON_XOA HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD
---

--

 
 SELECT * FROM #DBAOCAO
 --WHERE @KyHieu = '' OR @KyHieu is null OR KY_HIEU_HD=@KyHieu
 drop table #DBAOCAO;
drop table #SU_DUNG_TRONG_KY; drop table #HD_HUY_XOA_MAT
drop table #HOADON_XOA;drop table #HOADON_MAT

end

GO
/****** Object:  StoredProcedure [dbo].[SP_BAO_CAO_THSDHD_THEO_THANG]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC [dbo].[SP_BAO_CAO_THSDHD_THEO_THANG]
(
@MA_DV NVARCHAR(50),
@TU_NGAY DATETIME,
@DEN_NGAY DATETIME,
@KyHieu NVARCHAR(250),
@isTheoNGay INT = 0
)
AS
DECLARE @THANG INT, @NAM INT,@THANG_TRUOC INT, @NAM_TRUOC INT
SELECT @THANG= MONTH(@TU_NGAY)
SELECT @NAM= DATEPART(YEAR,@TU_NGAY)
SELECT @THANG_TRUOC= CASE WHEN @THANG=1 THEN 12 ELSE @THANG-1 END
SELECT @NAM_TRUOC= CASE WHEN @THANG=1 THEN @NAM-1 ELSE @NAM END
SELECT * INTO #DBAOCAO FROM [dbo].[DBAOCAO_SDHD_CHITIET] WHERE 1=2


IF @isTheoNGay = 1
BEGIN
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL, Sum(b.SO_LUONG) As SO_LUONG,0,0,Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO
	 --Sum(b.SO_LUONG) As SO_LUONG,0,0,Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO
	From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
    Where a.MA_DV = @MA_DV   AND b.DPHATHANH_CHITIETID in (select distinct  DPHATHANH_CHITIETID from DPHATHANH_HOADON where MA_DV = @MA_DV)
		
		-- Fix loi thua MauSo \ KyHieu
		AND b.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY and b.IS_PHAT_HANH =1
		 
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
END
ELSE
BEGIN
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
Select MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL, Sum(SO_LUONG) As SO_LUONG, MAX(TON_DAU_TU_SO),MAX(TON_DAU_DEN_SO),Min(TU_SO) As TU_SO, Max(DEN_SO)As DEN_SO From (
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL, Sum(b.SO_LUONG) As SO_LUONG,0 as TON_DAU_TU_SO,0 as TON_DAU_DEN_SO, Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
	 Where a.MA_DV = @MA_DV AND b.NGAY_BAT_DAU_SU_DUNG >= @TU_NGAY AND b.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY and b.IS_PHAT_HANH =1
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
	Union All 
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD, Sum(a.TON_CUOI_KY_SO_LUONG) As SO_LUONG, Min(a.TON_CUOI_KY_TU_SO) As TU_SO, Max(a.TON_CUOI_KY_DEN_SO)As DEN_SO,0,0  from DBAOCAO_SDHD_CHITIET a Inner join DBAOCAO_SDHD b ON a.DBAOCAO_SDHDID = b.DBAOCAO_SDHDID 
	Where b.MA_DV = @MA_DV AND a.TON_CUOI_KY_SO_LUONG > 0 AND b.THANG = @THANG_TRUOC AND b.NAM = @NAM_TRUOC
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD
  ) AA Group by MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL
END
   --phat hanh trong ky
   SELECT C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD, count(*) SO_LUONG_PHAT_HANH_TRONG_KY,Min(Cast(b.SO_HOA_DON As numeric(8,0)))As TU_SO_TRONG_KY,Max(Cast(b.SO_HOA_DON As numeric(8,0))) DEN_SO_TRONG_KY INTO #DPHAT_HANH_TRONG_KY
  from #DBAOCAO c
   Inner join DPHATHANH_HOADON b ON b.MA_LOAI_HOA_DON =C.MA_LOAI_HOA_DON AND MAU_SO = C.KY_HIEU_MAU_HD AND B.KY_HIEU = C.KY_HIEU_HD
  INNER JOIN DPHATHANH_CHITIET a  ON a.DPHATHANH_CHITIETID = b.DPHATHANH_CHITIETID 
  Where  a.NGAY_BAT_DAU_SU_DUNG Between @TU_NGAY AND @DEN_NGAY AND a.MA_DV = @MA_DV
  GROUP BY  C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD
  UPDATE D SET D.PHAT_HANH_TU_SO=P.TU_SO_TRONG_KY,D.PHAT_HANH_DEN_SO=P.DEN_SO_TRONG_KY
  FROM #DBAOCAO D INNER JOIN #DPHAT_HANH_TRONG_KY P ON D.MA_LOAI_HOA_DON=P.MA_LOAI_HOA_DON AND D.KY_HIEU_HD=P.KY_HIEU_HD AND D.KY_HIEU_MAU_HD=P.KY_HIEU_MAU_HD
  --s├ƒ+┬í d├ƒ+├æng trong k├ƒ+┬ª
  Select C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD,COUNT(*)SO_LUONG_SU_DUNG,  Min(Cast(b.SO_HOA_DON As numeric(8,0)))AS SU_DUNG_TU_SO ,  MAX(Cast(b.SO_HOA_DON As numeric(8,0)))AS SU_DUNG_DEN_SO INTO #SU_DUNG_TRONG_KY 
 from #DBAOCAO c
	Inner join DPHATHANH_HOADON b ON b.MA_LOAI_HOA_DON =C.MA_LOAI_HOA_DON AND MAU_SO = C.KY_HIEU_MAU_HD AND B.KY_HIEU = C.KY_HIEU_HD AND B.MA_DV= @MA_DV
	INNER JOIN DPHATHANH_CHITIET a  ON a.DPHATHANH_CHITIETID = b.DPHATHANH_CHITIETID 
  Where  b.NGAY_SU_DUNG Between @TU_NGAY AND @DEN_NGAY AND b.IS_SU_DUNG = 1 
  GROUP BY  C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD
 
  UPDATE D SET D.SU_DUNG_TU_SO=ISNULL(P.SU_DUNG_TU_SO,0),D.SU_DUNG_DEN_SO=ISNULL(P.SU_DUNG_DEN_SO,0),D.SU_DUNG_TONG=ISNULL(P.SO_LUONG_SU_DUNG,0)
  FROM #DBAOCAO D LEFT JOIN #SU_DUNG_TRONG_KY P ON D.MA_LOAI_HOA_DON=P.MA_LOAI_HOA_DON AND D.KY_HIEU_HD=P.KY_HIEU_HD AND D.KY_HIEU_MAU_HD=P.KY_HIEU_MAU_HD
  --cap nhat chi tiet: huy, xoa bo, mat, su dung

  SELECT BC.KY_HIEU_MAU_HD,BC.KY_HIEU_HD,CASE WHEN PH.SO_HOA_DON IS NULL THEN 0 ELSE 1 END  GIA_TRI,  PH.SO_HOA_DON SO_HOA_DON ,PH.TRANG_THAI into #HD_HUY_XOA_MAT FROM #DBAOCAO BC LEFT JOIN DPHATHANH_HOADON PH ON BC.KY_HIEU_MAU_HD=PH.MAU_SO AND BC.KY_HIEU_HD=KY_HIEU and ph.IS_SU_DUNG=1 AND TRANG_THAI<0 and PH.NGAY_SU_DUNG BETWEEN  @TU_NGAY AND @DEN_NGAY AND  PH.MA_DV=@MA_DV 
  --HUY

  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI) SO_LUONG_HUY, HOA_DON_HUY=cast(Cast(MIN(SO_HOA_DON)As numeric(8,0)) as varchar) +'-'+cast(Cast(MAX(SO_HOA_DON)As numeric(8,0)) as varchar)
   INTO #HOADON_HUY
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-1
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD
-- XOA
  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI) SO_LUONG_XOA, HOA_DON_XOA= STUFF((SELECT N'; ' + SO_HOA_DON 
  FROM #HD_HUY_XOA_MAT AS p2
   WHERE p2.KY_HIEU_HD = p.KY_HIEU_HD and p2.KY_HIEU_MAU_HD = p.KY_HIEU_MAU_HD AND TRANG_THAI=-2
   ORDER BY SO_HOA_DON
   FOR XML PATH(N'')), 1, 2, N'')
   INTO #HOADON_XOA
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-2 
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD

--MAT
  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI)  SO_LUONG_MAT, HOA_DON_MAT= STUFF((SELECT N'; ' + SO_HOA_DON 
  FROM #HD_HUY_XOA_MAT AS p2
   WHERE p2.KY_HIEU_HD = p.KY_HIEU_HD and p2.KY_HIEU_MAU_HD = p.KY_HIEU_MAU_HD AND TRANG_THAI=-3
   ORDER BY SO_HOA_DON
   FOR XML PATH(N'')), 1, 2, N'')
   INTO #HOADON_MAT
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-3 
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD

UPDATE BC  SET BC.TRONG_DO_HUY_SO=ISNULL(HD.HOA_DON_HUY,''),BC.TRONG_DO_HUY_SO_LUONG=ISNULL(HD.SO_LUONG_HUY,0)
FROM #DBAOCAO BC 
 LEFT JOIN #HOADON_HUY HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD

UPDATE BC  SET BC.TRONG_DO_MAT_SO=ISNULL(HD.HOA_DON_MAT,''),BC.TRONG_DO_MAT_SO_LUONG=ISNULL(HD.SO_LUONG_MAT,0)
FROM #DBAOCAO BC 
LEFT JOIN #HOADON_MAT HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD
  
  UPDATE BC  SET BC.TRONG_DO_XOA_SO=ISNULL(HD.HOA_DON_XOA,''),BC.TRONG_DO_XOA_SO_LUONG=ISNULL(HD.SO_LUONG_XOA,0)
FROM #DBAOCAO BC 
LEFT JOIN #HOADON_XOA HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD
-- select * from #DBAOCAO
Select BC.KY_HIEU_MAU_HD,BC.KY_HIEU_HD,Min(b.SO_HOA_DON)As TON_CUOI_TU_SO ,Max(b.SO_HOA_DON )As TON_CUOI_DEN_SO ,COUNT(*) TON_CUOI_KY
INTO #TON_CUOI_KY
from DPHATHANH_CHITIET a Inner join DPHATHANH_HOADON b ON a.DPHATHANH_CHITIETID = b.DPHATHANH_CHITIETID 
INNER JOIN #DBAOCAO BC ON BC.KY_HIEU_MAU_HD=B.MAU_SO AND BC.KY_HIEU_HD=B.KY_HIEU
Where a.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY  And (b.NGAY_SU_DUNG >= @DEN_NGAY Or b.NGAY_SU_DUNG is null) AND a.MA_DV = @MA_DV
GROUP BY BC.KY_HIEU_MAU_HD,BC.KY_HIEU_HD
UPDATE BC 
SET BC.TON_CUOI_KY_TU_SO=ISNULL(CK.TON_CUOI_TU_SO,''),BC.TON_CUOI_KY_DEN_SO=ISNULL(CK.TON_CUOI_DEN_SO,''),BC.TON_CUOI_KY_SO_LUONG=ISNULL(CK.TON_CUOI_KY,0),TRONG_DO_SU_DUNG=SU_DUNG_TONG-TRONG_DO_HUY_SO_LUONG-TRONG_DO_MAT_SO_LUONG-TRONG_DO_XOA_SO_LUONG
FROM #DBAOCAO BC 
LEFT JOIN  #TON_CUOI_KY CK ON BC.KY_HIEU_MAU_HD=CK.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=CK.KY_HIEU_HD
 
 SELECT * FROM #DBAOCAO WHERE @KyHieu = '' OR KY_HIEU_HD=@KyHieu





GO
/****** Object:  StoredProcedure [dbo].[SP_BAO_CAO_THSDHD_TNCN]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create PROC [dbo].[SP_BAO_CAO_THSDHD_TNCN]
(
@MA_DV NVARCHAR(50),
@TU_NGAY DATETIME,
@DEN_NGAY DATETIME,
@KyHieu NVARCHAR(250),
@isTheoNGay INT = 0
)
AS
 begin
DECLARE @QUY INT, @NAM INT,@QUY_TRUOC INT, @NAM_TRUOC INT
DECLARE @THANG INT,@THANG_TRUOC INT
SELECT @THANG= MONTH(@TU_NGAY)

SELECT @THANG_TRUOC= CASE WHEN @THANG=1 THEN 12 ELSE @THANG-1 END
SELECT @QUY= DATEPART(QUARTER,@TU_NGAY)
SELECT @NAM= DATEPART(YEAR,@TU_NGAY)
SELECT @QUY_TRUOC= CASE WHEN @QUY=1 THEN 4 ELSE @QUY-1 END
SELECT @NAM_TRUOC= CASE WHEN @QUY=1 THEN @NAM-1 ELSE @NAM END


SELECT * INTO #DBAOCAO FROM [dbo].[DBAOCAO_SDHD_CHITIET] WHERE 1=2


IF @isTheoNGay = 1
BEGIN
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL, Sum(b.SO_LUONG) As SO_LUONG,0,0,Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO
	 --Sum(b.SO_LUONG) As SO_LUONG,0,0,Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO
	From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
    Where a.MA_DV = @MA_DV   AND  b.IS_PHAT_HANH in (1 ,2) and a.MA_LOAI_HOA_DON='07'
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
END
ELSE if @isTheoNGay =0
BEGIN
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
Select MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL, Sum(SO_LUONG) As SO_LUONG,  MAX(TON_DAU_TU_SO),MAX(TON_DAU_DEN_SO),Min(TU_SO) As TU_SO, Max(DEN_SO)As DEN_SO From (
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL, Sum(b.SO_LUONG) As SO_LUONG,0 as TON_DAU_TU_SO,0 as TON_DAU_DEN_SO, Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
	 Where a.MA_DV = @MA_DV AND  b.IS_PHAT_HANH in (1 ,2)   and a.MA_LOAI_HOA_DON='07' AND b.NGAY_BAT_DAU_SU_DUNG >= @TU_NGAY AND b.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
	Union All 
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD, Sum(a.TON_CUOI_KY_SO_LUONG) As SO_LUONG, Min(a.TON_CUOI_KY_TU_SO) As TU_SO, Max(a.TON_CUOI_KY_DEN_SO)As DEN_SO,0,0  from DBAOCAO_SDHD_CHITIET a Inner join DBAOCAO_SDHD b ON a.DBAOCAO_SDHDID = b.DBAOCAO_SDHDID 
	Where b.MA_DV = @MA_DV AND a.TON_CUOI_KY_SO_LUONG > 0 AND b.QUY = @QUY_TRUOC AND b.NAM = @NAM_TRUOC and ISNULL(b.LOAI_BAO_CAO,0)=1
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD
  ) AA Group by MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL
END
else
begin
INSERT INTO #DBAOCAO(MA_LOAI_HOA_DON,TEN_LOAI_HOA_DON,KY_HIEU_MAU_HD,KY_HIEU_HD,TONG_SO,TON_DAU_TU_SO,TON_DAU_DEN_SO,PHAT_HANH_TU_SO,PHAT_HANH_DEN_SO) 
Select MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL, Sum(SO_LUONG) As SO_LUONG,  MAX(TON_DAU_TU_SO),MAX(TON_DAU_DEN_SO),Min(TU_SO) As TU_SO, Max(DEN_SO)As DEN_SO From (
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL, Sum(b.SO_LUONG) As SO_LUONG,0 as TON_DAU_TU_SO,0 as TON_DAU_DEN_SO, Min(b.TU_SO) As TU_SO, Max(b.DEN_SO)As DEN_SO From DPHATHANH_KHOITAO a Inner join DPHATHANH_CHITIET b ON a.DPHATHANH_KHOITAOID = b.DPHATHANH_KHOITAOID
	 Where a.MA_DV = @MA_DV AND  b.IS_PHAT_HANH in (1 ,2) and a.MA_LOAI_HOA_DON='07'  AND b.NGAY_BAT_DAU_SU_DUNG >= @TU_NGAY AND b.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.MAU_SO, b.KY_HIEU_FULL
	Union All 
	Select a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD, Sum(a.TON_CUOI_KY_SO_LUONG) As SO_LUONG, Min(a.TON_CUOI_KY_TU_SO) As TU_SO, Max(a.TON_CUOI_KY_DEN_SO)As DEN_SO,0,0  from DBAOCAO_SDHD_CHITIET a Inner join DBAOCAO_SDHD b ON a.DBAOCAO_SDHDID = b.DBAOCAO_SDHDID 
	Where b.MA_DV = @MA_DV AND a.TON_CUOI_KY_SO_LUONG > 0 AND b.THANG = @THANG_TRUOC AND b.NAM = @NAM_TRUOC and ISNULL(b.LOAI_BAO_CAO,0)=1
	Group by  a.MA_LOAI_HOA_DON, a.TEN_LOAI_HOA_DON, a.KY_HIEU_MAU_HD, a.KY_HIEU_HD
  ) AA Group by MA_LOAI_HOA_DON, TEN_LOAI_HOA_DON, MAU_SO, KY_HIEU_FULL

end
   --phat hanh trong ky
   SELECT C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD,  sum(a.SO_luong)SO_LUONG_PHAT_HANH_TRONG_KY,Min(a.TU_SO)As TU_SO_TRONG_KY,Max(a.DEN_SO) DEN_SO_TRONG_KY INTO #DPHAT_HANH_TRONG_KY
  from #DBAOCAO c 
  -- Inner join DPHATHANH_HOADON b ON b.MA_LOAI_HOA_DON =C.MA_LOAI_HOA_DON AND MAU_SO = C.KY_HIEU_MAU_HD AND B.KY_HIEU = C.KY_HIEU_HD
  INNER JOIN (select a1. *,a2.MA_LOAI_HOA_DON from DPHATHANH_CHITIET a1 inner join DPHATHANH_KHOITAO a2 on a1.DPHATHANH_KHOITAOID=a2.DPHATHANH_KHOITAOID ) a ON 
  c.MA_LOAI_HOA_DON =a.MA_LOAI_HOA_DON and c.KY_HIEU_MAU_HD=a.MAU_SO_HD and c.KY_HIEU_HD=a.KY_HIEU_FULL
  Where  a.NGAY_BAT_DAU_SU_DUNG Between @TU_NGAY AND @DEN_NGAY AND a.MA_DV = @MA_DV and a.MA_LOAI_HOA_DON='07'
  GROUP BY  C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD
  -------------
  UPDATE D SET D.PHAT_HANH_TU_SO=P.TU_SO_TRONG_KY,D.PHAT_HANH_DEN_SO=P.DEN_SO_TRONG_KY
  FROM #DBAOCAO D INNER JOIN #DPHAT_HANH_TRONG_KY P ON D.MA_LOAI_HOA_DON=P.MA_LOAI_HOA_DON AND D.KY_HIEU_HD=P.KY_HIEU_HD AND D.KY_HIEU_MAU_HD=P.KY_HIEU_MAU_HD
  --sß╗¡ dß╗Ñng trong kß╗│
  Select C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD,COUNT(*)SO_LUONG_SU_DUNG,  Min(Cast(b.SO_HOA_DON As numeric(8,0)))AS SU_DUNG_TU_SO ,  MAX(Cast(b.SO_HOA_DON As numeric(8,0)))AS SU_DUNG_DEN_SO INTO #SU_DUNG_TRONG_KY 
 from #DBAOCAO c
	Inner join DHOADON b ON b.MA_LOAI_HOA_DON =C.MA_LOAI_HOA_DON AND MAU_SO = C.KY_HIEU_MAU_HD AND B.KY_HIEU = C.KY_HIEU_HD AND B.BEN_BAN_MA_DV= @MA_DV
  Where  b.NGAY_HOA_DON Between @TU_NGAY AND @DEN_NGAY AND b.SO_HOA_DON<>'0000000'  and b.MA_LOAI_HOA_DON='07'
  GROUP BY  C.MA_LOAI_HOA_DON,C.KY_HIEU_MAU_HD,C.KY_HIEU_HD
 
  UPDATE D SET D.SU_DUNG_TU_SO=ISNULL(P.SU_DUNG_TU_SO,0),D.SU_DUNG_DEN_SO=ISNULL(P.SU_DUNG_DEN_SO,0),D.SU_DUNG_TONG=ISNULL(P.SO_LUONG_SU_DUNG,0)
  FROM #DBAOCAO D LEFT JOIN #SU_DUNG_TRONG_KY P ON D.MA_LOAI_HOA_DON=P.MA_LOAI_HOA_DON AND D.KY_HIEU_HD=P.KY_HIEU_HD AND D.KY_HIEU_MAU_HD=P.KY_HIEU_MAU_HD
  --cap nhat chi tiet: huy, xoa bo, mat, su dung

  SELECT BC.KY_HIEU_MAU_HD,BC.KY_HIEU_HD,CASE WHEN PH.SO_HOA_DON IS NULL THEN 0 ELSE 1 END  GIA_TRI,  PH.SO_HOA_DON SO_HOA_DON ,PH.TRANG_THAI 
  into #HD_HUY_XOA_MAT FROM #DBAOCAO BC LEFT JOIN DHOADON PH ON BC.KY_HIEU_MAU_HD=PH.MAU_SO AND BC.KY_HIEU_HD=KY_HIEU and ph.SO_HOA_DON<>'0000000' AND ph.TRANG_THAI<0 and PH.NGAY_HOA_DON BETWEEN  @TU_NGAY AND @DEN_NGAY AND  PH.BEN_BAN_MA_DV=@MA_DV 
  and PH.MA_LOAI_HOA_DON='07'
  --HUY
  SELECT BC.KY_HIEU_MAU_HD,BC.KY_HIEU_HD,SL as SO_LUONG_HUY, cast(TU_SO as varchar) +'-'+cast(DEN_SO as varchar) as HOA_DON_HUY 
   INTO #HOADON_HUY from #DBAOCAO BC inner join ( select  MAU_SO,KY_HIEU,sum(SO_Luong)SL,min(TU_SO)TU_SO,MAx(DEN_SO)DEN_SO from DHOADON_HUY_CHITIET a inner join 
[dbo].[DHOADON_HUY] b on a.DHOADON_HUYID=b.DHOADON_HUYID where [NGAY_CT] BETWEEN  @TU_NGAY AND @DEN_NGAY AND  b.MA_DV=@MA_DV and b.MA_LOAI_HUY='1'  group by MAU_SO,KY_HIEU ) ct
   on bc.KY_HIEU_HD=ct.KY_HIEU and bc.KY_HIEU_MAU_HD=ct.MAU_SO 
  
--  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI) SO_LUONG_HUY, HOA_DON_HUY=cast(Cast(MIN(SO_HOA_DON)As numeric(8,0)) as varchar) +'-'+cast(Cast(MAX(SO_HOA_DON)As numeric(8,0)) as varchar)
--   INTO #HOADON_HUY
--FROM #HD_HUY_XOA_MAT AS p
--WHERE  P.TRANG_THAI=-1
--GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
--ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD
-- XOA
  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI) SO_LUONG_XOA, HOA_DON_XOA= STUFF((SELECT N'; ' + SO_HOA_DON 
  FROM #HD_HUY_XOA_MAT AS p2
   WHERE p2.KY_HIEU_HD = p.KY_HIEU_HD and p2.KY_HIEU_MAU_HD = p.KY_HIEU_MAU_HD AND TRANG_THAI=-2
   ORDER BY SO_HOA_DON
   FOR XML PATH(N'')), 1, 2, N'')
   INTO #HOADON_XOA
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-2 
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD

--MAT
  SELECT KY_HIEU_MAU_HD,KY_HIEU_HD,	SUM(GIA_TRI)  SO_LUONG_MAT, HOA_DON_MAT= STUFF((SELECT N'; ' + SO_HOA_DON 
  FROM #HD_HUY_XOA_MAT AS p2
   WHERE p2.KY_HIEU_HD = p.KY_HIEU_HD and p2.KY_HIEU_MAU_HD = p.KY_HIEU_MAU_HD AND TRANG_THAI=-3
   ORDER BY SO_HOA_DON
   FOR XML PATH(N'')), 1, 2, N'')
   INTO #HOADON_MAT
FROM #HD_HUY_XOA_MAT AS p
WHERE  P.TRANG_THAI=-3 
GROUP BY KY_HIEU_MAU_HD,KY_HIEU_HD
ORDER BY KY_HIEU_MAU_HD,KY_HIEU_HD

UPDATE BC  SET BC.TRONG_DO_HUY_SO=ISNULL(HD.HOA_DON_HUY,''),BC.TRONG_DO_HUY_SO_LUONG=ISNULL(HD.SO_LUONG_HUY,0)
FROM #DBAOCAO BC 
 LEFT JOIN #HOADON_HUY HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD

UPDATE BC  SET BC.TRONG_DO_MAT_SO=ISNULL(HD.HOA_DON_MAT,''),BC.TRONG_DO_MAT_SO_LUONG=ISNULL(HD.SO_LUONG_MAT,0)
FROM #DBAOCAO BC 
LEFT JOIN #HOADON_MAT HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD
  
  UPDATE BC  SET BC.TRONG_DO_XOA_SO=ISNULL(HD.HOA_DON_XOA,''),BC.TRONG_DO_XOA_SO_LUONG=ISNULL(HD.SO_LUONG_XOA,0)
FROM #DBAOCAO BC 
LEFT JOIN #HOADON_XOA HD ON BC.KY_HIEU_MAU_HD=HD.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=HD.KY_HIEU_HD
---

--
select a.*, case when isnull(a.SU_DUNG_DEN_SO,0)>0 then b.SU_DUNG_DEN_SO else 0 end Su_dung into #TemPhatHanh  from DPHATHANH_CHITIET a left join (select  MAX(Cast(SO_HOA_DON As numeric(8,0)))AS SU_DUNG_DEN_SO,MAU_SO,KY_HIEU from DHOADON where NGAY_HOA_DON<=@DEN_NGAY group by MAU_SO,KY_HIEU)  b on a.MAU_SO_HD=b.MAU_SO and a.KY_HIEU_FULL=b.KY_HIEU where ((a.SU_DUNG_DEN_SO>b.SU_DUNG_DEN_SO) or isnull(a.SU_DUNG_DEN_SO,0)<a.den_so ) and a.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY 
	 ----------------
	--select  * from #TemPhatHanh
	SELECT BC.KY_HIEU_MAU_HD,
       BC.KY_HIEU_HD,
      cast(min(case when a.SU_DUNG_DEN_SO=0 then TU_SO else a.SU_DUNG_DEN_SO +1 end) as varchar) TON_CUOI_TU_SO ,
    cast( max(a.DEN_SO) as varchar) TON_CUOI_DEN_SO,
       sum(a.SO_LUONG) TON_CUOI_KY
	INTO #TON_CUOI_KY
FROM ( SELECT distinct NGAY_BAT_DAU_SU_DUNG,MA_DV, TU_SO,DEN_SO,isnull(Su_dung,0)SU_DUNG_DEN_SO,MAU_SO_HD,KY_HIEU_FULL, 
case when isnull(Su_dung,0)>0 then  DEN_SO -Su_dung  else  DEN_SO -TU_SO +1 end  as SO_LUONG from #TemPhatHanh ) a
 
    INNER JOIN #DBAOCAO BC ON BC.KY_HIEU_MAU_HD = a.MAU_SO_HD AND BC.KY_HIEU_HD = a.KY_HIEU_FULL
WHERE a.NGAY_BAT_DAU_SU_DUNG <= @DEN_NGAY AND ( a.MA_DV = @MA_DV OR @MA_DV = '' )
GROUP BY BC.KY_HIEU_MAU_HD, BC.KY_HIEU_HD


  update #TON_CUOI_KY set TON_CUOI_KY = CAST(TON_CUOI_DEN_SO as int)- cast(TON_CUOI_TU_SO as int) +1
--SELECT distinct NGAY_BAT_DAU_SU_DUNG,MA_DV, TU_SO,DEN_SO,isnull(SU_DUNG_DEN_SO,0)SU_DUNG_DEN_SO,MAU_SO_HD,KY_HIEU_FULL, 
--case when isnull(Su_dung,0)>0 then  DEN_SO -Su_dung  else  DEN_SO -TU_SO +1 end  as SO_LUONG from #TemPhatHanh
--if convert(nvarchar,@DEN_NGAY,112)< convert(nvarchar,GETDATE(),112)
-- begin
---- print 'fggfdgfdg'
--    update #TON_CUOI_KY set #TON_CUOI_KY.TON_CUOI_TU_SO =  #TON_CUOI_KY.TON_CUOI_TU_SO - vuot.SLVuot ,

--	#TON_CUOI_KY.TON_CUOI_KY =  #TON_CUOI_KY.TON_CUOI_KY+ vuot.SLVuot 
--	from(  select MAU_SO,KY_HIEU,COUNT(dhoadonid)SLVuot from DHOADON a  where BEN_BAN_MA_DV=@MA_DV and SO_HOA_DON<>'0000000' and NGAY_HOA_DON >@DEN_NGAY-- and  a.SO_HOA_DON< b.TU_SO
--   group by MAU_SO,KY_HIEU
--	  ) vuot where #TON_CUOI_KY.KY_HIEU_MAU_HD=vuot.MAU_SO and #TON_CUOI_KY.KY_HIEU_HD=vuot.KY_HIEU
--    update #TON_CUOI_KY set #TON_CUOI_KY.TON_CUOI_KY = cast(#TON_CUOI_KY.TON_CUOI_DEN_SO as int) - cast(#TON_CUOI_KY.TON_CUOI_TU_SO as int)
-- select MAU_SO,KY_HIEU,COUNT(dhoadonid)SLVuot from DHOADON a inner join DPHATHANH_CHITIET b on a.MAU_SO=b.MAU_SO_HD and a.KY_HIEU=b.KY_HIEU_FULL where BEN_BAN_MA_DV=@MA_DV and SO_HOA_DON<>'0000000' and NGAY_HOA_DON >@DEN_NGAY 
--   group by MAU_SO,KY_HIEU
-- end
--select * from #TON_CUOI_KY
--select KY_HIEU_MAU_HD +'-' + KY_HIEU_HD from #HOADON_HUY

UPDATE BC 
SET BC.TON_CUOI_KY_TU_SO=ISNULL(CK.TON_CUOI_TU_SO,''),BC.TON_CUOI_KY_DEN_SO=ISNULL(CK.TON_CUOI_DEN_SO,''),BC.TON_CUOI_KY_SO_LUONG=ISNULL(CK.TON_CUOI_KY,0),TRONG_DO_SU_DUNG=SU_DUNG_TONG-TRONG_DO_XOA_SO_LUONG
FROM #DBAOCAO BC 
LEFT JOIN (select *,KY_HIEU_MAU_HD +'-' + KY_HIEU_HD as MS from  #TON_CUOI_KY)  CK ON BC.KY_HIEU_MAU_HD=CK.KY_HIEU_MAU_HD AND BC.KY_HIEU_HD=CK.KY_HIEU_HD  and ck.MS not in 
(select KY_HIEU_MAU_HD +'-' + KY_HIEU_HD from #HOADON_HUY)
 
 SELECT * FROM #DBAOCAO
 --WHERE @KyHieu = '' OR @KyHieu is null OR KY_HIEU_HD=@KyHieu
 drop table #DBAOCAO;
 drop table #DPHAT_HANH_TRONG_KY;drop table #SU_DUNG_TRONG_KY; drop table #HD_HUY_XOA_MAT
drop table #HOADON_HUY;drop table #HOADON_XOA;drop table #HOADON_MAT;drop table #TON_CUOI_KY;drop table #TemPhatHanh

end
GO
/****** Object:  StoredProcedure [dbo].[SP_BAOCAO_PHANBO_THUE]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create PROCEDURE [dbo].[SP_BAOCAO_PHANBO_THUE]
	 @MA_DV nvarchar(50),
	 @LOAIBC int,
	 @KYBC int ,
	 @NAM int 
AS
BEGIN
    declare @THANG nvarchar(10)
	declare @TgTT06 numeric(23,8)
	declare @TgTH07 numeric(23,8)

	declare @DayFrom nvarchar(20)
	declare @DayTo nvarchar(20)
	 
	if @LOAIBC = 0
		begin
		 
			if @KYBC<10
				set @THANG = '0' + convert (nvarchar(10),@KYBC)					
			else
				set @THANG = convert (nvarchar(10),@KYBC)	

		 
		  set @DayFrom = convert (nvarchar(10),@NAM)   +'-' +	@THANG + '-01'
		  set @DayTo =  dateadd(DAY ,-1, dateadd(MONTH ,1, @DayFrom))
		  --set @DayTo= convert(nvarchar (10), @DayTo,126) + ' 23:59:59.998'
		 --  exec [SP_BAOCAO_PHANBO_THUE] '0102721191',0,3,'2022' 
		end
	else
		begin
			if @KYBC=4
				begin
					set @DayFrom = convert (nvarchar(10),@NAM+1)   +'-01-01'
					set @DayTo =  dateadd(DAY ,-1, dateadd(MONTH ,1, @DayFrom))					
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-10-01'
				end
			if @KYBC=3
				begin
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-10-01'
					set @DayTo =  dateadd(DAY ,-1, dateadd(MONTH ,1, @DayFrom))					
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-07-01'
				end
			if @KYBC=2
				begin
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-07-01'
					set @DayTo =  dateadd(DAY ,-1, dateadd(MONTH ,1, @DayFrom))					
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-04-01'
				end
			if @KYBC=1
				begin
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-04-01'
					set @DayTo =  dateadd(DAY ,-1, dateadd(MONTH ,1, @DayFrom))					 
					set @DayFrom = convert (nvarchar(10),@NAM)   +'-01-01'
				end 
		end
	  
	 
	select sum(TONG_TIEN_THUE) TONG_TIEN_THUE,sum(TONG_TIEN_HANG )TONG_TIEN_HANG into #BCTONG from DHOADON 
	where BEN_BAN_MA_DV =@MA_DV and  NGAY_HOA_DON >=convert(nvarchar (10), @DayFrom ,126)  and  NGAY_HOA_DON <=(convert(nvarchar,convert(date , @DayTo,126)) + ' 23:59:59.998')
	select @TgTT06=TONG_TIEN_THUE ,@TgTH07 =TONG_TIEN_HANG  from #BCTONG

	 
	SELECT   HD.BEN_BAN_TEN_DV , HD.MA_CN,sum(HD.TONG_TIEN_HANG_5) TONG_TIEN_HANG_5 , sum(HD.TONG_TIEN_HANG_10  )TONG_TIEN_HANG_10 
	,(sum(HD.TONG_TIEN_HANG_5) + sum(HD.TONG_TIEN_HANG_10  ))TONG_TIEN_HANG16 
	,((sum(HD.TONG_TIEN_HANG_5)*1)/100 + (sum(HD.TONG_TIEN_HANG_10)*2)/100) TONG_THUE17 ,convert(numeric(23,8),0) TgTT06, convert(numeric(23,8),0) TgTH07 ,CN.STHANH_PHOID 
	into #BCTHANG 
	from DHOADON HD left join SCHI_NHANH CN on HD.MA_CN =CN.MA_CN 
	where HD.BEN_BAN_MA_DV =@MA_DV and NGAY_HOA_DON >= convert(nvarchar (10), @DayFrom ,126)  and  NGAY_HOA_DON <=@DayTo and HD.MA_CN is not null
	and CN.MA_DV =@MA_DV 
	group by   HD.MA_CN  ,HD.BEN_BAN_TEN_DV ,CN.STHANH_PHOID 

	update #BCTHANG set TgTT06 = @TgTT06 ,TgTH07 =@TgTH07 
	select (BC.BEN_BAN_TEN_DV + ' ' + CN.TEN_CN + ' ' +  CN.DIA_CHI) TENDV , CN.MA_DIA_DIEM_KD ,TP.TEN_THANH_PHO ,QH.TEN_THANH_PHO AS TEN_QUAN,BC.* ,
	 (TgTT06 * (BC.TONG_TIEN_HANG16  / TgTH07 )) TgTTPN21,CT.TEN_CO_QUAN_THUE,CT1.TEN_CO_QUAN_THUE AS TEN_CO_QUAN_THUE_ROOT 
			from #BCTHANG BC inner join SCHI_NHANH CN ON BC.MA_CN =CN.MA_CN 
							left join STHANH_PHO TP on CN.STHANH_PHOID =TP.STHANH_PHOID 
							left join STHANH_PHO QH on CN.QUANID =QH.STHANH_PHOID 
							left join SCO_QUAN_THUE CT on CN.MA_CQT=CT.MA_CO_QUAN_THUE   
							left join SCO_QUAN_THUE CT1 on CN.MA_CQT_ROOT =CT1.MA_CO_QUAN_THUE   
							where CN.MA_DV =@MA_DV 
	select TP.TEN_THANH_PHO  , sum(TONG_THUE17 ) TgTT18  ,sum(TgTT06 * (BC.TONG_TIEN_HANG16  / TgTH07 )) TgTT22
	from #BCTHANG BC left join STHANH_PHO TP on BC.STHANH_PHOID =TP.STHANH_PHOID 
	group by TP.TEN_THANH_PHO 
	drop table #BCTONG							 
	drop table #BCTHANG
	-- exec [SP_BAOCAO_PHANBO_THUE] '0102721191',0,3,'2022'  
END

GO
/****** Object:  StoredProcedure [dbo].[SP_CanhBao_GuiDuLieu_Email]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_CanhBao_GuiDuLieu_Email] 
	-- Add the parameters for the stored procedure here	
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
    -- Insert statements for procedure here
	declare @NgayLui int, @SoHDLoi_Config int, @SoHDLoi int, @SaiSot int, @SaiSotLoi int,@SoHDChuaGui_Config int,@SoHDChuaGui int,@NgayBD datetime,@NgayKT datetime,@DBName varchar(200)
	select  @NgayLui = ECUSString from SYSPARA where Code='CANH_BAO_CQT_SO_NGAY' and isnull(ECUSString,'')<>''
	select  @SoHDLoi_Config = ECUSString from SYSPARA where Code='CANH_BAO_CQT_HOA_DON_LOI' and isnull(ECUSString,'')<>''
	select  @SoHDChuaGui_Config = ECUSString from SYSPARA where Code='CANH_BAO_CQT_HOA_DON_CHUA_GUI' and isnull(ECUSString,'')<>''
    set @NgayLui = isnull(@NgayLui,10)
	set @SoHDLoi_Config = isnull(@SoHDLoi_Config,10);	set @SoHDChuaGui_Config = isnull(@SoHDChuaGui_Config,100)
	set @NgayBD = DATEADD(day,-1* @NgayLui, GETDATE()); set @NgayKT =GETDATE()
	set @NgayBD =convert(date,@NgayBD)
	set @DBName = (select DB_NAME())
	--select @NgayBD,@NgayKT
	select DHOADONID, TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,THONG_BAO_TRUYEN_NHAN,TRANG_THAI_TRUYEN_NHAN_SAI_SOT,TRANG_THAI_DIEU_CHINH,SO_HOA_DON into #TEM_HD_Email from DHOADON WITH(NOLOCK) where NGAY_HOA_DON>=@NgayBD and NGAY_HOA_DON<= @NgayKT and isnull(TRANG_THAI_TRUYEN_NHAN,0)<=0 and TRANG_THAI <> -2
	select DHOADONID, TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,THONG_BAO_TRUYEN_NHAN,TRANG_THAI_TRUYEN_NHAN_SAI_SOT,TRANG_THAI_DIEU_CHINH,SO_HOA_DON into #TEM_HD_SS from (
	select DHOADONID, TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,THONG_BAO_TRUYEN_NHAN_SAI_SOT as THONG_BAO_TRUYEN_NHAN,TRANG_THAI_TRUYEN_NHAN_SAI_SOT,TRANG_THAI_DIEU_CHINH,SO_HOA_DON from DHOADON WITH(NOLOCK) where NGAY_HOA_DON BETWEEN @NgayBD AND @NgayKT AND  ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<=0 AND TRANG_THAI_DIEU_CHINH IN(6,2,4) AND IS_TT68=3 and IS_BEN_BAN_KY_SO=1 and ISNULL(TRANG_THAI_TRUYEN_NHAN,0)>0 
	union select DHOADONID, TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,THONG_BAO_TRUYEN_NHAN_SAI_SOT as THONG_BAO_TRUYEN_NHAN,TRANG_THAI_TRUYEN_NHAN_SAI_SOT,TRANG_THAI_DIEU_CHINH,SO_HOA_DON from DHOADON WITH(NOLOCK) WHERE DHOADONid IN( SELECT DHOADONid FROM   DHOADON_BIENBAN WHERE NGAY_HOA_DON BETWEEN @NgayBD AND @NgayKT AND LOAI_BIEN_BAN='DC' AND LOAI_DIEU_CHINH=1) AND ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<=0  and IS_BEN_BAN_KY_SO=1)ss
	select @SoHDChuaGui = count(*) from #TEM_HD_Email where isnull(TRANG_THAI_TRUYEN_NHAN,0)=0
	if @SoHDLoi>= @SoHDLoi_Config or @SoHDChuaGui>=@SoHDChuaGui_Config
	 begin
	  select BEN_BAN_MA_DV,BEN_BAN_TEN_DV,sum(SL_LOI)SL_LOI,sum(SL_CHUA_GUI)SL_CHUA_GUI,sum(SL_SS_CHUA_GUI)SL_SS_CHUA_GUI,sum(SL_SS_LOI)SL_SS_LOI from  
	  ( select BEN_BAN_MA_DV,BEN_BAN_TEN_DV,count(DHOADONID)SL_LOI,0 as SL_CHUA_GUI, 0 as SL_SS_CHUA_GUI, 0 as SL_SS_LOI from #TEM_HD_Email  where isnull(TRANG_THAI_TRUYEN_NHAN,0)<0 group by BEN_BAN_MA_DV,BEN_BAN_TEN_DV
	    union  select BEN_BAN_MA_DV,BEN_BAN_TEN_DV,0 as SL_LOI,count(DHOADONID)SL_CHUA_GUI, 0 as SL_CHUA_GUI, 0 as SL_SS_CHUA_GUI from #TEM_HD_Email  where isnull(TRANG_THAI_TRUYEN_NHAN,0)=0 group by BEN_BAN_MA_DV,BEN_BAN_TEN_DV
		union select BEN_BAN_MA_DV,BEN_BAN_TEN_DV,0 as SL_LOI,0 as SL_CHUA_GUI, count(DHOADONID)SL_SS_CHUA_GUI, 0 as SL_SS_LOI from #TEM_HD_SS  where isnull(TRANG_THAI_TRUYEN_NHAN,0)> 0 and ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)=0 group by BEN_BAN_MA_DV,BEN_BAN_TEN_DV
		union select BEN_BAN_MA_DV,BEN_BAN_TEN_DV,0 as SL_LOI,0 as SL_CHUA_GUI, 0 as SL_SS_CHUA_GUI, count(DHOADONID)SL_SS_LOI from #TEM_HD_SS  where isnull(TRANG_THAI_TRUYEN_NHAN,0)> 0 and ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<0 group by BEN_BAN_MA_DV,BEN_BAN_TEN_DV
		) th group by BEN_BAN_MA_DV,BEN_BAN_TEN_DV

	    select  DHOADONID, TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,THONG_BAO_TRUYEN_NHAN, 'HD' As LOAI,SO_HOA_DON,@DBName as DBName from #TEM_HD_Email where isnull(TRANG_THAI_TRUYEN_NHAN,0)<0
	    union 
	    select  top 20 DHOADONID, TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,N'Chưa gửi' as THONG_BAO_TRUYEN_NHAN,'HD' As LOAI,SO_HOA_DON,@DBName as DBName  from #TEM_HD_Email where isnull(TRANG_THAI_TRUYEN_NHAN,0)=0
		union
		select  DHOADONID, ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0) as TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,THONG_BAO_TRUYEN_NHAN,'04SS' As LOAI,SO_HOA_DON,@DBName as DBName from #TEM_HD_SS where isnull(TRANG_THAI_TRUYEN_NHAN,0)>0 and ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<0
		union
		select  DHOADONID, ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0) as TRANG_THAI_TRUYEN_NHAN,BEN_BAN_MA_DV,BEN_BAN_TEN_DV,KY_HIEU,NGAY_HOA_DON,N'Chưa gửi' as THONG_BAO_TRUYEN_NHAN,'04SS' As LOAI,SO_HOA_DON,@DBName as DBName from #TEM_HD_SS where isnull(TRANG_THAI_TRUYEN_NHAN,0)>0 and ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)=0
	 end
	 --else
	 --select top 0 * from #TEM_HD_Email
	 drop table #TEM_HD_Email
	 drop table #TEM_HD_SS
END
GO
/****** Object:  StoredProcedure [dbo].[SP_CanhBao_GuiDuLieu_Thue]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 CREATE PROCEDURE [dbo].[SP_CanhBao_GuiDuLieu_Thue]
	-- Add the parameters for the stored procedure here
	@MST VARCHAR(20),
	@CoDL INT OUT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
		  set @CoDL =0
	 declare @Ky int=1,@KhoangTG int,@ThoiDiem int ,@NgayCB int,@NgayTD datetime,@NgayHT datetime,@Now Datetime,@NgayCuoiKy datetime,@NgayDauKy datetime,
	 @IsDayDu int,@IsBangTH int
	 set @NgayCuoiKy = GETDATE()
	SET  @NgayDauKy = DATEADD(MONTH,-3,@NgayCuoiKy)
	
    DECLARE @HDGoc INT ,@HDGoc_Loi INT,@SaiSot_Xoa INT,@SaiSot_Xoa_Loi INT, @SaiSot_DC INT, @SaiSot_TT INT,@SaiSot_DC_Loi INT, @SaiSot_TT_Loi INT
	SELECT  COUNT(DHOADONID)SL,TRANG_THAI_TRUYEN_NHAN INTO #TemGoc FROM DHOADON WITH(NOLOCK) WHERE NGAY_HOA_DON BETWEEN @NgayDauKy AND @NgayCuoiKy AND  ISNULL(TRANG_THAI_TRUYEN_NHAN,0)<=0 AND TRANG_THAI_DIEU_CHINH in(1,3,5) AND BEN_BAN_MA_DV =@MST AND IS_TT68=3 and IS_BEN_BAN_KY_SO=1 GROUP BY TRANG_THAI_TRUYEN_NHAN		      	
	SELECT  COUNT(DHOADONID)SL,TRANG_THAI_TRUYEN_NHAN_SAI_SOT,TRANG_THAI_DIEU_CHINH INTO #TemSaiSot FROM DHOADON WITH(NOLOCK) WHERE  NGAY_HOA_DON BETWEEN @NgayDauKy AND @NgayCuoiKy AND  ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<=0 AND TRANG_THAI_DIEU_CHINH IN(6,2,4) AND BEN_BAN_MA_DV =@MST  AND IS_TT68=3 and IS_BEN_BAN_KY_SO=1 and ISNULL(TRANG_THAI_TRUYEN_NHAN,0)>0 GROUP BY TRANG_THAI_TRUYEN_NHAN_SAI_SOT,TRANG_THAI_DIEU_CHINH
  	INSERT INTO #TemSaiSot SELECT COUNT(DHOADONid)SL,TRANG_THAI_TRUYEN_NHAN_SAI_SOT,4 FROM DHOADON WITH(NOLOCK) WHERE DHOADONid IN( SELECT DHOADONid FROM   DHOADON_BIENBAN WHERE NGAY_HOA_DON BETWEEN @NgayDauKy AND @NgayCuoiKy AND LOAI_BIEN_BAN='DC' AND LOAI_DIEU_CHINH=1) AND ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<=0 AND BEN_BAN_MA_DV =@MST and IS_BEN_BAN_KY_SO=1 GROUP BY TRANG_THAI_TRUYEN_NHAN_SAI_SOT

	SELECT @HDGoc = SUM(SL) FROM #TemGoc WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN,0)=0
	SELECT @HDGoc_Loi = SUM(SL) FROM #TemGoc WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN,0)<0
	SELECT @SaiSot_Xoa = SUM(SL) FROM #TemSaiSot WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)=0 AND TRANG_THAI_DIEU_CHINH=6
	SELECT @SaiSot_Xoa_Loi = SUM(SL) FROM #TemSaiSot WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<0 AND TRANG_THAI_DIEU_CHINH=6
	SELECT @SaiSot_DC = SUM(SL) FROM #TemSaiSot WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)=0 AND TRANG_THAI_DIEU_CHINH=4
	SELECT @SaiSot_DC_Loi = SUM(SL) FROM #TemSaiSot WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<0 AND TRANG_THAI_DIEU_CHINH=4
	SELECT @SaiSot_TT = SUM(SL) FROM #TemSaiSot WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)=0 AND TRANG_THAI_DIEU_CHINH=2
	SELECT @SaiSot_TT_Loi = SUM(SL) FROM #TemSaiSot WHERE ISNULL(TRANG_THAI_TRUYEN_NHAN_SAI_SOT,0)<0 AND TRANG_THAI_DIEU_CHINH=2
IF (ISNULL(@HDGoc,0) + ISNULL(@HDGoc_Loi,0) + ISNULL(@SaiSot_Xoa,0) + ISNULL(@SaiSot_Xoa_Loi,0) +ISNULL(@SaiSot_DC,0) + ISNULL(@SaiSot_DC_Loi,0) + ISNULL(@SaiSot_TT_Loi,0) + ISNULL(@SaiSot_TT,0))>0
	SET @CoDL =1
	
	if(@CoDL=0)
	begin	    
		  ---SONGAY_CANHBAO_CKS
		   declare @ECUSString int 
		   SELECT  @ECUSString=  convert(int, ECUSString)  FROM SYSPARA  where Code=N'SONGAY_CANHBAO_CKS' and (MA_DV=@MST Or MA_DV is null )
		   if @ECUSString IS NULL
				set	@ECUSString =10
		   ---select @ECUSString

		    Select   A.TEN_NNT,A.MA_DV,B.SERI ,B.TU_NGAY , B.DEN_NGAY,DATEDIFF (DAY ,getdate(), B.DEN_NGAY) CANHBAO  into #TemCB 
         From [DDKSD_VOI_CQTHUE] A Inner Join DDKSD_VOI_CQTHUE_CHUNGTHUSO B on A.DDKSD_VOI_CQTHUEID =B.DDKSD_VOI_CQTHUEID   
         where a.DDKSD_VOI_CQTHUEID in ( select Top 1 DDKSD_VOI_CQTHUEID from [DDKSD_VOI_CQTHUE] where TRANG_THAI_TRUYEN_NHAN =9  And TRANG_THAI_TO_KHAI=2  
          And MA_DV=@MST  order by NGAY_THONG_BAO_THUE_CHAP_NHAN desc) 

		  select @CoDL=count(*) from #TemCB where CANHBAO >=(-1*@ECUSString) and CANHBAO <= @ECUSString
		  drop table #TemCB; 
	end

	DROP TABLE #TemGoc; 	DROP TABLE #TemSaiSot
	SELECT @HDGoc AS HOA_DON_GOC,@HDGoc_Loi AS HOA_DON_GOC_LOI,@SaiSot_Xoa AS XOA_BO,@SaiSot_Xoa_Loi AS XOA_BO_LOI,@SaiSot_DC AS DIEU_CHINH,@SaiSot_DC_Loi AS DIEU_CHINH_LOI,
	@SaiSot_TT AS THAY_THE,@SaiSot_TT_Loi AS THAY_THE_LOI
	
    -- Insert statements for procedure here
	 -- exec [SP_CanhBao_GuiDuLieu_Thue] '0101300842-999',0
END

GO
/****** Object:  StoredProcedure [dbo].[SP_CAP_SO]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 create PROC [dbo].[SP_CAP_SO]
@DHOADONID as numeric(18,0),
@MA_DV as nvarchar(20)='',
@MAU_SO as nvarchar(20)='',
@KY_HIEU as nvarchar(20)='',
@DHOADONID_GOC as numeric(18,0),
@TRANG_THAI as int
as
BEGIN
DECLARE @NGAY_HOA_DON AS DATETIME
DECLARE @SO_HOA_DON_DA_CAP as VARCHAR(10)
DECLARE @SO_HOA_DON as NUMERIC(18,0)
DECLARE @DPHATHANH_CHITIETID as NUMERIC(18,0)
DECLARE @DPHATHANH_KHOITAOID as NUMERIC(18,0)
DECLARE @GUID_DPHATHANH_KHOITAO as varchar(50),@NamPH varchar(10),@IS_TT68 int
--kiem tra ngay

BEGIN TRANSACTION TRAN_CAP_SO_HD
BEGIN TRY --Start the Try Block..
SELECT	@MA_DV=BEN_BAN_MA_DV,
		@MAU_SO=CASE WHEN @MAU_SO='' THEN MAU_SO ELSE @MAU_SO END,
		@KY_HIEU=CASE WHEN @KY_HIEU='' THEN KY_HIEU ELSE @KY_HIEU END,
		@NGAY_HOA_DON=NGAY_HOA_DON,
		@SO_HOA_DON_DA_CAP=SO_HOA_DON 
	FROM DHOADON WITH (Xlock,rowlock) where DHOADONID= @DHOADONID

IF ISNULL(@SO_HOA_DON_DA_CAP,'0000000')<>'0000000' 
	BEGIN
		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Hóa đơn đã được cấp số' AS MSG,0 as TRANG_THAI
		RETURN 
	END 
	
  if CAST(@NGAY_HOA_DON AS DATE) > CAST(GETDATE() AS DATE)
    BEGIN
		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Không thể cấp số cho ngày tương lai' AS MSG,0 as TRANG_THAI
		RETURN 
	END 
	---khoi tao dong phat hanh
	select @NamPH = max(NAM_PHAT_HANH) from DPHATHANH_CHITIET where  MA_DV=@MA_DV 
		AND MAU_SO_HD=@MAU_SO 
		AND KY_HIEU_FULL=@KY_HIEU 
		AND IS_PHAT_HANH=1 
   if isnull(@NamPH,'')=''
   BEGIN
   		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Chưa phát hành hóa đơn' AS MSG,0 as TRANG_THAI
		RETURN 
	END 	
	--- hóa don co mã
	--if left(@KY_HIEU,1)='C'
	--begin

	--declare @DHOADON_CAPMA_LOIID numeric(18,0)
	--    select @SO_HOA_DON =[SO_HOA_DON],@DHOADON_CAPMA_LOIID = DHOADON_CAPMA_LOIID from [DHOADON_CAPMA_LOI]  WITH (Xlock,rowlock) where  [BEN_BAN_MA_DV]=@MA_DV AND MAU_SO=@MAU_SO 
	--   AND KY_HIEU=@KY_HIEU and isnull(TRANG_THAI_CAP_LAI,0)=0  and [NGAY_HOA_DON] = @NGAY_HOA_DON order by [SO_HOA_DON]
	--   if isnull(@SO_HOA_DON,0) >0
	--     begin
	--	     UPDATE DHOADON SET SO_HOA_DON= @SO_HOA_DON,NGAY_SUA=GETDATE(),NGAY_IN = NGAY_HOA_DON,TRANG_THAI_HOA_DON = 2,IS_TT68 =3 WHERE DHOADONID=@DHOADONID
	--		insert into [dbo].[DHOADON_CAPSO_LOG]([DHOADONID],MAU_SO,[KY_HIEU],[BEN_BAN_MA_DV],[SO_HOA_DON],[NGAY_HOA_DON],[NGAY_CAP])
	--		 values(@DHOADONID,@MAU_SO,@KY_HIEU,@MA_DV, @SO_HOA_DON,@NGAY_HOA_DON,getdate())
	--		 update [DHOADON_CAPMA_LOI] set [TRANG_THAI_CAP_LAI]=1 where DHOADON_CAPMA_LOIID=@DHOADON_CAPMA_LOIID
	--		-- 4. Get Result
	--		 SELECT  @SO_HOA_DON  AS  MSG, 1 AS TRANG_THAI
	--		 COMMIT TRAN TRAN_CAP_SO_HD
 --            RETURN 
	--	 end 
	--end
	---------------------

SELECT TOP 1 
	@DPHATHANH_CHITIETID = DPHATHANH_CHITIETID,
	@DPHATHANH_KHOITAOID = DPHATHANH_KHOITAOID,
	@GUID_DPHATHANH_KHOITAO = GUID_DPHATHANH_KHOITAO,
	@SO_HOA_DON = ISNULL(SU_DUNG_DEN_SO,0)
	FROM DPHATHANH_CHITIET WITH (Xlock,rowlock)
	WHERE MA_DV=@MA_DV 
		AND MAU_SO_HD=@MAU_SO 
		AND KY_HIEU_FULL=@KY_HIEU 
		AND IS_PHAT_HANH=1 
		AND ISNULL(SU_DUNG_DEN_NGAY, NGAY_BAT_DAU_SU_DUNG)<= @NGAY_HOA_DON 
	IF @SO_HOA_DON IS NULL
		BEGIN
		   ROLLBACK TRAN TRAN_CAP_SO_HD
			SELECT (N'Đã tồn tại trong hệ thống hóa đơn có ngày lớn hơn hóa đơn cần cấp số ') AS MSG, 0 AS TRANG_THAI			
			RETURN 
		END

		-- select @IS_TT68 = IS_TT68 from DPHATHANH_KHOITAO where [DPHATHANH_KHOITAOID]=@DPHATHANH_KHOITAOID
			-- 1. Cập nhật DHOADON để cấp SO_HOA_DON
			UPDATE DHOADON 
			SET 
				SO_HOA_DON= @SO_HOA_DON+1,
				MAU_SO=@MAU_SO,
				KY_HIEU=@KY_HIEU,
				DPHATHANH_KHOITAOID=@DPHATHANH_KHOITAOID,
				GUID_DPHATHANH_KHOITAO=@GUID_DPHATHANH_KHOITAO,
				NGAY_SUA=GETDATE(),
				NGAY_IN = NGAY_HOA_DON,
				TRANG_THAI_HOA_DON = 2,--trang thai hoa don da cap so, chua ky
				IS_TT68 =3
			WHERE DHOADONID=@DHOADONID
			-- 2. Cập nhật ngày sử dụng và số hóa đơn cuối
			UPDATE DPHATHANH_CHITIET
			SET
				SU_DUNG_DEN_SO=isnull(SU_DUNG_DEN_SO,0)+1,
				SU_DUNG_DEN_NGAY= convert(varchar,@NGAY_HOA_DON,112)
			WHERE DPHATHANH_CHITIETID=@DPHATHANH_CHITIETID
			
			-- 3. Cập nhật bản ghi hóa đơn gốc, trường hợp điều chỉnh | thay thế
			IF ISNULL(@DHOADONID_GOC,0)>0 and left(@KY_HIEU,1)<>'C'
			BEGIN
				Declare @TrangThaiDC int,@TrangThai_Goc int
				set @TrangThai_Goc = 0
				Set @TrangThaiDC =1
				If @TRANG_THAI =3
				  begin
				     Set @TrangThaiDC =2
					 set @TrangThai_Goc =-2
				   end
				Else If @TRANG_THAI =5
				   Set @TrangThaiDC =4
				Update DHOADON Set TRANG_THAI_DIEU_CHINH=@TrangThaiDC,TRANG_THAI=@TrangThai_Goc Where DHOADONID=@DHOADONID_GOC
			END
			-- insert log cap so
	
			insert into [dbo].[DHOADON_CAPSO_LOG]([DHOADONID],MAU_SO,[KY_HIEU],[BEN_BAN_MA_DV],[SO_HOA_DON],[NGAY_HOA_DON],[NGAY_CAP])
			values(@DHOADONID,@MAU_SO,@KY_HIEU,@MA_DV, @SO_HOA_DON+1,@NGAY_HOA_DON,getdate())
			-- 4. Get Result
			COMMIT TRAN TRAN_CAP_SO_HD
			SELECT  CONVERT(NVARCHAR(10), @SO_HOA_DON+1)  AS  MSG, 1 AS TRANG_THAI
		
END TRY
BEGIN CATCH
  if @@TRANCOUNT >0
	ROLLBACK TRAN TRAN_CAP_SO_HD
   SELECT ERROR_MESSAGE() AS MSG,0 AS TRANG_THAI
END CATCH
END
GO
/****** Object:  StoredProcedure [dbo].[SP_CAP_SO_MAY_TINH_TIEN]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC [dbo].[SP_CAP_SO_MAY_TINH_TIEN]
@DHOADONID as numeric(18,0),
@MA_DV as nvarchar(20)='',
@MAU_SO as nvarchar(20)='',
@KY_HIEU as nvarchar(20)='',
@DHOADONID_GOC as numeric(18,0),
@TRANG_THAI as int
as
BEGIN
DECLARE @NGAY_HOA_DON AS DATETIME
DECLARE @SO_HOA_DON_DA_CAP as VARCHAR(10),@MA_CN nvarchar(100)
DECLARE @SO_HOA_DON as NUMERIC(18,0)
DECLARE @DPHATHANH_CHITIETID as NUMERIC(18,0)
DECLARE @DPHATHANH_KHOITAOID as NUMERIC(18,0)
DECLARE @GUID_DPHATHANH_KHOITAO as varchar(50),@NamPH varchar(10),@IS_TT68 int,@MaCQT nvarchar(50),@MaCap numeric(18,0),@SDV_CQTID int, @MaCQT_DaCo varchar(50)
--kiem tra ngay

BEGIN TRANSACTION TRAN_CAP_SO_HD
BEGIN TRY --Start the Try Block..
SELECT	@MA_DV=BEN_BAN_MA_DV,
		@MAU_SO=CASE WHEN @MAU_SO='' THEN MAU_SO ELSE @MAU_SO END,
		@KY_HIEU=CASE WHEN @KY_HIEU='' THEN KY_HIEU ELSE @KY_HIEU END,
		@NGAY_HOA_DON=NGAY_HOA_DON,
		@SO_HOA_DON_DA_CAP=SO_HOA_DON ,
		@MaCQT_DaCo = isnull(SO_XAC_THUC,''),@MA_CN = MA_CN
	FROM DHOADON WITH (Xlock,rowlock) where DHOADONID= @DHOADONID

IF ISNULL(@SO_HOA_DON_DA_CAP,'0000000')<>'0000000' 
	BEGIN
		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Hóa đơn đã được cấp số' AS MSG,0 as TRANG_THAI
		RETURN 
	END 
	
  if CAST(@NGAY_HOA_DON AS DATE) > CAST(GETDATE() AS DATE)
    BEGIN
		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Không thể cấp số cho ngày tương lai' AS MSG,0 as TRANG_THAI
		RETURN 
	END 
	---khoi tao dong phat hanh
	select @NamPH = max(NAM_PHAT_HANH) from DPHATHANH_CHITIET where  MA_DV=@MA_DV 
		AND MAU_SO_HD=@MAU_SO 
		AND KY_HIEU_FULL=@KY_HIEU 
		AND IS_PHAT_HANH=1 
   if isnull(@NamPH,'')=''
   BEGIN
   		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Chưa phát hành hóa đơn' AS MSG,0 as TRANG_THAI
		RETURN 
	END 	
	
	---check valid 
	if isnull(@MaCQT_DaCo,'')<>''
	 begin

	 	declare @MaCQT_DaCo_Num  numeric(18,0)
		set @MaCQT_DaCo_Num = cast( RIGHT(@MaCQT_DaCo,11) as numeric(18,0))		
		if (select count(*) from  SDONVI_MA_CQT_MTT where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and TU_SO<=@MaCQT_DaCo_Num and @MaCQT_DaCo_Num<=DEN_SO) >0
		 begin
		   ROLLBACK TRAN TRAN_CAP_SO_HD
			SELECT N'Số cấp bị trùng với dải số manual trên hệ thống EIV' AS MSG,0 as TRANG_THAI
			RETURN 
		 end
		 --
			 if (select count(*) from SDONVI_MA_CQT_MTT where MA_DV = @MA_DV and MA_CQT= SUBSTRING(@MaCQT_DaCo,7,5))=0
			begin
				ROLLBACK TRAN TRAN_CAP_SO_HD
				  SELECT N'Chuỗi kỹ tự CQT cấp trên mã CQT cấp là ' +  SUBSTRING(@MaCQT_DaCo,7,5) + N' khác với chuỗi ký tự CQT cấp khi đăng ký sử dụng MTT' AS MSG,0 as TRANG_THAI
				  RETURN 
			end
		 if (select count(DHOADONID) from DHOADON where SO_XAC_THUC = @MaCQT_DaCo and  BEN_BAN_MA_DV = @MA_DV and ISNULL(SO_HOA_DON,'0000000')<>'0000000')>0
		   begin
				  ROLLBACK TRAN TRAN_CAP_SO_HD
				  SELECT N'Mã CQT cấp đã tồn  tại trong hệ thống, bạn không thể cấp mã cho hóa đơn này' AS MSG,0 as TRANG_THAI
				  RETURN 
		   end
	 end
	declare @TuSo numeric(18,0),@DenSo numeric(18,0),@LaDieuChinh int
	set @LaDieuChinh =0
	IF ISNULL(@DHOADONID_GOC,0)>0 and (isnull(@TRANG_THAI,0)=3 or isnull(@TRANG_THAI,0)=5)
	   set @LaDieuChinh =1
	if isnull(@MA_CN,'')<>'' 
	  begin
		   select top 1 @MaCQT =MA_CQT,@MaCap= isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0) ,@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and MA_CN=@MA_CN and MAU_SO=@MAU_SO and KY_HIEU=@KY_HIEU and isnull(DAI_SO_DIEU_CHINH,0)=@LaDieuChinh order by TU_SO
		   if isnull(@MaCQT,'')=''
			 select top 1 @MaCQT =MA_CQT,@MaCap= isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0) ,@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and MA_CN=@MA_CN  and isnull(DAI_SO_DIEU_CHINH,0)=@LaDieuChinh  order by TU_SO
		 if isnull(@MaCQT,'')=''
			select top 1 @MaCQT =MA_CQT,@MaCap= isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0) ,@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and MA_CN=@MA_CN and MAU_SO=@MAU_SO and KY_HIEU=@KY_HIEU  order by TU_SO		
		 if isnull(@MaCQT,'')=''
			select top 1 @MaCQT =MA_CQT,@MaCap= isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0) ,@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and MA_CN=@MA_CN   order by TU_SO	
	end
	--neu khong co chi nhanh thì lấy cả
	if isnull(@MaCQT,'')=''
	  select top 1 @MaCQT =MA_CQT,@MaCap = isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0),@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH  and MAU_SO=@MAU_SO and KY_HIEU=@KY_HIEU and isnull(DAI_SO_DIEU_CHINH,0)=@LaDieuChinh  order by TU_SO
	  if isnull(@MaCQT,'')=''
	  select top 1 @MaCQT =MA_CQT,@MaCap = isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0),@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and isnull(DAI_SO_DIEU_CHINH,0)=@LaDieuChinh  order by TU_SO
	if isnull(@MaCQT,'')=''
	  select top 1 @MaCQT =MA_CQT,@MaCap = isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0),@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH  and MAU_SO=@MAU_SO and KY_HIEU=@KY_HIEU    order by TU_SO
		if isnull(@MaCQT,'')=''
	  select top 1 @MaCQT =MA_CQT,@MaCap = isnull(SU_DUNG_DEN_SO,0),@TuSo =isnull(TU_SO,0),@DenSo =isnull(DEN_SO,0),@SDV_CQTID=SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT  WITH (Xlock,rowlock) where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH  order by TU_SO
	 -- select @MaCQT
	 --ROLLBACK TRAN TRAN_CAP_SO_HD
		--	SELECT @MaCQT,@MaCap,@SDV_CQTID
		--	RETURN 
	if isnull(@MaCQT,'')=''
	   BEGIN
   			ROLLBACK TRAN TRAN_CAP_SO_HD
			SELECT N'Chưa đăng ký sủ dụng hóa đơn máy tính tiền với CQT' AS MSG,0 as TRANG_THAI
			RETURN 
		END 	
	if @TuSo>0 and @DenSo>0
	   begin
			if isnull(@MaCQT_DaCo,'')=''	 
			  begin
				 if @MaCap >= @DenSo
				   begin
				       declare @isOK_2  int ,@LanTang_2 int;set @isOK_2 =0;set @LanTang_2=0
						  create table #TemCQT_2(SDONVI_MA_CQT_MTTID int)
						   insert into #TemCQT_2 values(@SDV_CQTID)
						   while @isOK_2=0 and @LanTang_2<15
						    begin
							 
								  set @LanTang_2 =@LanTang_2+1
									set @TuSo =0;set @DenSo =0
									select top 1 @MaCQT =a.MA_CQT,@MaCap = isnull(a.SU_DUNG_DEN_SO,0),@TuSo =isnull(a.TU_SO,0),@DenSo =isnull(a.DEN_SO,0),@SDV_CQTID=a.SDONVI_MA_CQT_MTTID from SDONVI_MA_CQT_MTT a  WITH (Xlock,rowlock)
									inner join ( select * from SDONVI_MA_CQT_MTT where SDONVI_MA_CQT_MTTID = @SDV_CQTID) b on isnull(a.DAI_SO_DIEU_CHINH,0)=isnull(b.DAI_SO_DIEU_CHINH,0) and isnull(a.KY_HIEU,'')=isnull(b.KY_HIEU,'')
									and isnull(a.MA_CN,'')=isnull(b.MA_CN,'') and isnull(a.MAU_SO,'')=isnull(b.MAU_SO,'')  where a.MA_DV=@MA_DV and a.NAM_PHAT_HANH=@NamPH  and a.SDONVI_MA_CQT_MTTID not in(select SDONVI_MA_CQT_MTTID from #TemCQT_2) order by a.TU_SO
									--select @MaCQT,@MaCap
									if  isnull(@TuSo,0) =0 
									   set  @isOK_2 =1
									if @MaCap < @DenSo
									  set  @isOK_2 =2
									 insert into #TemCQT_2 values(@SDV_CQTID)
							end
							drop table #TemCQT_2
							if @isOK_2<2
							begin
							  ROLLBACK TRAN TRAN_CAP_SO_HD
							  SELECT N'Đã cấp mã CQT hết dải số được phân' AS MSG,0 as TRANG_THAI
							  RETURN 
					  end
				   end
				 if @MaCap=0 set @MaCap =@TuSo-1
				 if @MaCap<@TuSo set @MaCap =@TuSo-1
			 end
	   end

	   --select @MaCap,@TuSo,@DenSo
	   --   ROLLBACK TRAN TRAN_CAP_SO_HD
			 -- --SELECT N'Đã cấp mã CQT hết dải số được phân' AS MSG,0 as TRANG_THAI
			 -- RETURN 
	---------------------
	--chek trung ma CQT MTT
	
SELECT TOP 1 
	@DPHATHANH_CHITIETID = DPHATHANH_CHITIETID,
	@DPHATHANH_KHOITAOID = DPHATHANH_KHOITAOID,
	@GUID_DPHATHANH_KHOITAO = GUID_DPHATHANH_KHOITAO,
	@SO_HOA_DON = ISNULL(SU_DUNG_DEN_SO,0)
	FROM DPHATHANH_CHITIET WITH (Xlock,rowlock)
	WHERE MA_DV=@MA_DV 
		AND MAU_SO_HD=@MAU_SO 
		AND KY_HIEU_FULL=@KY_HIEU 
		AND IS_PHAT_HANH=1 
		AND ISNULL(SU_DUNG_DEN_NGAY, NGAY_BAT_DAU_SU_DUNG)<= @NGAY_HOA_DON 
	IF @SO_HOA_DON IS NULL
		BEGIN
		   ROLLBACK TRAN TRAN_CAP_SO_HD
			SELECT (N'Đã tồn tại trong hệ thống hóa đơn có ngày lớn hơn hóa đơn cần cấp số ') AS MSG, 0 AS TRANG_THAI			
			RETURN 
		END

		-- select @IS_TT68 = IS_TT68 from DPHATHANH_KHOITAO where [DPHATHANH_KHOITAOID]=@DPHATHANH_KHOITAOID
			-- 1. Cập nhật DHOADON để cấp SO_HOA_DON
			UPDATE DHOADON 
			SET 
				SO_HOA_DON= @SO_HOA_DON+1,
				MAU_SO=@MAU_SO,
				KY_HIEU=@KY_HIEU,
				DPHATHANH_KHOITAOID=@DPHATHANH_KHOITAOID,
				GUID_DPHATHANH_KHOITAO=@GUID_DPHATHANH_KHOITAO,
				NGAY_SUA=GETDATE(),
				NGAY_IN = NGAY_HOA_DON,
				TRANG_THAI_HOA_DON = 2,--trang thai hoa don da cap so, chua ky
				IS_TT68 =3,SO_XAC_THUC= case when isnull(SO_XAC_THUC,'') ='' then 'M'+@MAU_SO+ '-' + @NamPH +'-' + @MaCQT + '-' + cast( dbo.fnNumpadLeft((@MaCap+1),11) as varchar(20)) else SO_XAC_THUC end
			WHERE DHOADONID=@DHOADONID
			-- 2. Cập nhật ngày sử dụng và số hóa đơn cuối
			UPDATE DPHATHANH_CHITIET
			SET
				SU_DUNG_DEN_SO=isnull(SU_DUNG_DEN_SO,0)+1,
				SU_DUNG_DEN_NGAY= convert(varchar,@NGAY_HOA_DON,112)
			WHERE DPHATHANH_CHITIETID=@DPHATHANH_CHITIETID
			
			-- 3. Cập nhật bản ghi hóa đơn gốc, trường hợp điều chỉnh | thay thế
			IF ISNULL(@DHOADONID_GOC,0)>0 --and left(@KY_HIEU,1)<>'C'
			BEGIN
				Declare @TrangThaiDC int,@TrangThai_Goc int
				set @TrangThai_Goc = 0
				Set @TrangThaiDC =1
				If @TRANG_THAI =3
				  begin
				     Set @TrangThaiDC =2
					 set @TrangThai_Goc =-2
				   end
				Else If @TRANG_THAI =5
				   Set @TrangThaiDC =4
				Update DHOADON Set TRANG_THAI_DIEU_CHINH=@TrangThaiDC,TRANG_THAI=@TrangThai_Goc Where DHOADONID=@DHOADONID_GOC
			END
			-- insert log cap so
			if @MaCQT_DaCo<>''	
			begin
				 set @MaCap = cast( RIGHT(@MaCQT_DaCo,11) as numeric(18,0))
			 	 if (select count(*) from  SDONVI_MA_CQT_MTT where MA_DV = @MA_DV and NAM_PHAT_HANH = @NamPH and (TU_SO>0 or DEN_SO>0))=0  
					begin		  			 	
						   update SDONVI_MA_CQT_MTT set SU_DUNG_DEN_SO =@MaCap,SU_DUNG_DEN_NGAY = @NGAY_HOA_DON where SDONVI_MA_CQT_MTTID =@SDV_CQTID	and ISNULL(SU_DUNG_DEN_SO,0)<@MaCap
					end
			end
			else
				begin
					set @MaCap=@MaCap+1
					update SDONVI_MA_CQT_MTT set SU_DUNG_DEN_SO =@MaCap,SU_DUNG_DEN_NGAY = @NGAY_HOA_DON where SDONVI_MA_CQT_MTTID =@SDV_CQTID
				end
			---------------
			insert into [dbo].[DHOADON_CAPSO_LOG]([DHOADONID],MAU_SO,[KY_HIEU],[BEN_BAN_MA_DV],[SO_HOA_DON],[NGAY_HOA_DON],[NGAY_CAP],MA_CQT)
			values(@DHOADONID,@MAU_SO,@KY_HIEU,@MA_DV, @SO_HOA_DON+1,@NGAY_HOA_DON,getdate(),@MaCap)
			-- 4. Get Result
			COMMIT TRAN TRAN_CAP_SO_HD
			SELECT  CONVERT(NVARCHAR(10), @SO_HOA_DON+1)  AS  MSG, 1 AS TRANG_THAI
		
	END TRY
	BEGIN CATCH
	  if @@TRANCOUNT >0
		ROLLBACK TRAN TRAN_CAP_SO_HD
	   SELECT ERROR_MESSAGE() AS MSG,0 AS TRANG_THAI
	END CATCH
END
GO
/****** Object:  StoredProcedure [dbo].[SP_CAP_SO_TNCN]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create PROC [dbo].[SP_CAP_SO_TNCN]
@DHOADONID as numeric(18,0),
@MA_DV as nvarchar(20)='',
@MAU_SO as nvarchar(20)='',
@KY_HIEU as nvarchar(20)='',
@DHOADONID_GOC as numeric(18,0),
@TRANG_THAI as int
as
BEGIN
DECLARE @NGAY_HOA_DON AS DATETIME
DECLARE @SO_HOA_DON_DA_CAP as VARCHAR(10)
DECLARE @SO_HOA_DON as NUMERIC(18,0)
DECLARE @DPHATHANH_CHITIETID as NUMERIC(18,0)
DECLARE @DPHATHANH_KHOITAOID as NUMERIC(18,0)
DECLARE @GUID_DPHATHANH_KHOITAO as varchar(50),@NamPH varchar(10),@IS_TT68 int
--kiem tra ngay

BEGIN TRANSACTION TRAN_CAP_SO_HD
BEGIN TRY --Start the Try Block..
SELECT	@MA_DV=BEN_BAN_MA_DV,
		@MAU_SO=CASE WHEN @MAU_SO='' THEN MAU_SO ELSE @MAU_SO END,
		@KY_HIEU=CASE WHEN @KY_HIEU='' THEN KY_HIEU ELSE @KY_HIEU END,
		@NGAY_HOA_DON=NGAY_HOA_DON,
		@SO_HOA_DON_DA_CAP=SO_HOA_DON 
	FROM DHOADON WITH (Xlock,rowlock) where DHOADONID= @DHOADONID

IF ISNULL(@SO_HOA_DON_DA_CAP,'0000000')<>'0000000' 
	BEGIN
		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Hóa đơn đã được cấp số' AS MSG,0 as TRANG_THAI
		RETURN 
	END 
	
  if CAST(@NGAY_HOA_DON AS DATE) > CAST(GETDATE() AS DATE)
    BEGIN
		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Không thể cấp số cho ngày tương lai' AS MSG,0 as TRANG_THAI
		RETURN 
	END 
	---khoi tao dong phat hanh
	select @NamPH = max(NAM_PHAT_HANH) from DPHATHANH_CHITIET where  MA_DV=@MA_DV 
		AND MAU_SO_HD=@MAU_SO 
		AND KY_HIEU_FULL=@KY_HIEU 
		AND IS_PHAT_HANH=1 
   if isnull(@NamPH,'')=''
   BEGIN
   		ROLLBACK TRAN TRAN_CAP_SO_HD
		SELECT N'Chưa phát hành hóa đơn' AS MSG,0 as TRANG_THAI
		RETURN 
	END 	
	
	---------------------
	--tuannd lay thong tin DPHATHANH_CHITIETID
	SELECT TOP 1 
		@DPHATHANH_CHITIETID = DPHATHANH_CHITIETID,
		@DPHATHANH_KHOITAOID = DPHATHANH_KHOITAOID,
			 @GUID_DPHATHANH_KHOITAO = GUID_DPHATHANH_KHOITAO,
			 @SO_HOA_DON = ISNULL(SU_DUNG_DEN_SO,0)
		 FROM DPHATHANH_CHITIET WITH (Xlock,rowlock)
		WHERE MA_DV=@MA_DV 
			AND MAU_SO_HD=@MAU_SO 
			AND KY_HIEU_FULL=@KY_HIEU 
			AND IS_PHAT_HANH=1 
			AND ISNULL(SU_DUNG_DEN_NGAY, NGAY_BAT_DAU_SU_DUNG)<= @NGAY_HOA_DON and isnull(SU_DUNG_DEN_SO,0)<DEN_SO
	
	IF @SO_HOA_DON IS NULL
		BEGIN
		   ROLLBACK TRAN TRAN_CAP_SO_HD
			SELECT (N'Ngày bắt đầu sử dụng lớn hơn ngày hóa đơn hoặc hết số hóa đơn') AS MSG, 0 AS TRANG_THAI			
			RETURN 
		END

		-- select @IS_TT68 = IS_TT68 from DPHATHANH_KHOITAO where [DPHATHANH_KHOITAOID]=@DPHATHANH_KHOITAOID
			-- 1. Cập nhật DHOADON để cấp SO_HOA_DON
			UPDATE DHOADON 
			SET 
				SO_HOA_DON= @SO_HOA_DON+1,
				MAU_SO=@MAU_SO,
				KY_HIEU=@KY_HIEU,
				DPHATHANH_KHOITAOID=@DPHATHANH_KHOITAOID,
				GUID_DPHATHANH_KHOITAO=@GUID_DPHATHANH_KHOITAO,
				NGAY_SUA=GETDATE(),
				NGAY_IN = NGAY_HOA_DON,
				TRANG_THAI_HOA_DON = 2,--trang thai hoa don da cap so, chua ky
				IS_TT68 =3
			WHERE DHOADONID=@DHOADONID
			-- 2. Cập nhật ngày sử dụng và số hóa đơn cuối
			UPDATE DPHATHANH_CHITIET
			SET
				SU_DUNG_DEN_SO=isnull(SU_DUNG_DEN_SO,0)+1,
				SU_DUNG_DEN_NGAY= convert(varchar,@NGAY_HOA_DON,112)
			WHERE DPHATHANH_CHITIETID=@DPHATHANH_CHITIETID
			
			-- 3. Cập nhật bản ghi hóa đơn gốc, trường hợp điều chỉnh | thay thế
			IF ISNULL(@DHOADONID_GOC,0)>0 and left(@KY_HIEU,1)<>'C'
			BEGIN
				Declare @TrangThaiDC int,@TrangThai_Goc int
				set @TrangThai_Goc = 0
				Set @TrangThaiDC =1
				If @TRANG_THAI =3
				  begin
				     Set @TrangThaiDC =2
					 set @TrangThai_Goc =-2
				   end
				Else If @TRANG_THAI =5
				   Set @TrangThaiDC =4
				Update DHOADON Set TRANG_THAI_DIEU_CHINH=@TrangThaiDC,TRANG_THAI=@TrangThai_Goc Where DHOADONID=@DHOADONID_GOC
			END
			-- insert log cap so
	
			insert into [dbo].[DHOADON_CAPSO_LOG]([DHOADONID],MAU_SO,[KY_HIEU],[BEN_BAN_MA_DV],[SO_HOA_DON],[NGAY_HOA_DON],[NGAY_CAP])
			values(@DHOADONID,@MAU_SO,@KY_HIEU,@MA_DV, @SO_HOA_DON+1,@NGAY_HOA_DON,getdate())
			-- 4. Get Result
			COMMIT TRAN TRAN_CAP_SO_HD
			SELECT  CONVERT(NVARCHAR(10), @SO_HOA_DON+1)  AS  MSG, 1 AS TRANG_THAI
		
END TRY
BEGIN CATCH
  if @@TRANCOUNT >0
	ROLLBACK TRAN TRAN_CAP_SO_HD
   SELECT ERROR_MESSAGE() AS MSG,0 AS TRANG_THAI
END CATCH
END

GO
/****** Object:  StoredProcedure [dbo].[SP_EXCEL_IMPORT]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 CREATE PROCEDURE [dbo].[SP_EXCEL_IMPORT]
	-- Add the parameters for the stored procedure here
	@LOGID int,
	@MaDV varchar(50),
	@isXuatHD int,
	@DoDaiMaNhan int,
	@Message nvarchar(500) output,
	@CountSuccess int output,
	@CountError int output,
	@MA_LOAI  nvarchar(250) 
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.

	SET NOCOUNT ON;
	set @CountSuccess =0
	set @CountError=0 
	set @Message =''
	--print 'start'
    -- Insert statements for procedure here
	if (select count(*) from sys.tables where name ='EXCEL_TEM_DHOADON')=0
		begin
			set @Message=N'Không tồn tại bảng EXCEL_TEM_DHOADON'
			return
		end
		 if  not exists (select *  from sys.all_columns where name='TONG_TIEN_THUE_8' and object_id= OBJECT_ID('EXCEL_TEM_DHOADON')) 
			alter table [dbo].[EXCEL_TEM_DHOADON]
			add   
				[TONG_TIEN_THUE_8] numeric(23,4) NULL,[TONG_TIEN_HANG_8] numeric(23,4) NULL,TONG_THANH_TOAN_8 numeric(23,4) NULL
				--Kiem tra gia tri
		
	 --declare @LT_Thue int
	 --select @LT_Thue = GiaTri from  [dbo].[DLAM_TRON_CHI_TIET] where  Ten='LAM_TRON_TIEN_THUE_GTGT_VND' and  GiaTri>0
	
	 -- set @LT_Thue = ISNULL(@LT_Thue,0); 
	 begin tran IMPORT_HOA_DON_VA_CAP_SO
	 ---print 'IMPORT_HOA_DON_VA_CAP_SO'
	 begin try
		begin 
			declare @SQLTbale as nvarchar(500),@sqlField as varchar(8000),@sqlFieldInsert as varchar(8000),@Field varchar(100),@sqlHD varchar(8000)
			set @sqlField ='';set @sqlFieldInsert=''
	 --Cap nhat thong tin ben ban va khoi tao
	    update EXCEL_TEM_DHOADON_HANG set VAT_GOC = ab.TRANG_THAI_DIEU_CHINH from EXCEL_TEM_DHOADON ab where EXCEL_TEM_DHOADON_HANG.GUID_DHOADON=ab.GUID_DHOADON and ab.IMPORT_LOGID=@LOGID
	 --tinh tooan tong tien
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_KHONG_KE_KHAI_THUE = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_THANH_TOAN_KHONG_KE_KHAI_THUE =th.THANH_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1) * case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end )THANH_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=-2  and IMPORT_LOGID=@LOGID  group by GUID_DHOADON ) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	--khong chiu thue
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_KHONG_CHIU_THUE = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_THANH_TOAN_KHONG_CHIU_THUE =th.THANH_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end )THANH_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=-1  and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	--thue =0
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_0 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_THANH_TOAN_0 =th.THANH_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN * ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=0 and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	 	--thue =5
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_5 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_5 = round(th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.05,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_5= th.THANH_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) + round(th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.05,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN   from EXCEL_TEM_DHOADON_HANG where VAT=5   and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	 	 	--thue =10
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10 =round(th.VAT_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.1,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_10= th.THANH_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) +  round( th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.1,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=10  and isnull(IS_GIAM_TRU_30,0)=0  and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
		 	 	--thue =8
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10 = isnull(EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10,0) + th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10 = isnull(EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10,0) + round(th.VAT_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_10= isnull(EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10,0) + th.THANH_TIEN + isnull(EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10,0)- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) +  round( th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=10  and isnull(IS_GIAM_TRU_30,0)>0  and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	       --thue 8 dong
	
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_8 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_8 = round(th.VAT_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_8= th.THANH_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) +  round( th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=8   and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	    
			--tinh tong tien
			update EXCEL_TEM_DHOADON set TONG_TIEN_HANG = isnull(TONG_TIEN_HANG_KHONG_KE_KHAI_THUE,0) +  isnull(TONG_TIEN_HANG_KHONG_CHIU_THUE,0) +  isnull(TONG_TIEN_HANG_0,0) +  isnull(TONG_TIEN_HANG_5,0) +  isnull(TONG_TIEN_HANG_10,0)+isnull(TONG_TIEN_HANG_8,0),
			TONG_TIEN_THUE =  isnull(TONG_TIEN_THUE_5,0) +  isnull(TONG_TIEN_THUE_10,0) + isnull(TONG_TIEN_THUE_8,0) , TONG_THANH_TOAN=  isnull(TONG_THANH_TOAN_KHONG_KE_KHAI_THUE,0) +  isnull(TONG_THANH_TOAN_KHONG_CHIU_THUE,0) +  isnull(TONG_THANH_TOAN_0,0) +  isnull(TONG_THANH_TOAN_5,0) +  isnull(TONG_THANH_TOAN_10,0)  +  isnull(TONG_THANH_TOAN_8,0) ,
			TRANG_THAI=0,TRANG_THAI_DIEU_CHINH=isnull(TRANG_THAI_DIEU_CHINH,1), NGAY_TAO=GETDATE() where IMPORT_LOGID =@LOGID
	 --khoi tao
			update EXCEL_TEM_DHOADON set  TONG_THANH_TOAN_BANG_CHU = [dbo].[Num2Text](TONG_THANH_TOAN) +N' đồng' where IMPORT_LOGID =@LOGID
	
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.GUID_DPHATHANH_KHOITAO =a.GUID_DPHATHANH_KHOITAO,EXCEL_TEM_DHOADON.DPHATHANH_KHOITAOID=a.DPHATHANH_KHOITAOID from DPHATHANH_CHITIET a where  EXCEL_TEM_DHOADON.MAU_SO=a.MAU_SO_HD and EXCEL_TEM_DHOADON.KY_HIEU=a.KY_HIEU_FULL and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID and a.MA_DV=@MaDV
	--hoa don
			update EXCEL_TEM_DHOADON set TRANG_THAI_PHE_DUYET = 2 from DHOADON a  where EXCEL_TEM_DHOADON.MA_NHAN_HOA_DON = a.MA_NHAN_HOA_DON and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID
		----
	update EXCEL_TEM_DHOADON set DHOADONID_GOC = a.DHOADONID from DHOADON a  where EXCEL_TEM_DHOADON.SO_HOA_DON_GOC = a.SO_HOA_DON and EXCEL_TEM_DHOADON.MAU_SO_GOC = a.MAU_SO and EXCEL_TEM_DHOADON.KY_HIEU_GOC = a.KY_HIEU and EXCEL_TEM_DHOADON.TRANG_THAI_DIEU_CHINH in(3,5)   and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID
		----
	--dhoadon hang
	 update EXCEL_TEM_DHOADON_HANG set TEN_DVT = sDVT.TEN_DVT  from SDVT where EXCEL_TEM_DHOADON_HANG.MA_DVT = sDVT.MA_DVT and EXCEL_TEM_DHOADON_HANG.IMPORT_LOGID = @LOGID
		end
		---print 'end update'
	declare @isOK as int 
	select @isOK = count(*) from EXCEL_TEM_DHOADON where TRANG_THAI_PHE_DUYET=2 and IMPORT_LOGID =@LOGID
	--print @isOK
	begin 
		while @isOK>0
			begin
				 update  EXCEL_TEM_DHOADON set MA_NHAN_HOA_DON = RIGHT(newID(),@DoDaiMaNhan),TRANG_THAI_PHE_DUYET=3 where TRANG_THAI_PHE_DUYET=2 and IMPORT_LOGID =@LOGID
				 update EXCEL_TEM_DHOADON set TRANG_THAI_PHE_DUYET = 2 from DHOADON a  where EXCEL_TEM_DHOADON.MA_NHAN_HOA_DON = a.MA_NHAN_HOA_DON and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID and EXCEL_TEM_DHOADON.TRANG_THAI_PHE_DUYET=3
				  select @isOK = count(*) from EXCEL_TEM_DHOADON where TRANG_THAI_PHE_DUYET=2 and IMPORT_LOGID =@LOGID
			end
	end
	declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=0 and isnull(IS_KEY,0)=0  and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	 --- check lại danh sách cấu hình thiếu các tham số bắt buộc
	 select  MA_TIEU_CHI into #tempImport From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=0 and isnull(IS_KEY,0)=0  and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	 
	 declare @IndexSOHD int
	 declare @IndexMS int
	 declare @IndexKH int
	 select @IndexSOHD = count(*) from #tempImport where MA_TIEU_CHI='SO_HOA_DON'
	 select @IndexMS = count(*) from #tempImport where MA_TIEU_CHI='MAU_SO'
	 select @IndexKH = count(*) from #tempImport where MA_TIEU_CHI='KY_HIEU'
	 --print @IndexSOHD
	deallocate _CursorField
		set @sqlField =@sqlField + 'GUID_DHOADON'
	   if CHARINDEX('BEN_BAN_MA_DV',@sqlField)<=0
	    begin
		   set @sqlField =@sqlField + ',BEN_BAN_MA_DV'
		end
	   if CHARINDEX('BEN_BAN_TEN_DV',@sqlField)<=0
	    begin
		   set @sqlField =@sqlField + ',BEN_BAN_TEN_DV,BEN_BAN_DIA_CHI,BEN_BAN_DIEN_THOAI,BEN_BAN_FAX,BEN_BAN_NGAN_HANG_TAI_KHOAN,BEN_BAN_NGAN_HANG_TEN'
		end
       --if CHARINDEX('MAU_SO',@sqlField)<=0
	   if @IndexMS=0
	    begin
		   set @sqlField =@sqlField + ',MAU_SO'
		end
	  if @IndexKH=0
	    begin
		   set @sqlField =@sqlField + ',KY_HIEU'
		end
		---print CHARINDEX('SO_HOA_DON',@sqlField)
		--if CHARINDEX('SO_HOA_DON',@sqlField)<=0
		if @IndexSOHD=0
		begin
		   set @sqlField =@sqlField + ',SO_HOA_DON'
		end
			if CHARINDEX('TRANG_THAI_DIEU_CHINH',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',TRANG_THAI_DIEU_CHINH'
		end
		if CHARINDEX('DHOADONID_GOC',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',DHOADONID_GOC'
		end
		--print @sqlField
		if CHARINDEX('MA_HINHTHUCTT',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',MA_HINHTHUCTT'
		end
		if CHARINDEX('HINH_THUC_TT',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',HINH_THUC_TT'		 
		end
	if CHARINDEX('IS_TT68',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',IS_TT68'		 
		end
		set @sqlField =@sqlField +',MA_LOAI_HOA_DON,HINH_THUC_IN,TONG_TIEN_HANG_KHONG_KE_KHAI_THUE,TONG_THANH_TOAN_KHONG_KE_KHAI_THUE,TONG_TIEN_HANG_KHONG_CHIU_THUE,TONG_THANH_TOAN_KHONG_CHIU_THUE'
		+ ',TONG_TIEN_HANG_0,TONG_THANH_TOAN_0,TONG_TIEN_HANG_5,TONG_TIEN_THUE_5,TONG_THANH_TOAN_5,TONG_TIEN_HANG_10,TONG_TIEN_THUE_10,TONG_THANH_TOAN_10'
		+ ',TONG_TIEN_HANG,TONG_TIEN_THUE,TONG_THANH_TOAN,TONG_THANH_TOAN_BANG_CHU,NGAY_TAO,NGUOI_TAO,MA_NHAN_HOA_DON,GUID_DPHATHANH_KHOITAO,DPHATHANH_KHOITAOID'
		set @sqlHD = ' insert into DHOADON(' + @sqlField +') select ' + @sqlField + ' from EXCEL_TEM_DHOADON where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10)) + ' order by DHOADONID'
	   --print @sqlField
	   --print @sqlHD
		exec(@sqlHD)
		if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	--- print 'exec DHOADON finish'
	--hoa don ex
	set @sqlField =''
	 declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=1 and isnull(IS_KEY,0)=0  and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	deallocate _CursorField
	if len(@sqlField)>0
	begin
		 set @sqlField =@sqlField + 'GUID_DHOADON'	
		 set @sqlHD = ' insert into DHOADON_EXTENSION(DHOADONID,' + @sqlField +') select 0 as DHOADONID, ' + @sqlField + ' from EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10))
		 exec(@sqlHD)
		 if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
		--print @sqlHD
		 update DHOADON_EXTENSION set DHOADON_EXTENSION.DHOADONID =a.DHOADONID from DHOADON a where DHOADON_EXTENSION.GUID_DHOADON = a.GUID_DHOADON and isnull(DHOADON_EXTENSION.DHOADONID,0)=0
		if @@ERROR>0
			  begin
					rollback tran IMPORT_HOA_DON_VA_CAP_SO
						delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
					set @Message=  ERRor_message()
			  end
	end
	-- dhoadonVat ex
	insert into [dbo].[DHOADON_VAT_EXTENSION]([GUID_DHOADON],DHOADONID,[VAT],[TONG_TIEN_HANG],[TONG_TIEN_THUE],[TONG_THANH_TOAN]) select GUID_DHOADON,0 ,8,[TONG_TIEN_HANG_8],[TONG_TIEN_THUE_8] ,TONG_THANH_TOAN_8 from EXCEL_TEM_DHOADON where IMPORT_LOGID  = @LOGID and (isnull([TONG_TIEN_HANG_8],0)<>0  or isnull(TONG_TIEN_THUE_8,0)<>0 or isnull(TONG_THANH_TOAN_8,0)<>0)
	if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	update [DHOADON_VAT_EXTENSION] set [DHOADON_VAT_EXTENSION].DHOADONID =a.DHOADONID from DHOADON a where [DHOADON_VAT_EXTENSION].GUID_DHOADON = a.GUID_DHOADON and isnull([DHOADON_VAT_EXTENSION].DHOADONID,0)=0
	if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	--hoa don hang
	set @sqlField =''
	 declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON_HANG' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=0 and isnull(IS_KEY,0)=0 and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	deallocate _CursorField
		 set @sqlField =@sqlField + 'GUID_DHOADON,GUID_DHOADON_HANG'	
		 if CHARINDEX('STT',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',STT'
		end
		if CHARINDEX('IS_GIAM_TRU_30',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',IS_GIAM_TRU_30'
		end
			
		 set @sqlHD = ' insert into DHOADON_HANG(' + @sqlField +') select ' + @sqlField + ' from EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10))
	    	exec(@sqlHD)
			if @@ERROR>0
			  begin
					rollback tran IMPORT_HOA_DON_VA_CAP_SO
						delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
					set @Message=  ERRor_message()
			  end
		--print @sqlHD
		 update DHOADON_HANG set DHOADON_HANG.DHOADONID =a.DHOADONID from DHOADON a where DHOADON_HANG.GUID_DHOADON = a.GUID_DHOADON and isnull(DHOADON_HANG.DHOADONID,0)=0
		 if @@ERROR>0
			  begin
					rollback tran IMPORT_HOA_DON_VA_CAP_SO
						delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
					set @Message=  ERRor_message()
			  end
		--hang EX
      set @sqlField =''
	 declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON_HANG' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=1 and isnull(IS_KEY,0)=0 and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	deallocate _CursorField
	if len(@sqlField)>0
	begin
		 set @sqlField =@sqlField + 'GUID_DHOADON_HANG'	
		 set @sqlHD = ' insert into DHOADON_HANG_EXTENSION(' + @sqlField +') select ' + @sqlField + ' from EXCEL_TEM_DHOADON_HANG_EXTENSION where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10))
		 exec(@sqlHD)
		if @@ERROR>0
			  begin
					rollback tran IMPORT_HOA_DON_VA_CAP_SO
						delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
					set @Message=  ERRor_message()
			  end
	--	print @sqlHD
		  update DHOADON_HANG_EXTENSION set DHOADON_HANG_EXTENSION.DHOADONID =a.DHOADONID,DHOADON_HANG_EXTENSION.DHOADON_HANGID=a.DHOADON_HANGID from DHOADON_HANG a where DHOADON_HANG_EXTENSION.GUID_DHOADON_HANG = a.GUID_DHOADON_HANG and isnull(DHOADON_HANG_EXTENSION.DHOADONID,0)=0
		  if @@ERROR>0
			  begin
					rollback tran IMPORT_HOA_DON_VA_CAP_SO
						delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
						delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
					set @Message=  ERRor_message()
			  end
	end
	-- xyu ly xuat so

	--if @isXuatHD =1
	--begin	    
	--   declare @MauSo nvarchar(20), @KyHieu nvarchar(20),@MinNgayHD as datetime,@MinHoaDon as numeric(18,0),@CountHD int,@CountPH int
	-- 	create table #TemMauSo(BEN_BAN_MA_DV nvarchar(20),MAU_SO nvarchar(20),KY_HIEU nvarchar(20)  )
	--  create table #TemData(GUID_DHOADON nvarchar(50),NGAY_HOA_DON  datetime,tempID int,SO_HOA_DON nvarchar(20),MAU_SO varchar(20),KY_HIEU varchar(20))

	--	insert into #TemMauSo	select distinct MA_DV,MAU_SO_HD,KY_HIEU_FULL  FROM DPHATHANH_CHITIET Where 
	--	MA_DV = @MaDV  
	--	AND  KY_HIEU_FULL in (select DISTINCT KY_HIEU from EXCEL_TEM_DHOADON)
	--	AND MAU_SO_HD in (select DISTINCT MAU_SO from EXCEL_TEM_DHOADON)
		
	--	declare _CursorField cursor for select  MAU_SO,KY_HIEU From #TemMauSo 
	--	open _CursorField
	--	fetch next from _CursorField into @MauSo,@KyHieu
	--	while @@FETCH_STATUS=0
	--		begin
	--		 select @MinNgayHD = min(NGAY_HOA_DON) from  EXCEL_TEM_DHOADON where MAU_SO=@MauSo and Ky_Hieu=@KyHieu and IMPORT_LOGID=@LOGID
	--		  select @CountHD = count(*) from EXCEL_TEM_DHOADON where MAU_SO=@MauSo and Ky_Hieu=@KyHieu and IMPORT_LOGID=@LOGID
	--		 --kiem tra backdate
	--		 if (select count(*) from DPHATHANH_HOADON where NGAY_SU_DUNG> @MinNgayHD and MAU_SO=@MauSo and Ky_Hieu=@KyHieu and MA_DV =@MaDV and  IS_SU_DUNG = 1 AND (TRANG_THAI = 0 or TRANG_THAI is null))>0
	--		  begin
	--		  	 rollback tran IMPORT_HOA_DON_VA_CAP_SO
	--			  set @Message = @Message + N' dải số ' + @MauSo + '-' +  @KyHieu +N' đã có số hóa đơn lớn hơn ngày: ' + convert(varchar(10),@MinNgayHD, 103)    
	--		     select @CountError = count(*) from EXCEL_TEM_DHOADON where  IMPORT_LOGID=@LOGID
	--		    delete EXCEL_TEM_DHOADON where @LOGID = @LOGID
	--			  delete EXCEL_TEM_DHOADON_EXTENSION where @LOGID = @LOGID
	--			   delete EXCEL_TEM_DHOADON_HANG where @LOGID = @LOGID
	--			    delete EXCEL_TEM_DHOADON_HANG where @LOGID = @LOGID
	--			 return
	--			 --fetch next from _CursorField into @MauSo,@KyHieu
	--		  --   continue 
	--		  end
		
	--		 -- --kiem tra du so khong
	--		   select @CountPH = count(*),@MinHoaDon = min( SO_HOA_DON)  from DPHATHANH_HOADON with(xlock,rowlock) where MAU_SO=@MauSo and Ky_Hieu=@KyHieu and MA_DV =@MaDV and  isnull(IS_SU_DUNG,0) = 0 
			  
	--		   if @CountPH<@CountHD
	--		    begin
	--			      rollback tran IMPORT_HOA_DON_VA_CAP_SO
	--				   set @Message = @Message + N' dải số ' + @MauSo + '-' +  @KyHieu +N' có số lượng hóa đơn còn lại: ' + cast(@CountPH as varchar(8)) + N' nhỏ hơn số lượng cần cấp số : '  +  cast(@CountHD as varchar(8))    
	--		        select @CountError = count(*) from EXCEL_TEM_DHOADON where  IMPORT_LOGID=@LOGID
	--					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
	--			  delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
	--			   delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
	--			    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID		 
	--		    	 return
	--		       --fetch next from _CursorField into @MauSo,@KyHieu
	--		       --continue 
	--		    end
	--		--	print 'sdfdsfsdfsdf'
				
	--			delete #TemData
	--			 insert into #TemData(GUID_DHOADON, NGAY_HOA_DON,MAU_SO,KY_HIEU, tempID) select GUID_DHOADON,NGAY_HOA_DON,MAU_SO,KY_HIEU, ROW_NUMBER() OVER(ORDER BY NGAY_HOA_DON ASC,NGAY_TAO asc) AS tempID from  EXCEL_TEM_DHOADON where MAU_SO=@MauSo and Ky_Hieu=@KyHieu and IMPORT_LOGID=@LOGID
	--			 set @MinHoaDon =@MinHoaDon-1

	--			UPDATE #TemData set SO_HOA_DON = dbo.fnNumpadLeft( @MinHoaDon + tempID,7) 
	--			select * from #TemData
	--	         update DHOADON set DHOADON.SO_HOA_DON =a.SO_HOA_DON,DHOADON.DPHATHANH_KHOITAOID=c.DPHATHANH_KHOITAOID,DHOADON.GUID_DPHATHANH_KHOITAO=c.GUID_DPHATHANH_KHOITAO,DHOADON.DPHATHANH_HOADONID=c.DPHATHANH_HOADONID,DHOADON.GUID_DPHATHANH_HOADON=c.GUID_DPHATHANH_HOADON,DHOADON.TRANG_THAI_HOA_DON=2 from #TemData a 
	--			 inner join DPHATHANH_HOADON c on a.MAU_SO=c.MAU_SO and a.KY_HIEU=c.KY_HIEU and a.SO_HOA_DON=c.SO_HOA_DON where DHOADON.GUID_DHOADON=a.GUID_DHOADON and c.MA_DV=@MaDV
	--			 update DPHATHANH_HOADON set IS_SU_DUNG = 1, NGAY_SU_DUNG = a.NGAY_HOA_DON from #TemData a where DPHATHANH_HOADON.MAU_SO=a.MAU_SO and DPHATHANH_HOADON.KY_HIEU=a.KY_HIEU and DPHATHANH_HOADON.SO_HOA_DON=a.SO_HOA_DON and DPHATHANH_HOADON.MA_DV =@MaDV
	--		    set @CountSuccess = @CountSuccess + @CountHD
	--			fetch next from _CursorField into @MauSo,@KyHieu
	--		end
	--	close _CursorField
	--	deallocate _CursorField
	--	drop table #TemData;drop table #TemMauSo
	--end
	 commit tran IMPORT_HOA_DON_VA_CAP_SO
 end try
	 begin catch
	   rollback tran IMPORT_HOA_DON_VA_CAP_SO
	    set @Message=  ERRor_message()
		select @CountError = count(*) from EXCEL_TEM_DHOADON where  IMPORT_LOGID=@LOGID
		print  @Message
	 end catch
	  if @isXuatHD=0
	    select @CountSuccess = count(*) from EXCEL_TEM_DHOADON where  IMPORT_LOGID=@LOGID
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
END

GO
/****** Object:  StoredProcedure [dbo].[SP_EXCEL_IMPORT_SuDungSoHD]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 CREATE PROCEDURE [dbo].[SP_EXCEL_IMPORT_SuDungSoHD]
	-- Add the parameters for the stored procedure here
	@LOGID int,
	@MaDV varchar(50),
	@isXuatHD int,
	@DoDaiMaNhan int,
	@Message nvarchar(500) output,
	@CountSuccess int output,
	@CountError int output,
	@MA_LOAI  nvarchar(250) 
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.

	SET NOCOUNT ON;
	set @CountSuccess =0
	set @CountError=0 
	set @Message =''
	--print 'start'
    -- Insert statements for procedure here
	if (select count(*) from sys.tables where name ='EXCEL_TEM_DHOADON')=0
		begin
			set @Message=N'Không tồn tại bảng EXCEL_TEM_DHOADON'
			return
		end
		 if  not exists (select *  from sys.all_columns where name='TONG_TIEN_THUE_8' and object_id= OBJECT_ID('EXCEL_TEM_DHOADON')) 
			alter table [dbo].[EXCEL_TEM_DHOADON]
			add   
				[TONG_TIEN_THUE_8] numeric(23,4) NULL,[TONG_TIEN_HANG_8] numeric(23,4) NULL,TONG_THANH_TOAN_8 numeric(23,4) NULL
				--Kiem tra gia tri
          
		  update EXCEL_TEM_DHOADON set TRANG_THAI_DIEU_CHINH=7 from DHOADON a where EXCEL_TEM_DHOADON.BEN_BAN_MA_DV=a.BEN_BAN_MA_DV and EXCEL_TEM_DHOADON.MAU_SO=a.MAU_SO
		  and EXCEL_TEM_DHOADON.KY_HIEU=a.KY_HIEU and EXCEL_TEM_DHOADON.SO_HOA_DON= a.SO_HOA_DON and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID

		   insert into [dbo].[EXCEL_TEM_LOG]([IMPORT_LOGID],[SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],[MO_TA],GUID_DHOADON)
			  select [IMPORT_LOGID],[SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],N'Đã có số hóa đơn trong hệ thống',GUID_DHOADON from  [EXCEL_TEM_DHOADON] a  where [IMPORT_LOGID] =@LOGID  and TRANG_THAI_DIEU_CHINH=7
			 if (select count(*) from [EXCEL_TEM_LOG] where [IMPORT_LOGID] = @LOGID)>0
				begin
				    set  @Message =N'Đã tồn tại hóa đơn có số như file cần import'
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
				   delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
				   delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID	
					set @CountError =-1
					return	 
				end
				---check thung lo cho

				declare @MauSo nvarchar(5),@KyHieu varchar(20),@NgayHD datetime,@maxHD_Ngay numeric(18,0),@MinNgayHD datetime,@MinHD_ngay numeric(18,0),@MinHDExcel  numeric(18,0),@MinNgayHD_HT datetime,@Count_1 int, @count_2 int
				select @MinNgayHD = min(ngay_hoa_don),@MinHDExcel = min(cast(So_hoa_Don as decimal(9,0))) from EXCEL_TEM_DHOADON where IMPORT_LOGID =@LOGID 
				
				 select @MinNgayHD_HT = max(ngay_hoa_Don) from DHOADON where   BEN_BAN_MA_DV=@MaDV and cast(So_hoa_Don as decimal(9,0))<= @MinHDExcel and isnull(SO_HOA_DON,'0000000')<>'0000000' and ky_hieu in(select  distinct KY_HIEU from EXCEL_TEM_DHOADON where  EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID)
				 if @MinNgayHD_HT<@MinNgayHD
				   set @MinNgayHD = @MinNgayHD_HT
				  

				if OBJECT_ID('tempdb..#TEMDATA') is not null drop table #TEMDATA;
				select [SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],BEN_BAN_MA_DV into #TEMDATA from DHOADON where NGAY_HOA_DON>=@MinNgayHD and BEN_BAN_MA_DV=@MaDV and isnull(SO_HOA_DON,'0000000')<>'0000000'
			
				declare _CursorField cursor for select  distinct MAU_SO,KY_HIEU from EXCEL_TEM_DHOADON where  EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID
				open _CursorField
				fetch next from _CursorField into @MauSo,@KyHieu
				while @@FETCH_STATUS=0
				begin
				    
						declare _CursorNgayHd cursor for select  distinct NGAY_HOA_DON from EXCEL_TEM_DHOADON where  IMPORT_LOGID =@LOGID and MAU_SO=@MauSo and KY_HIEU=@KyHieu order by NGAY_HOA_DON
						open _CursorNgayHd
						fetch next from _CursorNgayHd into @NgayHD
						while @@FETCH_STATUS=0
						begin
							set @maxHD_Ngay =0;set @Count_1=0;set @Count_2=0;set @MinHD_ngay=0
							select @maxHD_Ngay = max(cast(so_hoa_don as int)) from  EXCEL_TEM_DHOADON where NGAY_HOA_DON =@NgayHD and IMPORT_LOGID =@LOGID and MAU_SO=@MauSo and KY_HIEU=@KyHieu 
						   select @Count_1 = min(cast(so_hoa_don as int)) from #TEMDATA where NGAY_HOA_DON>@NgayHD and MAU_SO=@MauSo and KY_HIEU=@KyHieu  and cast(so_hoa_don as int)<@maxHD_Ngay
						
							if isnull(@Count_1,0)>0 
							 begin
								  insert into [dbo].[EXCEL_TEM_LOG]([IMPORT_LOGID],[SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],[MO_TA],GUID_DHOADON)
								  select [IMPORT_LOGID],[SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],N'Không thỏa mãn điều kiện xuất hóa đơn điện tử (số lơn hơn và ngày nhỏ hơn hóa đơn ' + cast(@Count_1 as varchar(10)) +N' trong hệ thống)',GUID_DHOADON from  [EXCEL_TEM_DHOADON] a  where [IMPORT_LOGID] =@LOGID  
								  and cast(so_hoa_don as int) >=isnull(@Count_1,0) and  NGAY_HOA_DON =@NgayHD and  MAU_SO=@MauSo and KY_HIEU=@KyHieu  
								
							  end
							select @MinHD_ngay = min(cast(so_hoa_don as int)) from  EXCEL_TEM_DHOADON where NGAY_HOA_DON =@NgayHD and IMPORT_LOGID =@LOGID and MAU_SO=@MauSo and KY_HIEU=@KyHieu 
								select @Count_2 = max(cast(so_hoa_don as int)) from #TEMDATA where NGAY_HOA_DON<@NgayHD and MAU_SO=@MauSo and KY_HIEU=@KyHieu  and cast(so_hoa_don as int)>@MinHD_ngay
						
							if isnull(@Count_2,0)>0 
							 begin
							
								  insert into [dbo].[EXCEL_TEM_LOG]([IMPORT_LOGID],[SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],[MO_TA],GUID_DHOADON)
								  select [IMPORT_LOGID],[SO_HOA_DON],[KY_HIEU],[MAU_SO],[NGAY_HOA_DON],[BEN_MUA_TEN_DV],[TONG_THANH_TOAN],N'Không thỏa mãn điều kiện xuất hóa đơn điện tử (số nhỏ hơn và ngày lớn hơn hóa đơn ' + cast(@Count_2 as varchar(10)) +N' trong hệ thống)',GUID_DHOADON from  [EXCEL_TEM_DHOADON] a  where [IMPORT_LOGID] =@LOGID  
								  and cast(so_hoa_don as int) <=isnull(@Count_2,0) and  NGAY_HOA_DON =@NgayHD and  MAU_SO=@MauSo and KY_HIEU=@KyHieu  
								
							  end

							fetch next from _CursorNgayHd into @NgayHD
						  end
							close _CursorNgayHd
							deallocate _CursorNgayHd
					fetch next from _CursorField into @MauSo,@KyHieu
				end
			close _CursorField
			deallocate _CursorField
		  drop table #TEMDATA

	--	  return

		   if (select count(*) from [EXCEL_TEM_LOG] where [IMPORT_LOGID] = @LOGID)>0
				begin
				    set  @Message =N'Không thỏa mãn điều kiện xuất hóa đơn điện tử'
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
				   delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
				   delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID	
					set @CountError =-1
					return	 
				end
	 --declare @LT_Thue int
	 --select @LT_Thue = GiaTri from  [dbo].[DLAM_TRON_CHI_TIET] where  Ten='LAM_TRON_TIEN_THUE_GTGT_VND' and  GiaTri>0
	
	 -- set @LT_Thue = ISNULL(@LT_Thue,0); 
	 begin tran IMPORT_HOA_DON_VA_CAP_SO
	 ---print 'IMPORT_HOA_DON_VA_CAP_SO'
	 begin try
		begin 
		 
			declare @SQLTbale as nvarchar(500),@sqlField as varchar(8000),@sqlFieldInsert as varchar(8000),@Field varchar(100),@sqlHD varchar(8000),@MinHD as int
			set @sqlField ='';set @sqlFieldInsert=''
			--khoa bang
		     select @MinHD =b.SU_DUNG_DEN_SO from  ( select min(cast(SO_HOA_DON as int))SO_HOA_DON,min(Ngay_Hoa_don)Ngay_Hoa_don,MAU_SO,ky_HIEU,BEN_BAN_MA_DV from  EXCEL_TEM_DHOADON where IMPORT_LOGID= @LOGID  group by MAU_SO,ky_HIEU,BEN_BAN_MA_DV)  a inner join DPHATHANH_CHITIET b with(Xlock,rowlock)  on a.BEN_BAN_MA_DV=b.MA_DV and a.MAU_SO=b.MAU_SO_HD and a.KY_HIEU=b.KY_HIEU_FULL-- where
		--   a.SO_HOA_DON<=b.SU_DUNG_DEN_SO and Ngay_Hoa_don>=b.su_Dung_Den_Ngay
		 -- select @MinHD
	  --  if ISNULL(@MinHD,0)>0
			--begin
			--  rollback tran IMPORT_HOA_DON_VA_CAP_SO
			--    set  @Message =N'Không thỏa mãn điều kiện xuất hóa đơn điện tử'
			--		--delete EXCEL_TEM_DHOADON where @LOGID = @LOGID
			--	 --  delete EXCEL_TEM_DHOADON_EXTENSION where @LOGID = @LOGID
			--	 --  delete EXCEL_TEM_DHOADON_HANG where @LOGID = @LOGID
			--	 --   delete EXCEL_TEM_DHOADON_HANG where @LOGID = @LOGID	
   --                 return
			--end
	 --Cap nhat thong tin ben ban va khoi tao
	    update EXCEL_TEM_DHOADON_HANG set VAT_GOC = ab.TRANG_THAI_DIEU_CHINH from EXCEL_TEM_DHOADON ab where EXCEL_TEM_DHOADON_HANG.GUID_DHOADON=ab.GUID_DHOADON and ab.IMPORT_LOGID=@LOGID
	 --tinh tooan tong tien
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_KHONG_KE_KHAI_THUE = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_THANH_TOAN_KHONG_KE_KHAI_THUE =th.THANH_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1) * case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end )THANH_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=-2  and IMPORT_LOGID=@LOGID  group by GUID_DHOADON ) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	--khong chiu thue
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_KHONG_CHIU_THUE = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_THANH_TOAN_KHONG_CHIU_THUE =th.THANH_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end )THANH_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=-1  and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	--thue =0
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_0 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_THANH_TOAN_0 =th.THANH_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN * ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=0 and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	 	--thue =5
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_5 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_5 = round(th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.05,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_5= th.THANH_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) + round(th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.05,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN   from EXCEL_TEM_DHOADON_HANG where VAT=5   and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	 	 	 	--thue =10
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10 =round(th.VAT_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.1,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_10= th.THANH_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) +  round( th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.1,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=10  and isnull(IS_GIAM_TRU_30,0)=0  and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
		 	 	--thue =8
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10 = isnull(EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10,0) + th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10 = isnull(EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10,0) + round(th.VAT_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_10= isnull(EXCEL_TEM_DHOADON.TONG_TIEN_HANG_10,0) + th.THANH_TIEN + isnull(EXCEL_TEM_DHOADON.TONG_TIEN_THUE_10,0)- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) +  round( th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=10  and isnull(IS_GIAM_TRU_30,0)>0  and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	       --thue 8 dong
	
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.TONG_TIEN_HANG_8 = th.THANH_TIEN,EXCEL_TEM_DHOADON.TONG_TIEN_THUE_8 = round(th.VAT_TIEN- isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0),EXCEL_TEM_DHOADON.TONG_THANH_TOAN_8= th.THANH_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) +  round( th.VAT_TIEN - isnull(EXCEL_TEM_DHOADON.TONG_CHIET_KHAU,0) * 0.08,0)
			from ( select GUID_DHOADON,sum(THANH_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)THANH_TIEN, sum(VAT_TIEN* ISNULL (IS_DIEU_CHINH,1)* case when  isnull(VAT_GOC,0)=9 then 1 else  case when  isnull(TINH_CHAT,0)=3 then -1 else 1 end end)VAT_TIEN  from EXCEL_TEM_DHOADON_HANG where VAT=8   and IMPORT_LOGID=@LOGID group by GUID_DHOADON) th where EXCEL_TEM_DHOADON.GUID_DHOADON=th.GUID_DHOADON and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID
	    
			--tinh tong tien
			update EXCEL_TEM_DHOADON set TONG_TIEN_HANG = isnull(TONG_TIEN_HANG_KHONG_KE_KHAI_THUE,0) +  isnull(TONG_TIEN_HANG_KHONG_CHIU_THUE,0) +  isnull(TONG_TIEN_HANG_0,0) +  isnull(TONG_TIEN_HANG_5,0) +  isnull(TONG_TIEN_HANG_10,0)+isnull(TONG_TIEN_HANG_8,0),
			TONG_TIEN_THUE =  isnull(TONG_TIEN_THUE_5,0) +  isnull(TONG_TIEN_THUE_10,0) + isnull(TONG_TIEN_THUE_8,0) , TONG_THANH_TOAN=  isnull(TONG_THANH_TOAN_KHONG_KE_KHAI_THUE,0) +  isnull(TONG_THANH_TOAN_KHONG_CHIU_THUE,0) +  isnull(TONG_THANH_TOAN_0,0) +  isnull(TONG_THANH_TOAN_5,0) +  isnull(TONG_THANH_TOAN_10,0)  +  isnull(TONG_THANH_TOAN_8,0) ,
			TRANG_THAI=0,TRANG_THAI_DIEU_CHINH=isnull(TRANG_THAI_DIEU_CHINH,1), NGAY_TAO=GETDATE() where IMPORT_LOGID =@LOGID
	 --khoi tao
			update EXCEL_TEM_DHOADON set  TONG_THANH_TOAN_BANG_CHU = [dbo].[Num2Text](TONG_THANH_TOAN) +N' đồng' where IMPORT_LOGID =@LOGID
	
			update EXCEL_TEM_DHOADON set EXCEL_TEM_DHOADON.GUID_DPHATHANH_KHOITAO =a.GUID_DPHATHANH_KHOITAO,EXCEL_TEM_DHOADON.DPHATHANH_KHOITAOID=a.DPHATHANH_KHOITAOID from DPHATHANH_CHITIET a where  EXCEL_TEM_DHOADON.MAU_SO=a.MAU_SO_HD and EXCEL_TEM_DHOADON.KY_HIEU=a.KY_HIEU_FULL and EXCEL_TEM_DHOADON.IMPORT_LOGID=@LOGID and a.MA_DV=@MaDV
	--hoa don
			update EXCEL_TEM_DHOADON set TRANG_THAI_PHE_DUYET = 2 from DHOADON a  where EXCEL_TEM_DHOADON.MA_NHAN_HOA_DON = a.MA_NHAN_HOA_DON and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID
		----
	update EXCEL_TEM_DHOADON set DHOADONID_GOC = a.DHOADONID from DHOADON a  where EXCEL_TEM_DHOADON.SO_HOA_DON_GOC = a.SO_HOA_DON and EXCEL_TEM_DHOADON.MAU_SO_GOC = a.MAU_SO and EXCEL_TEM_DHOADON.KY_HIEU_GOC = a.KY_HIEU and EXCEL_TEM_DHOADON.TRANG_THAI_DIEU_CHINH in(3,5)   and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID
		----
	--dhoadon hang
	 update EXCEL_TEM_DHOADON_HANG set TEN_DVT = sDVT.TEN_DVT  from SDVT where EXCEL_TEM_DHOADON_HANG.MA_DVT = sDVT.MA_DVT and EXCEL_TEM_DHOADON_HANG.IMPORT_LOGID = @LOGID
		end
		---print 'end update'
	declare @isOK as int 
	select @isOK = count(*) from EXCEL_TEM_DHOADON where TRANG_THAI_PHE_DUYET=2 and IMPORT_LOGID =@LOGID
	--print @isOK
	begin 
		while @isOK>0
			begin
				 update  EXCEL_TEM_DHOADON set MA_NHAN_HOA_DON = RIGHT(newID(),@DoDaiMaNhan),TRANG_THAI_PHE_DUYET=3 where TRANG_THAI_PHE_DUYET=2 and IMPORT_LOGID =@LOGID
				 update EXCEL_TEM_DHOADON set TRANG_THAI_PHE_DUYET = 2 from DHOADON a  where EXCEL_TEM_DHOADON.MA_NHAN_HOA_DON = a.MA_NHAN_HOA_DON and EXCEL_TEM_DHOADON.IMPORT_LOGID =@LOGID and EXCEL_TEM_DHOADON.TRANG_THAI_PHE_DUYET=3
				  select @isOK = count(*) from EXCEL_TEM_DHOADON where TRANG_THAI_PHE_DUYET=2 and IMPORT_LOGID =@LOGID
			end
	end
	declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=0 and isnull(IS_KEY,0)=0  and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	 --- check lại danh sách cấu hình thiếu các tham số bắt buộc
	 select  MA_TIEU_CHI into #tempImport From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=0 and isnull(IS_KEY,0)=0  and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	 
	 declare @IndexSOHD int
	 declare @IndexMS int
	 declare @IndexKH int
	 select @IndexSOHD = count(*) from #tempImport where MA_TIEU_CHI='SO_HOA_DON'
	 select @IndexMS = count(*) from #tempImport where MA_TIEU_CHI='MAU_SO'
	 select @IndexKH = count(*) from #tempImport where MA_TIEU_CHI='KY_HIEU'
	 --print @IndexSOHD
	deallocate _CursorField
		set @sqlField =@sqlField + 'GUID_DHOADON'
	   if CHARINDEX('BEN_BAN_MA_DV',@sqlField)<=0
	    begin
		   set @sqlField =@sqlField + ',BEN_BAN_MA_DV'
		end
	   if CHARINDEX('BEN_BAN_TEN_DV',@sqlField)<=0
	    begin
		   set @sqlField =@sqlField + ',BEN_BAN_TEN_DV,BEN_BAN_DIA_CHI,BEN_BAN_DIEN_THOAI,BEN_BAN_FAX,BEN_BAN_NGAN_HANG_TAI_KHOAN,BEN_BAN_NGAN_HANG_TEN'
		end
       --if CHARINDEX('MAU_SO',@sqlField)<=0
	   if @IndexMS=0
	    begin
		   set @sqlField =@sqlField + ',MAU_SO'
		end
	  if @IndexKH=0
	    begin
		   set @sqlField =@sqlField + ',KY_HIEU'
		end
		---print CHARINDEX('SO_HOA_DON',@sqlField)
		--if CHARINDEX('SO_HOA_DON',@sqlField)<=0
		if @IndexSOHD=0
		begin
		   set @sqlField =@sqlField + ',SO_HOA_DON'
		end
			if CHARINDEX('TRANG_THAI_DIEU_CHINH',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',TRANG_THAI_DIEU_CHINH'
		end
		if CHARINDEX('DHOADONID_GOC',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',DHOADONID_GOC'
		end
		--print @sqlField
		if CHARINDEX('MA_HINHTHUCTT',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',MA_HINHTHUCTT'
		end
		if CHARINDEX('HINH_THUC_TT',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',HINH_THUC_TT'		 
		end
	if CHARINDEX('IS_TT68',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',IS_TT68'		 
		end
		if CHARINDEX('TRANG_THAI_HOA_DON',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',TRANG_THAI_HOA_DON'		 
		end
		set @sqlField =@sqlField +',MA_LOAI_HOA_DON,HINH_THUC_IN,TONG_TIEN_HANG_KHONG_KE_KHAI_THUE,TONG_THANH_TOAN_KHONG_KE_KHAI_THUE,TONG_TIEN_HANG_KHONG_CHIU_THUE,TONG_THANH_TOAN_KHONG_CHIU_THUE'
		+ ',TONG_TIEN_HANG_0,TONG_THANH_TOAN_0,TONG_TIEN_HANG_5,TONG_TIEN_THUE_5,TONG_THANH_TOAN_5,TONG_TIEN_HANG_10,TONG_TIEN_THUE_10,TONG_THANH_TOAN_10'
		+ ',TONG_TIEN_HANG,TONG_TIEN_THUE,TONG_THANH_TOAN,TONG_THANH_TOAN_BANG_CHU,NGAY_TAO,NGUOI_TAO,MA_NHAN_HOA_DON,GUID_DPHATHANH_KHOITAO,DPHATHANH_KHOITAOID'
		set @sqlHD = ' insert into DHOADON(' + @sqlField +',IS_TIEP_HOA_DON_TRUOC) select ' + @sqlField + ',1 as IS_TIEP_HOA_DON_TRUOC from EXCEL_TEM_DHOADON where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10)) + ' order by DHOADONID'
	   --print @sqlField
	   --print @sqlHD
		exec(@sqlHD)
		if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	--- print 'exec DHOADON finish'
	--hoa don ex
	set @sqlField =''
	 declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=1 and isnull(IS_KEY,0)=0  and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	deallocate _CursorField
	if len(@sqlField)>0
	begin
		 set @sqlField =@sqlField + 'GUID_DHOADON'	
		 set @sqlHD = ' insert into DHOADON_EXTENSION(DHOADONID,' + @sqlField +') select 0 as DHOADONID, ' + @sqlField + ' from EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10))
		 exec(@sqlHD)
		 if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
		--print @sqlHD
		 update DHOADON_EXTENSION set DHOADON_EXTENSION.DHOADONID =a.DHOADONID from DHOADON a where DHOADON_EXTENSION.GUID_DHOADON = a.GUID_DHOADON and isnull(DHOADON_EXTENSION.DHOADONID,0)=0
			if @@ERROR>0
				  begin
						rollback tran IMPORT_HOA_DON_VA_CAP_SO
							delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
							delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
							delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
							delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
						set @Message=  ERRor_message()
				  end
	end
	-- dhoadonVat ex
	insert into [dbo].[DHOADON_VAT_EXTENSION]([GUID_DHOADON],DHOADONID,[VAT],[TONG_TIEN_HANG],[TONG_TIEN_THUE],[TONG_THANH_TOAN]) select GUID_DHOADON,0 ,8,[TONG_TIEN_HANG_8],[TONG_TIEN_THUE_8] ,TONG_THANH_TOAN_8 from EXCEL_TEM_DHOADON where IMPORT_LOGID  = @LOGID and (isnull([TONG_TIEN_HANG_8],0)<>0  or isnull(TONG_TIEN_THUE_8,0)<>0 or isnull(TONG_THANH_TOAN_8,0)<>0)
	if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	update [DHOADON_VAT_EXTENSION] set [DHOADON_VAT_EXTENSION].DHOADONID =a.DHOADONID from DHOADON a where [DHOADON_VAT_EXTENSION].GUID_DHOADON = a.GUID_DHOADON and isnull([DHOADON_VAT_EXTENSION].DHOADONID,0)=0
	if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	--hoa don hang
	set @sqlField =''
	 declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON_HANG' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=0 and isnull(IS_KEY,0)=0 and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	deallocate _CursorField
		 set @sqlField =@sqlField + 'GUID_DHOADON,GUID_DHOADON_HANG'	
		 if CHARINDEX('STT',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',STT'
		end
		if CHARINDEX('IS_GIAM_TRU_30',@sqlField)<=0
		begin
		   set @sqlField =@sqlField + ',IS_GIAM_TRU_30'
		end
			
		 set @sqlHD = ' insert into DHOADON_HANG(' + @sqlField +') select ' + @sqlField + ' from EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10))
		exec(@sqlHD)
		if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
		--print @sqlHD
		 update DHOADON_HANG set DHOADON_HANG.DHOADONID =a.DHOADONID from DHOADON a where DHOADON_HANG.GUID_DHOADON = a.GUID_DHOADON and isnull(DHOADON_HANG.DHOADONID,0)=0
		 if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
		--hang EX
      set @sqlField =''
	 declare _CursorField cursor for select  MA_TIEU_CHI From SCAUHINH_NHAP_DU_LIEU_EXCEL Where TEN_BANG = 'DHOADON_HANG' and MA_DV=@MaDV and  ISNULL(IS_EXTENSION,0)=1 and isnull(IS_KEY,0)=0 and isnull(IS_SU_DUNG,0)=1 and MA_LOAI=@MA_LOAI
	open _CursorField
	fetch next from _CursorField into @Field
	while @@FETCH_STATUS=0
		begin
		    set @sqlField =@sqlField  + @Field +','			    
			fetch next from _CursorField into @Field
		end
	close _CursorField
	deallocate _CursorField
	if len(@sqlField)>0
	begin
		 set @sqlField =@sqlField + 'GUID_DHOADON_HANG'	
		 set @sqlHD = ' insert into DHOADON_HANG_EXTENSION(' + @sqlField +') select ' + @sqlField + ' from EXCEL_TEM_DHOADON_HANG_EXTENSION where IMPORT_LOGID = ' + cast ( @LOGID as varchar(10))
		 exec(@sqlHD)
		 if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	--	print @sqlHD
		  update DHOADON_HANG_EXTENSION set DHOADON_HANG_EXTENSION.DHOADONID =a.DHOADONID,DHOADON_HANG_EXTENSION.DHOADON_HANGID=a.DHOADON_HANGID from DHOADON_HANG a where DHOADON_HANG_EXTENSION.GUID_DHOADON_HANG = a.GUID_DHOADON_HANG and isnull(DHOADON_HANG_EXTENSION.DHOADONID,0)=0
		  if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	end
	-- xyu ly xuat so
       update DPHATHANH_CHITIET set DPHATHANH_CHITIET.SU_DUNG_DEN_SO =hd.SO_HOA_DON from (
	  select max(cast(SO_HOA_DON as int))SO_HOA_DON,MAU_SO,ky_HIEU,BEN_BAN_MA_DV  from  EXCEL_TEM_DHOADON where IMPORT_LOGID= @LOGID  group by MAU_SO,ky_HIEU,BEN_BAN_MA_DV ) hd
			where DPHATHANH_CHITIET.MA_DV=hd.BEN_BAN_MA_DV and DPHATHANH_CHITIET.MAU_SO_HD=hd.MAU_SO and DPHATHANH_CHITIET.KY_HIEU_FULL=hd.KY_HIEU and isnull(DPHATHANH_CHITIET.SU_DUNG_DEN_SO,0)<hd.SO_HOA_DON
		if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
			--
   update DPHATHANH_CHITIET set DPHATHANH_CHITIET.SU_DUNG_DEN_NGAY =hd.NGAY_HOA_DON from (
	  select max(NGAY_HOA_DON)NGAY_HOA_DON,MAU_SO,ky_HIEU,BEN_BAN_MA_DV  from  EXCEL_TEM_DHOADON where IMPORT_LOGID= @LOGID  group by MAU_SO,ky_HIEU,BEN_BAN_MA_DV ) hd
			where DPHATHANH_CHITIET.MA_DV=hd.BEN_BAN_MA_DV and DPHATHANH_CHITIET.MAU_SO_HD=hd.MAU_SO and DPHATHANH_CHITIET.KY_HIEU_FULL=hd.KY_HIEU and ISNULL(DPHATHANH_CHITIET.SU_DUNG_DEN_NGAY,DPHATHANH_CHITIET.NGAY_BAT_DAU_SU_DUNG)<hd.NGAY_HOA_DON
	if @@ERROR>0
		  begin
		        rollback tran IMPORT_HOA_DON_VA_CAP_SO
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				set @Message=  ERRor_message()
		  end
	 commit tran IMPORT_HOA_DON_VA_CAP_SO
  end try
	 begin catch
	   rollback tran IMPORT_HOA_DON_VA_CAP_SO
	    set @Message=  ERRor_message()
		select @CountError = count(*) from EXCEL_TEM_DHOADON where  IMPORT_LOGID=@LOGID
		print  @Message
	 end catch
	  if @isXuatHD=0
	    	select @CountSuccess = count(*) from EXCEL_TEM_DHOADON where  IMPORT_LOGID=@LOGID
					delete EXCEL_TEM_DHOADON where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_EXTENSION where IMPORT_LOGID = @LOGID
					delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
				    delete EXCEL_TEM_DHOADON_HANG where IMPORT_LOGID = @LOGID
END




GO
/****** Object:  StoredProcedure [dbo].[SP_PHAN_QUYEN_NHOM_USER]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
	create PROCEDURE [dbo].[SP_PHAN_QUYEN_NHOM_USER]
	-- Add the parameters for the stored procedure here
	@SYSGROUPID int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	   declare @USERID int,@Username nvarchar(250)
	   select * into #TemGoupMenu from SYSAPP_MENU_GROUP where SYSGROUPID = @SYSGROUPID
	 	declare _CursorNhom cursor for select distinct SYSAPPUSERID,USERNAME from [dbo].[SYSAPPUSER] where [SYSGROUPID] = @SYSGROUPID
		open _CursorNhom
		fetch next from _CursorNhom into @USERID,@Username
		while @@FETCH_STATUS=0
			begin  	
			update SYSAPP_MENU_USER  set [IS_ALL] =b.[IS_ALL]
			,[IS_ACCESS]=b.[IS_ACCESS],[IS_CREATE]=b.[IS_CREATE],[IS_EDIT]=b.[IS_EDIT],[IS_DELETE]=b.[IS_DELETE],
			[IS_VIEW] =b.[IS_VIEW],[IS_PRINT]=b.[IS_PRINT],[IS_EXPORT]=b.[IS_EXPORT],[IS_IMPORT]=b.[IS_IMPORT],
			[IS_ISSUE_INVOICE]=b.[IS_ISSUE_INVOICE],[IS_PROCESS_INVOICE]=b.[IS_PROCESS_INVOICE],[IS_PROCESS_INVOICE_SPECIAL]=b.[IS_PROCESS_INVOICE_SPECIAL]
			 from #TemGoupMenu b where SYSAPP_MENU_USER.MENU_NAME =b.MENU_NAME and [USER_NAME]= @Username
			 insert into SYSAPP_MENU_USER(
			 [MENU_NAME]
      ,[USER_NAME]
      ,[IS_ALL]
      ,[IS_ACCESS]
      ,[IS_CREATE]
      ,[IS_EDIT]
      ,[IS_DELETE]
      ,[IS_VIEW]
      ,[IS_PRINT]
      ,[IS_EXPORT]
      ,[IS_IMPORT]
      ,[IS_ISSUE_INVOICE]
      ,[IS_PROCESS_INVOICE]
      ,[IS_PROCESS_INVOICE_SPECIAL] )select [MENU_NAME]
      ,@Username
      ,[IS_ALL]
      ,[IS_ACCESS]
      ,[IS_CREATE]
      ,[IS_EDIT]
      ,[IS_DELETE]
      ,[IS_VIEW]
      ,[IS_PRINT]
      ,[IS_EXPORT]
      ,[IS_IMPORT]
      ,[IS_ISSUE_INVOICE]
      ,[IS_PROCESS_INVOICE]
      ,[IS_PROCESS_INVOICE_SPECIAL] from  #TemGoupMenu     where  [MENU_NAME] not in( select [MENU_NAME] from #TemGoupMenu)
			fetch next from _CursorNhom into @USERID,@Username
			end
		close _CursorNhom
		deallocate _CursorNhom     
    
END

GO
/****** Object:  StoredProcedure [dbo].[SP_TAO_DAI_SO]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 CREATE PROCEDURE [dbo].[SP_TAO_DAI_SO] 
	-- Add the parameters for the stored procedure here
	@Nam int,
	@MA_DV varchar(20)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
 declare @MaDV varchar(20)
 
   	declare _CursorDV cursor for select distinct MA_DV from SDONVI
		open _CursorDV
		fetch next from _CursorDV into @MaDV
		while @@FETCH_STATUS=0
			begin  	
			  exec SP_TAO_DAI_SO_MaDV @Nam,@MaDV
			fetch next from _CursorDV into @MaDV
			end
		close _CursorDV
		deallocate _CursorDV     
    
END
GO
/****** Object:  StoredProcedure [dbo].[SP_TAO_DAI_SO_MaDV]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

create PROCEDURE [dbo].[SP_TAO_DAI_SO_MaDV] 
	-- Add the parameters for the stored procedure here
	@Nam int,
	@MA_DV varchar(20)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	declare @NamPH varchar(5),@NamOld varchar(5)
	declare @mauso varchar(5),@kyhieu varchar(10)
	set @NamPH = RIGHT( cast(@Nam as varchar(5)),2)
	set @NamOld =   cast(@NamPH as int) -1
	--Kiểm tra da sinh dai so chua
	BEGIN TRANSACTION -- Start the transaction..	  
	BEGIN TRY --Start the Try Block.
    if (select count(*) from DPHATHANH_CHITIET   WITH (Xlock,tablock) where NAM_PHAT_HANH =@NamPH and MA_DV=  @MA_DV and len(MAU_SO_HD)<=2 )>0
	  begin	      
		  select top 1 @mauso = MAU_SO_HD,@kyhieu=KY_HIEU_FULL from DPHATHANH_CHITIET   where NAM_PHAT_HANH =@NamOld and MA_DV=  @MA_DV and IS_PHAT_HANH=1
		  set @kyhieu= REPLACE (@kyhieu,@NamOld ,@NamPH )
		  if (select count(*) from DPHATHANH_CHITIET where NAM_PHAT_HANH =@NamPH and MA_DV=  @MA_DV and KY_HIEU_FULL=@kyhieu and MAU_SO_HD=@mauso and IS_PHAT_HANH=1 )>0
			 begin
			 if exists(select top 1 SDONVI_MA_CQT_MTTID from  SDONVI_MA_CQT_MTT where    MA_DV=@MA_DV AND NAM_PHAT_HANH=@NamOld)
			   and not exists(select top 1 SDONVI_MA_CQT_MTTID from  SDONVI_MA_CQT_MTT where    MA_DV=@MA_DV AND NAM_PHAT_HANH=@NamPH)
			    begin
				  INSERT INTO [dbo].[SDONVI_MA_CQT_MTT]
				   ([MA_DV]
				   ,[NAM_PHAT_HANH]
				   ,[MA_CQT],[MA_CN],[DAI_SO_DIEU_CHINH],[MAU_SO],[KY_HIEU])
				   select [MA_DV]
				   ,@NamPH
				   ,[MA_CQT],[MA_CN],[DAI_SO_DIEU_CHINH],[MAU_SO],[KY_HIEU]
				    from [SDONVI_MA_CQT_MTT] where    MA_DV=@MA_DV AND NAM_PHAT_HANH=@NamOld 
				end
				ROLLBACK TRAN 
			    SELECT N'Đã tự động phát hành cho năm ' + @NamPH AS MSG,1 as TRANG_THAI
				return
			 end
	  end
	
---sinh dai so

	   set @mauso ='';set @kyhieu=''

	  	declare _CursorField cursor for select distinct MAU_SO_HD,KY_HIEU_FULL from DPHATHANH_CHITIET where NAM_PHAT_HANH =@NamOld and MA_DV=  @MA_DV and IS_PHAT_HANH=1 and len(MAU_SO_HD)<=2
		open _CursorField
		fetch next from _CursorField into @mauso,@kyhieu
		while @@FETCH_STATUS=0
			begin
				insert into DPHATHANH_CHITIET([DPHATHANH_KHOITAOID]
				  ,[MA_DV]
				  ,[SO_LUONG]
				  ,[TU_SO]
				  ,[DEN_SO]
				  ,[NGAY_BAT_DAU_SU_DUNG]
				  ,[NGAY_LAP_PHIEU]
				  ,[NGAY_CHUNG_TU]
				  ,[MA_CO_QUAN_THUE]
				  ,[NGUOI_DAI_DIEN_PHAP_LUAT]
				  ,[TEN_DV_CHU_QUAN]
				  ,[MA_DV_CHU_QUAN]
				  ,[GHI_CHU]
				  ,[IS_PHAT_HANH]
				  ,[KY_HIEU_TIEN_TO]
				  ,[KY_HIEU_HAU_TO]
				  ,[KY_HIEU_FULL]
				  ,[IS_CHON]
				  ,[IS_SEND]
				  ,[MAU_SO_HD]
				  ,[IS_TT_CN]
				  ,[MA_CN]
				  ,[TEN_CN]
				  ,[GUID_DPHATHANH_KHOITAO]
				  ,[GUID_DPHATHANH_CHITIET]
				  ,[IS_DONG_BO_THAI_SON],NAM_PHAT_HANH,IS_BANG_TONG_HOP) select [DPHATHANH_KHOITAOID]
				  ,[MA_DV]
				  ,[SO_LUONG]
				  ,[TU_SO]
				  ,[DEN_SO]
				  ,cast(@Nam as varchar(5))  + '0101'
				  ,[NGAY_LAP_PHIEU]
				  ,[NGAY_CHUNG_TU]
				  ,[MA_CO_QUAN_THUE]
				  ,[NGUOI_DAI_DIEN_PHAP_LUAT]
				  ,[TEN_DV_CHU_QUAN]
				  ,[MA_DV_CHU_QUAN]
				  ,[GHI_CHU]
				  ,[IS_PHAT_HANH]
				  ,[KY_HIEU_TIEN_TO]
				  ,[KY_HIEU_HAU_TO]
				  , left([KY_HIEU_FULL],1)+ @NamPH + right([KY_HIEU_FULL],3)  as [KY_HIEU_FULL]
				  ,[IS_CHON]
				  ,[IS_SEND]
				  ,[MAU_SO_HD]
				  ,[IS_TT_CN]
				  ,[MA_CN]
				  ,[TEN_CN]
				  ,[GUID_DPHATHANH_KHOITAO]
				  , newid()
				  ,[IS_DONG_BO_THAI_SON],@NamPH,IS_BANG_TONG_HOP from  DPHATHANH_CHITIET where  MA_DV=@MA_DV 
					AND MAU_SO_HD= @mauso 
					AND KY_HIEU_FULL=@kyhieu 
					AND IS_PHAT_HANH=1  and NAM_PHAT_HANH= @NamOld
					
			 if exists(select SYSUSER_HOADONID from  SYSUSER_HOADON where    MA_DV=@MA_DV AND [MAU_SO]= @mauso AND KY_HIEU_FULL=@kyhieu)
				begin
				  insert into SYSUSER_HOADON( [UserName]
					  ,[MA_LOAI_HOA_DON]
					  ,[MAU_SO]
					  ,[KY_HIEU_FULL]
					  ,[MA_DV]
					  ,[MA_CN]
					  ,[TEN_CN]
					  ,[GHI_CHU]
					  ,[DPHATHANH_KHOITAOID]
					  ,[QUYEN]
					  ,[IS_TT68])
					  select [UserName]
					  ,[MA_LOAI_HOA_DON]
					  ,[MAU_SO]
					  ,left([KY_HIEU_FULL],1)+ @NamPH + right([KY_HIEU_FULL],3) as [KY_HIEU_FULL]
					  ,[MA_DV]
					  ,[MA_CN]
					  ,[TEN_CN]
					  ,[GHI_CHU]
					  ,[DPHATHANH_KHOITAOID]
					  ,[QUYEN]
					  ,[IS_TT68] from SYSUSER_HOADON where    MA_DV=@MA_DV AND MAU_SO= @mauso AND KY_HIEU_FULL=@kyhieu
				end	    
            --chi nhanh
				 if exists(select SCHI_NHANHID from  SCHI_NHANH where    MA_DV=@MA_DV AND MAU_SO_MAC_DINH= @mauso AND KY_HIEU_MAC_DINH=@kyhieu)
				  begin
				     update SCHI_NHANH set KY_HIEU_MAC_DINH = left(KY_HIEU_MAC_DINH,1)+ @NamPH + right(KY_HIEU_MAC_DINH,3)  where  MA_DV=@MA_DV AND MAU_SO_MAC_DINH= @mauso AND KY_HIEU_MAC_DINH=@kyhieu
				  end
				
				fetch next from _CursorField into @mauso,@kyhieu
			end
		close _CursorField
		deallocate _CursorField   
		------
		if exists(select top 1 SDONVI_MA_CQT_MTTID from  SDONVI_MA_CQT_MTT where    MA_DV=@MA_DV AND NAM_PHAT_HANH=@NamOld)
		  and not exists(select top 1 SDONVI_MA_CQT_MTTID from  SDONVI_MA_CQT_MTT where    MA_DV=@MA_DV AND NAM_PHAT_HANH=@NamPH)
			    begin
				  INSERT INTO [dbo].[SDONVI_MA_CQT_MTT]
				   ([MA_DV]
				   ,[NAM_PHAT_HANH]
				   ,[MA_CQT],[MA_CN],[DAI_SO_DIEU_CHINH],[MAU_SO],[KY_HIEU],TU_SO,DEN_SO)
				   select distinct [MA_DV]
				   ,@NamPH
				   ,[MA_CQT],[MA_CN],[DAI_SO_DIEU_CHINH],[MAU_SO], case when isnull([KY_HIEU],'')<>'' then left([KY_HIEU],1)+ @NamPH + right([KY_HIEU],3) else KY_HIEU end as [KY_HIEU],TU_SO,DEN_SO
				    from [SDONVI_MA_CQT_MTT] where    MA_DV=@MA_DV AND NAM_PHAT_HANH=@NamOld 
				end  
		COMMIT TRAN -- Transaction Success!  
	     SELECT N'Sinh dải số hóa đơn thành công' AS MSG,1 AS TRANG_THAI 
	END TRY
	BEGIN CATCH
	  IF @@TRANCOUNT > 0
		ROLLBACK TRAN -- RollBack in case of Error
	   SELECT ERROR_MESSAGE() AS MSG,0 AS TRANG_THAI
	END CATCH
    
END


GO
/****** Object:  StoredProcedure [dbo].[SP_TaoBangDuLieuTH_GuiThue]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_TaoBangDuLieuTH_GuiThue] 
	-- Add the parameters for the stored procedure here
	@SoLuong int,
	@IDBangTH int,
	@MST varchar(20),
	@LoaiHD int,
	@SoLuongTT int out
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	declare @ThanDau int, @Thang int,@Nam int,@Ngay int,@LoaiKy varchar(20),@where nvarchar(1000),@sThang varchar(50),@SQL varchar(4000),@DenNgay datetime,@sDenNgay varchar(10),@ThangCuoi int, @TuNgay datetime
	select @Thang=QQ_MM_TONG_HOP,@Nam=NAM_TONG_HOP,@Ngay=DD_TONG_HOP,@LoaiKy=LOAI_KY  from TRUYEN_NHAN_BANG_TONG_HOP where TRUYEN_NHAN_BANG_TONG_HOPID= @IDBangTH

	set @where = '  month(hd.NGAY_HOA_DON)=' + cast(@Thang as varchar) + ' and year(hd.NGAY_HOA_DON)= ' + CAST( @Nam as varchar(5))
	
	if @LoaiKy='Q'
	begin
		if @Thang=1  set @sThang ='03'
		else if @Thang=2  set @sThang ='06'
		else if @Thang=3  set @sThang ='09'
	     else if @Thang=4  set @sThang ='12'
		-- set @where = '  month(hd.NGAY_HOA_DON) in(' + @sThang + ') and year(hd.NGAY_HOA_DON)= ' + CAST( @Nam as varchar(5))
     end
	 else 
	     set @sThang = case when @Thang<10 then '0' else'' end + CAST(@Thang as varchar)
	  
	  -----------
	  if @LoaiKy='Q' or @LoaiKy='T'
	  begin
	  	 set @sDenNgay = CAST(@Nam as varchar) + @sThang + '28'
		 set @DenNgay = cast (@sDenNgay as datetime)
		 set @ThangCuoi = MONTH(@DenNgay)
		 while @ThangCuoi = MONTH(@DenNgay)
		 set @DenNgay = DATEADD(day,1, @DenNgay )
	     set @DenNgay = DATEADD(day,-1, @DenNgay )
		 if @LoaiKy='Q'
		     set  @TuNgay =  DATEADD(MONTH,-3, @DenNgay )
		  else
			 set  @TuNgay =  @DenNgay
	     set @TuNgay =  cast ( ( cast(YEAR(@DenNgay) as varchar)+  case when month(@DenNgay) <10 then '0' else '' end + cast(month(@DenNgay) as varchar) +'01') as datetime)
          
	  end
	  else
	    begin
	        set @sDenNgay = CAST(@Nam as varchar) + @sThang + case when @Ngay<10 then '0' else'' end + CAST(@Ngay as varchar)
            set @DenNgay = cast (@sDenNgay as datetime)
			set  @TuNgay =  DATEADD(DAY,-2, @DenNgay )
		 end
		 declare @whereGT nvarchar(200),@WhereXuLy nvarchar(500)
	 set @whereGT = ' and hd.NGAY_BIEN_BAN>= ''' + convert( varchar,@TuNgay,112) +''' '
     set @where = ' and (hd.NGAY_HOA_DON>= ''' + convert( varchar,@TuNgay,112) +''' and hd.NGAY_HOA_DON<= ''' + convert( varchar,@DenNgay,112) +''' '
	 if @LoaiHD =0
	   set @where = @where + ' and hd.TRANG_THAI_DIEU_CHINH not in(3,5)) '
	 else
	   set @where = @where + ' and hd.TRANG_THAI_DIEU_CHINH  in(3,5,6)  or (hd.NGAY_XU_LY>= ''' + convert( varchar,@TuNgay,112) +''' and hd.NGAY_XU_LY<= ''' + convert( varchar,@DenNgay,112) +''' and hd.TRANG_THAI=-2 and hd.TRANG_THAI_DIEU_CHINH =6 ) )'
	  ---------------------------
	  create table #TemHoaDon(DHOADONID numeric(18,0),DHOADONID_GOC numeric(18,0) null,GIAI_TRINH int null,SO_THONG_BAO nvarchar(100)null,NGAY_THONG_BAO datetime null,IS_TT68 int null,GUID_DHOADON varchar(50) null,
	  MAU_SO varchar(20) null,KY_HIEU varchar(20) null,SO_HOA_DON varchar(20) null,NGAY_HOA_DON datetime null,TRANG_THAI_DIEU_CHINH int null,TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI int null,TRANG_THAI int null,BEN_MUA_TEN_DV nvarchar(500) null,BEN_MUA_HO_TEN nvarchar(500) null,BEN_MUA_MA_DV nvarchar(50) null,BEN_MUA_MA nvarchar(100) null,TONG_TIEN_HANG numeric(30,6) null,TONG_TIEN_THUE numeric(30,6) null,TONG_THANH_TOAN numeric(30,6) null
      ,SO_HOA_DON_GOC varchar(20) null,KY_HIEU_GOC varchar(20) null ,MAU_SO_GOC varchar(20) null, NGAY_HOA_DON_GOC datetime null,TY_GIA numeric(18,4)null,MA_NT nvarchar(20) )
	   set @SQL = 'insert into #TemHoaDon(DHOADONID,DHOADONID_GOC,GUID_DHOADON,MAU_SO,KY_HIEU,SO_HOA_DON,NGAY_HOA_DON,TRANG_THAI_DIEU_CHINH,TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI,TRANG_THAI,BEN_MUA_TEN_DV,BEN_MUA_HO_TEN,BEN_MUA_MA_DV,BEN_MUA_MA,TONG_TIEN_HANG,TONG_TIEN_THUE,TONG_THANH_TOAN
                       ,SO_HOA_DON_GOC,KY_HIEU_GOC,MAU_SO_GOC,NGAY_HOA_DON_GOC,TY_GIA,MA_NT) SELECT distinct top ' + CAST(@SoLuong as varchar) +' hd.DHOADONID,hd.DHOADONID_GOC,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA, hd.TONG_TIEN_HANG , hd.TONG_TIEN_THUE , hd.TONG_THANH_TOAN 
                       ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,hd.TY_GIA, case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end MA_NT from DHOADON hd inner join DPHATHANH_CHITIET ph on hd.MAU_SO=ph.MAU_SO_HD and hd.KY_HIEU=ph.KY_HIEU_FULL  where BEN_BAN_MA_DV=''' + @MST +''' and TRANG_THAI_HOA_DON=3 and (isnull(TRANG_THAI_TRUYEN_NHAN,0)=0 or  XAC_NHAN_GUI_LAI =1)  and isnull(ph.IS_BANG_TONG_HOP,0)=1 '+ @where +' order by case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end desc, hd.NGAY_HOA_DON '
		print @SQL
		exec(@SQL)
       if @LoaiHD =1 -- hoa don sai sot
	   begin
		 update #TemHoaDon set IS_TT68 = a.IS_TT68 from DHOADON a where #TemHoaDon.DHOADONID_GOC=a.DHOADONID and ISNULL(#TemHoaDon.DHOADONID_GOC,0)>0
		 create table #TemGIAI_TRINH(DHOADONID numeric(18,0))
		 set @SQL ='insert into #TemGIAI_TRINH(DHOADONID)  select  hd.DHOADONID from  DHOADON_BIENBAN hd   where LOAI_BIEN_BAN=''DC'' and LOAI_DIEU_CHINH=1 and BEN_BAN_MA_DV=''' + @MST +'''  ' +@whereGT 
	     exec(@SQL)
		 if (select count(*) from #TemGIAI_TRINH )>0
		   begin
			   create table #TemTruyenNhan(DHOADONID numeric(18,0),SoLan int)
					-- Xu ly gia trinh
		 
			   insert into #TemTruyenNhan(DHOADONID,SoLan)  select  a.NGHIEP_VUID,count(a.NGHIEP_VUID)SoLan from  TRUYEN_NHAN_THONG_BAO_GUI_CHI_TIET a inner join TRUYEN_NHAN_THONG_BAO_GUI b on a.TRUYEN_NHAN_THONG_BAO_GUIID=b.TRUYEN_NHAN_THONG_BAO_GUIID   where a.MA_LOAI=400 and b.TRANG_THAI_PHAN_HOI>=1 and  b.MA_DV= @MST  and b.THOI_GIAN_GUI>=  DATEADD(MONTH,-3, @TuNgay ) group by a.NGHIEP_VUID
			   delete #TemTruyenNhan where SoLan>1
			    delete #TemGIAI_TRINH where DHOADONid not in( select DHOADONID from #TemTruyenNhan)
				update DHOADON set XAC_NHAN_GUI_LAI =1 where DHOADONid in ( select DHOADONID from #TemGIAI_TRINH) 
				set @SQL = 'insert into #TemHoaDon(DHOADONID,DHOADONID_GOC,GUID_DHOADON,MAU_SO,KY_HIEU,SO_HOA_DON,NGAY_HOA_DON,TRANG_THAI_DIEU_CHINH,TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI,TRANG_THAI,BEN_MUA_TEN_DV,BEN_MUA_HO_TEN,BEN_MUA_MA_DV,BEN_MUA_MA,TONG_TIEN_HANG,TONG_TIEN_THUE,TONG_THANH_TOAN
						   ,SO_HOA_DON_GOC,KY_HIEU_GOC,MAU_SO_GOC,NGAY_HOA_DON_GOC,GIAI_TRINH,TY_GIA,MA_NT) SELECT distinct top ' + CAST(@SoLuong as varchar) +' hd.DHOADONID,hd.DHOADONID_GOC,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA,hd.TONG_TIEN_HANG , hd.TONG_TIEN_THUE , hd.TONG_THANH_TOAN 
						   ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,1 as GIAI_TRINH,hd.TY_GIA,case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end MA_NT from DHOADON hd inner join DPHATHANH_CHITIET ph on hd.MAU_SO=ph.MAU_SO_HD and hd.KY_HIEU=ph.KY_HIEU_FULL  where BEN_BAN_MA_DV=''' + @MST +''' and TRANG_THAI_HOA_DON=3 and (isnull(TRANG_THAI_TRUYEN_NHAN,0)=0 or  XAC_NHAN_GUI_LAI =1)  and isnull(ph.IS_BANG_TONG_HOP,0)=1  and hd.DHOADONID in(SELECT DHOADONID from #TemGIAI_TRINH) order bycase when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end  desc, hd.NGAY_HOA_DON '
				 exec(@SQL)
				 drop table #TemTruyenNhan
			end
			drop table #TemGIAI_TRINH ;
	   end

	 
	    -- create table #TemThongBao(DHOADONID numeric(18,0),SO_THONG_BAO nvarchar(100)null,NGAY_THONG_BAO datetime null)
	   -- set @SQL ='insert into #TemThongBao(DHOADONID,SO_THONG_BAO,NGAY_THONG_BAO)  select hd.DHOADONID,a.SO_THONG_BAO,a.NGAY_THONG_BAO from DTHONGBAO_HOADON_RASOAT a inner join DTHONGBAO_HOADON_RASOAT_CHITIET hd on a.DTHONGBAO_HOADON_RASOATID=hd.DTHONGBAO_HOADON_RASOATID where MA_DV=''' + @MST +''' ' + @where
	   --exec(@SQL)
	   --  update #TemHoaDon set SO_THONG_BAO=a.SO_THONG_BAO,NGAY_THONG_BAO=a.NGAY_THONG_BAO from #TemThongBao a where #TemHoaDon.DHOADONID=a.DHOADONID

	     --set @SQL =' SELECT hd.DHOADONID,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA,hd.TONG_TIEN_HANG,hd.TONG_TIEN_THUE,hd.TONG_THANH_TOAN
      --                 ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,tb.IS_TT68,tb.SO_THONG_BAO,tb.NGAY_THONG_BAO,tb.GIAI_TRINH from DHOADON hd  inner join #TemHoaDon tb on hd.DHOADONID=tb.DHOADONID
						--where  hd.BEN_BAN_MA_DV=''' + @MST +'''  and hd.TRANG_THAI_HOA_DON=3 and isnull(hd.TRANG_THAI_TRUYEN_NHAN,0)=0 and '+ @where
      -- exec(@SQL)
		select * from #TemHoaDon
		drop table #TemHoaDon;

	 --Lay thong bao

    -- Insert statements for procedure here
	
END
GO
/****** Object:  StoredProcedure [dbo].[SP_TaoBangDuLieuTH_GuiThue_XemBangTH]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_TaoBangDuLieuTH_GuiThue_XemBangTH] 
	-- Add the parameters for the stored procedure here
	@SoLuong int,
	@IDBangTH int,
	@MST varchar(20),
	@SoLuongTT int out
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	declare @Thang int,@Nam int,@Ngay int,@LoaiKy varchar(20),@where nvarchar(500),@sThang varchar(50),@SQL varchar(4000),@DenNgay datetime,@sDenNgay varchar(10),@ThangCuoi int, @TuNgay datetime
	select @Thang=QQ_MM_TONG_HOP,@Nam=NAM_TONG_HOP,@Ngay=DD_TONG_HOP,@LoaiKy=LOAI_KY  from TRUYEN_NHAN_BANG_TONG_HOP where TRUYEN_NHAN_BANG_TONG_HOPID= @IDBangTH

	set @where = '  month(hd.NGAY_HOA_DON)=' + cast(@Thang as varchar) + ' and year(hd.NGAY_HOA_DON)= ' + CAST( @Nam as varchar(5))
	
	if @LoaiKy='Q'
	begin
	  if @Thang=1  set @sThang ='03'
	  else if @Thang=2  set @sThang ='06'
	   else if @Thang=3  set @sThang ='09'
	     else if @Thang=4  set @sThang ='12'
		-- set @where = '  month(hd.NGAY_HOA_DON) in(' + @sThang + ') and year(hd.NGAY_HOA_DON)= ' + CAST( @Nam as varchar(5))
     end
	 else 
	     set @sThang = case when @Thang<10 then '0' else'' end + CAST(@Thang as varchar)
	  
	  -----------
	  if @LoaiKy='Q' or @LoaiKy='T'
	  begin
	  	 set @sDenNgay = CAST(@Nam as varchar) + @sThang + '28'
		 set @DenNgay = cast (@sDenNgay as datetime)
		 set @ThangCuoi = MONTH(@DenNgay)
		  while @ThangCuoi = MONTH(@DenNgay)
		   set @DenNgay = DATEADD(day,1, @DenNgay )
	      set @DenNgay = DATEADD(day,-1, @DenNgay )
		 	 if @LoaiKy='Q'
		     set  @TuNgay =  DATEADD(MONTH,-3, @DenNgay )
		  else
			 set  @TuNgay =  @DenNgay
	     set @TuNgay =  cast ( ( cast(YEAR(@DenNgay) as varchar)+  case when month(@DenNgay) <10 then '0' else '' end + cast(month(@DenNgay) as varchar) +'01') as datetime)

	  end
	  else
	    begin
	        set @sDenNgay = CAST(@Nam as varchar) + @sThang + case when @Ngay<10 then '0' else'' end + CAST(@Ngay as varchar)
            set @DenNgay = cast (@sDenNgay as datetime)
			 set  @TuNgay =  DATEADD(DAY,-2, @DenNgay )
		 end
		 declare @whereGT nvarchar(200),@WhereXuLy nvarchar(500)
	 set @whereGT = ' and hd.NGAY_BIEN_BAN>= ''' + convert( varchar,@TuNgay,112) +''' '
     set @where = ' and (hd.NGAY_HOA_DON>= ''' + convert( varchar,@TuNgay,112) +''' and hd.NGAY_HOA_DON<= ''' + convert( varchar,@DenNgay,112) +''' '
	  set @where = @where + ' or (hd.NGAY_XU_LY>= ''' + convert( varchar,@TuNgay,112) +''' and hd.NGAY_XU_LY<= ''' + convert( varchar,@DenNgay,112) +''' and hd.TRANG_THAI=-2 and hd.TRANG_THAI_DIEU_CHINH =6 ) )'
	  create table #TemHoaDon(DHOADONID numeric(18,0),DHOADONID_GOC numeric(18,0) null,GIAI_TRINH int null,SO_THONG_BAO nvarchar(100)null,NGAY_THONG_BAO datetime null,IS_TT68 int null,GUID_DHOADON varchar(50) null,
	  MAU_SO varchar(20) null,KY_HIEU varchar(20) null,SO_HOA_DON varchar(20) null,NGAY_HOA_DON datetime null,TRANG_THAI_DIEU_CHINH int null,TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI int null,TRANG_THAI int null,BEN_MUA_TEN_DV nvarchar(500) null,BEN_MUA_HO_TEN nvarchar(500) null,BEN_MUA_MA_DV nvarchar(50) null,BEN_MUA_MA nvarchar(100) null,TONG_TIEN_HANG numeric(30,6) null,TONG_TIEN_THUE numeric(30,6) null,TONG_THANH_TOAN numeric(30,6) null
                       ,SO_HOA_DON_GOC varchar(20) null,KY_HIEU_GOC varchar(20) null ,MAU_SO_GOC varchar(20) null, NGAY_HOA_DON_GOC datetime null,TY_GIA numeric(18,4) null,MA_NT nvarchar(20) )
	   create table #TemGIAI_TRINH(DHOADONID numeric(18,0))
	    create table #TemThongBao(DHOADONID numeric(18,0),SO_THONG_BAO nvarchar(100)null,NGAY_THONG_BAO datetime null)
	 set @SQL = 'insert into #TemHoaDon(DHOADONID,DHOADONID_GOC,GUID_DHOADON,MAU_SO,KY_HIEU,SO_HOA_DON,NGAY_HOA_DON,TRANG_THAI_DIEU_CHINH,TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI,TRANG_THAI,BEN_MUA_TEN_DV,BEN_MUA_HO_TEN,BEN_MUA_MA_DV,BEN_MUA_MA,TONG_TIEN_HANG,TONG_TIEN_THUE,TONG_THANH_TOAN
                       ,SO_HOA_DON_GOC,KY_HIEU_GOC,MAU_SO_GOC,NGAY_HOA_DON_GOC,TY_GIA,MA_NT) SELECT distinct top ' + CAST(@SoLuong as varchar) +' hd.DHOADONID,hd.DHOADONID_GOC,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI_DIEU_CHINH_CK_THUONG_MAI,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA, hd.TONG_TIEN_HANG ,hd.TONG_TIEN_THUE ,hd.TONG_THANH_TOAN
                       ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,hd.TY_GIA,case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end MA_NT from DHOADON hd inner join DPHATHANH_CHITIET ph on hd.MAU_SO=ph.MAU_SO_HD and hd.KY_HIEU=ph.KY_HIEU_FULL  where BEN_BAN_MA_DV=''' + @MST +''' and TRANG_THAI_HOA_DON=3 and (isnull(TRANG_THAI_TRUYEN_NHAN,0)=0 or  XAC_NHAN_GUI_LAI =1)  and isnull(ph.IS_BANG_TONG_HOP,0)=1 '+ @where +' order by case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end  desc, hd.NGAY_HOA_DON '
	print @SQL
		exec(@SQL)
	   update #TemHoaDon set IS_TT68 = a.IS_TT68 from DHOADON a where #TemHoaDon.DHOADONID_GOC=a.DHOADONID and ISNULL(#TemHoaDon.DHOADONID_GOC,0)>0
	  set @SoLuongTT = (select count(*) from #TemHoaDon)
	    set @SQL ='insert into #TemGIAI_TRINH(DHOADONID) select  hd.DHOADONID from  DHOADON_BIENBAN hd where LOAI_BIEN_BAN=''DC'' and LOAI_DIEU_CHINH=1 and BEN_BAN_MA_DV=''' + @MST +'''  ' +@whereGT 
	    exec(@SQL)
	  update #TemHoaDon set GIAI_TRINH=1 from #TemGIAI_TRINH a where #TemHoaDon.DHOADONID=a.DHOADONID
	   -- set @SQL ='insert into #TemThongBao(DHOADONID,SO_THONG_BAO,NGAY_THONG_BAO)  select hd.DHOADONID,a.SO_THONG_BAO,a.NGAY_THONG_BAO from DTHONGBAO_HOADON_RASOAT a inner join DTHONGBAO_HOADON_RASOAT_CHITIET hd on a.DTHONGBAO_HOADON_RASOATID=hd.DTHONGBAO_HOADON_RASOATID where MA_DV=''' + @MST +''' ' + @where
	   --exec(@SQL)
	   --  update #TemHoaDon set SO_THONG_BAO=a.SO_THONG_BAO,NGAY_THONG_BAO=a.NGAY_THONG_BAO from #TemThongBao a where #TemHoaDon.DHOADONID=a.DHOADONID

	     --set @SQL =' SELECT hd.DHOADONID,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA,hd.TONG_TIEN_HANG,hd.TONG_TIEN_THUE,hd.TONG_THANH_TOAN
      --                 ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,tb.IS_TT68,tb.SO_THONG_BAO,tb.NGAY_THONG_BAO,tb.GIAI_TRINH from DHOADON hd  inner join #TemHoaDon tb on hd.DHOADONID=tb.DHOADONID
						--where  hd.BEN_BAN_MA_DV=''' + @MST +'''  and hd.TRANG_THAI_HOA_DON=3 and isnull(hd.TRANG_THAI_TRUYEN_NHAN,0)=0 and '+ @where
      -- exec(@SQL)
		select * from #TemHoaDon
		drop table #TemHoaDon;drop table #TemGIAI_TRINH ;drop table #TemThongBao

	 --Lay thong bao

    -- Insert statements for procedure here
	
END
GO
/****** Object:  StoredProcedure [dbo].[SP_TaoBangDuLieuTH_GuiThue_XemLai]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SP_TaoBangDuLieuTH_GuiThue_XemLai] 
	-- Add the parameters for the stored procedure here
	@SoLuong int,
	@IDBangTH int,
	@MST varchar(20),
	@SoLuongTT int out
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	declare @Thang int,@Nam int,@Ngay int,@LoaiKy varchar(20),@where nvarchar(200),@sThang varchar(50),@SQL varchar(4000),@DenNgay datetime,@sDenNgay varchar(10),@ThangCuoi int, @TuNgay datetime
	select @Thang=QQ_MM_TONG_HOP,@Nam=NAM_TONG_HOP,@Ngay=DD_TONG_HOP,@LoaiKy=LOAI_KY  from TRUYEN_NHAN_BANG_TONG_HOP where TRUYEN_NHAN_BANG_TONG_HOPID= @IDBangTH

	set @where = '  month(hd.NGAY_HOA_DON)=' + cast(@Thang as varchar) + ' and year(hd.NGAY_HOA_DON)= ' + CAST( @Nam as varchar(5))
	
	if @LoaiKy='Q'
	begin
	  if @Thang=1  set @sThang ='03'
	  else if @Thang=2  set @sThang ='06'
	   else if @Thang=3  set @sThang ='09'
	     else if @Thang=4  set @sThang ='12'
		-- set @where = '  month(hd.NGAY_HOA_DON) in(' + @sThang + ') and year(hd.NGAY_HOA_DON)= ' + CAST( @Nam as varchar(5))
     end
	 else 
	     set @sThang = case when @Thang<10 then '0' else'' end + CAST(@Thang as varchar)
	  
	  -----------
	  if @LoaiKy='Q' or @LoaiKy='T'
	  begin
	  	 set @sDenNgay = CAST(@Nam as varchar) + @sThang + '28'
		 set @DenNgay = cast (@sDenNgay as datetime)
		 set @ThangCuoi = MONTH(@DenNgay)
		  while @ThangCuoi = MONTH(@DenNgay)
		   set @DenNgay = DATEADD(day,1, @DenNgay )
	      set @DenNgay = DATEADD(day,-1, @DenNgay )
			 	 if @LoaiKy='Q'
		     set  @TuNgay =  DATEADD(MONTH,-3, @DenNgay )
		  else
			 set  @TuNgay =  @DenNgay
	     set @TuNgay =  cast ( ( cast(YEAR(@DenNgay) as varchar)+  case when month(@DenNgay) <10 then '0' else '' end + cast(month(@DenNgay) as varchar) +'01') as datetime)

	  end
	  else
	    begin
	        set @sDenNgay = CAST(@Nam as varchar) + @sThang + case when @Ngay<10 then '0' else'' end + CAST(@Ngay as varchar)
            set @DenNgay = cast (@sDenNgay as datetime)
			 set  @TuNgay =  DATEADD(DAY,-2, @DenNgay )
		 end
		 declare @whereGT nvarchar(200)
		  set @whereGT = ' and hd.NGAY_BIEN_BAN>= ''' + convert( varchar,@TuNgay,112) +''' '
     set @where = ' and (hd.NGAY_HOA_DON>= ''' + convert( varchar,@TuNgay,112) +''' and hd.NGAY_HOA_DON<= ''' + convert( varchar,@DenNgay,112) +''' '
	  set @where = @where + ' or (hd.NGAY_XU_LY>= ''' + convert( varchar,@TuNgay,112) +''' and hd.NGAY_XU_LY<= ''' + convert( varchar,@DenNgay,112) +''' and hd.TRANG_THAI=-2 and hd.TRANG_THAI_DIEU_CHINH =6 ) )'
	  create table #TemHoaDon(DHOADONID numeric(18,0),DHOADONID_GOC numeric(18,0) null,GIAI_TRINH int null,SO_THONG_BAO nvarchar(100)null,NGAY_THONG_BAO datetime null,IS_TT68 int null,GUID_DHOADON varchar(50) null,
	  MAU_SO varchar(20) null,KY_HIEU varchar(20) null,SO_HOA_DON varchar(20) null,NGAY_HOA_DON datetime null,TRANG_THAI_DIEU_CHINH int null,TRANG_THAI int null,BEN_MUA_TEN_DV nvarchar(500) null,BEN_MUA_HO_TEN nvarchar(500) null,BEN_MUA_MA_DV nvarchar(50) null,BEN_MUA_MA nvarchar(100) null,TONG_TIEN_HANG numeric(30,6) null,TONG_TIEN_THUE numeric(30,6) null,TONG_THANH_TOAN numeric(30,6) null
                       ,SO_HOA_DON_GOC varchar(20) null,KY_HIEU_GOC varchar(20) null ,MAU_SO_GOC varchar(20) null, NGAY_HOA_DON_GOC datetime null,TY_GIA numeric(18,4) null,MA_NT nvarchar(20) )
	   create table #TemGIAI_TRINH(DHOADONID numeric(18,0))
	    create table #TemThongBao(DHOADONID numeric(18,0),SO_THONG_BAO nvarchar(100)null,NGAY_THONG_BAO datetime null)
	 set @SQL = 'insert into #TemHoaDon(DHOADONID,DHOADONID_GOC,GUID_DHOADON,MAU_SO,KY_HIEU,SO_HOA_DON,NGAY_HOA_DON,TRANG_THAI_DIEU_CHINH,TRANG_THAI,BEN_MUA_TEN_DV,BEN_MUA_HO_TEN,BEN_MUA_MA_DV,BEN_MUA_MA,TONG_TIEN_HANG,TONG_TIEN_THUE,TONG_THANH_TOAN
                       ,SO_HOA_DON_GOC,KY_HIEU_GOC,MAU_SO_GOC,NGAY_HOA_DON_GOC,TY_GIA,MA_NT) SELECT distinct hd.DHOADONID,hd.DHOADONID_GOC,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA, hd.TONG_TIEN_HANG ,hd.TONG_TIEN_THUE, hd.TONG_THANH_TOAN
                       ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,hd.TY_GIA,case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end MA_NT from DHOADON hd inner join DPHATHANH_CHITIET ph on hd.MAU_SO=ph.MAU_SO_HD and hd.KY_HIEU=ph.KY_HIEU_FULL  where BEN_BAN_MA_DV=''' + @MST +''' and TRANG_THAI_HOA_DON=3   and isnull(ph.IS_BANG_TONG_HOP,0)=1 '+ @where +' order by case when isnull(hd.TONG_TIEN_HANG_NT,0)>0 and isnull(hd.TONG_TIEN_HANG,0)> isnull(hd.TONG_TIEN_HANG_NT,0)+1 then ''VND'' else  hd.MA_NT end  desc, hd.NGAY_HOA_DON '
	print @SQL
		exec(@SQL)
	   update #TemHoaDon set IS_TT68 = a.IS_TT68 from DHOADON a where #TemHoaDon.DHOADONID_GOC=a.DHOADONID and ISNULL(#TemHoaDon.DHOADONID_GOC,0)>0
	  set @SoLuongTT = (select count(*) from #TemHoaDon)
	    set @SQL ='insert into #TemGIAI_TRINH(DHOADONID) select  hd.DHOADONID from  DHOADON_BIENBAN hd where LOAI_BIEN_BAN=''DC'' and LOAI_DIEU_CHINH=1 and BEN_BAN_MA_DV=''' + @MST +'''  ' +@whereGT 
	  update #TemHoaDon set GIAI_TRINH=1 from #TemGIAI_TRINH a where #TemHoaDon.DHOADONID=a.DHOADONID
	   -- set @SQL ='insert into #TemThongBao(DHOADONID,SO_THONG_BAO,NGAY_THONG_BAO)  select hd.DHOADONID,a.SO_THONG_BAO,a.NGAY_THONG_BAO from DTHONGBAO_HOADON_RASOAT a inner join DTHONGBAO_HOADON_RASOAT_CHITIET hd on a.DTHONGBAO_HOADON_RASOATID=hd.DTHONGBAO_HOADON_RASOATID where MA_DV=''' + @MST +''' ' + @where
	   --exec(@SQL)
	   --  update #TemHoaDon set SO_THONG_BAO=a.SO_THONG_BAO,NGAY_THONG_BAO=a.NGAY_THONG_BAO from #TemThongBao a where #TemHoaDon.DHOADONID=a.DHOADONID

	     --set @SQL =' SELECT hd.DHOADONID,hd.GUID_DHOADON,hd.MAU_SO,hd.KY_HIEU,hd.SO_HOA_DON,hd.NGAY_HOA_DON,hd.TRANG_THAI_DIEU_CHINH,hd.TRANG_THAI,hd.BEN_MUA_TEN_DV,hd.BEN_MUA_HO_TEN,hd.BEN_MUA_MA_DV,hd.BEN_MUA_MA,hd.TONG_TIEN_HANG,hd.TONG_TIEN_THUE,hd.TONG_THANH_TOAN
      --                 ,hd.SO_HOA_DON_GOC,hd.KY_HIEU_GOC,hd.MAU_SO_GOC,hd.NGAY_HOA_DON_GOC,tb.IS_TT68,tb.SO_THONG_BAO,tb.NGAY_THONG_BAO,tb.GIAI_TRINH from DHOADON hd  inner join #TemHoaDon tb on hd.DHOADONID=tb.DHOADONID
						--where  hd.BEN_BAN_MA_DV=''' + @MST +'''  and hd.TRANG_THAI_HOA_DON=3 and isnull(hd.TRANG_THAI_TRUYEN_NHAN,0)=0 and '+ @where
      -- exec(@SQL)
		select * from #TemHoaDon
		drop table #TemHoaDon;drop table #TemGIAI_TRINH ;drop table #TemThongBao

	 --Lay thong bao

    -- Insert statements for procedure here
	
END


GO
/****** Object:  StoredProcedure [dbo].[SP_TRUYEN_NHAN_DOC_FILE]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[SP_TRUYEN_NHAN_DOC_FILE]
	-- Add the parameters for the stored procedure here
	@MST varchar(20),
	@FileName nvarchar(500),
	@FileNoiDung varbinary(max) out
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	set @FileNoiDung =null
	declare @FilePath nvarchar(500),@SQL nvarchar(500)

    select @FilePath = ECUSString from SYSPARA where code='DONG_BO_THUE_DUONG_DAN_THU_MUC'
	 if @FilePath is null return;
	 set @FilePath = @FilePath + '\' + @FileName +'.txt'
     create table #TemDocFile (Data varbinary(max) )
	-- Add the T-SQL statements to compute the return value here
	set @SQL = 'insert into #TemDocFile SELECT * FROM OPENROWSET(BULK N''' + @FilePath +''', SINGLE_BLOB) AS Document '
	exec(@SQL)
	select @FileNoiDung = data from #TemDocFile
	drop table #TemDocFile
END
GO
/****** Object:  StoredProcedure [dbo].[SP_TRUYEN_NHAN_LUU_FILE]    Script Date: 05/08/2024 2:42:23 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create PROCEDURE [dbo].[SP_TRUYEN_NHAN_LUU_FILE] 
	-- Add the parameters for the stored procedure here
	 @File_NoiDung varbinary(max),
	 @File_Path nvarchar(500)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
DECLARE  @ObjectToken INT
  begin try
        EXEC sp_OACreate 'ADODB.Stream', @ObjectToken OUTPUT
        EXEC sp_OASetProperty @ObjectToken, 'Type', 1
        EXEC sp_OAMethod @ObjectToken, 'Open'
        EXEC sp_OAMethod @ObjectToken, 'Write', NULL, @File_NoiDung
        EXEC sp_OAMethod @ObjectToken, 'SaveToFile', NULL, @File_Path, 2
        EXEC sp_OAMethod @ObjectToken, 'Close'
        EXEC sp_OADestroy @ObjectToken
  end try
  begin catch
		exec sp_configure 'show advanced options', 1 

		RECONFIGURE; 

		exec sp_configure 'Ole Automation Procedures', 1 
	
		RECONFIGURE; 
	
		exec sp_configure 'Ad Hoc Distributed Queries', 1 
	
		RECONFIGURE;

		EXEC sp_OACreate 'ADODB.Stream', @ObjectToken OUTPUT
        EXEC sp_OASetProperty @ObjectToken, 'Type', 1
        EXEC sp_OAMethod @ObjectToken, 'Open'
        EXEC sp_OAMethod @ObjectToken, 'Write', NULL, @File_NoiDung
        EXEC sp_OAMethod @ObjectToken, 'SaveToFile', NULL, @File_Path, 2
        EXEC sp_OAMethod @ObjectToken, 'Close'
        EXEC sp_OADestroy @ObjectToken
  end catch

END

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Loai email. mac dinh =0: Gui hoa don' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL', @level2type=N'COLUMN',@level2name=N'EMAIL_TYPE'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0: Chua gui;1: Da gui;2: Da co phan hoi; 3: Gui loi' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL', @level2type=N'COLUMN',@level2name=N'EMAIL_ISSEND'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'NGuoi gui' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL', @level2type=N'COLUMN',@level2name=N'USER_CREATE'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ngay gio gui' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL', @level2type=N'COLUMN',@level2name=N'EMAIL_SENDTIME'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ngay gio khach hang phan hoi' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL', @level2type=N'COLUMN',@level2name=N'EMAIL_REPLYTIME'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Noi dung phan hoi' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL', @level2type=N'COLUMN',@level2name=N'EMAIL_REPLY_CONTENT'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ID file dinh kem email' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_ATTACH', @level2type=N'COLUMN',@level2name=N'DHOADON_FILEID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Loai email. mac dinh =0: Gui hoa don' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_BIENBAN', @level2type=N'COLUMN',@level2name=N'EMAIL_TYPE'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0: Chua gui;1: Da gui;2: Da co phan hoi; 3: Gui loi' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_BIENBAN', @level2type=N'COLUMN',@level2name=N'EMAIL_ISSEND'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'NGuoi gui' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_BIENBAN', @level2type=N'COLUMN',@level2name=N'USER_CREATE'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ngay gio gui' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_BIENBAN', @level2type=N'COLUMN',@level2name=N'EMAIL_SENDTIME'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ngay gio khach hang phan hoi' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_BIENBAN', @level2type=N'COLUMN',@level2name=N'EMAIL_REPLYTIME'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Noi dung phan hoi' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_EMAIL_BIENBAN', @level2type=N'COLUMN',@level2name=N'EMAIL_REPLY_CONTENT'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Du phong truong hop in hoa don va bang ke rieng. Mac dinh gia tri = 0 tuong ung voi file hoa don' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_FILE', @level2type=N'COLUMN',@level2name=N'FILE_TYPE'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'File nam o DB nao' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_FILE', @level2type=N'COLUMN',@level2name=N'FILE_PARTITION'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dinh dang file (0:PDF;1: Doc;2:xls,99: Khac)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_FILE', @level2type=N'COLUMN',@level2name=N'FILE_FORMAT'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0: Chua ky;1: Nguoi ban da ky;2: Nguoi mua da ky' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_FILE', @level2type=N'COLUMN',@level2name=N'FILE_ISSIGN'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Noi dung file' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DHOADON_FILE_PARTITION', @level2type=N'COLUMN',@level2name=N'FILE_DATA'
GO
USE [master]
GO
ALTER DATABASE [EINVOICENETV2] SET  READ_WRITE 
GO
