ERP/3.0/Developers Guide/Database Model/org.openbravo.model.materialmgmt.transaction/M Transaction
M_Transaction
- Name:M_Transaction
- Classname:MaterialMgmtMaterialTransaction
This table contains the following columns:
Name | Nullable | Data Type | Description
|
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. |
M_AttributeSetInstance_ID | No | VARCHAR (32) | The values of the actual Product Attributes |
C_Currency_ID | Yes | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Checkreservedqty | Yes | CHAR (1) | This field is use to check reserved stock quantity during Initial costing Rule validation. |
Checkpricedifference | No | CHAR (1) | This flag will be enabled when the transaction has price differences |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
M_Costing_Algorithm_ID | Yes | VARCHAR (32) | Identifies a Costing Algorithm. Core distribution includes Average and Standard costing methods. Additional methods can be added using Extension Modules. |
Costing_Status | No | VARCHAR (60) | Costing Calculation Status |
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. |
M_InOutLine_ID | Yes | VARCHAR (32) | The Goods Shipment Line indicates a unique line in a Shipment document |
M_Internal_Consumptionline_ID | Yes | VARCHAR (32) | The ID identifies a unique record |
M_Transaction_ID | No | VARCHAR (32) | The ID identifies a unique record |
IsCostCalculated | No | CHAR (1) | Determines that the cost amount has been calculated |
IsCostPermanent | No | CHAR (1) | Determines whether the cost is permanently adjusted or not. |
Isprocessed | No | CHAR (1) | |
Manualcostadjustment | Yes | CHAR (1) | Process to manually set a new cost to this transaction. |
MovementDate | No | TIMESTAMP (7) | 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. |
M_MovementLine_ID | Yes | VARCHAR (32) | The Movement Line indicates the inventory movement document line (if applicable) for this transaction |
MovementQty | No | DECIMAL | The Movement Quantity indicates the quantity of a product that has been moved. |
MovementType | No | VARCHAR (60) | The Movement Type indicates the type of movement (in, out, to production, etc) |
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_InventoryLine_ID | Yes | VARCHAR (32) | The Physical Inventory Line indicates the inventory document line (if applicable) for this transaction |
M_Product_ID | No | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
M_ProductionLine_ID | Yes | VARCHAR (32) | The Production Line indicates the production document line (if applicable) for this transaction |
C_ProjectIssue_ID | Yes | VARCHAR (32) | Issues to the project initiated by the "Issue to Project" process. You can issue Receipts, Time and Expenses, or Stock. |
M_Locator_ID | No | VARCHAR (32) | The Locator ID indicates where in a Warehouse a product is located. |
TransactionCost | Yes | DECIMAL | Total amount of the transaction based on product cost. |
TrxProcessDate | No | TIMESTAMP (7) | Indicates the date and time when the transaction was processed. |
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
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Attribute Set Value
- Physical column name: M_AttributeSetInstance_ID
- Property Name: attributeSetValue
- Reference: PAttribute
- Default value: 0
Foreign key column to M_AttributeSetInstance table, (column: M_AttributeSetInstance_ID)
C_Currency_ID
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Check Reserved Quantity
- Physical column name: Checkreservedqty
- Property Name: checkReservedQuantity
- Reference: YesNo
- Default value: Y
Checkpricedifference
- Physical column name: Checkpricedifference
- Property Name: checkpricedifference
- Reference: YesNo
- Default value: N
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Costing Algorithm
- Physical column name: M_Costing_Algorithm_ID
- Property Name: costingAlgorithm
- Reference: TableDir
Foreign key column to M_Costing_Algorithm table, (column: M_Costing_Algorithm_ID)
Costing_Status
- Physical column name: Costing_Status
- Property Name: costingStatus
- Reference: List
- Default value: NC
List values: M_Transaction Status
The allowed values for this list are:
- NC (Not Calculated): Not Cost Calculated
- CC (Cost Calculated): Cost Calculated
- P (Pending): Pending Cost Calculation
- S (Skip): Skip Cost Calculation
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
Goods Shipment Line
- Physical column name: M_InOutLine_ID
- Property Name: goodsShipmentLine
- Reference: Search
Foreign key column to M_InOutLine table, (column: M_InOutLine_ID)
Internal Consumption Line
- Physical column name: M_Internal_Consumptionline_ID
- Property Name: internalConsumptionLine
- Reference: TableDir
Foreign key column to M_Internal_ConsumptionLine table, (column: M_Internal_Consumptionline_ID)
Inventory Transaction
- Physical column name: M_Transaction_ID
- Property Name: id
- Reference: ID
Is Cost Calculated
- Physical column name: IsCostCalculated
- Property Name: isCostCalculated
- Reference: YesNo
- Default value: N
Is Cost Permanent
- Physical column name: IsCostPermanent
- Property Name: isCostPermanent
- Reference: YesNo
- Default value: N
Is Processed
- Physical column name: Isprocessed
- Property Name: isProcessed
- Reference: YesNo
- Default value: N
Manualcostadjustment
- Physical column name: Manualcostadjustment
- Property Name: manualcostadjustment
- Reference: Button
- Default value: N
Movement Date
- Physical column name: MovementDate
- Property Name: movementDate
- Reference: Date
- This column is part of the table's identifier
Movement Line
- Physical column name: M_MovementLine_ID
- Property Name: movementLine
- Reference: Search
Foreign key column to M_MovementLine table, (column: M_MovementLine_ID)
Movement Quantity
- Physical column name: MovementQty
- Property Name: movementQuantity
- Reference: Quantity
- Default value: 0
- This column is part of the table's identifier
Movement Type
- Physical column name: MovementType
- Property Name: movementType
- Reference: List
- This column is part of the table's identifier
List values: M_Transaction Movement Type
The allowed values for this list are:
- V+ (Vendor Receipts)
- I+ (Inventory In)
- M- (Movement From)
- M+ (Movement To)
- I- (Inventory Out)
- P- (Production -)
- P+ (Production +)
- C- (Customer Shipment)
- D- (Internal Consumption -)
- D+ (Internal Consumption +)
- V- (Vendor Returns)
- W+ (Work Order +)
- W- (Work Order -)
- C+ (Customer Returns)
Order Quantity
- Physical column name: QuantityOrder
- Property Name: orderQuantity
- Reference: Quantity
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)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Physical Inventory Line
- Physical column name: M_InventoryLine_ID
- Property Name: physicalInventoryLine
- Reference: Search
Foreign key column to M_InventoryLine table, (column: M_InventoryLine_ID)
Product
- Physical column name: M_Product_ID
- Property Name: product
- 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_Product table, (column: M_Product_ID)
Production Line
- Physical column name: M_ProductionLine_ID
- Property Name: productionLine
- Reference: Search
Foreign key column to M_ProductionLine table, (column: M_ProductionLine_ID)
Project Issue
- Physical column name: C_ProjectIssue_ID
- Property Name: projectIssue
- Reference: Search
Foreign key column to C_ProjectIssue table, (column: C_ProjectIssue_ID)
Storage Bin
- Physical column name: M_Locator_ID
- Property Name: storageBin
- Reference: Search
Foreign key column to M_Locator table, (column: M_Locator_ID)
Transaction Cost
- Physical column name: TransactionCost
- Property Name: transactionCost
- Reference: Amount
Transaction Process Date
- Physical column name: TrxProcessDate
- Property Name: transactionProcessDate
- Reference: DateTime
- Default value: SYSDATE
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_TRANSACTION_CALCULATED Not Unique. Columns:
- ISCOSTCALCULATED
- M_TRANSACTION_INOUTLINE Not Unique. Columns:
- M_INOUTLINE_ID
- M_TRANSACTION_INVENTORYLINE Not Unique. Columns:
- M_INVENTORYLINE_ID
- M_TRANSACTION_LOCATOR_IDX Not Unique. Columns:
- M_LOCATOR_ID
- M_TRANSACTION_MOVEMENTDATE Not Unique. Columns:
- MOVEMENTDATE
- M_TRANSACTION_MOVEMENTLINE Not Unique. Columns:
- M_MOVEMENTLINE_ID
- M_TRANSACTION_PROCESSED Not Unique. Columns:
- ISPROCESSED
- M_TRANSACTION_PRODUCT_TRXPRDT Not Unique. Columns:
- M_PRODUCT_ID
- TRXPROCESSDATE
- M_TRANSACTION_PRODUCTIONLINE Not Unique. Columns:
- M_PRODUCTIONLINE_ID
- M_TRANSACTION_TRXPROCDATE Not Unique. Columns:
- TRXPROCESSDATE
Check Constraints
These are the check constraints for this table:
- M_TRANSACTION_CHECK1: QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL OR QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL
- M_TRANSACTION_CHECKPRICEDIFF: CHECKPRICEDIFFERENCE IN ('Y', 'N')
- M_TRANSACTION_COSTPERMANENT: ISCOSTPERMANENT IN ('Y', 'N')
- M_TRANSACTION_CURRENCY: TRANSACTIONCOST IS NULL OR TRANSACTIONCOST IS NOT NULL AND C_CURRENCY_ID IS NOT NULL
- M_TRANSACTION_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- M_TRANSACTION_ISCOSTCALC_TRX: ISCOSTCALCULATED IN ('Y', 'N')
- M_TRANSACTION_ISPROCESSED: ISPROCESSED IN ('Y', 'N')