Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('stock_valuation_layer_id_seq'::regclass) |
|
|
|||||
| company_id | int4 | 10 | null |
|
|
Company |
|||||
| product_id | int4 | 10 | null |
|
|
Product |
|||||
| categ_id | int4 | 10 | √ | null |
|
|
Product Category |
||||
| stock_valuation_layer_id | int4 | 10 | √ | null |
|
|
Linked To |
||||
| stock_move_id | int4 | 10 | √ | null |
|
|
Stock Move |
||||
| account_move_id | int4 | 10 | √ | null |
|
|
Journal Entry |
||||
| account_move_line_id | int4 | 10 | √ | null |
|
|
Invoice Line |
||||
| create_uid | int4 | 10 | √ | null |
|
|
Created by |
||||
| write_uid | int4 | 10 | √ | null |
|
|
Last Updated by |
||||
| description | varchar | 2147483647 | √ | null |
|
|
Description |
||||
| quantity | numeric | 0 | √ | null |
|
|
Quantity |
||||
| unit_cost | numeric | 0 | √ | null |
|
|
Unit Value |
||||
| value | numeric | 0 | √ | null |
|
|
Total Value |
||||
| remaining_qty | numeric | 0 | √ | null |
|
|
Remaining Qty |
||||
| remaining_value | numeric | 0 | √ | null |
|
|
Remaining Value |
||||
| create_date | timestamp | 29,6 | √ | null |
|
|
Created on |
||||
| write_date | timestamp | 29,6 | √ | null |
|
|
Last Updated on |
||||
| price_diff_value | float8 | 17,17 | √ | null |
|
|
Invoice value correction with invoice currency |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| stock_valuation_layer_pkey | Primary key | Asc | id |
| stock_valuation_layer__account_move_id_index | Performance | Asc | account_move_id |
| stock_valuation_layer__account_move_line_id_index | Performance | Asc | account_move_line_id |
| stock_valuation_layer__stock_move_id_index | Performance | Asc | stock_move_id |
| stock_valuation_layer__stock_valuation_layer_id_index | Performance | Asc | stock_valuation_layer_id |
| stock_valuation_layer_index | Performance | Asc/Asc/Asc/Asc/Asc | product_id + remaining_qty + stock_move_id + company_id + create_date |

