Table of Contents

Table Crm_Invoice_Lines

Entity

Entity: Crm.Invoicing.InvoiceLines

Detail records (lines) of the invoices. Entity: Crm_Invoice_Lines

Owner Tables Hierarchy

Summary

Name Type Description
Business_Reason nvarchar(1) Allowed: P, S Business reason for invoicing of this product or service. S=Shipment, P=Payment
Delivery_Terms_Code nvarchar(3) Allowed: EXW, FCA, FAS, FOB, CFR, CIF, CPT, CIP, DAP, DAT, DDP, DPU Mode of delivery, like CIF, FOB, etc. Used also in Intrastat reporting
Intrastat_Apply_Date datetime Specifies in which period for Intrastat declaration must be included the current operation. Used only when the invoice is issued in different period than the one, that the operation must be included. If not set the document date is used.
Intrastat_Transaction_Nature_Code nvarchar(2) Allowed: 11, 12, 13, 14, 19, 21, 22, 23, 29, 60, 70, 80, 91, 99, 30, 41, 42, 51, 52 Transaction nature; used for Intrastat reporting
Intrastat_Transport_Country_Id uniqueidentifier Country of origin of the transport company; used for Intrastat reporting
Intrastat_Transport_Mode_Code nvarchar(1) Allowed: 1, 2, 3, 4, 5, 7, 8, 9 Transport mode; used for Intrastat reporting
Invoice_Id uniqueidentifier
Invoice_Line_Id uniqueidentifier PK
Invoice_Order_Line_Id uniqueidentifier Invoice order line which is invoiced by this line
Line_Amount decimal(14, 2) Amount for the line in the currency of the parent document. Usually equals Quantity * Unit_Price. When Quantity = 0, Unit Price is undefined and this contains the total line amount.
Line_Custom_Discount_Percent decimal(7, 6) User-defined discount for the line
Line_Deal_Type_Id uniqueidentifier Deal type for this line. If deal type in the line is different from deal type in the header another VAT entry is created.
Line_Discount_Id uniqueidentifier The line discount type used to form the Line_Standard_Discount_Percent
Line_No int Consecutive line number, unique within the invoice. Usually is increasing in steps of 10, like in 10, 20, 30, etc.
Line_Standard_Discount_Percent decimal(7, 6) Standard discount for the line. This is automatically computed according to discount conditions
Notes nvarchar(254)
Parent_Document_Id uniqueidentifier The document, which the current line executes. NULL when the current line does not execute another line.
Parent_Line_No int The number of the line within the parent document, which the current line executes. NULL when the current line does not execute line.
Parent_Sales_Order_Line_Id uniqueidentifier When not NULL specifies the Sales Order line that is invoiced by this invoice line
Payment_Transaction_Id uniqueidentifier The payment transaction, which is invoiced by this line, when Business Reason = P. Used to reconcile the invoice with the payments in the case of advance payment.
Product_Description nvarchar(254) ML The description of the invoiced product. Initially copied from the name of the invoiced Product or from the generating document
Product_Id uniqueidentifier The invoiced product. When NULL, although rarely used, the invoice line is still valid and the Product Description contains the invoiced item.
Quantity decimal(12, 3) The quantity of the invoiced product
Quantity_Base decimal(12, 3) The equivalent of Quantity in the base measurement unit of the Product
Quantity_Unit_Id uniqueidentifier The measurement unit of Quantity
Row_Version timestamp
Sales_Order_Amount decimal(14, 2) Specifies what portion of the amount of the sales order is invoiced with this line. The amount is calculated with respect to the trade conditions (prices, discounts, etc.) from the sales order. Can be different from the total amount of the line when the trade conditions from the sales order have changed before invoicing
Sales_Order_Id uniqueidentifier When not NULL specifies the Sales Order that is invoiced by this line
Serial_Number_Id uniqueidentifier Which serial number to receive/issue. NULL means that serial number is unknown or not applicable
Standard_Quantity_Base decimal(12, 3) Readonly The theoretical quantity in base measurement unit according to the current measurement dimensions for the product. Used to measure the execution.
Transaction_Line_Id uniqueidentifier The store transaction line that is invoiced by this line, for Business Reason = S
Unit_Price decimal(14, 5) The unit selling price of Quantity

Columns

Business_Reason

Business reason for invoicing of this product or service. S=Shipment, P=Payment

Property Value
Allowed Values P, S
Auto Complete no
Data Filter no
Default Value S
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length 1
Order 24
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(1)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Delivery_Terms_Code

Mode of delivery, like CIF, FOB, etc. Used also in Intrastat reporting

Property Value
Allowed Values EXW, FCA, FAS, FOB, CFR, CIF, CPT, CIP, DAP, DAT, DDP, DPU
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length 3
Order 14
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(3) (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Intrastat_Apply_Date

Specifies in which period for Intrastat declaration must be included the current operation. Used only when the invoice is issued in different period than the one, that the operation must be included. If not set the document date is used.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 31
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type datetime (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Intrastat_Apply_Date - Supported Filters

Filter Type Default Include Nulls Hidden by Default
GreaterThanOrLessThan None no no

Intrastat_Transaction_Nature_Code

Transaction nature; used for Intrastat reporting

Property Value
Allowed Values 11, 12, 13, 14, 19, 21, 22, 23, 29, 60, 70, 80, 91, 99, 30, 41, 42, 51, 52
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length 2
Order 17
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(2) (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Intrastat_Transport_Country_Id

Country of origin of the transport company; used for Intrastat reporting

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 16
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Countries
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Intrastat_Transport_Country_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Intrastat_Transport_Mode_Code

Transport mode; used for Intrastat reporting

Property Value
Allowed Values 1, 2, 3, 4, 5, 7, 8, 9
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length 1
Order 15
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(1) (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Invoice_Id

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 20
Ownership Reference yes
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Invoices
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier
UI Memo Editor no
UI Width 100
User Login no
Visible yes

Invoice_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no yes

Invoice_Line_Id

Property Value
Auto Complete no
Data Filter no
Default Value NewGuid
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 21
Ownership Reference no
Pasword no
Picture no
Primary Key yes (order: 1)
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Invoice_Line_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no yes

Invoice_Order_Line_Id

Invoice order line which is invoiced by this line

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 25
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Invoice_Order_Lines
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width 100
User Login no
Visible no

Invoice_Order_Line_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Line_Amount

Amount for the line in the currency of the parent document. Usually equals Quantity * Unit_Price. When Quantity = 0, Unit Price is undefined and this contains the total line amount.

Property Value
Auto Complete no
Data Filter no
Default Value 0
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 6
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type Sum
Supports EQUALS_IN no
Type decimal(14, 2)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Line_Custom_Discount_Percent

User-defined discount for the line

Property Value
Attributes IsPercent
Auto Complete no
Data Filter no
Default Value 0
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 5
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(7, 6)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Line_Custom_Discount_Percent - Supported Filters

Filter Type Default Include Nulls Hidden by Default
GreaterThanOrLessThan None yes no

Line_Deal_Type_Id

Deal type for this line. If deal type in the line is different from deal type in the header another VAT entry is created.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 22
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table VAT_Deal_Types
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Line_Deal_Type_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Line_Discount_Id

The line discount type used to form the Line_Standard_Discount_Percent

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 9
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Line_Discounts
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Line_Discount_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Line_No

Consecutive line number, unique within the invoice. Usually is increasing in steps of 10, like in 10, 20, 30, etc.

Property Value
Auto Complete no
Autoincrement 10
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 0
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type int
UI Memo Editor no
UI Width Short
User Login no
Visible yes

Line_No - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no yes

Line_Standard_Discount_Percent

Standard discount for the line. This is automatically computed according to discount conditions

Property Value
Attributes IsPercent
Auto Complete no
Data Filter no
Default Value 0
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 10
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(7, 6)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Notes

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length 254
Order 13
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(254) (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Parent_Document_Id

The document, which the current line executes. NULL when the current line does not execute another line.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 30
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Documents
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Parent_Document_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Parent_Line_No

The number of the line within the parent document, which the current line executes. NULL when the current line does not execute line.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 29
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type int (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Parent_Sales_Order_Line_Id

When not NULL specifies the Sales Order line that is invoiced by this invoice line

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 19
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Sales_Order_Lines
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width 100
User Login no
Visible no

Parent_Sales_Order_Line_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Payment_Transaction_Id

The payment transaction, which is invoiced by this line, when Business Reason = P. Used to reconcile the invoice with the payments in the case of advance payment.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 18
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Cash_Payment_Transactions
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Payment_Transaction_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Product_Description

The description of the invoiced product. Initially copied from the name of the invoiced Product or from the generating document

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length 254
Order 7
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type nvarchar(254) (MultiLanguage)
UI Memo Editor no
UI Width Long
User Login no
Visible no

Product_Id

The invoiced product. When NULL, although rarely used, the invoice line is still valid and the Product Description contains the invoiced item.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 1
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Products
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Product_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes yes

Quantity

The quantity of the invoiced product

Property Value
Auto Complete no
Data Filter no
Default Value 1
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 2
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(12, 3)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes

Quantity - Supported Filters

Filter Type Default Include Nulls Hidden by Default
GreaterThanOrLessThan None yes no

Quantity_Base

The equivalent of Quantity in the base measurement unit of the Product

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 11
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(12, 3)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Quantity_Unit_Id

The measurement unit of Quantity

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 3
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Gen_Measurement_Units
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier
UI Memo Editor no
UI Width Short
User Login no
Visible yes

Quantity_Unit_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL no no

Row_Version

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 27
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type timestamp
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Sales_Order_Amount

Specifies what portion of the amount of the sales order is invoiced with this line. The amount is calculated with respect to the trade conditions (prices, discounts, etc.) from the sales order. Can be different from the total amount of the line when the trade conditions from the sales order have changed before invoicing

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 26
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(14, 2) (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Sales_Order_Id

When not NULL specifies the Sales Order that is invoiced by this line

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 23
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Crm_Sales_Orders
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width 100
User Login no
Visible no

Sales_Order_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no
Like None no no

Serial_Number_Id

Which serial number to receive/issue. NULL means that serial number is unknown or not applicable

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 8
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Inv_Serial_Numbers
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Serial_Number_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes yes

Standard_Quantity_Base

The theoretical quantity in base measurement unit according to the current measurement dimensions for the product. Used to measure the execution.

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop yes
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 28
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly yes
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(12, 3)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Transaction_Line_Id

The store transaction line that is invoiced by this line, for Business Reason = S

Property Value
Auto Complete no
Data Filter no
Default Value None
Enter Stop no
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 12
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
Referenced Table Inv_Transaction_Lines
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN yes
Type uniqueidentifier (Allows NULL)
UI Memo Editor no
UI Width Medium
User Login no
Visible no

Transaction_Line_Id - Supported Filters

Filter Type Default Include Nulls Hidden by Default
Equals NULL yes no

Unit_Price

The unit selling price of Quantity

Property Value
Auto Complete no
Data Filter no
Default Value 0
Enter Stop yes
Format N2
Ignore for Insert Order no
Is Entity Name no
Max Length -1
Order 4
Ownership Reference no
Pasword no
Picture no
Primary Key no
Readonly no
RTF no
Sortable no
Summary Type None
Supports EQUALS_IN no
Type decimal(14, 5)
UI Memo Editor no
UI Width Medium
User Login no
Visible yes