Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| m_costdetail_id | numeric | 10 | null |
|
|
||||||
| ad_client_id | numeric | 10 | null |
|
|
||||||
| ad_org_id | numeric | 10 | null |
|
|
||||||
| c_acctschema_id | numeric | 10 | null |
|
|
||||||
| m_product_id | numeric | 10 | null |
|
|
||||||
| m_attributesetinstance_id | numeric | 10 | null |
|
|
||||||
| isactive | bpchar | 1 | 'Y'::bpchar |
|
|
||||||
| created | timestamp | 29,6 | now() |
|
|
||||||
| createdby | numeric | 10 | null |
|
|
||||||
| updated | timestamp | 29,6 | now() |
|
|
||||||
| updatedby | numeric | 10 | null |
|
|
||||||
| m_costelement_id | numeric | 10 | √ | null |
|
|
|||||
| c_orderline_id | numeric | 10 | √ | null |
|
|
|||||
| m_inoutline_id | numeric | 10 | √ | null |
|
|
|||||
| c_invoiceline_id | numeric | 10 | √ | null |
|
|
|||||
| m_movementline_id | numeric | 10 | √ | null |
|
|
|||||
| m_inventoryline_id | numeric | 10 | √ | null |
|
|
|||||
| m_productionline_id | numeric | 10 | √ | null |
|
|
|||||
| c_projectissue_id | numeric | 10 | √ | null |
|
|
|||||
| issotrx | bpchar | 1 | 'Y'::bpchar |
|
|
||||||
| amt | numeric | 0 | 0 |
|
|
||||||
| qty | numeric | 0 | 0 |
|
|
||||||
| deltaamt | numeric | 0 | √ | 0 |
|
|
|||||
| deltaqty | numeric | 0 | √ | 0 |
|
|
|||||
| description | varchar | 255 | √ | null |
|
|
|||||
| processed | bpchar | 1 | 'N'::bpchar |
|
|
||||||
| pp_cost_collector_id | numeric | 10 | √ | null |
|
|
|||||
| currentcostprice | numeric | 0 | √ | null |
|
|
|||||
| currentqty | numeric | 0 | √ | null |
|
|
|||||
| cumulatedamt | numeric | 0 | √ | null |
|
|
|||||
| cumulatedqty | numeric | 0 | √ | null |
|
|
|||||
| m_costdetail_uu | varchar | 36 | √ | NULL::character varying |
|
|
|||||
| m_matchinv_id | numeric | 10 | √ | NULL::numeric |
|
|
|||||
| dateacct | timestamp | 29,6 | null |
|
|
||||||
| isbackdate | bpchar | 1 | 'N'::bpchar |
|
|
||||||
| backdateprocessedon | timestamp | 29,6 | √ | null |
|
|
|||||
| ref_costdetail_id | numeric | 10 | √ | NULL::numeric |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| m_costdetail_pkey | Primary key | Asc | m_costdetail_id |
| idx_cof_m_costdetail_product_proc_acct | Performance | Asc/Asc/Asc | m_product_id + processed + c_acctschema_id |
| idx_cof_m_costdetail_ref_costdetail_id | Performance | Asc | ref_costdetail_id |
| m_costdetail_asi | Performance | Asc | m_attributesetinstance_id |
| m_costdetail_c_invoiceline_id_idx | Performance | Asc | c_invoiceline_id |
| m_costdetail_c_orderline_id_idx | Performance | Asc | c_orderline_id |
| m_costdetail_product | Performance | Asc/Asc | m_product_id + processed |
| m_costdetail_uu_idx | Must be unique | Asc | m_costdetail_uu |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| m_costdetail_processed_check | ((processed = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))) |
| m_costdetail_issotrx_check | ((issotrx = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))) |
| m_costdetail_isbackdate_check | ((isbackdate = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))) |
| m_costdetail_isactive_check | ((isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))) |