Skip to content

dbo.ethinvoicedataObjectivedb ​

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

Columns ​

#ColumnTypeNullableFlagsDescription
1DatedateyesInvoice date this row of exported invoice data relates to.
2Statevarchar(3)noAustralian state of the job ('VIC' or 'QLD').
3IduniqueidentifieryesPrime Ecosystem job (primeJobs.id) the invoice belongs to.
4JobNumbervarchar(50)yesHuman-readable job number of the job the invoice belongs to.
5AddressLine1nvarchar(255)yesFirst line of the job site address.
6AuthorisedTotalIncludingTaxmoneyyesTotal authorised works value for the job, including tax.
7AuthorisedTotalIncludingTaxSplitmoneyyesAuthorisedTotalIncludingTax divided evenly across the job's invoice rows, when a job has multiple invoices.
8InvoiceIduniqueidentifieryesPrime Ecosystem accounts receivable invoice (primeAccountsReceivableInvoices.id) this row represents.
9Clientnvarchar(255)yesName of the contact/client the invoice was issued to.
10Subtotaldecimal(19,4)yesInvoice subtotal amount before tax.
11Estimatornvarchar(200)yesFull name of the Prime Ecosystem user assigned as estimator on the job.
12JobStatusvarchar(100)yesCurrent Prime Ecosystem status name of the job (e.g. 'Closed', 'Quote Submitted - Awaiting Approval').
13InvoiceNumbernvarchar(50)yesInvoice number, or 'EMPTY' when no invoice exists for this date/job/state combination.
14Total_Recieveddecimal(20,4)yesAmount received (subtotal excluding tax) for Authorised Works/Allocations/Excess invoices that have been Paid or Sent; null otherwise.
15Forecasted_Receivabledecimal(20,4)yesAmount expected to be received (subtotal excluding tax) for Authorised Works/Allocations/Excess invoices not yet Cancelled or Pending; null otherwise.
16InvoiceStatusvarchar(20)yesInvoice status (e.g. 'Paid', 'Sent', 'Pending', 'Cancelled'), or 'empty' when no invoice exists for this row.
17Typevarchar(50)yesAccounts receivable type of the invoice (e.g. 'Authorised Works', 'Allocations', 'Excess'), or 'False' when no invoice exists for this row.
18Receiveddecimal(20,4)yesInvoice subtotal excluding tax (subtotal minus tax total); 0 when no invoice exists for this row.
19BudgetintyesFixed budget/target invoicing figure assigned to the state for reporting comparisons.

Referenced by ​

Procedures: dbo.spEthinvoicedataObjectivedb