SCO供应链协同

## 数据表：T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)

### T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)：描述

名称 | T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)
代码 | T_SPM_PROMOTIONCOUNTGROUP
注释 |
模型 | SCO供应链协同
主键 | PK_SPM_PROMOTIONCOUNTGROUP

### T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录主键 | FENTRYID | int |  | TRUE |
主表ID | FID | int |  | TRUE |
促销累计分组总数量(含初始) | FGROUPQTY | decimal(23,10) | 23 | TRUE |
促销累计分组基本总数量(含初始) | FBASEGROUPQTY | decimal(23,10) | 23 | TRUE |
促销累计分组总金额(含初始) | FGROUPAMOUNT | decimal(23,10) | 23 | TRUE |
促销累计分组数量 | FGROUPSPMCOUNTQTY | decimal(23,10) | 23 | TRUE |
促销累计分组基本数量 | FBASEGROUPSPMCOUNTQTY | decimal(23,10) | 23 | TRUE |
促销累计分组金额 | FGROUPSPMCOUNTAMOUNT | decimal(23,10) | 23 | TRUE |
组号 | FGROUPNUMBER | int |  | TRUE |
促销累计分组赠品数量 | FGROUPPRESENTQTY | decimal(23,10) | 23 | TRUE |
促销累计分组赠品基本单位数量 | FBASEGROUPPRESENTQTY | decimal(23,10) | 23 | TRUE |

### T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)：脚本代码

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_SPM_PROMOTIONCOUNTGROUP') and o.name = 'FK_T_SPM_PR_REFERENCE_T_SPM_PR')
alter table T_SPM_PROMOTIONCOUNTGROUP
drop constraint FK_T_SPM_PR_REFERENCE_T_SPM_PR
go
if exists (select 1
from sysindexes
where id = object_id('T_SPM_PROMOTIONCOUNTGROUP')
and name = 'IDX_SPM_PROMOTIONCG_ID'
and indid > 0
and indid < 255)
drop index T_SPM_PROMOTIONCOUNTGROUP.IDX_SPM_PROMOTIONCG_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_SPM_PROMOTIONCOUNTGROUP')
and type = 'U')
drop table T_SPM_PROMOTIONCOUNTGROUP
go
/*==============================================================*/
/* Table: T_SPM_PROMOTIONCOUNTGROUP */
/*==============================================================*/
create table T_SPM_PROMOTIONCOUNTGROUP (
FENTRYID int not null default 0,
FID int not null default 0,
FGROUPQTY decimal(23,10) not null default 0,
FBASEGROUPQTY decimal(23,10) not null default 0,
FGROUPAMOUNT decimal(23,10) not null default 0,
FGROUPSPMCOUNTQTY decimal(23,10) not null default 0,
FBASEGROUPSPMCOUNTQTY decimal(23,10) not null default 0,
FGROUPSPMCOUNTAMOUNT decimal(23,10) not null default 0,
FGROUPNUMBER int not null default 0,
FGROUPPRESENTQTY decimal(23,10) not null default 0,
FBASEGROUPPRESENTQTY decimal(23,10) not null default 0,
constraint PK_SPM_PROMOTIONCOUNTGROUP primary key (FENTRYID)
)
go
/*==============================================================*/
/* Index: IDX_SPM_PROMOTIONCG_ID */
/*==============================================================*/
create index IDX_SPM_PROMOTIONCG_ID on T_SPM_PROMOTIONCOUNTGROUP (
FID ASC,
FGROUPNUMBER ASC
)
go
alter table T_SPM_PROMOTIONCOUNTGROUP
add constraint FK_T_SPM_PR_REFERENCE_T_SPM_PR foreign key (FID)
references T_SPM_PROMOTIONCOUNT (FID)
go

### T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)：键值定义

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

### T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SPM_PROMOTIONCG_ID | IDX_SPM_PROMOTIONCG_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SPM_PROMOTIONCOUNTGROUP(促销政策促销累计分组统计分录表)

上一页

主页

下一页