ERP/2.50/Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment/FIN Payment
FIN_Payment
Payment events
- Name:FIN_Payment
- Classname:FIN_Payment
This table contains the following columns:
Name | Nullable | Data Type | Description |
Fin_Payment_ID | N | VARCHAR2(32) | Payment event |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
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 |
Isactive | Y | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Isreceipt | Y | CHAR(1) | Indicates a sales or purchase transaction. |
C_Bpartner_ID | Y | VARCHAR2(32) | null |
Paymentdate | Y | DATE | null |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
Amount | N | NUMBER | null |
Writeoffamt | N | NUMBER | A monetary sum that can be deducted from tax obligations. |
Fin_Paymentmethod_ID | N | VARCHAR2(32) | It is the method by which payment is expected to be made or received. |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
Referenceno | Y | NVARCHAR2(40) | The number for a specific reference. |
Status | N | VARCHAR2(60) | A defined state or position of a payment. |
Processed | N | CHAR(1) | A confirmation that the associated documents or requests are processed. |
Processing | N | CHAR(1) | A request to process the respective document or task. |
Posted | N | VARCHAR2(60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. |
Description | Y | VARCHAR2(255) | A space to write additional related information. |
Fin_Financial_Account_ID | N | VARCHAR2(32) | null |
C_DocType_ID | N | VARCHAR2(32) | A value defining what sequence and process setup are used to handle this document. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
C_Campaign_ID | Y | VARCHAR2(32) | An advertising effort aimed at increasing sales. |
C_Activity_ID | Y | VARCHAR2(32) | A distinct activity defined and used in activity based management. |
User1_ID | Y | VARCHAR2(32) | A display of optional elements that are previously defined for this account combination. |
User2_ID | Y | VARCHAR2(32) | A display of optional elements that are previously defined for this account combination. |
Generated_Credit | Y | NUMBER | null |
Used_Credit | Y | NUMBER | null |
CreatedByAlgorithm | N | CHAR(1) | Document created by algorithm in matching process |
Other Info
Check constraints
These are the check constraints for this table:
- FIN_PAYMENT_BP_CREDIT_CHECK: ((C_BPARTNER_ID IS NULL) AND (COALESCE(GENERATED_CREDIT, 0) = 0)) OR (C_BPARTNER_ID IS NOT NULL)
- FIN_PAYMENT_CREATE_ALGORIT_CHK: CREATEDBYALGORITHM IN ('Y', 'N')
- FIN_PAYMENT_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
- FIN_PAYMENT_KEY
Columns
Payment
Payment event
- Physical column name: Fin_Payment_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)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
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)
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
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
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_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
- Default value: Y
Receipt
Indicated a sales transaction (Accounts Receivable if Receipt=Y) or a purchase transaction (Accounts Payable if Receipt=N).
- Physical column name: Isreceipt
- Property Name: receipt
- Reference: YesNo
- Default value: @FIN_ISRECEIPT@
Received From
The Business Partner the payment is receipt from.
- Physical column name: C_Bpartner_ID
- Property Name: businessPartner
- Reference: Search
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.
Payment Date
- Physical column name: Paymentdate
- Property Name: paymentDate
- Reference: Date
- Default value: @#Date@
- This column is part of the table's identifier
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
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@)
Amount
- Physical column name: Amount
- Property Name: amount
- Reference: Amount
- Default value: 0
- This column is part of the table's identifier
Write-off Amount
The Write Off Amount indicates the amount to be written off as uncollectible.
- Physical column name: Writeoffamt
- Property Name: writeoffAmount
- Reference: Amount
- Default value: 0
- This column is part of the table's identifier
Payment Method
- Physical column name: Fin_Paymentmethod_ID
- Property Name: paymentMethod
- Reference: TableDir
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.
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).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Reference No.
The reference number can be printed on orders and invoices to allow your business partner to faster identify your records.
- Physical column name: Referenceno
- Property Name: referenceNo
- Reference: String
Status
Current status of a debt/payment.
- Physical column name: Status
- Property Name: status
- Reference: List
- Default value: RPAP
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:
- PPM (Payment Made): Payables - Payment Made
- PWNC (Withdrawn not Cleared): Payables - Withdrawn not Cleared
- RDNC (Deposited not Cleared): Receivables - Deposited not Cleared
- RPAE (Awaiting Execution): Awaiting Execution
- RPAP (Awaiting Payment): Awaiting Payment. Unpaid.
- RPPC (Payment Cleared): The same for receivables and payables.
- RPR (Payment Received): Receivables - Payment Received
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
- Default value: N
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.
- Physical column name: Posted
- Property Name: posted
- Reference: Button
- Default value: N
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Paying From
Financial account where the payment amount is deposited.
- Physical column name: Fin_Financial_Account_ID
- Property Name: account
- Reference: TableDir
Foreign key column to Fin_Financial_Account table, (column: Fin_Financial_Account_ID)
Document Type
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: TableDir
- Default value: @SQL=SELECT C_DocType_ID from C_DocType WHERE AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> -1 AND C_DocType.DocBaseType IN ('APP', 'ARR') AND C_DocType.IsSOTrx='@Isreceipt@' ORDER BY C_DocType.isdefault DESC
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.
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
1st Dimension
The user defined element displays the optional elements that have been defined for this account combination.
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: String
2nd Dimension
The user defined element displays the optional elements that have been defined for this account combination.
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: String
Generated_Credit
Amount left as credit on the payment.
- Physical column name: Generated_Credit
- Property Name: generatedCredit
- Reference: Amount
- Default value: 0
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.
- Physical column name: Used_Credit
- Property Name: usedCredit
- Reference: Amount
- Default value: 0
CreatedByAlgorithm
This column reflects whether the document was created by the matching algorithm or not.
- Physical column name: CreatedByAlgorithm
- Property Name: createdByAlgorithm
- Reference: YesNo
- Default value: N
Related tables
Tables that link this table:
- FIN_Finacc_Transaction.Fin_Payment_ID
- FIN_Payment_Detail.Fin_Payment_ID
- FIN_ReconciliationLineTemp.Payment