Class InvestFields
java.lang.Object
com.infinitekind.moneydance.model.InvestFields
public class InvestFields
extends java.lang.Object
InvestField objects know how to extract the relevant fields from investment
transactions so that they can be more easily edited and displayed.
-
Field Summary
Fields Modifier and Type Field Description long
amount
Account
category
java.lang.String
checkNum
CurrencyType
curr
int
date
boolean
debug
long
fee
Account
feeAcct
boolean
hasAmount
boolean
hasCategory
boolean
hasFee
boolean
hasMemo
boolean
hasPrice
boolean
hasSecurity
boolean
hasShares
boolean
hasXfrAcct
java.lang.String
memo
boolean
negateCategory
boolean
negateSecurity
java.lang.String
payee
double
price
CurrencyType
secCurr
Account
security
long
shares
AbstractTxn.ClearedStatus
status
int
taxDate
InvestTxnType
txnType
Account
xfrAcct
-
Constructor Summary
Constructors Constructor Description InvestFields()
-
Method Summary
Modifier and Type Method Description static double
safeRate(double rate)
If the given rate is zero, return a number that can be used as a denominator, otherwise,void
setFieldStatus(InvestTxnType txnType, Txn txn)
void
setFieldStatus(Txn txn)
void
storeFields(ParentTxn txn)
java.lang.String
toString()
-
Field Details
-
hasPrice
public boolean hasPrice -
hasSecurity
public boolean hasSecurity -
hasShares
public boolean hasShares -
hasFee
public boolean hasFee -
hasCategory
public boolean hasCategory -
hasXfrAcct
public boolean hasXfrAcct -
hasAmount
public boolean hasAmount -
hasMemo
public boolean hasMemo -
negateSecurity
public boolean negateSecurity -
negateCategory
public boolean negateCategory -
curr
-
secCurr
-
date
public int date -
taxDate
public int taxDate -
txnType
-
checkNum
public java.lang.String checkNum -
payee
public java.lang.String payee -
memo
public java.lang.String memo -
status
-
amount
public long amount -
shares
public long shares -
price
public double price -
security
-
category
-
xfrAcct
-
feeAcct
-
fee
public long fee -
debug
public boolean debug
-
-
Constructor Details
-
InvestFields
public InvestFields()
-
-
Method Details
-
setFieldStatus
-
setFieldStatus
-
storeFields
-
safeRate
public static final double safeRate(double rate)If the given rate is zero, return a number that can be used as a denominator, otherwise, -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-