Package org.compiere.apps.form
Class Charge
java.lang.Object
org.compiere.apps.form.Charge
- Direct Known Subclasses:
WCharge
Create Charge from Accounts
- Version:
- $Id: Charge.java,v 1.3 2006/07/30 00:51:28 jjanke Exp $
- Author:
- Jorg Janke
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration of column names and indices. -
Field Summary
Modifier and TypeFieldDescriptionprotected StringBuffer
protected StringBuffer
protected static final CLogger
Loggerprotected int
Account Elementprotected int
Window No -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createAccount
(IMiniTable dataTable) create charge from selected account elementsint
createCharge
(String name, int elementValueId) Create Charge and account entries for primary Account Schema.int
createElementValue
(String value, String name, boolean isExpenseType) Create ElementValue for primary AcctSchemaprotected void
Finds C_Element_ID of primary accounting schemaprotected void
Finds default tax category for the client.getData()
void
setColumnClass
(IMiniTable dataTable) set class type of columnsvoid
setTrxName
(String trxName) set optional trx name
-
Field Details
-
m_WindowNo
protected int m_WindowNoWindow No -
m_C_Element_ID
protected int m_C_Element_IDAccount Element -
log
Logger -
listCreated
-
listRejected
-
-
Constructor Details
-
Charge
public Charge()default constructor
-
-
Method Details
-
setTrxName
set optional trx name- Parameters:
trxName
-
-
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
- Returns:
- column names
-
setColumnClass
set class type of columns- Parameters:
dataTable
-
-
findTaxCategoryID
protected void findTaxCategoryID()Finds default tax category for the client. -
createElementValue
Create ElementValue for primary AcctSchema- Parameters:
value
- valuename
- nameisExpenseType
- is expense- Returns:
- C_ElementValue_ID or 0 if create fail
-
createCharge
Create Charge and account entries for primary Account Schema.- Parameters:
name
- charge nameelementValueId
- element value identifier- Returns:
- charge identifier, or 0 if create fail
-
createAccount
create charge from selected account elements- Parameters:
dataTable
-
-
getCreatedAccountNames
- Returns:
- comma separated list of account element names (where charge create success)
-
getRejectedAccountNames
- Returns:
- comma separated list of account element names (where charge create fail)
-