ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment/FIN Payment
FIN_Payment
- Name:FIN_Payment
- Classname:FIN_Payment
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
Fin_Financial_Account_ID | No | VARCHAR (32) | Financial account used to deposit / withdrawal money such as bank accounts or petty cash |
Isactive | Yes | 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. |
C_Activity_ID | Yes | VARCHAR (32) | Activities indicate tasks that are performed and used to utilize Activity based Costing |
Amount | No | DECIMAL | |
C_Bpartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
C_Costcenter_ID | Yes | VARCHAR (32) | Division that adds to the cost of an organization. Internal structure for cost allocation. |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
CreatedByAlgorithm | No | CHAR (1) | This column reflects whether the document was created by the matching algorithm or not. |
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. |
DocumentNo | No | NVARCHAR (30) | 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). |
C_DocType_ID | No | VARCHAR (32) | The Document Type determines document sequence and processing rules |
EM_Aprm_Add_Scheduledpayments | Yes | CHAR (1) | Select pending payments from Orders or Invoices, or create Payment Details related to GL Items. |
EM_APRM_Process_Payment | Yes | VARCHAR (60) | |
EM_APRM_Reconcile_Payment | Yes | CHAR (1) | |
EM_APRM_ReversePayment | No | CHAR (1) | Create an opposite payment which reverts selected. |
EM_Aprm_Executepayment | Yes | CHAR (1) | |
Finacc_Txn_Amount | No | DECIMAL | The total amount of the payment, converted to the currency of the financial account. |
Finacc_Txn_Convert_Rate | No | DECIMAL | The exchange rate used to convert the payment amount to the financial account amount |
Generated_Credit | Yes | DECIMAL | Amount left as credit on the payment. |
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. |
Fin_Payment_ID | No | VARCHAR (32) | Payment In event |
Paymentdate | Yes | TIMESTAMP (7) | |
Fin_Paymentmethod_ID | No | VARCHAR (32) | |
Posted | Yes | VARCHAR (60) | 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. |
Processing | No | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | No | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
Isreceipt | Yes | CHAR (1) | Indicated a sales transaction (Accounts Receivable if Receipt=Y) or a purchase transaction (Accounts Payable if Receipt=N). |
Referenceno | Yes | NVARCHAR (40) | The reference number can be printed on orders and invoices to allow your business partner to faster identify your records. |
FIN_Rev_Payment_ID | Yes | VARCHAR (32) | Payment which reverses current payment |
C_Campaign_ID | Yes | VARCHAR (32) | The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign. |
Status | No | VARCHAR (60) | Current status of a debt/payment. |
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. |
Used_Credit | Yes | DECIMAL | 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. |
Writeoffamt | No | DECIMAL | The Write Off Amount indicates the amount to be written off as uncollectible. |
Columns
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Account
- 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)
It has a validation "Fin_FinancialAccountofPaymentMethod", with the following code
Fin_Financial_Account_ID IN (SELECT Fin_Financial_Account_ID FROM Fin_Finacc_Paymentmethod WHERE Fin_Paymentmethod_ID=@Fin_Paymentmethod_ID@ AND (CASE WHEN @IsReceipt@='Y' THEN Payin_Allow ELSE Payout_Allow END)='Y' AND isActive='Y')
Callout: SE_Payment_FinAccount
This column has a callout associated. Updates currency and exchange rate based for selected financial account It is implemented by [1] Java Class.
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Activity table, (column: C_Activity_ID)
Amount
- Physical column name: Amount
- Property Name: amount
- Reference: Amount
- Default value: 0
- This column is part of the table's identifier
Callout: SE_Payment_MultiCurrency
This column has a callout associated. Updates fields affected by multicurrency in Payment In / Out windows. It is implemented by [2] Java Class.
Business Partner
- Physical column name: C_Bpartner_ID
- Property Name: businessPartner
- Reference: Search
- This column is part of the table's identifier
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Callout: SE_Payment_BPartner
This column has a callout associated. Selects payment method and financial account related to business partner It is implemented by [3] Java Class.
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Cost Center
- Physical column name: C_Costcenter_ID
- Property Name: costCenter
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Costcenter table, (column: C_Costcenter_ID)
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
CreatedByAlgorithm
- Physical column name: CreatedByAlgorithm
- Property Name: createdByAlgorithm
- Reference: YesNo
- Default value: N
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
It has a validation "Currency of Financial Account", 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@)
OR exists (select 1 from fin_finacc_paymentmethod where fin_financial_account_id = @FIN_Financial_Account_ID@ and fin_paymentmethod_id = @FIN_PaymentMethod_ID@ and isactive='Y' and ( (@IsReceipt@ = 'Y' and payin_allow ='Y' and payin_ismulticurrency='Y') OR (@IsReceipt@ = 'N' and payout_allow ='Y' and payout_ismulticurrency='Y') ))
Callout: SE_Payment_MultiCurrency
This column has a callout associated. Updates fields affected by multicurrency in Payment In / Out windows. It is implemented by [4] Java Class.
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Document Type
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: TableDir
Foreign key column to C_DocType table, (column: C_DocType_ID)
It has a validation "C_DocType - Receive/Make Payment", 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 column has a callout associated. Document number generation. It is implemented by [5] Java Class.
EM_APRM_Add_Scheduledpayments
- Physical column name: EM_Aprm_Add_Scheduledpayments
- Property Name: aPRMAddScheduledpayments
- Reference: Button
EM_APRM_Process_Payment
- Physical column name: EM_APRM_Process_Payment
- Property Name: aPRMProcessPayment
- Reference: List
- Default value: P
List values: FIN_Payment process actions
The allowed values for this list are:
- RE (Reactivate): This option will reactivate the payment and will keep details and amounts for a later edition.
- R (Reactivate and Delete Lines): This option will reactivate the payment and remove its Details and amounts.
- V (Void)
- P (Process)
EM_APRM_Reconcile_Payment
- Physical column name: EM_APRM_Reconcile_Payment
- Property Name: aPRMReconcilePayment
- Reference: Button
EM_APRM_ReversePayment
- Physical column name: EM_APRM_ReversePayment
- Property Name: aPRMReversePayment
- Reference: Button
- Default value: N
EM_Aprm_Executepayment
- Physical column name: EM_Aprm_Executepayment
- Property Name: aprmExecutepayment
- Reference: Button
Financial Transaction Amount
- Physical column name: Finacc_Txn_Amount
- Property Name: financialTransactionAmount
- Reference: Amount
Callout: SE_Payment_MultiCurrency
This column has a callout associated. Updates fields affected by multicurrency in Payment In / Out windows. It is implemented by [6] Java Class.
Financial Transaction Convert Rate
- Physical column name: Finacc_Txn_Convert_Rate
- Property Name: financialTransactionConvertRate
- Reference: General Quantity
- Default value: 1
Callout: SE_Payment_MultiCurrency
This column has a callout associated. Updates fields affected by multicurrency in Payment In / Out windows. It is implemented by [7] Java Class.
Generated_Credit
- Physical column name: Generated_Credit
- Property Name: generatedCredit
- Reference: Amount
- Default value: 0
Callout: SE_Payment_MultiCurrency
This column has a callout associated. Updates fields affected by multicurrency in Payment In / Out windows. It is implemented by [8] Java Class.
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Payment
- Physical column name: Fin_Payment_ID
- Property Name: id
- Reference: ID
Payment Date
- Physical column name: Paymentdate
- Property Name: paymentDate
- Reference: Date
- This column is part of the table's identifier
Callout: SE_Payment_MultiCurrency
This column has a callout associated. Updates fields affected by multicurrency in Payment In / Out windows. It is implemented by [9] Java Class.
Payment Method
- Physical column name: Fin_Paymentmethod_ID
- Property Name: paymentMethod
- Reference: TableDir
Foreign key column to FIN_PaymentMethod table, (column: Fin_Paymentmethod_ID)
It has a validation "FIN_PaymentMethodsWithAccountIsReceiptControl", with the following code
EXISTS (SELECT 1 FROM FIN_FinAcc_PaymentMethod fapm WHERE FIN_PaymentMethod.FIN_PaymentMethod_ID=fapm.FIN_PaymentMethod_ID
AND fapm.isActive='Y' AND fapm.Payin_Allow = (SELECT CASE WHEN '@FIN_ISRECEIPT@'='Y' THEN 'Y' ELSE fapm.Payin_Allow END FROM DUAL) AND fapm.Payout_Allow = (SELECT CASE WHEN '@FIN_ISRECEIPT@'='N' THEN 'Y' ELSE fapm.Payout_Allow END FROM DUAL))
Callout: SE_PaymentMethod_FinAccount
This column has a callout associated. This callout filters the Financial Accounts for selected Payment Method. It is implemented by [10] Java Class.
Posted
- Physical column name: Posted
- Property Name: posted
- Reference: List
- Default value: N
List values: All_Posted Status
The allowed values for this list are:
- E (Post: Error)
- NC (Post: Cost Not Calculated)
- AD (Post: No Accounting Date)
- T (Post: Table Disabled)
- C (Post: Error, No cost)
- d (Post: Disabled For Background)
- L (Post: Document Locked)
- NO (Post: No Related PO)
- D (Post: Document Disabled): Document disabled for accounting
- N (Post)
- Y (Unpost)
- b (Post: Not Balanced)
- c (Post: Not Convertible (no rate))
- p (Post: Period Closed)
- y (Post: Post Prepared)
- i (Post: Invalid Account)
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
- Default value: N
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
Receipt
- Physical column name: Isreceipt
- Property Name: receipt
- Reference: YesNo
- Default value: Y
Reference No.
- Physical column name: Referenceno
- Property Name: referenceNo
- Reference: String
ReversedPayment
- Physical column name: FIN_Rev_Payment_ID
- Property Name: reversedPayment
- Reference: OBUISEL_Selector Reference
Foreign key column to FIN_Payment table, (column: Fin_Payment_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Status
- Physical column name: Status
- Property Name: status
- Reference: List
It has a validation "FIN_Payment Status validation", 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:
- RPAP (Awaiting Payment): Awaiting Payment. Unpaid.
- RPAE (Awaiting Execution): Awaiting Execution
- RPVOID (Void): Void
- PPM (Payment Made): Payables - Payment Made
- RPR (Payment Received): Receivables - Payment Received
- PWNC (Withdrawn not Cleared): Payables - Withdrawn not Cleared
- RDNC (Deposited not Cleared): Receivables - Deposited not Cleared
- RPPC (Payment Cleared): The same for receivables and payables.
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)
Used_Credit
- Physical column name: Used_Credit
- Property Name: usedCredit
- Reference: Amount
- Default value: 0
Write-off Amount
- Physical column name: Writeoffamt
- Property Name: writeoffAmount
- Reference: Amount
- Default value: 0
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- FIN_PAYMENT_BPARTNER_CREDIT Not Unique. Columns:
- C_BPARTNER_ID
- functionBasedColumn
- FIN_PAYMENT_GENERATEDCREDIT Not Unique. Columns:
- GENERATED_CREDIT
- FIN_PAYMENT_POSTED Not Unique. Columns:
- POSTED
- FIN_PAYMENT_REVERSEPAYMENT Not Unique. Columns:
- FIN_REV_PAYMENT_ID
- FIN_PAYMENT_STATUS Not Unique. Columns:
- STATUS
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')