SalesOrder
Sales Orders contain the information about the items ordered by a buyer, and other information required to fulfill the order, such as shipping and billing addresses and customer info.
Please see all details in a full-size diagram of SalesOrder data modeling or click to enlarge the image below.

Decimal fields in the Order entity, such as ProductTotalIncludingVAT are calculated fields, calculated from the OrderRows
The order is in the currency specified by the CurrencyCode. The BaseCurrency and exchange rate is recorded with values at the time of placing the order. The historical orders should be converted to a base currency based on this specified rate.
An order can be shipped to multiple locations, but can only have one billing address.
OrderRows may correspond to
- Products purchased
- Value-added services such as shipping fees and other fees
- Discounts
For all products that have product type Unknown, no special VAT rules are applied. Projects that wish to implement specific rules based on product types would need to initialize these fields to contain the correct product type for an order row.