Class 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 Detail

      • m_WindowNo

        public int m_WindowNo
        Window No
      • m_C_Element_ID

        public int m_C_Element_ID
        Account Element
      • log

        public static final CLogger log
        Logger
    • Constructor Detail

      • Charge

        public Charge()
    • Method Detail

      • getData

        public Vector<Vector<Object>> getData()
        Dynamic Init - Get defaults for primary AcctSchema - Create Table with Accounts
      • findChargeElementID

        public void findChargeElementID()
        Finds the Element Identifier for the current charge.
      • setColumnClass

        public void setColumnClass​(IMiniTable dataTable)
      • findTaxCategoryID

        public void findTaxCategoryID()
        Finds the identifier for the tax category for the client.
      • createElementValue

        protected int createElementValue​(String value,
                                         String name,
                                         boolean isExpenseType)
        Create ElementValue for primary AcctSchema
        Parameters:
        value - value
        name - name
        isExpenseType - is expense
        Returns:
        element value
      • createCharge

        protected 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 no charge created.
      • createAccount

        public void createAccount​(IMiniTable dataTable)