Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DETAILS nvarchar(300)   Default = '' Contains any notes the user wants to store about the re-receipting
 NEWNUMBERONRERECEIPT bit   Default = 0 Indicates whether the new receipt will be printed with a new number or not
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 RERECEIPTREASONCODEID uniqueidentifier RERECEIPTREASONCODE.ID Indicates which re-receipt reason code was used
 REVENUERECEIPTID uniqueidentifier   REVENUERECEIPT.ID Indicates which receipt has been marked for re-receipt
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_REVENUERECEIPTRERECEIPTDETAIL_DATEADDED DATEADDED    
 IX_REVENUERECEIPTRERECEIPTDETAIL_DATECHANGED DATECHANGED      
 IX_REVENUERECEIPTRERECEIPTDETAIL_REVENUERECEIPTID REVENUERECEIPTID      
 PK_REVENUERECEIPTRERECEIPTDETAIL ID  

Trigger Name Description
 TR_REVENUERECEIPTRERECEIPTDETAIL_AUDIT_UPDATE
 TR_REVENUERECEIPTRERECEIPTDETAIL_AUDIT_DELETE

Entity-Relationship diagram of this table