View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

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


UpdatedBy No VARCHAR (32) The Updated By field indicates the user who updated this record.
DateLastRun Yes TIMESTAMP (7) The Date Last Run indicates the last time that a process was run.
FrequencyType No VARCHAR (60) The frequency type is used for calculating the date of the next event.
Description Yes NVARCHAR (255) A description is limited to 255 characters.
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.
DocBasisType No VARCHAR (60) The Basis Document indicates the basis to be used for the commission calculation.
Updated No TIMESTAMP (7) The Updated field indicates the date that this record was updated.
ListDetails No CHAR (1) The List Details checkbox indicates that the details for each document line will be displayed.
Processing Yes CHAR (1) When this field is set as 'Y' a process is being performed on this record.
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.
C_Currency_ID No VARCHAR (32) Indicates the currency to be used when processing this document.
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.
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.
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.

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.
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.
M_Product_ID Yes VARCHAR (32) Identifies an item which is either purchased or sold in this organization.
Basisstatus No VARCHAR (60) The documents that will take into account to calculate the commission: all documents or fully paid documents)
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.
iscascade No CHAR (1) If it is checked the commission will be calculated in cascade

Columns

Updated By


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

top


Last Run Date



top


Frequency Type



List values: C_Commission Frequency

The allowed values for this list are:

top


Description



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


Calculation Basis



List values: C_Commission DocBasis

The allowed values for this list are:

top


Updated



top


List Details


Callout: SL_Commission_ListDetails

This column has a callout associated.

It is implemented by [1] Java Class.

top


Process Now



top


Create Lines From



top


Currency


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

top


Business Partner


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

top


Created By


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

top


Creation Date



top


Active



top


Client


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

top


Commission



top


Name


top


Product


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

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


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 [2] Java Class.

List values: C_Commission BasisAmt

The allowed values for this list are:

top


Cascade



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 1,077 times. This page was last modified on 1 December 2016, at 02:17. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.