Промо-продажи из ТТ - promo-offtake

Спецификация

Promo sales from the outlet

Promo sales from the outlets/online store.

FieldTypeDescription
ID* PK
bigint
SO+ unique record identifier
DateAccept
date
Shipment date
DateDelivery
date
Delivery date
DateInvoice
date
Invoice/receipt date
FlagReturn*
bit
Return flag
FlagVAT
bit
VAT included in the volume of sales flag
ID_doc_Invoice*
bigint
Invoice
ID_Load*
int
Load number
ID_OfftakeReceipt
bigint
Receipt
ID_ref_Company*
int
Company seller
ID_ref_CustomerFrom
int
Seller
ID_ref_CustomerTo
int
Customer
ID_ref_LegalEntityFrom
int
Seller's legal entity
ID_ref_LegalEntityTo
int
Customer's legal entity
ID_ref_Period*
int
Sale period
ID_ref_SKU*
int
SKU
ID_ref_Seria
int
Serial number
InvoiceNumber
varchar(200)
Invoice/receipt number
Value
float
Value of sales
ValueVAT
float
VAT costs
Volume
float
Volume of sales
RowVersion*
bigint
Row version
DateUpdate
datetime
Update date
ID_mapping_DataSource*
int
Data source
ID_ref_UnitType
int
Sales unit
ID_ref_SalesType
int
Sales type
UID_DS
varchar(2000)
Data source unique record identifier
DiscountAmount
float
Discount amount
DiscountPercentage
float
Discount percentage
ID_Order
int
Order
CompensationValue
float
Compensation value
PartColumn*
int
Part column
PriceMin
float
Minimum price
PriceMax
float
Maximum price
CheckoutQnt
float
Checkout quantity
ReceiptQnt
float
Receipt quantity
ID_ref_CompanyManufacturer*
int
Company manufacturer

Получение блока данных

Для получения блока данных используются поля:

  • ID_mapping_DataSource — источник данных.

  • DateInvoice — дата факта.

Для подсчета КС необходимо сгруппировать записи по этим полям.

Связанные объекты

ER представления отображают поля актуальные для обозначенной предметной области.

Бизнес-представление

На диаграмме ниже представлены поля, которые описывают продажи с точки зрения бизнеса.