Subversion Repositories SmartDukaan

Rev

Rev 37592 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37592 Rev 37599
Line 112... Line 112...
112
        this.baseValue = scaled(this.totalInvestment
112
        this.baseValue = scaled(this.totalInvestment
113
                .subtract(scaled(agedAppleStockAmount))
113
                .subtract(scaled(agedAppleStockAmount))
114
                .subtract(scaled(utilizedAmount)));
114
                .subtract(scaled(utilizedAmount)));
115
    }
115
    }
116
 
116
 
117
    /** True when the base has moved enough to matter, i.e. at all once rounded to paise. */
-
 
118
    public boolean baseDiffersFrom(PartnerInvestment other) {
-
 
119
        if (other == null) {
-
 
120
            return true;
-
 
121
        }
-
 
122
        return scaled(this.baseValue).compareTo(scaled(other.baseValue)) != 0;
-
 
123
    }
-
 
124
 
-
 
125
    public int getFofoId() {
117
    public int getFofoId() {
126
        return fofoId;
118
        return fofoId;
127
    }
119
    }
128
 
120
 
129
    public void setFofoId(int fofoId) {
121
    public void setFofoId(int fofoId) {