集团财务

## 数据表：T_SC_RECEIVESETTLEBILL(收款结算单表头)

### T_SC_RECEIVESETTLEBILL(收款结算单表头)：描述

名称 | T_SC_RECEIVESETTLEBILL(收款结算单表头)
代码 | T_SC_RECEIVESETTLEBILL
注释 | 收款结算单表头
模型 | 集团财务
主键 | PK_SC_RECESETTLEBILL

### T_SC_RECEIVESETTLEBILL(收款结算单表头)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
单据内码 | FID | int |  | TRUE |
单据类型内码 | FBILLTYPEID | varchar(36) | 36 | TRUE |
单据编号 | FBILLNO | nvarchar(80) | 80 | TRUE |
业务日期 | FDATE | datetime |  | TRUE |
资金组织 | FFUNDSORGID | int |  | TRUE |
付款单位内码 | FPAYUNITTYPE | varchar(36) | 36 | TRUE |
付款单位 | FPAYUNIT | int |  | TRUE |
币别 | FCURRENCYID | int |  | TRUE |
本位币 | FMAINBOOKID | int |  | TRUE |
汇率类型内码 | FEXCHANGETYPE | int |  | TRUE |
汇率 | FEXCHANGERATE | decimal(23,10) | 23 | TRUE |
收款金额 | FRECAMOUNTFOR | decimal(23,10) | 23 | TRUE |
收款金额本位币 | FRECAMOUNT | decimal(23,10) | 23 | TRUE |
实收金额 | FREALRECAMOUNTFOR | decimal(23,10) | 23 | TRUE |
实收金额本位币 | FREALRECAMOUNT | decimal(23,10) | 23 | TRUE |
结算金额 | FHADSETTLEAMOUNTFOR | decimal(23,10) | 23 | TRUE |
未结算金额 | FUNSETTLEAMOUNTFOR | decimal(23,10) | 23 | TRUE |
创建人 | FCREATORID | int |  | TRUE |
修改人 | FMODIFIERID | int |  | TRUE |
审核人 | FAPPROVERID | int |  | TRUE |
单据状态 | FDOCUMENTSTATUS | char(1) | 1 | TRUE | Z 暂存 A 创建 B 审核中 C 已审核 D 重新审核
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
审核日期 | FAPPROVEDATE | datetime |  | FALSE |
作废日期 | FCANCELDATE | datetime |  | FALSE |
作废人 | FCANCELLERID | int |  | TRUE |
作废状态 | FCANCELSTATUS | char(1) | 1 | TRUE | A未作废 B已作废

### T_SC_RECEIVESETTLEBILL(收款结算单表头)：脚本代码

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 sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_SC_RECESETTLEENTRY') and o.name = 'FK_T_SC_REC_收款结算单单据头结_T_SC_REC')
alter table T_SC_RECESETTLEENTRY
drop constraint FK_T_SC_REC_收款结算单单据头结_T_SC_REC
go
if exists (select 1
from sysindexes
where id = object_id('T_SC_RECEIVESETTLEBILL')
and name = 'IDX_SC_RECSETTLE_FDATE'
and indid > 0
and indid < 255)
drop index T_SC_RECEIVESETTLEBILL.IDX_SC_RECSETTLE_FDATE
go
if exists (select 1
from sysindexes
where id = object_id('T_SC_RECEIVESETTLEBILL')
and name = 'IDX_SC_RECSETTLE_FBILLNO'
and indid > 0
and indid < 255)
drop index T_SC_RECEIVESETTLEBILL.IDX_SC_RECSETTLE_FBILLNO
go
if exists (select 1
from sysobjects
where id = object_id('T_SC_RECEIVESETTLEBILL')
and type = 'U')
drop table T_SC_RECEIVESETTLEBILL
go
/*==============================================================*/
/* Table: T_SC_RECEIVESETTLEBILL */
/*==============================================================*/
create table T_SC_RECEIVESETTLEBILL (
FID int not null default 0,
FBILLTYPEID varchar(36) not null default ' ',
FBILLNO nvarchar(80) not null default ' ',
FDATE datetime not null default getdate(),
FFUNDSORGID int not null default 0,
FPAYUNITTYPE varchar(36) not null default ' ',
FPAYUNIT int not null default 0,
FCURRENCYID int not null default 0,
FMAINBOOKID int not null default 0,
FEXCHANGETYPE int not null default 0,
FEXCHANGERATE decimal(23,10) not null default 0,
FRECAMOUNTFOR decimal(23,10) not null default 0,
FRECAMOUNT decimal(23,10) not null default 0,
FREALRECAMOUNTFOR decimal(23,10) not null default 0,
FREALRECAMOUNT decimal(23,10) not null default 0,
FHADSETTLEAMOUNTFOR decimal(23,10) not null default 0,
FUNSETTLEAMOUNTFOR decimal(23,10) not null default 0,
FCREATORID int not null default 0,
FMODIFIERID int not null default 0,
FAPPROVERID int not null default 0,
FDOCUMENTSTATUS char(1) not null default 'Z',
FCREATEDATE datetime null,
FMODIFYDATE datetime null,
FAPPROVEDATE datetime null,
FCANCELDATE datetime null,
FCANCELLERID int not null default 0,
FCANCELSTATUS char(1) not null default 'A',
constraint PK_T_SC_RECEIVESETTLEBILL primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'收款结算单表头',
'user', @CurrentUser, 'table', 'T_SC_RECEIVESETTLEBILL'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'Z 暂存
A 创建
B 审核中
C 已审核
D 重新审核',
'user', @CurrentUser, 'table', 'T_SC_RECEIVESETTLEBILL', 'column', 'FDOCUMENTSTATUS'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'A未作废
B已作废',
'user', @CurrentUser, 'table', 'T_SC_RECEIVESETTLEBILL', 'column', 'FCANCELSTATUS'
go
/*==============================================================*/
/* Index: IDX_SC_RECSETTLE_FBILLNO */
/*==============================================================*/
create index IDX_SC_RECSETTLE_FBILLNO on T_SC_RECEIVESETTLEBILL (
FBILLNO ASC
)
go
/*==============================================================*/
/* Index: IDX_SC_RECSETTLE_FDATE */
/*==============================================================*/
create index IDX_SC_RECSETTLE_FDATE on T_SC_RECEIVESETTLEBILL (
FDATE ASC
)
go

### T_SC_RECEIVESETTLEBILL(收款结算单表头)：键值定义

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

### T_SC_RECEIVESETTLEBILL(收款结算单表头)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SC_RECSETTLE_FBILLNO | IDX_SC_RECSETTLE_FBILLNO | FALSE | FALSE | FALSE | FALSE | FALSE | T_SC_RECEIVESETTLEBILL(收款结算单表头)
IDX_SC_RECSETTLE_FDATE | IDX_SC_RECSETTLE_FDATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_SC_RECEIVESETTLEBILL(收款结算单表头)

上一页

主页

下一页