|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.engine.TransactionEntry
jgnash.engine.AbstractInvestmentTransactionEntry
jgnash.engine.TransactionEntrySellX
public class TransactionEntrySellX
Sell shares and increase the (cash) balance of an account
The investment account is always assigned to the credit account. If an account other than the investment account is assigned to the debit account, then the balance of the debit account is increased because the gains of the sell are added to it.
| Constructor Summary | |
|---|---|
|
TransactionEntrySellX()
Deprecated. |
protected |
TransactionEntrySellX(Account account,
Account investmentAccount,
SecurityNode securityNode,
java.math.BigDecimal price,
java.math.BigDecimal quantity,
java.math.BigDecimal exchangeRate)
Constructor |
| Method Summary | |
|---|---|
java.math.BigDecimal |
getSignedQuantity()
Returns the number of shares as it would impact the sum of the investment accounts shares. |
TransactionType |
getTransactionType()
Returns the type of this transaction entry |
| Methods inherited from class jgnash.engine.AbstractInvestmentTransactionEntry |
|---|
getPrice, getQuantity, getSecurityNode, getTotal, setPrice, setQuantity, setSecurityNode, toString |
| Methods inherited from class jgnash.engine.TransactionEntry |
|---|
clone, compareTo, equals, equals, getAmount, getCreditAccount, getCreditAmount, getCreditReconciled, getDebitAccount, getDebitAmount, getDebitReconciled, getMemo, getReconciled, getTransactionTag, hashCode, isSingleEntry, setAmount, setCreditAccount, setCreditAmount, setCreditReconciled, setDebitAccount, setDebitAmount, setDebitReconciled, setMemo, setReconciled, setTransactionTag |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public TransactionEntrySellX()
protected TransactionEntrySellX(Account account,
Account investmentAccount,
SecurityNode securityNode,
java.math.BigDecimal price,
java.math.BigDecimal quantity,
java.math.BigDecimal exchangeRate)
account - Debit accountinvestmentAccount - Credit / Investment accountsecurityNode - Security for the transactionprice - Price of sharesquantity - Number of sharesexchangeRate - Exchange rate for the debit account (May be ONE, but may not be null and must be greater than ZERO)| Method Detail |
|---|
public java.math.BigDecimal getSignedQuantity()
getSignedQuantity in class AbstractInvestmentTransactionEntrypublic TransactionType getTransactionType()
AbstractInvestmentTransactionEntry
getTransactionType in class AbstractInvestmentTransactionEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||