View source | Discuss this page | Page history | Printable version   

ERP/3.0/Developers Guide/Database Model/org.openbravo.model.sales/C Commission

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers Guide/Database Model/org.openbravo.model.sales


Contents

C_Commission

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.

Basisamt No VARCHAR (60) The amount that will take into account to calculate the commission: net amount or margin.
If margin is selected, only the invoices that have shipments will take into account.
Basisstatus No VARCHAR (60) The documents that will take into account to calculate the commission: all documents or fully paid documents)
C_BPartner_ID No VARCHAR (32) A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
DocBasisType No VARCHAR (60) The Basis Document indicates the basis to be used for the commission calculation.
iscascade No CHAR (1) If it is checked the commission will be calculated in cascade
AD_Client_ID No VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
C_Commission_ID No VARCHAR (32) The Commission ID is a unique identifier of a set of commission rules.
CreateFrom Yes CHAR (1) 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.
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.
C_Currency_ID No VARCHAR (32) Indicates the currency to be used when processing this document.
Description Yes NVARCHAR (255) A description is limited to 255 characters.
FrequencyType No VARCHAR (60) The frequency type is used for calculating the date of the next event.
DateLastRun Yes TIMESTAMP (7) The Date Last Run indicates the last time that a process was run.
ListDetails No CHAR (1) The List Details checkbox indicates that the details for each document line will be displayed.
Name No NVARCHAR (60) A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
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.
Processing Yes CHAR (1) When this field is set as 'Y' a process is being performed on this record.
M_Product_ID Yes VARCHAR (32) Identifies an item which is either purchased or sold in this organization.
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



top


Basisamt


It has a validation "C_Commission BasisAmt", with the following code

((AD_Ref_List.value='N' AND @DocBasisType@='O') OR (@DocBasisType@<>'O'))

Callout: SL_Commission_ListDetails

This column has a callout associated.

It is implemented by [1] Java Class.

List values: C_Commission BasisAmt

The allowed values for this list are:

top


Basisstatus


It has a validation "C_Commision BasisStatus", with the following code

((AD_Ref_List.value='A' AND @DocBasisType@='O') OR (@DocBasisType@<>'O'))

List values: C_Commission BasisStatus

The allowed values for this list are:

top


Business Partner


Foreign key column to C_BPartner table, (column: C_BPartner_ID)

top


Calculation Basis



List values: C_Commission DocBasis

The allowed values for this list are:

top


Cascade



top


Client


Foreign key column to AD_Client table, (column: AD_Client_ID)

top


Commission



top


Create Lines From



top


Created By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Creation Date



top


Currency


Foreign key column to C_Currency table, (column: C_Currency_ID)

top


Description



top


Frequency Type



List values: C_Commission Frequency

The allowed values for this list are:

top


Last Run Date



top


List Details


Callout: SL_Commission_ListDetails

This column has a callout associated.

It is implemented by [2] Java Class.

top


Name


top


Organization


Foreign key column to AD_Org table, (column: AD_Org_ID) It has a validation "AD_Org is transactions allowed", with the following code

EXISTS (SELECT 1 FROM ad_orgtype WHERE ad_orgtype.ad_orgtype_id=ad_org.ad_orgtype_id AND IsTransactionsAllowed='Y') and IsReady='Y'

top


Process Now



top


Product


Foreign key column to M_Product table, (column: M_Product_ID)

top


Updated



top


Updated By


Foreign key column to AD_User table, (column: AD_User_ID)

top


Other Info

Check Constraints

These are the check constraints for this table:

top

Back button.png   Back to org.openbravo.model.sales

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Database_Model/org.openbravo.model.sales/C_Commission"

This page has been accessed 3,559 times. This page was last modified on 4 September 2023, at 01:59. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.