ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment/FIN Payment Proposal
FIN_Payment_Proposal
- Name:FIN_Payment_Proposal
- Classname:FIN_Payment_Proposal
This table contains the following columns:
Name | Nullable | Data Type | Description
|
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. |
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. |
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. |
C_Currency_ID | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Description | Yes | VARCHAR (255) | A description is limited to 255 characters. |
DocumentNo | No | VARCHAR (40) | 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 |
Duedate | Yes | TIMESTAMP (7) | Date when the payment is due without deductions or discount |
EM_Aprm_Executepayment | Yes | CHAR (1) | |
EM_APRM_Process_Proposal | No | VARCHAR (60) | |
EM_APRM_SelExpectedPayments | 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 |
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. |
Paymentdate | No | TIMESTAMP (7) | |
Fin_Paymentmethod_ID | No | VARCHAR (32) | |
Fin_Payment_Proposal_ID | No | VARCHAR (32) | |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | Yes | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
Isreceipt | Yes | CHAR (1) | Indicated a sales transaction (Accounts Receivable if Receipt=Y) or a purchase transaction (Accounts Payable if Receipt=N). |
Referenceno | Yes | VARCHAR (40) | The reference number can be printed on orders and invoices to allow your business partner to faster identify your records. |
Status | Yes | 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. |
Writeoffamt | No | DECIMAL | The Write Off Amount indicates the amount to be written off as uncollectible. |
Columns
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
Amount
- Physical column name: Amount
- Property Name: amount
- Reference: Amount
- Default value: 0
- This column is part of the table's identifier
Business Partner
- 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 column has a callout associated. Selects payment method and financial account related to business partner It is implemented by [2] 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 Trx Security validation", with the following code
AD_Client.AD_Client_ID<>'0'
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
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 [3] 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 - Payment Proposal", with the following code
C_DocType.DocBaseType IN ('APPP', 'ARRP') AND C_DocType.IsSOTrx='@FIN_Isreceipt@' AND AD_ISORGINCLUDED(@AD_Org_ID@,C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1' AND C_DocType.AD_Client_ID=@#AD_Client_ID@
Callout: SL_AdvPayment_Document
This column has a callout associated. Document number generation. It is implemented by [4] Java Class.
Duedate
- Physical column name: Duedate
- Property Name: duedate
- Reference: Date
EM_APRM_Execute Payment
- Physical column name: EM_Aprm_Executepayment
- Property Name: aPRMExecutePayment
- Reference: Button
EM_APRM_Process_Proposal
- Physical column name: EM_APRM_Process_Proposal
- Property Name: aPRMProcessProposal
- Reference: List
List values: FIN_Process Proposal Window Reference
The allowed values for this list are:
- G (Generate Payments)
- RE (Reactivate)
- GSP (Group separate payments for the same vendor into one payment)
- GONEP (Group all orders/invoices into one payment)
EM_APRM_SelExpectedPayments
- Physical column name: EM_APRM_SelExpectedPayments
- Property Name: aPRMSelExpectedPayments
- Reference: Button
- Default value: Y
Financial Transaction Amount
- Physical column name: Finacc_Txn_Amount
- Property Name: financialTransactionAmount
- Reference: General Quantity
- Default value: 0
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 [5] 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)
It has a validation "AD_Org Trx Security validation", with the following code
AD_Org.AD_Org_ID<> '0' AND AD_Org.IsReady='Y'
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 [6] 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 [7] Java Class.
Payment Proposal
- Physical column name: Fin_Payment_Proposal_ID
- Property Name: id
- Reference: ID
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
- Default value: Y
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: Y
Receipt
- Physical column name: Isreceipt
- Property Name: receipt
- Reference: YesNo
- Default value: Y
Reference No.
- Physical column name: Referenceno
- Property Name: referenceNo
- Reference: String
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)
Write-off Amount
- Physical column name: Writeoffamt
- Property Name: writeoffAmount
- Reference: Amount
- Default value: 0
- This column is part of the table's identifier