Subversion Repositories SmartDukaan

Rev

Rev 31903 | Rev 31920 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31903 Rev 31914
Line 13... Line 13...
13
    List<OfferPayout> offerPayouts;
13
    List<OfferPayout> offerPayouts;
14
 
14
 
15
    private double fixedAmount;
15
    private double fixedAmount;
16
    private double percentageAmount;
16
    private double percentageAmount;
17
    private double paidAmount;
17
    private double paidAmount;
-
 
18
    private double dp;
18
 
19
 
19
 
20
 
20
    public InventoryPayoutModel(int inventoryItemId, List<SchemeInOut> schemePayouts, List<OfferPayout> offerPayouts) {
21
    public InventoryPayoutModel(int inventoryItemId, List<SchemeInOut> schemePayouts, List<OfferPayout> offerPayouts) {
21
        this.inventoryItemId = inventoryItemId;
22
        this.inventoryItemId = inventoryItemId;
22
        this.schemePayouts = schemePayouts;
23
        this.schemePayouts = schemePayouts;
Line 33... Line 34...
33
                ", percentageAmount=" + percentageAmount +
34
                ", percentageAmount=" + percentageAmount +
34
                ", paidAmount=" + paidAmount +
35
                ", paidAmount=" + paidAmount +
35
                '}';
36
                '}';
36
    }
37
    }
37
 
38
 
38
    @Override
-
 
39
    public boolean equals(Object o) {
-
 
40
        if (this == o) return true;
-
 
41
        if (o == null || getClass() != o.getClass()) return false;
-
 
42
        InventoryPayoutModel that = (InventoryPayoutModel) o;
-
 
43
        return inventoryItemId == that.inventoryItemId && Double.compare(that.fixedAmount, fixedAmount) == 0 && Double.compare(that.percentageAmount, percentageAmount) == 0 && Double.compare(that.paidAmount, paidAmount) == 0 && Objects.equals(schemePayouts, that.schemePayouts) && Objects.equals(offerPayouts, that.offerPayouts);
-
 
44
    }
-
 
45
 
-
 
46
    @Override
-
 
47
    public int hashCode() {
-
 
48
        return Objects.hash(inventoryItemId, schemePayouts, offerPayouts, fixedAmount, percentageAmount, paidAmount);
-
 
49
    }
-
 
50
 
-
 
51
    public double getPercentageAmount() {
39
    public double getPercentageAmount() {
52
        return percentageAmount;
40
        return percentageAmount;
53
    }
41
    }
54
 
42
 
55
    public void setPercentageAmount(double percentageAmount) {
43
    public void setPercentageAmount(double percentageAmount) {
Line 92... Line 80...
92
 
80
 
93
    public List<OfferPayout> getOfferPayouts() {
81
    public List<OfferPayout> getOfferPayouts() {
94
        return offerPayouts;
82
        return offerPayouts;
95
    }
83
    }
96
 
84
 
-
 
85
    public double getDp() {
-
 
86
        return dp;
-
 
87
    }
-
 
88
 
-
 
89
    public void setDp(double dp) {
-
 
90
        this.dp = dp;
-
 
91
    }
-
 
92
 
-
 
93
    @Override
-
 
94
    public boolean equals(Object o) {
-
 
95
        if (this == o) return true;
-
 
96
        if (o == null || getClass() != o.getClass()) return false;
-
 
97
        InventoryPayoutModel that = (InventoryPayoutModel) o;
-
 
98
        return inventoryItemId == that.inventoryItemId && Double.compare(that.fixedAmount, fixedAmount) == 0 && Double.compare(that.percentageAmount, percentageAmount) == 0 && Double.compare(that.paidAmount, paidAmount) == 0 && Double.compare(that.dp, dp) == 0 && Objects.equals(schemePayouts, that.schemePayouts) && Objects.equals(offerPayouts, that.offerPayouts);
-
 
99
    }
-
 
100
 
-
 
101
    @Override
-
 
102
    public int hashCode() {
-
 
103
        return Objects.hash(inventoryItemId, schemePayouts, offerPayouts, fixedAmount, percentageAmount, paidAmount, dp);
-
 
104
    }
-
 
105
 
97
    public void setOfferPayouts(List<OfferPayout> offerPayouts) {
106
    public void setOfferPayouts(List<OfferPayout> offerPayouts) {
98
        this.offerPayouts = offerPayouts;
107
        this.offerPayouts = offerPayouts;
99
    }
108
    }
100
}
109
}