Package org.compiere.apps.form
Class Charge
- java.lang.Object
-
- org.compiere.apps.form.Charge
-
-
Field Summary
Fields Modifier and Type Field Description StringBuffer
listCreated
StringBuffer
listRejected
static CLogger
log
Loggerint
m_C_Element_ID
Account Elementint
m_WindowNo
Window No
-
Constructor Summary
Constructors Constructor Description Charge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAccount(IMiniTable dataTable)
protected int
createCharge(String name, int elementValueId)
Create Charge and account entries for primary Account Schema.protected int
createElementValue(String value, String name, boolean isExpenseType)
Create ElementValue for primary AcctSchemavoid
findChargeElementID()
Finds the Element Identifier for the current charge.void
findTaxCategoryID()
Finds the identifier for the tax category for the client.Vector<String>
getColumnNames()
Vector<Vector<Object>>
getData()
Dynamic Init - Get defaults for primary AcctSchema - Create Table with Accountsvoid
setColumnClass(IMiniTable dataTable)
-
-
-
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
-
listCreated
public StringBuffer listCreated
-
listRejected
public StringBuffer listRejected
-
-
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
- valuename
- nameisExpenseType
- 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 nameelementValueId
- element value identifier- Returns:
- charge identifier, or 0 if no charge created.
-
createAccount
public void createAccount(IMiniTable dataTable)
-
-