Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35172 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDateTime;
4
import java.util.Objects;
5
 
6
public class ModelWisePartnerPoModel {
7
    LocalDateTime createdAt;
8
    String partnerName;
9
    String code;
10
    int warehouseId;
11
    String brand;
12
    String model;
13
    int catalogId;
14
    long quantity;
15
    long todayPoValue;
16
    long todayBilledValue;
17
    String status;
18
    long netAvailableQty;
19
    long reservedQty;
20
 
21
    public ModelWisePartnerPoModel(LocalDateTime createdAt, String partnerName, String code, int warehouseId, String brand, String model, int catalogId, String status, long quantity, long todayPoValue, long todayBilledValue) {
22
        this.createdAt = createdAt;
23
        this.partnerName = partnerName;
24
        this.warehouseId = warehouseId;
25
        this.code = code;
26
        this.catalogId = catalogId;
27
        this.brand = brand;
28
        this.model = model;
29
        this.status = status;
30
        this.quantity = quantity;
31
        this.todayPoValue = todayPoValue;
32
        this.todayBilledValue = todayBilledValue;
33
    }
34
 
35
    public LocalDateTime getCreatedAt() {
36
        return createdAt;
37
    }
38
 
39
    public void setCreatedAt(LocalDateTime createdAt) {
40
        this.createdAt = createdAt;
41
    }
42
 
43
    public String getPartnerName() {
44
        return partnerName;
45
    }
46
 
47
    public void setPartnerName(String partnerName) {
48
        this.partnerName = partnerName;
49
    }
50
 
51
    public String getBrand() {
52
        return brand;
53
    }
54
 
55
    public void setBrand(String brand) {
56
        this.brand = brand;
57
    }
58
 
59
    public String getModel() {
60
        return model;
61
    }
62
 
63
    public void setModel(String model) {
64
        this.model = model;
65
    }
66
 
67
    public long getQuantity() {
68
        return quantity;
69
    }
70
 
71
    public void setQuantity(long quantity) {
72
        this.quantity = quantity;
73
    }
74
 
75
    public long getTodayPoValue() {
76
        return todayPoValue;
77
    }
78
 
79
    public void setTodayPoValue(long todayPoValue) {
80
        this.todayPoValue = todayPoValue;
81
    }
82
 
83
    public long getTodayBilledValue() {
84
        return todayBilledValue;
85
    }
86
 
87
    public void setTodayBilledValue(long todayBilledValue) {
88
        this.todayBilledValue = todayBilledValue;
89
    }
90
 
91
    public String getStatus() {
92
        return status;
93
    }
94
 
95
    public void setStatus(String status) {
96
        this.status = status;
97
    }
98
 
99
    public long getNetAvailableQty() {
100
        return netAvailableQty;
101
    }
102
 
103
    public void setNetAvailableQty(long netAvailableQty) {
104
        this.netAvailableQty = netAvailableQty;
105
    }
106
 
107
    public long getReservedQty() {
108
        return reservedQty;
109
    }
110
 
111
    public void setReservedQty(long reservedQty) {
112
        this.reservedQty = reservedQty;
113
    }
114
 
115
    public String getCode() {
116
        return code;
117
    }
118
 
119
    public void setCode(String code) {
120
        this.code = code;
121
    }
122
 
123
    public int getWarehouseId() {
124
        return warehouseId;
125
    }
126
 
127
    public void setWarehouseId(int warehouseId) {
128
        this.warehouseId = warehouseId;
129
    }
130
 
131
    public int getCatalogId() {
132
        return catalogId;
133
    }
134
 
135
    public void setCatalogId(int catalogId) {
136
        this.catalogId = catalogId;
137
    }
138
 
139
    @Override
140
    public boolean equals(Object o) {
141
        if (this == o) return true;
142
        if (o == null || getClass() != o.getClass()) return false;
143
        ModelWisePartnerPoModel that = (ModelWisePartnerPoModel) o;
144
        return warehouseId == that.warehouseId && catalogId == that.catalogId && quantity == that.quantity && todayPoValue == that.todayPoValue && todayBilledValue == that.todayBilledValue && netAvailableQty == that.netAvailableQty && reservedQty == that.reservedQty && Objects.equals(createdAt, that.createdAt) && Objects.equals(partnerName, that.partnerName) && Objects.equals(code, that.code) && Objects.equals(brand, that.brand) && Objects.equals(model, that.model) && Objects.equals(status, that.status);
145
    }
146
 
147
    @Override
148
    public int hashCode() {
149
        return Objects.hash(createdAt, partnerName, code, warehouseId, brand, model, catalogId, quantity, todayPoValue, todayBilledValue, status, netAvailableQty, reservedQty);
150
    }
151
 
152
    @Override
153
    public String toString() {
154
        return "ModelWisePartnerPoModel{" +
155
                "createdAt=" + createdAt +
156
                ", partnerName='" + partnerName + '\'' +
157
                ", code='" + code + '\'' +
158
                ", warehouseId=" + warehouseId +
159
                ", brand='" + brand + '\'' +
160
                ", model='" + model + '\'' +
161
                ", catalogId=" + catalogId +
162
                ", quantity=" + quantity +
163
                ", todayPoValue=" + todayPoValue +
164
                ", todayBilledValue=" + todayBilledValue +
165
                ", status='" + status + '\'' +
166
                ", netAvailableQty=" + netAvailableQty +
167
                ", reservedQty=" + reservedQty +
168
                '}';
169
    }
170
}