ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.cashmgmt/C CashLine
C_CashLine
- Name:C_CashLine
- Classname:FinancialMgmtJournalLine
This table contains the following columns:
Name | Nullable | Data Type | Description
|
IsActive | No | 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 | The Amount indicates the amount for this document line. |
C_Cash_ID | No | VARCHAR (32) | The Cash Journal uniquely identifies a Cash Journal. The Cash Journal will record transactions for the cash bank account |
C_CashLine_ID | No | VARCHAR (32) | The Cash Journal Line indicates a unique line in a cash journal. |
CashType | No | VARCHAR (60) | The Cash Type indicates the source for this Cash Journal Line. |
C_Charge_ID | Yes | VARCHAR (32) | The Charge indicates a type of Charge (Handling, Shipping, Restocking) |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
PayInAdvance | Yes | CHAR (1) | Create a payment in advance |
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 | Yes | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
DiscountAmt | Yes | DECIMAL | The Discount Amount indicates the discount amount for a document or line. |
C_Glitem_ID | Yes | VARCHAR (32) | General ledger item. |
IsGenerated | Yes | CHAR (1) | The Generated checkbox identifies a journal line that was generated from a source document. Lines could also be entered manually or imported. |
Line | No | DECIMAL (10,0) | Indicates the unique line for a document. It will also control the display order of the lines within a document. |
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. |
C_Debt_Payment_ID | Yes | VARCHAR (32) | Refers to the amount of money to be paid or collected. |
C_Order_ID | Yes | VARCHAR (32) | Unique identifier and a reference to a Sales Order originating from the document sequence defined for this document type. |
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 | Yes | DECIMAL | The Write Off Amount indicates the amount to be written off as uncollectible. |
Columns
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
Callout: SL_CashJournal_Amounts
This column has a callout associated.
It is implemented by [1] Java Class.
Cash Journal
- Physical column name: C_Cash_ID
- Property Name: cashJournal
- Reference: Search
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to C_Cash table, (column: C_Cash_ID)
Cash Journal Line
- Physical column name: C_CashLine_ID
- Property Name: id
- Reference: ID
Cash Type
- Physical column name: CashType
- Property Name: cashType
- Reference: List
List values: C_Cash Trx Type
The allowed values for this list are:
- G (G/L Item)
- A (Pay In Advance): Pay in advance
- P (Debt-Payment)
- E (General Expense)
- R (General Receipts)
- C (Charge)
- D (Difference)
- O (Order)
Charge
- Physical column name: C_Charge_ID
- Property Name: charge
- Reference: TableDir
Foreign key column to C_Charge table, (column: C_Charge_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Create a payment in advance
- Physical column name: PayInAdvance
- Property Name: createAPaymentInAdvance
- Reference: Button
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)
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Discount Amount
- Physical column name: DiscountAmt
- Property Name: discountAmount
- Reference: Amount
- Default value: 0
Callout: SL_CashJournal_Amounts
This column has a callout associated.
It is implemented by [2] Java Class.
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)
It has a validation "C_Glitem cash", with the following code
EnableInCash='Y'
Generated
- Physical column name: IsGenerated
- Property Name: generated
- Reference: YesNo
- Default value: N
Line No.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- This column is part of the table's identifier
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 show child organizations", with the following code
AD_ISORGINCLUDED(ad_org.ad_org_id, CASE WHEN (@Parent_AD_Org@ IS NULL OR @Parent_AD_Org@ = ) THEN @AD_ORG_ID@ ELSE @Parent_AD_Org@ END, ad_org.ad_client_id)<>-1 AND IsReady='Y'
Payment
- Physical column name: C_Debt_Payment_ID
- Property Name: payment
- Reference: Search
Foreign key column to C_Debt_Payment table, (column: C_Debt_Payment_ID)
Callout: SL_CashJournal_Amounts
This column has a callout associated.
It is implemented by [3] Java Class.
Sales Order
- Physical column name: C_Order_ID
- Property Name: salesOrder
- Reference: Search
Foreign key column to C_Order table, (column: C_Order_ID)
Callout: SL_CashJournal_Amounts
This column has a callout associated.
It is implemented by [4] Java Class.
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
Callout: SL_CashJournal_Amounts
This column has a callout associated.
It is implemented by [5] Java Class.
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- C_CASHLINE_CASH Not Unique. Columns:
- C_CASH_ID
- C_CASHLINE_ORDER Not Unique. Columns:
- C_ORDER_ID
Check Constraints
These are the check constraints for this table:
- C_CASHLINE_CASHTYPE_CHK: CASHTYPE <> 'C' OR C_CHARGE_ID IS NOT NULL
- C_CASHLINE_CASHTYPE_CHK1: CASHTYPE <> 'G' OR C_GLITEM_ID IS NOT NULL
- C_CASHLINE_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- C_CASHLINE_ISGENERATED_CHK: ISGENERATED IN ('Y', 'N')