Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 SALEDATE datetime The date to use when posting the sold property.
 SALEAMOUNT money   Default = 0 The price at which the property was sold.
 BROKERFEE money   Default = 0 The fee payed to the broker in the property sale.
 SALEPOSTDATE datetime The date to use when posting the sold property record.
 SALEPOSTSTATUSCODE tinyint   Default = 1 Flag used to indicate whether sold property has been posted, should be posted or needs to be posted.
 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.
 SALEPOSTSTATUS nvarchar(11) (Computed) CASE [SALEPOSTSTATUSCODE] WHEN 0 THEN N'Posted' WHEN 1 THEN N'Not Posted' WHEN 2 THEN N'Do Not Post' END Provides a translation for the 'SALEPOSTSTATUSCODE' field.
 ORGANIZATIONSALEAMOUNT money   Default = 0 The price at which the property was sold in the organization currency.
 ORGANIZATIONBROKERFEE money   Default = 0 The fee payed to the broker in the property sale in the organization currency.
 TRANSACTIONSALEAMOUNT money   Default = 0 The price at which the property was sold in the transaction currency.
 TRANSACTIONBROKERFEE money   Default = 0 The fee payed to the broker in the property sale in the transaction currency.
 ISSOLD int (Computed)   case when SALEDATE is null then 0 else 1 end Indicates whether the property has sold or not.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   REVENUEPAYMENTMETHOD.ID Primary Key.
 PROPERTYSUBTYPECODEID uniqueidentifier PROPERTYSUBTYPECODE.ID FK to PROPERTYSUBTYPECODE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this record.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert to the organization amount.
 TRANSACTIONCURRENCYID uniqueidentifier CURRENCY.ID The transaction currency associated with this record.
 BASEEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the base amount.

Index Name Field(s) Unique Primary Clustered
 IX_PROPERTYDETAIL_BASECURRENCYID BASECURRENCYID      
 IX_PROPERTYDETAIL_BASEEXCHANGERATEID BASEEXCHANGERATEID      
 IX_PROPERTYDETAIL_DATEADDED DATEADDED    
 IX_PROPERTYDETAIL_DATECHANGED DATECHANGED      
 IX_PROPERTYDETAIL_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID      
 IX_PROPERTYDETAIL_TRANSACTIONCURRENCYID TRANSACTIONCURRENCYID      
 PK_PROPERTYDETAIL ID  

Trigger Name Description
 TR_PROPERTYDETAIL_T2BDELETE
 TR_PROPERTYDETAIL_AUDIT_UPDATE
 TR_PROPERTYDETAIL_AUDIT_DELETE
 TR_PROPERTYDETAIL_INSERTUPDATE_CURRENCY

Referenced by Field
 PROPERTYDETAILADJUSTMENT PROPERTYDETAILID
 PROPERTYDETAILGLDISTRIBUTION PROPERTYDETAILID

Entity-Relationship diagram of this table