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 longamountAccountcategoryjava.lang.StringcheckNumCurrencyTypecurrintdatebooleandebuglongfeeAccountfeeAcctbooleanhasAmountbooleanhasCategorybooleanhasFeebooleanhasMemobooleanhasPricebooleanhasSecuritybooleanhasSharesbooleanhasXfrAcctjava.lang.StringmemobooleannegateCategorybooleannegateSecurityjava.lang.StringpayeedoublepriceCurrencyTypesecCurrAccountsecuritylongsharesAbstractTxn.ClearedStatusstatusinttaxDateInvestTxnTypetxnTypeAccountxfrAcct -
Constructor Summary
Constructors Constructor Description InvestFields() -
Method Summary
Modifier and Type Method Description static doublesafeRate(double rate)If the given rate is zero, return a number that can be used as a denominator, otherwise,voidsetFieldStatus(InvestTxnType txnType, Txn txn)voidsetFieldStatus(Txn txn)voidstoreFields(ParentTxn txn)java.lang.StringtoString()
-
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:
toStringin classjava.lang.Object
-