jgnash.ui.report.compiled
Class ProfitLossTXT
java.lang.Object
jgnash.ui.report.compiled.ProfitLossTXT
public class ProfitLossTXT
- extends java.lang.Object
Profit loss report
- Version:
- $Id$
- Author:
- Michael Mueller, Craig Cavanaugh, David Robertson
|
Method Summary |
private void |
createReport()
|
private static java.lang.String |
formatAcctNameOut(java.lang.String acctName)
format output account name |
private java.lang.String |
formatDecimalOut(java.math.BigDecimal amt)
format output decimal amount |
(package private) void |
getBalances(Account a,
java.util.Date[] dates1,
AccountType type)
|
(package private) java.util.Date[] |
getDates()
|
(package private) java.lang.String |
getFileName()
|
private static java.util.Date[] |
getLastDays(java.util.Date start,
java.util.Date stop)
|
(package private) void |
writePLFile(java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numberFormat
private java.text.NumberFormat numberFormat
showEmptyAccount
private boolean showEmptyAccount
balance
private java.util.ArrayList<java.math.BigDecimal> balance
pl
private java.util.ArrayList<java.lang.String> pl
baseCommodity
private CurrencyNode baseCommodity
dates
private java.util.Date[] dates
rb
private final Resource rb
ProfitLossTXT
public ProfitLossTXT()
createReport
private void createReport()
writePLFile
void writePLFile(java.lang.String fileName)
getLastDays
private static java.util.Date[] getLastDays(java.util.Date start,
java.util.Date stop)
getDates
java.util.Date[] getDates()
getFileName
java.lang.String getFileName()
formatDecimalOut
private java.lang.String formatDecimalOut(java.math.BigDecimal amt)
- format output decimal amount
- Parameters:
amt - the BigDecimal value to format
- Returns:
- formated string
formatAcctNameOut
private static java.lang.String formatAcctNameOut(java.lang.String acctName)
- format output account name
- Parameters:
acctName - the account name to format
- Returns:
- the formatted account name
getBalances
void getBalances(Account a,
java.util.Date[] dates1,
AccountType type)