Examples of adjustRateForSplitsInt()


Examples of com.moneydance.apps.md.model.CurrencyType.adjustRateForSplitsInt()

    public double getSplitAdjustedPosition(double referencePosition, int referenceDateInt,
                                           int currentDateInt) {
        CurrencyType currency = currencyWrapper.currencyType;
        double currentRate = currency == null ? 1.0 : currency
                .getUserRateByDateInt(currentDateInt);
        double splitAdjust = currency == null ? 1.0 : currency
                .adjustRateForSplitsInt(referenceDateInt,
                        currentRate, currentDateInt) / currentRate;
        return referencePosition * splitAdjust;
    }

View Full Code Here

Examples of com.moneydance.apps.md.model.CurrencyType.adjustRateForSplitsInt()

        CurrencyType cur = thisTrans.getReferenceAccount().getCurrencyType();
        double currentRate = cur == null ? 1.0
                : cur.getUserRateByDateInt(currentDateInt);
        int prevDateInt = prevTransValues == null ? Integer.MIN_VALUE
                : prevTransValues.getParentTxn().getDateInt();
        double splitAdjust = (cur == null ? 1.0 : cur.adjustRateForSplitsInt(
                prevDateInt, currentRate, currentDateInt) / currentRate);
        this.adjPrevPos = prevTransValues == null ? 0.0 : prevTransValues.getPosition()
                * splitAdjust;

    }
View Full Code Here

Examples of com.moneydance.apps.md.model.CurrencyType.adjustRateForSplitsInt()

        CurrencyType cur = thisTrans.getReferenceAccount().getCurrencyType();
        double currentRate = cur == null ? 1.0 : cur
                .getUserRateByDateInt(currentDateInt);
        int prevDateInt = priorTrans == null ? Integer.MIN_VALUE
                : priorTrans.getParentTxn().getDateInt();
        double splitAdjust = (cur == null ? 1.0 : cur.adjustRateForSplitsInt(
                prevDateInt, currentRate, currentDateInt) / currentRate);
        return priorTrans == null ? 0.0 : splitAdjust;

    }
View Full Code Here

Examples of com.moneydance.apps.md.model.CurrencyType.adjustRateForSplitsInt()

        CurrencyType cur = thisTrans.getReferenceAccount().getCurrencyType();
        double currentRate = cur == null ? 1.0
                : cur.getUserRateByDateInt(currentDateInt);
        int prevDateInt = prevTransValues == null ? Integer.MIN_VALUE
                : prevTransValues.getParentTxn().getDateInt();
        double splitAdjust = (cur == null ? 1.0 : cur.adjustRateForSplitsInt(
                prevDateInt, currentRate, currentDateInt) / currentRate);
        this.adjPrevPos = prevTransValues == null ? 0.0 : prevTransValues.getPosition()
                * splitAdjust;
        this.matchTable = getLotMatchTable();

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.