Skip to content

dbo.PrimeLockedEstimatesThisYear ​

Info Generated by scripts/Generate-DataDictionary.ps1 - do not edit by hand. Edit descriptions in schemas/tables/dbo.PrimeLockedEstimatesThisYear.json and regenerate.

Columns ​

#ColumnTypeNullableFlagsDescription
1JobNumbervarchar(50)yesHuman-readable job number/reference used in Prime Ecosystem
2JobTypenvarchar(50)yesType/category of job (e.g. Insurance, Commercial, Make Safe)
3FilterTagsnvarchar(500)yesComma-separated display list of filter tags applied to this record
4fullNamenvarchar(200)yesContact's full name
5clientnvarchar(255)yesDisplay name of the client
6EstimateIDuniqueidentifieryesForeign key to the related estimate
7jobIduniqueidentifieryesForeign key to primeJobs
8Estimate_Labelnvarchar(255)yesDisplay label/name of the estimate
9Estimate_Descriptionnvarchar(MAX)yesDescription of the estimate
10estimateStatusnvarchar(50)yesStatus of the estimate (e.g. Draft, Locked, Authorised)
11isVariationbityesFlag indicating this is a variation to the original scope of work
12estimateTypenvarchar(100)yesType/category of the estimate
13totalIncludingTaxdecimal(18,2)yesTotal amount including tax
14authorisedTotalExcludingTaxdecimal(18,2)yesTotal authorised (approved) job value excluding tax
15authorisedTotalIncludingTaxdecimal(18,2)yesTotal authorised (approved) job value including tax
16Estimate_CreatedAtdatetimeyesTimestamp the record was created
17Estimate_CreatedBynvarchar(100)yesUser/system that created the record
18Estimate_UpdatedAtdatetimeyesTimestamp the record was last updated
19Estimate_UpdatedBynvarchar(100)yesUser/system that last updated the record
20Estimate_VersionbigintyesOptimistic-concurrency row version number of the estimate
21Category_CategoryIDuniqueidentifieryesForeign key reference to the related Category_Category record
22Category_EstimateIDuniqueidentifieryesForeign key reference to the related Category_Estimate record
23Category_Typenvarchar(50)yesType/classification of the estimate category
24Category_Labelnvarchar(255)yesDisplay label of the estimate category
25Category_Descriptionnvarchar(MAX)yesDescription of the estimate category
26Category_MaterialMargindecimal(10,6)yesMargin percentage applied to material cost for this category
27Category_LabourMargindecimal(10,6)yesMargin percentage applied to labour cost for this category
28ItemIDuniqueidentifieryesForeign key to the related line item
29Item_CategoryIDuniqueidentifieryesForeign key reference to the related Item_Category record
30Item_AuthorisedbityesFlag indicating whether this estimate item has been authorised
31tradenvarchar(100)yesTrade/skill category (e.g. Plumbing, Electrical, Carpentry)
32Item_Descriptionnvarchar(MAX)yesDescription of the estimate item
33notesnvarchar(MAX)yesFree-text internal notes
34materialUnitnvarchar(50)yesUnit of measure for material quantity
35materialQuantitydecimal(18,2)yesQuantity of materials
36materialCostdecimal(18,2)yesCost of materials
37materialTotaldecimal(18,2)yesTotal material amount
38materialMarkupdecimal(10,6)yesMarkup percentage applied to material cost
39materialMarkupTotaldecimal(18,2)yesTotal markup amount applied to materials
40labourUnitnvarchar(50)yesUnit of measure for labour quantity
41labourQuantitydecimal(18,2)yesQuantity of labour (hours/units)
42labourCostdecimal(18,2)yesCost of labour
43labourTotaldecimal(18,2)yesTotal labour amount
44labourMarkupdecimal(10,6)yesMarkup percentage applied to labour cost
45labourMarkupTotaldecimal(18,2)yesTotal markup amount applied to labour
46taxdecimal(10,2)yesTax amount
47Item_MaterialMargindecimal(10,6)yesMargin percentage applied to material cost for this item
48Item_LabourMargindecimal(10,6)yesMargin percentage applied to labour cost for this item
49additionalMargindecimal(18,2)yesAdditional margin percentage applied on top of standard margin

Referenced by ​

Procedures: dbo.spPrimeBuildLockedEstimatesThisYear