Skip to content

BILLINGCPSUM (Historical table)

BILLINGCPSUM shows adjustments for a billing run by participant.

Package

HISTORICAL_TABLES

Table schema

Column Official MMS Datatype GR-MMS Datatype Comment
CONTRACTYEAR numeric(4, 0) 🔑 smallint 🔑 AEMO Contract Year number starting in week containing 1st January
WEEKNO numeric(3, 0) 🔑 smallint 🔑 Week no within the contract year. Week no 1 is the week containing 1st January
BILLRUNNO numeric(3, 0) 🔑 smallint 🔑 Unique run no within a given contract year and week no
PARTICIPANTID varchar(10) 🔑 varchar(10) 🔑 Unique participant identifier
PARTICIPANTTYPE varchar(10) 🔑 varchar(10) 🔑 Participant type Generator/Customer
PREVIOUSAMOUNT numeric(16, 6) numeric(16, 6) Previous amount billed
ADJUSTEDAMOUNT numeric(16, 6) numeric(16, 6) Adjusted amount billed
ADJUSTMENTWEEKNO numeric(3, 0) smallint Week no of adjustment
ADJUSTMENTRUNNO numeric(3, 0) smallint Run no of adjustment
LASTCHANGED datetime(3) datetime2(0) Last date and time record changed

Official MMS data model indexes

Index name Index type Index columns (in order)
BILLINGCPSUM_LCX nonclustered LASTCHANGED
BILLINGCPSUM_NDX2 nonclustered PARTICIPANTID
BILLINGCPSUM_PK clustered, unique, primary key CONTRACTYEAR, WEEKNO, BILLRUNNO, PARTICIPANTID, PARTICIPANTTYPE

GR-MMS data model indexes

Index name Index type Index columns (in order)
IX_BILLINGCPSUM_LASTCHANGED nonclustered LASTCHANGED
IX_BILLINGCPSUM_PARTICIPANTID nonclustered PARTICIPANTID
PK_BILLINGCPSUM clustered, unique, primary key CONTRACTYEAR, WEEKNO, BILLRUNNO, PARTICIPANTID, PARTICIPANTTYPE

Historical-MMS data model indexes

Index name Index type Index columns (in order)
BILLINGCPSUM_LCX nonclustered LASTCHANGED
BILLINGCPSUM_NDX2 nonclustered PARTICIPANTID
BILLINGCPSUM_PK clustered, unique, primary key CONTRACTYEAR, WEEKNO, BILLRUNNO, PARTICIPANTID, PARTICIPANTTYPE