Skip to main content

Finance

Most of our integrations with business systems provide data exposed in a format we call Finance. It is one of our ER models where we have a subject-specific standard model regardless of the original source of the data. This allows it to be effectively used for standard reports and other comparisons between different systems.

tip

Enrich with Raw Mart​

Some systems and tables have a corresponding table with raw data (as the data appeared directly from the source system) in the source system’s Raw Mart. To match a row in the Finance table with the corresponding original row in the Raw Mart, the attribute raw_id in Finance is used and should be compared with the attribute expn_id in the Raw Mart.

Definition​

General Attribute for all Finance tables​

AttributeData typDescription
le_idbigintExopens ID for the company
raw_idnvarchar(60)Exopens ID used to link in corresponding "Raw Mart"-tabell
info

raw_id can be used to link in system-specific data provided in a possible Raw Mart for the system. This ID should then be compared with the attribute expn_id in Raw Mart.

Table name: Finance.DimLegalEntity

AttributeData typDescription
expn_integration_idbigintUsed to link a legal entity with correct expn_integration_id in a possible Raw Mart
le_namenvarchar(100)
currency_basenvarchar(3)
locked_period_dateint
fiscal_year_offsetint

Account​

Table name: Finance.DimAccount

AttributeData typDescription
account_idbigint
account_numbernvarchar(60)
account_namenvarchar(255)
account_labelnvarchar(315)

Cost Center​

Table name: Finance.DimCostCenter

AttributeData typDescription
cc_idbigint
cc_numbernvarchar(50)
cc_namenvarchar(100)
cc_labelnvarchar(150)

Customer​

Table name: Finance.DimCustomer

AttributeData typDescription
customer_idbigint
customer_numbernvarchar(60)
customer_namenvarchar(255)
customer_postal_citynvarchar(60)
customer_postal_countrynvarchar(60)

Date​

Table name: Finance.DimDate

AttributeData typDescription
date_idint
datedate
period_idint
start_of_month_idint
end_of_month_idint
day_of_week_nint
day_of_week_name_shortnvarchar(4)
day_of_week_namenvarchar(7)
week_nint
week_nnnvarchar(2)
week_Vnnvarchar(3)
quarter_nint
quarter_Qnnvarchar(2)
day_of_month_nint
day_of_month_nnnvarchar(3)
month_nint
month_nnnvarchar(2)
month_name_shortnvarchar(5)
month_namenvarchar(9)
day_of_year_nint
year_nint

Product​

Table name: Finance.DimProduct

AttributeData typDescription
product_idbigint
product_numbernvarchar(60)
product_namenvarchar(255)

Project​

Table name: Finance.DimProject

AttributeData typDescription
project_idbigint
project_numbernvarchar(100)
project_namenvarchar(500)
project_statusnvarchar(20)
project_start_dateint
project_end_dateint

Supplier​

Table name: Finance.DimSupplier

AttributeData typDescription
supplier_idbigint
supplier_numbernvarchar(60)
supplier_namenvarchar(255)
supplier_postal_citynvarchar(100)
supplier_postal_countrynvarchar(100)

Version​

Table name: Finance.DimVersion

AttributeData typDescription
version_idnvarchar(50)
version_namenvarchar(100)
version_descrnvarchar(500)
version_typenvarchar(20)
version_groupnvarchar(20)
version_currentint
version_start_dateint
version_end_dateint

Transaction​

Table name: Finance.FactTransaction

AttributeData typDescription
transaction_idbigint
version_idnvarchar(50)
account_idbigint
cc_idbigint
project_idbigint
product_idbigint
customer_idbigint
supplier_idbigint
voucher_seriesnvarchar(36)
voucher_numbernvarchar(36)
voucher_yearint
transaction_dateint
amountdecimal(18, 2)
transaction_descrnvarchar(4000)
document_pathnvarchar(126)

Invoice​

Table name: Finance.FactInvoice

AttributeData typDescription
invoice_idbigint
invoice_numbernvarchar(50)
customer_idbigint
supplier_idbigint
currencynvarchar(3)
invoice_referencenvarchar(255)
invoice_typecharC = Customer invoice, S = Supplier invoice
invoice_dateint
due_dateint
final_pay_dateint
balance_amountdecimal(18, 2)
total_amountdecimal(18, 2)
vat_amountdecimal(18, 2)
total_amount_in_currencydecimal(18, 2)
vat_amount_in_currencydecimal(18, 2)
document_pathnvarchar(255)

Invoice Row​

Table name: Finance.FactInvoiceRow

AttributeData typDescription
invoice_row_idbigint
invoice_idbigintHuvudfakturan för raden
account_idbigint
cc_idbigint
project_idbigint
product_idbigint
customer_idbigint
supplier_idbigint
currencynvarchar(3)
invoice_referencenvarchar(255)
invoice_typecharC = Customer invoice, S = Supplier invoice
invoice_dateint
due_dateint
final_pay_dateint
quantitydecimal(18, 2)
pricedecimal(18, 2)
costdecimal(18, 2)
discount_amountdecimal(18, 2)
total_amountdecimal(18, 2)
vat_amountdecimal(18, 2)
total_amount_in_currencydecimal(18, 2)
vat_amount_in_currencydecimal(18, 2)
descrnvarchar(4000)
document_pathnvarchar(255)
typenvarchar(30)

Order​

Table name: Finance.FactOrder

AttributeData typDescription
order_idbigint
project_idbigint
cc_idbigint
customer_idbigint
product_idbigint
invoice_referencenvarchar(50)
statusnvarchar(30)
descriptionnvarchar(1000)
shipping_dateint
order_dateint
ordered_quantitydecimal(18, 2)
delivered_quantitydecimal(18, 2)
discount_amountdecimal(18, 2)
pricedecimal(18, 2)
costdecimal(18, 2)
original_currencynvarchar(3)
total_amountdecimal(18, 2)
vat_amountdecimal(18, 2)
Balancedecimal(18, 2)
Fraktasnvarchar(1)
Mottagennvarchar(1)
Faktureradnvarchar(1)
Betaladnvarchar(1)
Delbetaladnvarchar(1)
RestOrdernvarchar(1)
Makuleradnvarchar(1)