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()
      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()
      Returns:
      column names
    • setColumnClass

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

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

      public int createElementValue(String value, String name, boolean isExpenseType)
      Create 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 entries 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()
      Returns:
      comma separated list of account element names (where charge create success)
    • getRejectedAccountNames

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