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

PDF Books
Show collection (0 pages)
Collections help

Search

ERP 2.50:Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment/FIN Payment

ERP 2.50:Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment

Index

Contents

FIN_Payment

Payment events

This table contains the following columns:

Name Nullable Data Type Description
Fin_Payment_ID NVARCHAR2(32)Payment event
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
Created NDATEThe date that this record is completed.
Createdby NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
Updatedby NVARCHAR2(32)User who updated this records
Isactive YCHAR(1)A flag indicating whether this record is available for use or de-activated.
Isreceipt YCHAR(1)Indicates a sales or purchase transaction.
C_Bpartner_ID YVARCHAR2(32)null
Paymentdate YDATEnull
C_Currency_ID NVARCHAR2(32)An accepted medium of monetary exchange that may vary across countries.
Amount NNUMBERnull
Writeoffamt NNUMBERA monetary sum that can be deducted from tax obligations.
Fin_Paymentmethod_ID NVARCHAR2(32)It is the method by which payment is expected to be made or received.
DocumentNo NNVARCHAR2(30)An often automatically generated identifier for all documents.
Referenceno YNVARCHAR2(40)The number for a specific reference.
Status NVARCHAR2(60)A defined state or position of a payment.
Processed NCHAR(1)A confirmation that the associated documents or requests are processed.
Processing NCHAR(1)A request to process the respective document or task.
Posted NVARCHAR2(60)An accounting status button that indicates if the transaction has already been posted to the general ledger or not.
Description YVARCHAR2(255)A space to write additional related information.
Fin_Financial_Account_ID NVARCHAR2(32)null
C_DocType_ID NVARCHAR2(32)A value defining what sequence and process setup are used to handle this document.
C_Project_ID YVARCHAR2(32)Identifier of a project defined within the Project & Service Management module.
C_Campaign_ID YVARCHAR2(32)An advertising effort aimed at increasing sales.
C_Activity_ID YVARCHAR2(32)A distinct activity defined and used in activity based management.
User1_ID YVARCHAR2(32)A display of optional elements that are previously defined for this account combination.
User2_ID YVARCHAR2(32)A display of optional elements that are previously defined for this account combination.
Generated_Credit YNUMBERnull
Used_Credit YNUMBERnull
CreatedByAlgorithm NCHAR(1)Document created by algorithm in matching process

Other Info

Check constraints

These are the check constraints for this table:

top

Indexes

These are the indexes for this table (for each index there is a list of all the columns included within it):

Unique

top

Columns

Payment

Payment event

top

Client

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


Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:

 
AD_Client.AD_Client_ID IN (@#User_Client@)

top

Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)

top

Creation Date

The Created field indicates the date that this record was created.

top

Created By

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

top

Updated

The Updated field indicates the date that this record was updated.

top

Updated By

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

top

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.

top

Receipt

Indicated a sales transaction (Accounts Receivable if Receipt=Y) or a purchase transaction (Accounts Payable if Receipt=N).

top

Received From

The Business Partner the payment is receipt from.

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

Callout: SE_Payment_BPartner

This element is linked to a callout.

Selects payment method and financial account related to business partner

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Payment_BPartner Java class.

top

Payment Date

top

Currency

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


Validation Rule Currency of Financial Account: null. With the following code:

 
c_currency.c_currency_id IN (SELECT c_currency_id FROM fin_financial_account WHERE fin_financial_account_id = @FIN_Financial_Account_ID@)

top

Amount

top

Write-off Amount

The Write Off Amount indicates the amount to be written off as uncollectible.

top

Payment Method

Foreign key column to Fin_Paymentmethod table, (column: Fin_Paymentmethod_ID)

Callout: SE_PaymentMethod_FinAccount

This element is linked to a callout.

This callout filters the Financial Accounts for selected Payment Method.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_PaymentMethod_FinAccount Java class.

top

Document No.

The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).

top

Reference No.

The reference number can be printed on orders and invoices to allow your business partner to faster identify your records.

top

Status

Current status of a debt/payment.

Validation Rule FIN_Payment Status validation: Filter status in sales and purchase.. With the following code:

 
(((@Isreceipt@='Y') AND Value NOT IN  ('PPM','PWNC')) OR ((@Isreceipt@='N') AND Value NOT IN ('RPR','RDNC')))

List values: FIN_Payment status

The allowed values for this list are:

top

Processed

The Processed checkbox indicates that a document has been processed.

top

Process Now

When this field is set as 'Y' a process is being performed on this record.

top

Posted

An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand.

top

Description

A description is limited to 255 characters.

top

Deposit To

Financial account where the payment amount is deposited.

Foreign key column to Fin_Financial_Account table, (column: Fin_Financial_Account_ID)

top

Document Type

Foreign key column to C_DocType table, (column: C_DocType_ID)


Validation Rule C_DocType - Receive/Make Payment: null. With the following code:

 
C_DocType.DocBaseType IN ('APP', 'ARR') AND C_DocType.IsSOTrx='@Isreceipt@' AND AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1'

Callout: SL_AdvPayment_Document

This element is linked to a callout.

Document number generation.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_AdvPayment_Document Java class.

top

Project

Foreign key column to C_Project table, (column: C_Project_ID)

top

Sales Campaign

Foreign key column to C_Campaign table, (column: C_Campaign_ID)

top

Activity

Foreign key column to C_Activity table, (column: C_Activity_ID)

top

1st Dimension

The user defined element displays the optional elements that have been defined for this account combination.

top

2nd Dimension

The user defined element displays the optional elements that have been defined for this account combination.

top

Generated_Credit

Amount left as credit on the payment.

top

Used_Credit

If the payment has some generated credit is the amount already used on other payments.
If the payment does not have a generated credit amount is the amount of credit used on the payment.

top

CreatedByAlgorithm

This column reflects whether the document was created by the matching algorithm or not.

top

Related tables

Tables that link this table:

top

Retrieved from "http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Database_Model/org.openbravo.model.financialmgmt.payment/FIN_Payment"

This page has been accessed 1,085 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.