ERP/2.50/Developers Guide/Database Model/org.openbravo.model.sales/C CommissionDetail
C_CommissionDetail
You may alter the amount and quantity of the detail records, but the suggested way is to add new correcting lines. The amounts are converted from the transaction currency to the Commission Currency (defined in the Commission window)
- Name:SalesCommissionDetail
- Classname:CommissionDetail
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_CommissionDetail_ID | N | VARCHAR2(32) | Supporting information for Commission Amounts |
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 |
C_CommissionAmt_ID | N | VARCHAR2(32) | Generated Commission Amount |
Reference | Y | NVARCHAR2(60) | The data type of this field. |
C_OrderLine_ID | Y | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order line. |
C_InvoiceLine_ID | Y | VARCHAR2(32) | A statement displaying one item or charge in an invoice. |
Info | Y | NVARCHAR2(60) | A space to write additional related information. |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
ActualAmt | N | NUMBER | The actual amount |
ConvertedAmt | N | NUMBER | The monetary sum at which one unit of measure is changed to another. |
ActualQty | N | NUMBER | The actual quantity |
Other Info
Check constraints
These are the check constraints for this table:
- C_COMMISSIONDET_ISACTIVE_CHECK: ISACTIVE 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):
Unique
- C_COMMISSIONDETAIL_KEY
Columns
Commission Detail
The Commission Detail provides supporting information on a Commission Run. Each document line that was part of the Commission Run will be reflected here.
- Physical column name: C_CommissionDetail_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)
Commission Amount
- Physical column name: C_CommissionAmt_ID
- Property Name: commissionAmount
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_CommissionAmt table, (column: C_CommissionAmt_ID)
Reference
The Reference displays the source document number.
- Physical column name: Reference
- Property Name: reference
- Reference: String
- This column is part of the table's identifier
Sales Order Line
- Physical column name: C_OrderLine_ID
- Property Name: salesOrderLine
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Invoice Line
- Physical column name: C_InvoiceLine_ID
- Property Name: invoiceLine
- Reference: Search
Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_ID)
Comments
The Information displays data from the source document line.
- Physical column name: Info
- Property Name: comments
- Reference: String
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Actual Amount
Actual amount indicates the agreed upon amount for a document.
- Physical column name: ActualAmt
- Property Name: actualAmount
- Reference: Amount
Converted Amount
The Converted Amount is the result of multiplying the Source Amount by the Conversion Rate for this target currency.
- Physical column name: ConvertedAmt
- Property Name: convertedAmount
- Reference: Amount
Actual Quantity
The Actual Quantity indicates the quantity as referenced on a document.
- Physical column name: ActualQty
- Property Name: actualQuantity
- Reference: Quantity