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

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

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.financialmgmt.payment


Contents

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


Foreign key column to User1 table, (column: User1_ID)

top


2nd Dimension


Foreign key column to User2 table, (column: User2_ID)

top


Account


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.

top


Active



top


Activity


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

top


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

top


Business Partner

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.

top


Client


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@)

top


Cost Center


Foreign key column to C_Costcenter table, (column: C_Costcenter_ID)

top


Created By


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

top


CreatedByAlgorithm



top


Creation Date



top


Currency


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.

top


Description



top


Document No.


top


Document Type


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.

top


EM_APRM_Add_Scheduledpayments



top


EM_APRM_Process_Payment


List values: FIN_Payment process actions

The allowed values for this list are:

top


EM_APRM_Reconcile_Payment



top


EM_APRM_ReversePayment



top


EM_Aprm_Executepayment



top


Financial Transaction 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.

top


Financial Transaction Convert Rate


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.

top


Generated_Credit


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.

top


Organization


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

top


Payment



top


Payment Date


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.

top


Payment Method


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.

top


Posted


List values: All_Posted Status

The allowed values for this list are:

top


Process Now



top


Processed



top


Project


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

top


Receipt



top


Reference No.



top


ReversedPayment


Foreign key column to FIN_Payment table, (column: Fin_Payment_ID)

top


Sales Campaign


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

top


Status



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:

top


Updated



top


Updated By


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

top


Used_Credit



top


Write-off Amount



top


Other Info

Indices

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

top

Check Constraints

These are the check constraints for this table:

top

Back button.png   Back to org.openbravo.model.financialmgmt.payment

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

This page has been accessed 7,547 times. This page was last modified on 15 November 2023, at 09:37. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.