Class Charge

java.lang.Object
org.compiere.apps.form.Charge
Direct Known Subclasses:
WCharge

public class Charge extends Object
Create Charge from Accounts
Version:
$Id: Charge.java,v 1.3 2006/07/30 00:51:28 jjanke Exp $
Author:
Jorg Janke
  • Field Details

    • m_WindowNo

      protected int m_WindowNo
      Window No
    • m_C_Element_ID

      protected int m_C_Element_ID
      Account Element
    • log

      protected static final CLogger log
      Logger
    • listCreated

      protected StringBuffer listCreated
    • listRejected

      protected StringBuffer listRejected
  • Constructor Details

    • Charge

      public Charge()
      default constructor
  • Method Details

    • setTrxName

      public void setTrxName(String trxName)
      Set optional trx name
      Parameters:
      trxName -
    • getData

      public Vector<Vector<Object>> getData()
      Get revenue and expense account elements
      Returns:
      list of account element(Boolean[Select],KeyNamePair[C_ElementValue_ID,Value],Name,Boolean[IsExpense]) records
    • findChargeElementID

      protected void findChargeElementID()
      Finds C_Element_ID of primary accounting schema
    • getColumnNames

      public Vector<String> getColumnNames()
      Get column names for getData()
      Returns:
      column names
    • setColumnClass

      public void setColumnClass(IMiniTable dataTable)
      Set class type of columns
      Parameters:
      dataTable -
      See Also:
    • findTaxCategoryID

      protected void findTaxCategoryID()
      Finds default tax category for the client.
    • createElementValue

      public int createElementValue(String value, String name, boolean isExpenseType)
      Create ElementValue (C_ElementValue) for primary AcctSchema
      Parameters:
      value - value
      name - name
      isExpenseType - is expense
      Returns:
      C_ElementValue_ID or 0 if create fail
    • createCharge

      public int createCharge(String name, int elementValueId)
      Create Charge and account element for primary Account Schema.
      Parameters:
      name - charge name
      elementValueId - element value identifier
      Returns:
      charge identifier, or 0 if create fail
    • createAccount

      public void createAccount(IMiniTable dataTable)
      Create charge from selected account elements
      Parameters:
      dataTable -
    • getCreatedAccountNames

      public String getCreatedAccountNames()
      Get account element names for charge created
      Returns:
      comma separated list of account element names (where charge create success)
    • getRejectedAccountNames

      public String getRejectedAccountNames()
      Get account element names for charge create failure
      Returns:
      comma separated list of account element names (where charge create fail)