ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.transaction/M InOutLine
M_InOutLine
- Name:M_InOutLine
- Classname:MaterialMgmtShipmentInOutLine
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
IsActive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
A_Asset_ID | Yes | VARCHAR (32) | Any item of economic value owned by the corporation, especially that which could be converted to cash. |
M_AttributeSetInstance_ID | Yes | VARCHAR (32) | The values of the actual Product Attributes |
BOM_Parent_ID | Yes | VARCHAR (32) | |
C_Bpartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
Canceled_Inoutline_ID | Yes | VARCHAR (32) | Shipment/Receipt line that it is canceled by this line |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
C_Costcenter_ID | Yes | VARCHAR (32) | Division that adds to the cost of an organization. Internal structure for cost allocation. |
CreatedBy | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Description | Yes | NVARCHAR (2000) | A description is limited to 255 characters. |
IsDescription | No | CHAR (1) | If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order. |
Explode | No | CHAR (1) | Explode the BOM product |
M_InOutLine_ID | No | VARCHAR (32) | The Goods Shipment Line indicates a unique line in a Shipment document |
Line | No | DECIMAL (10,0) | Indicates the unique line for a document. It will also control the display order of the lines within a document. |
M_Condition_Goods_ID | Yes | VARCHAR (32) | |
Manage_Prereservation | Yes | CHAR (1) | |
MovementQty | No | DECIMAL | The Movement Quantity indicates the quantity of a product that has been moved. |
Aumqty | Yes | DECIMAL | The number of a certain item involved in the transaction, according to the defined Operative UOM. |
C_Aum | Yes | VARCHAR (32) | The Alternative UOM defines a unique non monetary unit of measure |
QuantityOrder | Yes | DECIMAL |
Product quantity in the order uom. |
M_Product_Uom_Id | Yes | VARCHAR (32) | Alternative order UOM for the product. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
IsInvoiced | No | CHAR (1) | Indicator if invoiced |
C_OrderLine_ID | Yes | VARCHAR (32) | A unique identifier and a reference to a sales order line (product). |
Salesrep_ID | Yes | VARCHAR (32) | Indicates the sales representative responsible for the transaction that the document specifies . A valid sales representative is a business partner marked as an employee and a sales representative. |
M_InOut_ID | No | VARCHAR (32) | The Shipment ID indicates the unique document for this shipment. |
M_Locator_ID | Yes | VARCHAR (32) | The Locator ID indicates where in a Warehouse a product is located. |
C_UOM_ID | No | VARCHAR (32) | The UOM defines a unique non monetary unit of measure |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
UpdatedBy | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Columns
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Asset
- Physical column name: A_Asset_ID
- Property Name: asset
- Reference: OBUISEL_Selector Reference
Foreign key column to A_Asset table, (column: A_Asset_ID)
Attribute Set Value
- Physical column name: M_AttributeSetInstance_ID
- Property Name: attributeSetValue
- Reference: PAttribute
Foreign key column to M_AttributeSetInstance table, (column: M_AttributeSetInstance_ID)
BOM_Parent_ID
- Physical column name: BOM_Parent_ID
- Property Name: bOMParent
- Reference: Search
Foreign key column to M_InOutLine table, (column: M_InOutLine_ID)
Business Partner
- Physical column name: C_Bpartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Canceled Inout line
- Physical column name: Canceled_Inoutline_ID
- Property Name: canceledInoutLine
- Reference: OBUISEL_Selector Reference
Foreign key column to M_InOutLine table, (column: M_InOutLine_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Costcenter
- Physical column name: C_Costcenter_ID
- Property Name: costcenter
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Costcenter table, (column: C_Costcenter_ID)
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Description Only
- Physical column name: IsDescription
- Property Name: descriptionOnly
- Reference: YesNo
- Default value: N
Explode
- Physical column name: Explode
- Property Name: explode
- Reference: Button
- Default value: N
Goods Shipment Line
- Physical column name: M_InOutLine_ID
- Property Name: id
- Reference: ID
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- This column is part of the table's identifier
M_Condition_Goods_ID
- Physical column name: M_Condition_Goods_ID
- Property Name: conditionGoods
- Reference: TableDir
Foreign key column to M_Condition_Goods table, (column: M_Condition_Goods_ID)
Manage Prereservation
- Physical column name: Manage_Prereservation
- Property Name: managePrereservation
- Reference: Button
Movement Quantity
- Physical column name: MovementQty
- Property Name: movementQuantity
- Reference: Quantity
- Default value: 0
- This column is part of the table's identifier
Operative Quantity
- Physical column name: Aumqty
- Property Name: operativeQuantity
- Reference: Quantity
Callout: OperativeQuantity_To_BaseQuantity
This column has a callout associated.
It is implemented by [1] Java Class.
Operative UOM
- Physical column name: C_Aum
- Property Name: operativeUOM
- Reference: Table
Foreign key column to C_UOM table, (column: C_UOM_ID)
It has a validation "UOM Validation", with the following code
td0.c_uom_id IN(select p.c_uom_id from m_product p where p.m_product_id = @M_Product_ID@) or td0.c_uom_id IN(select a.c_uom_id from m_product_aum a where a.m_product_id = @M_Product_ID@ and ((@IsSOTrx@ = 'Y' and a.sales <> 'NA') OR (@IsSOTrx@ <> 'Y' and a.purchase <> 'NA')) and a.isactive='Y')
Callout: OperativeQuantity_To_BaseQuantity
This column has a callout associated.
It is implemented by [2] Java Class.
Order Quantity
- Physical column name: QuantityOrder
- Property Name: orderQuantity
- Reference: Quantity
Callout: SL_InOut_Conversion
This column has a callout associated.
It is implemented by [3] Java Class.
Order UOM
- Physical column name: M_Product_Uom_Id
- Property Name: orderUOM
- Reference: Table
Foreign key column to M_Product_UOM table, (column: M_Product_Uom_Id)
Callout: SL_InOut_Conversion
This column has a callout associated.
It is implemented by [4] Java Class.
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org show child organizations", with the following code
AD_ISORGINCLUDED(ad_org.ad_org_id, CASE WHEN (@Parent_AD_Org@ IS NULL OR @Parent_AD_Org@ = ) THEN @AD_ORG_ID@ ELSE @Parent_AD_Org@ END, ad_org.ad_client_id)<>-1 AND IsReady='Y'
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
- This column is part of the table's identifier
Foreign key column to M_Product table, (column: M_Product_ID)
Callout: SL_InOutLine_Product
This column has a callout associated.
It is implemented by [5] Java Class.
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
Re-invoice
- Physical column name: IsInvoiced
- Property Name: reinvoice
- Reference: YesNo
- Default value: N
Sales Order Line
- Physical column name: C_OrderLine_ID
- Property Name: salesOrderLine
- Reference: Search
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Sales Representative
- Physical column name: Salesrep_ID
- Property Name: salesRepresentative
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
It has a validation "AD_User - Org Tree", with the following code
AD_ISORGINCLUDED(@AD_Org_ID@, td0.AD_Org_ID, @#AD_Client_ID@) <> '-1'
Shipment/Receipt
- Physical column name: M_InOut_ID
- Property Name: shipmentReceipt
- Reference: Search
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to M_InOut table, (column: M_InOut_ID)
Storage Bin
- Physical column name: M_Locator_ID
- Property Name: storageBin
- Reference: OBUISEL_Selector Reference
Foreign key column to M_Locator table, (column: M_Locator_ID)
It has a validation "M_Locator of Warehouse", with the following code
M_Locator.M_Warehouse_ID=@M_Warehouse_ID@
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- M_INOUTLINE_BOMPARENT Not Unique. Columns:
- BOM_PARENT_ID
- M_INOUTLINE_CANCELEDINOUTLINE Not Unique. Columns:
- CANCELED_INOUTLINE_ID
- M_INOUTLINE_INOUT Not Unique. Columns:
- M_INOUT_ID
- M_INOUTLINE_ORDERLINE Not Unique. Columns:
- C_ORDERLINE_ID
- M_INOUTLINE_PRODUCT Not Unique. Columns:
- M_PRODUCT_ID
Check Constraints
These are the check constraints for this table:
- M_INOUTLINE: QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL OR QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL
- M_INOUTLINE_EXPLODE_CHECK: EXPLODE IN ('Y', 'N')
- M_INOUTLINE_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- M_INOUTLINE_ISINVOICED_CHECK: ISINVOICED IN ('Y', 'N')