Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('sale_order_line_id_seq'::regclass) |
|
|
||||||||||||||||||||||||||
| order_id | int4 | 10 | null |
|
|
Order Reference |
||||||||||||||||||||||||||
| sequence | int4 | 10 | √ | null |
|
|
Sequence |
|||||||||||||||||||||||||
| company_id | int4 | 10 | √ | null |
|
|
Company |
|||||||||||||||||||||||||
| currency_id | int4 | 10 | √ | null |
|
|
Currency |
|||||||||||||||||||||||||
| order_partner_id | int4 | 10 | √ | null |
|
|
Customer |
|||||||||||||||||||||||||
| salesman_id | int4 | 10 | √ | null |
|
|
Salesperson |
|||||||||||||||||||||||||
| product_id | int4 | 10 | √ | null |
|
|
Product |
|||||||||||||||||||||||||
| product_uom | int4 | 10 | √ | null |
|
|
Unit of Measure |
|||||||||||||||||||||||||
| product_packaging_id | int4 | 10 | √ | null |
|
|
Packaging |
|||||||||||||||||||||||||
| create_uid | int4 | 10 | √ | null |
|
|
Created by |
|||||||||||||||||||||||||
| write_uid | int4 | 10 | √ | null |
|
|
Last Updated by |
|||||||||||||||||||||||||
| state | varchar | 2147483647 | √ | null |
|
|
Order Status |
|||||||||||||||||||||||||
| display_type | varchar | 2147483647 | √ | null |
|
|
Display Type |
|||||||||||||||||||||||||
| qty_delivered_method | varchar | 2147483647 | √ | null |
|
|
Method to update delivered qty |
|||||||||||||||||||||||||
| invoice_status | varchar | 2147483647 | √ | null |
|
|
Invoice Status |
|||||||||||||||||||||||||
| analytic_distribution | jsonb | 2147483647 | √ | null |
|
|
Analytic Distribution |
|||||||||||||||||||||||||
| name | text | 2147483647 | null |
|
|
Description |
||||||||||||||||||||||||||
| product_uom_qty | numeric | 0 | null |
|
|
Quantity |
||||||||||||||||||||||||||
| price_unit | numeric | 0 | null |
|
|
Unit Price |
||||||||||||||||||||||||||
| discount | numeric | 0 | √ | null |
|
|
Discount (%) |
|||||||||||||||||||||||||
| price_subtotal | numeric | 0 | √ | null |
|
|
Subtotal |
|||||||||||||||||||||||||
| price_total | numeric | 0 | √ | null |
|
|
Total |
|||||||||||||||||||||||||
| price_reduce_taxexcl | numeric | 0 | √ | null |
|
|
Price Reduce Tax excl |
|||||||||||||||||||||||||
| price_reduce_taxinc | numeric | 0 | √ | null |
|
|
Price Reduce Tax incl |
|||||||||||||||||||||||||
| qty_delivered | numeric | 0 | √ | null |
|
|
Delivery Quantity |
|||||||||||||||||||||||||
| qty_invoiced | numeric | 0 | √ | null |
|
|
Invoiced Quantity |
|||||||||||||||||||||||||
| qty_to_invoice | numeric | 0 | √ | null |
|
|
Quantity To Invoice |
|||||||||||||||||||||||||
| untaxed_amount_invoiced | numeric | 0 | √ | null |
|
|
Untaxed Invoiced Amount |
|||||||||||||||||||||||||
| untaxed_amount_to_invoice | numeric | 0 | √ | null |
|
|
Untaxed Amount To Invoice |
|||||||||||||||||||||||||
| is_downpayment | bool | 1 | √ | null |
|
|
Is a down payment |
|||||||||||||||||||||||||
| is_expense | bool | 1 | √ | null |
|
|
Is expense |
|||||||||||||||||||||||||
| create_date | timestamp | 29,6 | √ | null |
|
|
Created on |
|||||||||||||||||||||||||
| write_date | timestamp | 29,6 | √ | null |
|
|
Last Updated on |
|||||||||||||||||||||||||
| price_tax | float8 | 17,17 | √ | null |
|
|
Total Tax |
|||||||||||||||||||||||||
| product_packaging_qty | float8 | 17,17 | √ | null |
|
|
Packaging Quantity |
|||||||||||||||||||||||||
| customer_lead | float8 | 17,17 | null |
|
|
Lead Time |
||||||||||||||||||||||||||
| route_id | int4 | 10 | √ | null |
|
|
Route |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| sale_order_line_pkey | Primary key | Asc | id |
| sale_order_line__company_id_index | Performance | Asc | company_id |
| sale_order_line__order_id_index | Performance | Asc | order_id |
| sale_order_line__order_partner_id_index | Performance | Asc | order_partner_id |
| sale_order_line__product_id_index | Performance | Asc | product_id |
| sale_order_line_analytic_distribution_accounts_gin_index | Performance |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| sale_order_line_accountable_required_fields | (((display_type IS NOT NULL) OR ((product_id IS NOT NULL) AND (product_uom IS NOT NULL)))) |
| sale_order_line_non_accountable_null_fields | (((display_type IS NULL) OR ((product_id IS NULL) AND (price_unit = (0)::numeric) AND (product_uom_qty = (0)::numeric) AND (product_uom IS NULL) AND (customer_lead = (0)::double precision)))) |

