集团财务

## 数据表：T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)

### T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)：描述

名称 | T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)
代码 | T_SC_RECEIVESETTLEBILLENTRY
注释 | 收款结算单明细
模型 | 集团财务
主键 | PK_SC_RECESETTLEBILLENTRY

### T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录内码 | FENTRYID | int |  | TRUE |
单据内码 | FID | int |  | TRUE |
序号 | FSEQ | int |  | TRUE |
结算方式内码 | FSETTLETYPEID | int |  | TRUE |
收款金额 | FRECAMOUNTFOR | decimal(23,10) | 23 | TRUE |
收款金额本位币 | FRECAMOUNT | decimal(23,10) | 23 | TRUE |
手续费 | FHANDLINGCHARGEFOR | decimal(23,10) | 23 | TRUE |
手续费本位币 | FHANDLINGCHARGE | decimal(23,10) | 23 | TRUE |
实收金额 | FREALRECAMOUNTFOR | decimal(23,10) | 23 | TRUE |
实收金额本位币 | FREALRECAMOUNT | decimal(23,10) | 23 | TRUE |
我方银行账号 | FACCOUNTID | int |  | TRUE |
现金账号 | FCASHACCOUNTID | int |  | TRUE |
对方银行账号 | FOPPOSITEBANKACCOUNT | nvarchar(80) | 80 | TRUE |
对方开户行 | FOPPOSITEBANKNAME | nvarchar(255) | 255 | TRUE |
对方账号名称 | FOPPOSITECCOUNTNAME | nvarchar(255) | 255 | TRUE |
结算号 | FSETTLENO | nvarchar(255) | 255 | TRUE |
摘要 | FREMARKS | nvarchar(255) | 255 | TRUE |
票据内码 | FBILLID | int |  | TRUE |
票面金额 | FBPBILLPARAMOUNTFOR | decimal(23,10) | 23 | TRUE |
可用票面金额 | FPARLEFTAMOUNTFOR | decimal(23,10) | 23 | TRUE |
勾兑 | FBLEND | char(1) | 1 | TRUE | '0'：未勾兑； '1'：已勾兑
是否登帐 | FISPOST | char(1) | 1 | TRUE | '0'：否； '1'：是
登帐日期 | FPOSTDATE | datetime |  | FALSE |

### T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)：脚本代码

if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_SC_RECEIVESETTLEBILLENTRY') and o.name = 'FK_T_SC_REC_收款结算单单据头单_T_SC_REC')
alter table T_SC_RECEIVESETTLEBILLENTRY
drop constraint FK_T_SC_REC_收款结算单单据头单_T_SC_REC
go
if exists (select 1
from sysindexes
where id = object_id('T_SC_RECEIVESETTLEBILLENTRY')
and name = 'IDX_SC_RECSELBILLENTRY_FID'
and indid > 0
and indid < 255)
drop index T_SC_RECEIVESETTLEBILLENTRY.IDX_SC_RECSELBILLENTRY_FID
go
if exists (select 1
from sysobjects
where id = object_id('T_SC_RECEIVESETTLEBILLENTRY')
and type = 'U')
drop table T_SC_RECEIVESETTLEBILLENTRY
go
/*==============================================================*/
/* Table: T_SC_RECEIVESETTLEBILLENTRY */
/*==============================================================*/
create table T_SC_RECEIVESETTLEBILLENTRY (
FENTRYID int not null default 0,
FID int not null default 0,
FSEQ int not null default 0,
FSETTLETYPEID int not null default 0,
FRECAMOUNTFOR decimal(23,10) not null default 0,
FRECAMOUNT decimal(23,10) not null default 0,
FHANDLINGCHARGEFOR decimal(23,10) not null default 0,
FHANDLINGCHARGE decimal(23,10) not null default 0,
FREALRECAMOUNTFOR decimal(23,10) not null default 0,
FREALRECAMOUNT decimal(23,10) not null default 0,
FACCOUNTID int not null default 0,
FCASHACCOUNTID int not null default 0,
FOPPOSITEBANKACCOUNT nvarchar(80) not null default ' ',
FOPPOSITEBANKNAME nvarchar(255) not null default ' ',
FOPPOSITECCOUNTNAME nvarchar(255) not null default ' ',
FSETTLENO nvarchar(255) not null default ' ',
FREMARKS nvarchar(255) not null default ' ',
FBILLID int not null default 0,
FBPBILLPARAMOUNTFOR decimal(23,10) not null default 0,
FPARLEFTAMOUNTFOR decimal(23,10) not null default 0,
FBLEND char(1) not null default '0',
FISPOST char(1) not null default '1',
FPOSTDATE datetime null,
constraint PK_T_SC_RECEIVESETTLEBILLENTRY primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'收款结算单明细',
'user', @CurrentUser, 'table', 'T_SC_RECEIVESETTLEBILLENTRY'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'''0''：未勾兑；
''1''：已勾兑',
'user', @CurrentUser, 'table', 'T_SC_RECEIVESETTLEBILLENTRY', 'column', 'FBLEND'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'''0''：否；
''1''：是',
'user', @CurrentUser, 'table', 'T_SC_RECEIVESETTLEBILLENTRY', 'column', 'FISPOST'
go
/*==============================================================*/
/* Index: IDX_SC_RECSELBILLENTRY_FID */
/*==============================================================*/
create index IDX_SC_RECSELBILLENTRY_FID on T_SC_RECEIVESETTLEBILLENTRY (
FID ASC
)
go
alter table T_SC_RECEIVESETTLEBILLENTRY
add constraint FK_T_SC_REC_收款结算单单据头单_T_SC_REC foreign key (FID)
references T_SC_RECEIVESETTLEBILL (FID)
go

### T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)：键值定义

名称 | 代码 | 主要的
PK_SC_RECESETTLEBILLENTRY | PK_SC_RECESETTLEBILLENTRY | TRUE

### T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SC_RECSELBILLENTRY_FID | IDX_SC_RECSELBILLENTRY_FID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SC_RECEIVESETTLEBILLENTRY(收款结算单明细)

上一页

主页

下一页