ERP 2.50:Developers Guide/Database Model/org.openbravo.model.shipping/M Freight
ERP 2.50:Developers Guide/Database Model/org.openbravo.model.shipping |
|
M_Freight
Freight Rates for Shipper
- Name:ShippingShippingCompanyFreight
- Classname:ShippingCompanyFreight
This table contains the following columns:
Name | Nullable | Data Type | Description |
M_Freight_ID | N | VARCHAR2(32) | Freight Rate |
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 |
M_Shipper_ID | N | VARCHAR2(32) | The name of the company making the shipment. |
M_FreightCategory_ID | N | VARCHAR2(32) | A classification used to help calculate shipping company freight amounts. |
ValidFrom | N | DATE | A parameter stating the starting time of a specified request. |
C_Country_ID | Y | VARCHAR2(32) | A state or a nation. |
To_Country_ID | Y | VARCHAR2(32) | The country receiving a shipment |
C_Region_ID | Y | VARCHAR2(32) | An area of a specific country. |
To_Region_ID | Y | VARCHAR2(32) | The state/province inside of a country receiving the shipment. |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
FreightAmt | N | NUMBER | The charge amount for a specified shipment. |
Freight_Unit | Y | VARCHAR2(60) | Freight Unit |
Isprice | Y | CHAR(1) | The cost or value of a good or service. |
Line_Round | Y | VARCHAR2(60) | Line round |
Qtyfrom | Y | NUMBER | Qty from |
Qtyto | Y | NUMBER | A parameter stating the highest possible quantity of a specified request. |
Total_Round | Y | VARCHAR2(60) | Total Round |
Other Info
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- M_FREIGHT_KEY
Columns
Freight
Freight Rate for Shipper
- Physical column name: M_Freight_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)
Shipping Company
- Physical column name: M_Shipper_ID
- Property Name: shippingCompany
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a buisiness object (is Parent)
Foreign key column to M_Shipper table, (column: M_Shipper_ID)
Freight Category
- Physical column name: M_FreightCategory_ID
- Property Name: freightCategory
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to M_FreightCategory table, (column: M_FreightCategory_ID)
Valid from Date
The Valid From date indicates the first day of a date range
- Physical column name: ValidFrom
- Property Name: validFromDate
- Reference: Date
Country
- Physical column name: C_Country_ID
- Property Name: country
- Reference: TableDir
Foreign key column to C_Country table, (column: C_Country_ID)
Destination Country
- Physical column name: To_Country_ID
- Property Name: destinationCountry
- Reference: Table
Foreign key column to C_Country table, (column: C_Country_ID)
Reference Table C_Country
Region
- Physical column name: C_Region_ID
- Property Name: region
- Reference: TableDir
Foreign key column to C_Region table, (column: C_Region_ID)
Validation Rule C_Region of Country: null. With the following code:
C_Region.C_Country_ID=@C_Country_ID@
Destination Region
- Physical column name: To_Region_ID
- Property Name: destinationRegion
- Reference: Table
Foreign key column to C_Region table, (column: C_Region_ID)
Reference Table C_Region
Validation Rule C_Region of To_Country: null. With the following code:
C_Region.C_Country_ID=@To_Country_ID@
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Freight Amount
The Freight Amount indicates the amount charged for Freight in the document currency.
- Physical column name: FreightAmt
- Property Name: freightAmount
- Reference: Amount
Freight UOM
It is the unit how the quantity is given.
- Physical column name: Freight_Unit
- Property Name: freightUOM
- Reference: List
List values: Freight_Unit
The allowed values for this list are:
- P (Palet)
- U (Product Unit)
Price
This field indicates if it is a fixed price or it is per unit.
- Physical column name: Isprice
- Property Name: price
- Reference: YesNo
Round Line
How units are rounded for each of the in-out lines.
- Physical column name: Line_Round
- Property Name: roundLine
- Reference: List
List values: Freight round
The allowed values for this list are:
- I (Whole number)
- N (Not Round)
- R (Round)
- U (Round up): If the # is greater than 1.00, round up to the next whole #, in this case 2
Min. Quantity
Lowest quantity
- Physical column name: Qtyfrom
- Property Name: minQuantity
- Reference: Quantity
Max. Quanity
Highest quantity
- Physical column name: Qtyto
- Property Name: maxQuanity
- Reference: Quantity
Round Total
How units are rounded for the whole in-out.
- Physical column name: Total_Round
- Property Name: roundTotal
- Reference: List
List values: Freight round
The allowed values for this list are:
- I (Whole number)
- N (Not Round)
- R (Round)
- U (Round up): If the # is greater than 1.00, round up to the next whole #, in this case 2