Subversion Repositories SmartDukaan

Rev

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

Rev 31760 Rev 31766
Line 11... Line 11...
11
    private int availability;
11
    private int availability;
12
    private int reserved;
12
    private int reserved;
13
    private int netAvailability;
13
    private int netAvailability;
14
    private int vendorWarehouseId;
14
    private int vendorWarehouseId;
15
    private int fulfillQty;
15
    private int fulfillQty;
-
 
16
    private int newColorQty;
-
 
17
 
-
 
18
    @Override
-
 
19
    public String toString() {
-
 
20
        return "WarehouseItemQtyModel{" +
-
 
21
                "vendorWarehouseNetAvailability=" + vendorWarehouseNetAvailability +
-
 
22
                ", itemId=" + itemId +
-
 
23
                ", warehouseFrom=" + warehouseFrom +
-
 
24
                ", availability=" + availability +
-
 
25
                ", reserved=" + reserved +
-
 
26
                ", netAvailability=" + netAvailability +
-
 
27
                ", vendorWarehouseId=" + vendorWarehouseId +
-
 
28
                ", fulfillQty=" + fulfillQty +
-
 
29
                ", newColorQty=" + newColorQty +
-
 
30
                '}';
-
 
31
    }
-
 
32
 
-
 
33
    public int getRemainingQty() {
-
 
34
        return this.netAvailability - this.fulfillQty;
-
 
35
    }
-
 
36
 
-
 
37
    public int getNewColorQty() {
-
 
38
        return newColorQty;
-
 
39
    }
-
 
40
 
-
 
41
    public void setNewColorQty(int newColorQty) {
-
 
42
        this.newColorQty = newColorQty;
-
 
43
    }
16
 
44
 
17
    public WarehouseItemQtyModel(int itemId, int warehouseFrom, int vendorWarehouseId, int availability, int reserved, int netAvailability) {
45
    public WarehouseItemQtyModel(int itemId, int warehouseFrom, int vendorWarehouseId, int availability, int reserved, int netAvailability) {
18
        this.itemId = itemId;
46
        this.itemId = itemId;
19
        this.warehouseFrom = warehouseFrom;
47
        this.warehouseFrom = warehouseFrom;
20
        this.vendorWarehouseId = vendorWarehouseId;
48
        this.vendorWarehouseId = vendorWarehouseId;
Line 46... Line 74...
46
    public void setFulfillQty(int fulfillQty) {
74
    public void setFulfillQty(int fulfillQty) {
47
        this.fulfillQty = fulfillQty;
75
        this.fulfillQty = fulfillQty;
48
    }
76
    }
49
 
77
 
50
    @Override
78
    @Override
51
    public String toString() {
-
 
52
        return "WarehouseItemQtyModel{" +
-
 
53
                "itemId=" + itemId +
-
 
54
                ", warehouseFrom=" + warehouseFrom +
-
 
55
                ", availability=" + availability +
-
 
56
                ", reserved=" + reserved +
-
 
57
                ", netAvailability=" + netAvailability +
-
 
58
                ", vendorWarehouseId=" + vendorWarehouseId +
-
 
59
                '}';
-
 
60
    }
-
 
61
 
-
 
62
    @Override
-
 
63
    public boolean equals(Object o) {
79
    public boolean equals(Object o) {
64
        if (this == o) return true;
80
        if (this == o) return true;
65
        if (o == null || getClass() != o.getClass()) return false;
81
        if (o == null || getClass() != o.getClass()) return false;
66
        WarehouseItemQtyModel that = (WarehouseItemQtyModel) o;
82
        WarehouseItemQtyModel that = (WarehouseItemQtyModel) o;
67
        return itemId == that.itemId && warehouseFrom == that.warehouseFrom && availability == that.availability && reserved == that.reserved && netAvailability == that.netAvailability && vendorWarehouseId == that.vendorWarehouseId;
83
        return itemId == that.itemId && warehouseFrom == that.warehouseFrom && availability == that.availability && reserved == that.reserved && netAvailability == that.netAvailability && vendorWarehouseId == that.vendorWarehouseId;