ERP 2.50:Developers Guide/Database Model/org.openbravo.model.financialmgmt.payment/C Debt Payment
C_Debt_Payment
Refers to the amount of money to be paid or collected.
- Name:FinancialMgmtDebtPayment
- Classname:DebtPayment
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_Debt_Payment_ID | N | VARCHAR2(32) | A obligation to pay or a right to collect for a specified item or service. |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
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 |
IsReceipt | N | CHAR(1) | Indicates a sales or purchase transaction. |
C_Settlement_Cancel_ID | Y | VARCHAR2(32) | The settlement used to cancel the corresponding payment. |
C_Settlement_Generate_ID | Y | VARCHAR2(32) | Settlement generate |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
C_Invoice_ID | Y | VARCHAR2(32) | A document listing products, quantities and prices, payment terms, etc. |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
C_CashLine_ID | Y | VARCHAR2(32) | A statement displaying one transaction in the cash journal. |
C_BankAccount_ID | Y | VARCHAR2(32) | A monetary account of funds held in a recognized banking institution. |
C_CashBook_ID | Y | VARCHAR2(32) | A document used to manage all cash transactions. |
PaymentRule | N | VARCHAR2(60) | The method used for payment of this transaction. |
IsPaid | N | CHAR(1) | A confirmation stating whether the request has been closed through a monetary transaction. |
Amount | N | NUMBER | A monetary total. |
WriteOffAmt | Y | NUMBER | A monetary sum that can be deducted from tax obligations. |
Dateplanned | N | DATE | The date when a specified request must be carried out by. |
IsManual | N | CHAR(1) | A task or process completed directly by the user, not automatically by the application. |
IsValid | N | CHAR(1) | A confirmation that something is correct. |
C_BankStatementLine_ID | Y | VARCHAR2(32) | A statement displaying one transaction in the bank statement. |
Changesettlementcancel | N | CHAR(1) | Update columns c_settlement_cancel_id to null, writeoff to zero, ispaid to 'N' from C_DEBT_PAYMENT |
Cancel_Processed | N | CHAR(1) | Cancel processed |
Generate_Processed | N | CHAR(1) | Generate Processed |
GLItemAmt | Y | NUMBER | null |
Isdirectposting | N | CHAR(1) | Direct Posting |
C_Glitem_ID | Y | VARCHAR2(32) | An alias for the Account Combination which can be commonly used in daily operations. |
C_Order_ID | Y | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
IsAutomaticGenerated | Y | CHAR(1) | It is automatically generated |
Status | N | VARCHAR2(60) | A defined state or position of a payment. |
Status_Initial | Y | VARCHAR2(60) | Status of a payment upon creation. |
C_Withholding_ID | Y | VARCHAR2(32) | Withholding |
Withholdingamount | Y | NUMBER | Withholding amount |
Other Info
Check constraints
These are the check constraints for this table:
- C_DEBT_PAYMENT_CANCEL_PROC_CH1: CANCEL_PROCESSED IN ('Y', 'N')
- C_DEBT_PAYMENT_CANCEL_PROC_CHK: (CANCEL_PROCESSED = 'N') OR (C_SETTLEMENT_CANCEL_ID IS NOT NULL)
- C_DEBT_PAYMENT_C_BANKSTATE_CHK: ((C_BANKSTATEMENTLINE_ID IS NULL) AND (C_CASHLINE_ID IS NULL)) OR (ISPAID = 'Y')
- C_DEBT_PAYMENT_C_BPARTNER__CHK: C_BPARTNER_ID IS NOT NULL
- C_DEBT_PAYMENT_C_CASHLINE__CHK: (C_CASHLINE_ID IS NULL) OR (C_BANKSTATEMENTLINE_ID IS NULL)
- C_DEBT_PAYMENT_C_SETTLEMEN_CH1: ((C_SETTLEMENT_CANCEL_ID IS NOT NULL) OR (C_SETTLEMENT_GENERATE_ID IS NOT NULL)) OR (ISPAID = 'N')
- C_DEBT_PAYMENT_C_SETTLEMEN_CHK: (C_SETTLEMENT_CANCEL_ID IS NULL) OR (ISVALID = 'Y')
- C_DEBT_PAYMENT_GENERATE_PR_CHK: GENERATE_PROCESSED IN ('Y', 'N')
- C_DEBT_PAYMENT_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_DEBT_PAYMENT_ISDIRECTPOS_CHK: (ISDIRECTPOSTING = 'N') OR (C_GLITEM_ID IS NOT NULL)
- C_DEBT_PAYMENT_ISMANUAL: ISMANUAL IN ('Y', 'N')
- C_DEBT_PAYMENT_ISRECEIPT: ISRECEIPT IN ('Y', 'N')
- C_DEBT_PAYMENT_ISVALID: ISVALID IN ('Y', 'N')
- C_DEBT_PAYMENT_ISVALID_CHK: (ISVALID = 'N') OR (ISACTIVE = 'Y')
- C_DEBT_PAYMENT_ISVALID_CHK1: (((ISVALID = 'Y') AND (((C_SETTLEMENT_GENERATE_ID IS NULL) AND (GENERATE_PROCESSED = 'N')) OR ((C_SETTLEMENT_GENERATE_ID IS NOT NULL) AND (GENERATE_PROCESSED = 'Y')))) OR (((ISVALID = 'N') AND (C_SETTLEMENT_GENERATE_ID IS NOT NULL)) AND (GENERATE_PROCESSED = 'N'))) OR ((ISVALID = 'N') AND (ISAUTOMATICGENERATED = 'N'))
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- C_DEBT_PAYMENT_BPARTNER_IDX
- C_DEBT_PAYMENT_INVOICE_IDX
- C_DEBT_PAYMENT_SETTCANCEL_IDX
- C_DEBT_PAYMENT_SETTGENERAT_IDX
Unique
- C_DEBT_PAYMENT_KEY
Columns
Payment
Refers to the amount of money to be paid or collected.
- Physical column name: C_Debt_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)
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)
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
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: @#Date@
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: @#Date@
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
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: @IsSOTrx@
- This column is part of the table's identifier
Settlement Cancelled
- Physical column name: C_Settlement_Cancel_ID
- Property Name: settlementCancelled
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_Settlement_Cancel table, (column: null)
C_Settlement_Generate_ID
- Physical column name: C_Settlement_Generate_ID
- Property Name: settlementGenerate
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_Settlement_Generate table, (column: null)
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Invoice
- Physical column name: C_Invoice_ID
- Property Name: invoice
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_Invoice table, (column: C_Invoice_ID)
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
- Default value: @C_BPartner_ID@
- This column is part of the table's identifier
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Cash Journal Line
- Physical column name: C_CashLine_ID
- Property Name: cashJournalLine
- Reference: Search
Foreign key column to C_CashLine table, (column: C_CashLine_ID)
Bank Account
- Physical column name: C_BankAccount_ID
- Property Name: bankAccount
- Reference: TableDir
Foreign key column to C_BankAccount table, (column: C_BankAccount_ID)
Cashbook
- Physical column name: C_CashBook_ID
- Property Name: cashbook
- Reference: TableDir
Foreign key column to C_CashBook table, (column: C_CashBook_ID)
Form of Payment
Form of Payment indicates the method of payment used for this transaction (eg. cash, wire transfer, etc.)
- Physical column name: PaymentRule
- Property Name: formOfPayment
- Reference: List
- This column is part of the table's identifier
List values: All_Payment Rule
The allowed values for this list are:
- 1 (Wire Transfer): Wire Transfer
- 2 (Check): Check
- 3 (Promissory Note): Promissory Note
- 4 (Money Order)
- 5 (Bank Deposit)
- B (Cash): Cash payments that generate an automatic accounting line.
- C (Cash on Delivery): Cash on Delivery
- K (Credit Card)
- P (On Credit): Cash payments that do not generate an automatic accounting line. Its is not an automatic cash entry.
- R (Bank Remittance)
- T (Transfer (ACH))
- W (Withholding)
Payment Complete
The document is paid for.
- Physical column name: IsPaid
- Property Name: paymentComplete
- Reference: YesNo
Amount
The Amount indicates the amount for this document line.
- 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
Due Date
Refers to a date by which the payment must be completed.
- Physical column name: Dateplanned
- Property Name: dueDate
- Reference: Date
- This column is part of the table's identifier
Manual
The Manual check box indicates if the process will done manually.
- Physical column name: IsManual
- Property Name: manual
- Reference: YesNo
Valid
The element passed the validation check
- Physical column name: IsValid
- Property Name: valid
- Reference: YesNo
Bank Statement Line
- Physical column name: C_BankStatementLine_ID
- Property Name: bankStatementLine
- Reference: Search
Foreign key column to C_BankStatementLine table, (column: C_BankStatementLine_ID)
Change settlement cancel
- Physical column name: Changesettlementcancel
- Property Name: changeSettlementCancel
- Reference: Button
- Default value: N
Cancel processed
The settlement cancel is processed.
- Physical column name: Cancel_Processed
- Property Name: cancelProcessed
- Reference: YesNo
- Default value: N
Generate_Processed
The settlement generate is processed.
- Physical column name: Generate_Processed
- Property Name: generateProcessed
- Reference: YesNo
- Default value: N
Balancing Amount
- Physical column name: GLItemAmt
- Property Name: balancingAmount
- Reference: Amount
- Default value: 0
Direct Posting
Direct Posting
- Physical column name: Isdirectposting
- Property Name: directPosting
- Reference: YesNo
- Default value: N
G/L Item
- Physical column name: C_Glitem_ID
- Property Name: gLItem
- Reference: TableDir
Foreign key column to C_Glitem table, (column: C_Glitem_ID)
Sales Order
- Physical column name: C_Order_ID
- Property Name: salesOrder
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_Order table, (column: C_Order_ID)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Is Automatic Generated
It is automatically generated.
- Physical column name: IsAutomaticGenerated
- Property Name: isAutomaticGenerated
- Reference: YesNo
Status
Current status of a debt/payment.
- Physical column name: Status
- Property Name: status
- Reference: List
- Default value: DE
List values: C_DP_Management_Status
The allowed values for this list are:
- AN (Advance)
- DE (--)
- RC (Received)
- RE (Returned)
- RT (In Remittance)
- SE (Sent)
Initial Status
Status of a payment upon creation.
- Physical column name: Status_Initial
- Property Name: initialStatus
- Reference: List
- Default value: DE
List values: C_DP_Management_Status
The allowed values for this list are:
- AN (Advance)
- DE (--)
- RC (Received)
- RE (Returned)
- RT (In Remittance)
- SE (Sent)
Withholding
- Physical column name: C_Withholding_ID
- Property Name: withholding
- Reference: TableDir
Foreign key column to C_Withholding table, (column: C_Withholding_ID)
Withholdingamount
- Physical column name: Withholdingamount
- Property Name: withholdingamount
- Reference: Amount
- Default value: 0
Related tables
Tables that link this table:
- CashDetail.Payment
- DataImportBankStatement.Payment
- FinancialMgmtBankStatementLine.Payment
- FinancialMgmtDPManagementLine.Payment
- FinancialMgmtDebtPaymentBalReplace.Payment
- FinancialMgmtDebtPaymentBalancing.Payment
- FinancialMgmtGLJournalLine.Payment
- FinancialMgmtJournalLine.Payment
- FinancialMgmtRemittanceLine.Payment
- FinancialMgmtRemittanceLine.Payment Cancelled
- Request.Payment
- RequestionAction.Payment
- Test.Payment