ERP 2.50:Developers Guide/Database Model/org.openbravo.model.materialmgmt.transaction/M InOut
M_InOut
Contains all the material transaction due to business partner shipments
- Name:MaterialMgmtShipmentInOut
- Classname:ShipmentInOut
This table contains the following columns:
Name | Nullable | Data Type | Description |
M_InOut_ID | N | VARCHAR2(32) | The document number for identifying an act of sending goods. |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
CreatedBy | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
IsSOTrx | N | CHAR(1) | An indication that a transfer of goods and money between business partners is occurring. |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
DocAction | N | VARCHAR2(60) | A means of changing the transaction status of the document. |
DocStatus | N | VARCHAR2(60) | The Document Status indicates the status of a document at this time. |
Posted | N | VARCHAR2(60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. |
Processing | Y | CHAR(1) | A request to process the respective document or task. |
Processed | N | CHAR(1) | A confirmation that the associated documents or requests are processed. |
C_DocType_ID | N | VARCHAR2(32) | A value defining what sequence and process setup are used to handle this document. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
C_Order_ID | Y | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order. |
DateOrdered | Y | DATE | The time listed on the order. |
IsPrinted | N | CHAR(1) | A reference stating whether or not the document has been printed at any time in the past. |
MovementType | N | VARCHAR2(60) | The type of a certain item being moved from one location to another. |
MovementDate | N | DATE | The date that a certain item is moved from one location to another. |
DateAcct | N | DATE | The date this transaction is recorded for in the general ledger. |
C_BPartner_ID | N | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
C_BPartner_Location_ID | N | VARCHAR2(32) | The location of the selected business partner. |
M_Warehouse_ID | N | VARCHAR2(32) | The location where products arrive to or are sent from. |
POReference | Y | NVARCHAR2(20) | A reference or document order number as listed in business partner application. |
DeliveryRule | N | VARCHAR2(60) | A definition stating when a specific delivery will occur. |
FreightCostRule | N | VARCHAR2(60) | The calculation method used when charging freight. |
FreightAmt | Y | NUMBER | The charge amount for a specified shipment. |
DeliveryViaRule | N | VARCHAR2(60) | The desired means of getting requested goods to a business partner. |
M_Shipper_ID | Y | VARCHAR2(32) | The name of the company making the shipment. |
C_Charge_ID | Y | VARCHAR2(32) | A cost or expense incurred during business activity. |
ChargeAmt | Y | NUMBER | The amount of a cost or expense incurred during business activity. |
PriorityRule | N | VARCHAR2(60) | A defined level of importance or precedence. |
DatePrinted | Y | DATE | Date the document was printed. |
C_Invoice_ID | Y | VARCHAR2(32) | A document listing products, quantities and prices, payment terms, etc. |
CreateFrom | Y | CHAR(1) | An addition of statements from pre-existing documents. |
GenerateTo | Y | CHAR(1) | Generate To |
AD_User_ID | Y | VARCHAR2(32) | An acquaintance to reach for information related to the business partner. |
SalesRep_ID | Y | VARCHAR2(32) | The person in charge of a document. |
NoPackages | Y | NUMBER(10, 0) | The number of packages being shipped. |
PickDate | Y | DATE | Date/Time when picked for Shipment |
ShipDate | Y | DATE | Shipment Date/Time |
TrackingNo | Y | NVARCHAR2(60) | Number to track the shipment |
AD_OrgTrx_ID | Y | VARCHAR2(32) | The organization which performs or initiates the transaction. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
C_Campaign_ID | Y | VARCHAR2(32) | An advertising effort aimed at increasing sales. |
C_Activity_ID | Y | VARCHAR2(32) | A distinct activity defined and used in activity based management. |
User1_ID | Y | VARCHAR2(32) | A display of optional elements that are previously defined for this account combination. |
User2_ID | Y | VARCHAR2(32) | A display of optional elements that are previously defined for this account combination. |
UpdateLines | Y | CHAR(1) | Update attribute lines from shipment |
Islogistic | Y | CHAR(1) | null |
GenerateLines | Y | CHAR(1) | null |
Calculate_Freight | Y | CHAR(1) | x not implemented |
Delivery_Location_ID | Y | VARCHAR2(32) | The specific place or address an order will be shipped to or carried out from. |
M_FreightCategory_ID | Y | VARCHAR2(32) | A classification used to help calculate shipping company freight amounts. |
Freight_Currency_ID | Y | VARCHAR2(32) | Currency of the freight amount. |
Other Info
Check constraints
These are the check constraints for this table:
- M_INOUT_CREATEFROM_CHECK: CREATEFROM IN ('Y', 'N')
- M_INOUT_CURRENCY_CHECK: ((FREIGHTAMT = 0) OR (FREIGHTAMT IS NULL)) OR (FREIGHT_CURRENCY_ID IS NOT NULL)
- M_INOUT_GENERATELINES_CHECK: GENERATELINES IN ('N', 'Y')
- M_INOUT_GENERATETO_CHECK: GENERATETO IN ('Y', 'N')
- M_INOUT_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- M_INOUT_ISLOGISTIC_CHK: ISLOGISTIC IN ('N', 'Y')
- M_INOUT_ISPRINTED_CHECK: ISPRINTED IN ('Y', 'N')
- M_INOUT_ISSOTRX_CHECK: ISSOTRX IN ('Y', 'N')
- M_INOUT_PROCESSED_CHECK: PROCESSED IN ('Y', 'N')
- M_INOUT_UPDATELINES_CHK: UPDATELINES IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- M_INOUT_BPARTNER
- M_INOUT_DOCUMENTNO
- M_INOUT_ORDER
- M_INOUT_UPDATED
Unique
- M_INOUT_KEY
Columns
Shipment/Receipt
The Shipment ID indicates the unique document for this shipment.
- Physical column name: M_InOut_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @#AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
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.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Sales Transaction
The Sales Transaction checkbox indicates if this item is a Sales Transaction.
- Physical column name: IsSOTrx
- Property Name: salesTransaction
- Reference: YesNo
- Default value: @IsSOTrx@
Document No.
The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Document Action
You find the current status in the Document Status field. The options are listed in a popup
- Physical column name: DocAction
- Property Name: documentAction
- Reference: Button
- Default value: CO
Document Status
The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window.
- Physical column name: DocStatus
- Property Name: documentStatus
- Reference: List
- Default value: DR
List values: All_Document Status
The allowed values for this list are:
- DR (Draft)
- CO (Completed)
- AP (Accepted)
- CH (Modified)
- NA (Not Accepted)
- TE (Transfer Error)
- PR (Printed)
- TR (Transferred)
- VO (Voided)
- IN (Inactive)
- PE (Accounting Error)
- PO (Posted)
- RE (Re-Opened)
- CL (Closed)
- ?? (Unknown)
- XX (Procesando)
- IP (Under Way)
- WP (Not Paid)
Posted
An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand.
- Physical column name: Posted
- Property Name: posted
- Reference: Button
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
Document Type
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: Table
Foreign key column to C_DocType table, (column: C_DocType_ID)
Reference Table C_DocType_Trx With the following where clause:
C_DocType.AD_Client_ID=@#AD_Client_ID@ AND (@AD_Org_ID@ <> '0' OR COALESCE(@AD_Org_ID@,'-1')='-1')
Validation Rule C_DocType Material Shipments/Receipts: Document Type Material Shipments and Receipts. With the following code:
C_DocType.DocBaseType IN ('MMR', 'MMS') AND C_DocType.IsSOTrx='@IsSOTrx@' AND AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1'
Callout: SE_InOut_DocType
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SE_InOut_DocType Java class.
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Sales Order
- Physical column name: C_Order_ID
- Property Name: salesOrder
- Reference: Search
Foreign key column to C_Order table, (column: C_Order_ID)
Order Date
Indicates the Date an item was ordered.
- Physical column name: DateOrdered
- Property Name: orderDate
- Reference: Date
The Printed checkbox indicates if this document or line will included when printing.
- Physical column name: IsPrinted
- Property Name: print
- Reference: YesNo
Movement Type
The Movement Type indicates the type of movement (in, out, to production, etc)
- Physical column name: MovementType
- Property Name: movementType
- Reference: List
List values: M_Transaction Movement Type
The allowed values for this list are:
- C+ (Customer Returns)
- C- (Customer Shipment)
- D+ (Internal Consumption +)
- D- (Internal Consumption -)
- I+ (Inventory In)
- I- (Inventory Out)
- M+ (Movement To)
- M- (Movement From)
- P+ (Production +)
- P- (Production -)
- V+ (Vendor Receipts)
- V- (Vendor Returns)
- W+ (Work Order +)
- W- (Work Order -)
Movement Date
The Movement Date indicates the date that a product moved in or out of inventory. This is the result of a shipment, receipt or inventory movement.
- Physical column name: MovementDate
- Property Name: movementDate
- Reference: Date
- Default value: @#Date@
- This column is part of the table's identifier
Accounting Date
The date this transaction is recorded on in the general ledger. This date also indicates which accounting period within the fiscal year this transaction will be part of.
- Physical column name: DateAcct
- Property Name: accountingDate
- Reference: Date
- Default value: @#Date@
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Callout: SL_InOut_BPartner
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_InOut_BPartner Java class.
Partner Address
- Physical column name: C_BPartner_Location_ID
- Property Name: partnerAddress
- Reference: TableDir
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
Validation Rule C_BPartner Location - Ship To: null. With the following code:
C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y' AND C_BPartner_Location.IsActive='Y'
Warehouse
- Physical column name: M_Warehouse_ID
- Property Name: warehouse
- Reference: Table
Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)
Reference Table M_Warehouse of Client With the following where clause:
M_Warehouse.AD_Client_ID=@#AD_Client_ID@ AND (select ad.isactive from ad_org ad where ad.ad_org_id = M_Warehouse.AD_Org_ID) = 'Y'
Order Reference
This can be used to input a reference for this specific transaction. For example, a Purchase Order number can be input on a Sales Order for easier reference.
- Physical column name: POReference
- Property Name: orderReference
- Reference: String
Delivery Terms
The Delivery Rule indicates when an order should be delivered. For example should the order be delivered when the entire order is complete, when a line is complete or as the products become available.
- Physical column name: DeliveryRule
- Property Name: deliveryTerms
- Reference: List
- Default value: A
List values: C_Order DeliveryRule
The allowed values for this list are:
- A (Availability): As soon as an item becomes available
- L (Complete Line): As soon as all items of a line become available
- O (Complete Order): As soon as all items of an order are available
- R (After Receipt): After receipt of cash
Freight Cost Rule
The Freight Cost Rule indicates the method used when charging for freight.
- Physical column name: FreightCostRule
- Property Name: freightCostRule
- Reference: List
- Default value: I
List values: C_Order FreightCostRule
The allowed values for this list are:
- C (Calculated): Calculated based on Product Freight Rule
- F (Fix price): Fixed freight price
- I (Freight included): Freight cost included
- L (Line): Entered at Line level
Freight Amount
The Freight Amount indicates the amount charged for Freight in the document currency.
- Physical column name: FreightAmt
- Property Name: freightAmount
- Reference: Amount
- Default value: 0
Delivery Method
The Delivery Via indicates how the products should be delivered. For example, will the order be picked up or shipped.
- Physical column name: DeliveryViaRule
- Property Name: deliveryMethod
- Reference: List
- Default value: P
List values: C_Order DeliveryViaRule
The allowed values for this list are:
- D (Delivery)
- P (Pickup)
- S (Shipper)
Shipping Company
- Physical column name: M_Shipper_ID
- Property Name: shippingCompany
- Reference: TableDir
Foreign key column to M_Shipper table, (column: M_Shipper_ID)
Charge
- Physical column name: C_Charge_ID
- Property Name: charge
- Reference: Table
Foreign key column to C_Charge table, (column: C_Charge_ID)
Reference Table C_Charge With the following where clause:
C_Charge.AD_Client_ID IN (@#User_Client@)
Charge Amount
The Charge Amount indicates the amount for an additional charge.
- Physical column name: ChargeAmt
- Property Name: chargeAmount
- Reference: Amount
- Default value: 0
Priority
The Priority indicates the importance (high, medium, low) of this document
- Physical column name: PriorityRule
- Property Name: priority
- Reference: List
- Default value: 5
List values: All_PriorityRule
The allowed values for this list are:
- 3 (High): High priority
- 5 (Medium): Medium Priority
- 7 (Low): Low priority
Date printed
Indicates the Date that a document was printed.
- Physical column name: DatePrinted
- Property Name: datePrinted
- Reference: Date
Invoice
- Physical column name: C_Invoice_ID
- Property Name: invoice
- Reference: Search
Foreign key column to C_Invoice table, (column: C_Invoice_ID)
Create Lines From
A process that allows the user to copy lines (products) from an existing document different from the one being copied into. For example, in case of entering a new Goods Shipment, the user can copy lines (products) from an existing Sales Order or Sales Invoice.
- Physical column name: CreateFrom
- Property Name: createLinesFrom
- Reference: Button
Generate To
A button that creates documents
- Physical column name: GenerateTo
- Property Name: generateTo
- Reference: Button
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: TableDir
Foreign key column to AD_User table, (column: AD_User_ID)
Validation Rule AD_User C_BPartner User/Contacts: null. With the following code:
AD_User.C_BPartner_ID=@C_BPartner_ID@
Sales Representative
- Physical column name: SalesRep_ID
- Property Name: salesRepresentative
- Reference: Table
Foreign key column to AD_User table, (column: AD_User_ID)
Reference Table AD_User SalesRep With the following where clause:
EXISTS (SELECT * FROM C_BPartner bp WHERE AD_User.C_BPartner_ID=bp.C_BPartner_ID AND bp.IsSalesRep='Y')
Number of Packages
The number of packages being shipped.
- Physical column name: NoPackages
- Property Name: numberOfPackages
- Reference: Integer
Pick Date
Date/Time when picked for Shipment
- Physical column name: PickDate
- Property Name: pickDate
- Reference: DateTime
Ship Date
Actual Date/Time of Shipment (pick up)
- Physical column name: ShipDate
- Property Name: shipDate
- Reference: DateTime
Tracking No
Number to track the shipment
- Physical column name: TrackingNo
- Property Name: trackingNo
- Reference: String
Trx Organization
- Physical column name: AD_OrgTrx_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
Reference Table AD_Org (Trx) With the following where clause:
AD_Org.IsSummary='N' AND AD_Org_ID <> '0'
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
Validation Rule C_Project based on status and bpartner: null. With the following code:
C_Project.projectstatus IN ('OP', 'OR') AND (C_Project.c_bpartner_id=@C_BPartner_ID@ OR '@IsSOTrx@'='N') OR C_Project.c_project_id = @c_project_id@
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
1st Dimension
The user defined element displays the optional elements that have been defined for this account combination.
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: String
2nd Dimension
The user defined element displays the optional elements that have been defined for this account combination.
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: String
Update lines
Update attribute lines from shipment
- Physical column name: UpdateLines
- Property Name: updateLines
- Reference: Button
- Default value: N
Logistic
If is logistic it won't be invoiced. It uses for companies that rent locators or incoming materials that we don't want to invoice
- Physical column name: Islogistic
- Property Name: logistic
- Reference: YesNo
- Default value: @ISLOGISTIC@
Generate lines
A button that creates in out lines
- Physical column name: GenerateLines
- Property Name: generateLines
- Reference: Button
- Default value: N
Calculate Freight
Calculate freight cost
- Physical column name: Calculate_Freight
- Property Name: calculateFreight
- Reference: Button
Delivery Location
- Physical column name: Delivery_Location_ID
- Property Name: deliveryLocation
- Reference: Table
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
Reference Table C_BPartner Location
Validation Rule C_BPartner Location - Ship To: null. With the following code:
C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y' AND C_BPartner_Location.IsActive='Y'
Freight Category
- Physical column name: M_FreightCategory_ID
- Property Name: freightCategory
- Reference: TableDir
Foreign key column to M_FreightCategory table, (column: M_FreightCategory_ID)
Freight Currency
- Physical column name: Freight_Currency_ID
- Property Name: freightCurrency
- Reference: Table
Foreign key column to C_Currency table, (column: C_Currency_ID)
Reference Table C_Currency