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

ERP 2.50:Developers Guide/Reference/Entity Model/FinancialMgmtJournalLine

FinancialMgmtJournalLine

The Cash Line Tab defines the individual lines for this journal.

To the database table (C_CashLine) of this entity.

Back to the entity model.

Properties

Note:

Property Column Constraints Type Description
id* C_CashLine_ID Mandatory
Max Length: 32
java.lang.String The Cash Journal Line indicates a unique line in a cash journal.
client AD_Client_ID Mandatory ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Mandatory Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
active IsActive Mandatory java.lang.Boolean 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.

creationDate Created Mandatory java.util.Date The Created field indicates the date that this record was created.
createdBy CreatedBy Mandatory ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory java.util.Date The Updated field indicates the date that this record was updated.
updatedBy UpdatedBy Mandatory ADUser The Updated By field indicates the user who updated this record.
cashJournal# C_Cash_ID Mandatory FinancialMgmtCashJournal The Cash Journal uniquely identifies a Cash Journal. The Cash Journal will record transactions for the cash bank account
lineNo# Line Mandatory java.lang.Long Indicates the unique line for a document. It will also control the display order of the lines within a document.
description Description Max Length: 255 java.lang.String A description is limited to 255 characters.
cashType CashType Mandatory
Max Length: 60
java.lang.String The Cash Type indicates the source for this Cash Journal Line.
charge C_Charge_ID FinancialMgmtGLCharge The Charge indicates a type of Charge (Handling, Shipping, Restocking)
currency C_Currency_ID Currency Indicates the currency to be used when processing this document.
amount# Amount Mandatory java.math.BigDecimal The Amount indicates the amount for this document line.
discountAmount DiscountAmt java.math.BigDecimal The Discount Amount indicates the discount amount for a document or line.
writeoffAmount WriteOffAmt java.math.BigDecimal The Write Off Amount indicates the amount to be written off as uncollectible.
generated IsGenerated java.lang.Boolean The Generated checkbox identifies a journal line that was generated from a source document. Lines could also be entered manually or imported.
salesOrder C_Order_ID Order Unique identifier and a reference to a Sales Order originating from the document sequence defined for this document type.
payment C_Debt_Payment_ID FinancialMgmtDebtPayment Refers to the amount of money to be paid or collected.
gLItem C_Glitem_ID FinancialMgmtGLItem General ledger item.
createAPaymentInAdvance PayInAdvance java.lang.Boolean Create a payment in advance

Java Entity Class

 
/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2010 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package org.openbravo.model.financialmgmt.cashmgmt;
 
import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.currency.Currency;
import org.openbravo.model.common.enterprise.Organization;
import org.openbravo.model.common.order.Order;
import org.openbravo.model.financialmgmt.gl.GLCharge;
import org.openbravo.model.financialmgmt.gl.GLItem;
import org.openbravo.model.financialmgmt.payment.DebtPayment;
 
import java.lang.Boolean;
import java.lang.Long;
import java.lang.String;
 
import java.math.BigDecimal;
 
import java.util.Date;
 
/**
 * Entity class for entity FinancialMgmtJournalLine (stored in table C_CashLine).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class CashJournalLine extends BaseOBObject implements Traceable,
    ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "C_CashLine";
    public static final String FinancialMgmtJournalLine = "FinancialMgmtJournalLine";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_CASHJOURNAL = "cashJournal";
    public static final String PROPERTY_LINENO = "lineNo";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_CASHTYPE = "cashType";
    public static final String PROPERTY_CHARGE = "charge";
    public static final String PROPERTY_CURRENCY = "currency";
    public static final String PROPERTY_AMOUNT = "amount";
    public static final String PROPERTY_DISCOUNTAMOUNT = "discountAmount";
    public static final String PROPERTY_WRITEOFFAMOUNT = "writeoffAmount";
    public static final String PROPERTY_GENERATED = "generated";
    public static final String PROPERTY_SALESORDER = "salesOrder";
    public static final String PROPERTY_PAYMENT = "payment";
    public static final String PROPERTY_GLITEM = "gLItem";
    public static final String PROPERTY_CREATEAPAYMENTINADVANCE =
        "createAPaymentInAdvance";
 
    public CashJournalLine() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_CASHTYPE, "E");
        setDefaultValue(PROPERTY_GENERATED, false);
        setDefaultValue(PROPERTY_CREATEAPAYMENTINADVANCE, false);
    }
 
    @Override
    public String getEntityName() {
        return FinancialMgmtJournalLine;
    }
 
    public String getId() {
        return (String) get(PROPERTY_ID);
    }
 
    public void setId(String id) {
        set(PROPERTY_ID, id);
    }
 
    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }
 
    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }
 
    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }
 
    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }
 
    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }
 
    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }
 
    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }
 
    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }
 
    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }
 
    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }
 
    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }
 
    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }
 
    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }
 
    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }
 
    public CashJournal getCashJournal() {
        return (CashJournal) get(PROPERTY_CASHJOURNAL);
    }
 
    public void setCashJournal(CashJournal cashJournal) {
        set(PROPERTY_CASHJOURNAL, cashJournal);
    }
 
    public Long getLineNo() {
        return (Long) get(PROPERTY_LINENO);
    }
 
    public void setLineNo(Long lineNo) {
        set(PROPERTY_LINENO, lineNo);
    }
 
    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }
 
    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }
 
    public String getCashType() {
        return (String) get(PROPERTY_CASHTYPE);
    }
 
    public void setCashType(String cashType) {
        set(PROPERTY_CASHTYPE, cashType);
    }
 
    public GLCharge getCharge() {
        return (GLCharge) get(PROPERTY_CHARGE);
    }
 
    public void setCharge(GLCharge charge) {
        set(PROPERTY_CHARGE, charge);
    }
 
    public Currency getCurrency() {
        return (Currency) get(PROPERTY_CURRENCY);
    }
 
    public void setCurrency(Currency currency) {
        set(PROPERTY_CURRENCY, currency);
    }
 
    public BigDecimal getAmount() {
        return (BigDecimal) get(PROPERTY_AMOUNT);
    }
 
    public void setAmount(BigDecimal amount) {
        set(PROPERTY_AMOUNT, amount);
    }
 
    public BigDecimal getDiscountAmount() {
        return (BigDecimal) get(PROPERTY_DISCOUNTAMOUNT);
    }
 
    public void setDiscountAmount(BigDecimal discountAmount) {
        set(PROPERTY_DISCOUNTAMOUNT, discountAmount);
    }
 
    public BigDecimal getWriteoffAmount() {
        return (BigDecimal) get(PROPERTY_WRITEOFFAMOUNT);
    }
 
    public void setWriteoffAmount(BigDecimal writeoffAmount) {
        set(PROPERTY_WRITEOFFAMOUNT, writeoffAmount);
    }
 
    public Boolean isGenerated() {
        return (Boolean) get(PROPERTY_GENERATED);
    }
 
    public void setGenerated(Boolean generated) {
        set(PROPERTY_GENERATED, generated);
    }
 
    public Order getSalesOrder() {
        return (Order) get(PROPERTY_SALESORDER);
    }
 
    public void setSalesOrder(Order salesOrder) {
        set(PROPERTY_SALESORDER, salesOrder);
    }
 
    public DebtPayment getPayment() {
        return (DebtPayment) get(PROPERTY_PAYMENT);
    }
 
    public void setPayment(DebtPayment payment) {
        set(PROPERTY_PAYMENT, payment);
    }
 
    public GLItem getGLItem() {
        return (GLItem) get(PROPERTY_GLITEM);
    }
 
    public void setGLItem(GLItem gLItem) {
        set(PROPERTY_GLITEM, gLItem);
    }
 
    public Boolean isCreateAPaymentInAdvance() {
        return (Boolean) get(PROPERTY_CREATEAPAYMENTINADVANCE);
    }
 
    public void setCreateAPaymentInAdvance(Boolean createAPaymentInAdvance) {
        set(PROPERTY_CREATEAPAYMENTINADVANCE, createAPaymentInAdvance);
    }
}

Retrieved from "http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Reference/Entity_Model/FinancialMgmtJournalLine"

This page has been accessed 1,268 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.