Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33729 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.spice.profitmandi.dao.entity.warehouse.DebitNoteType;
4
 
5
import java.time.LocalDateTime;
6
import java.util.Objects;
7
 
8
public class VendorDebitNoteModel {
9
 
10
    private String debitNoteNumber;
11
    private DebitNoteType debitNoteType;
12
    private LocalDateTime debitNoteCreatedDate;
13
    private int invoiceId;
14
    private String invoiceNumber;
15
    private String itemDescription;
16
    private float unitPrice;
17
    private float quantity;
18
    private float amount;
19
    private float sgst;
20
    private float cgst;
21
    private float igst;
22
    private int itemId;
23
    private int warehouseId;
24
    private String warehouseName;
25
    private String warehouseGSTNumber;
26
    private String warehouseAddress;
27
    private String warehousePinCode;
28
    private String warehouseContactPerson;
29
    private String warehouseContactNumber;
30
    private String supplierName;
31
    private String supplierGst;
32
    private String supplierEmail;
33
    private String supplierContactNumber;
34
    private String supplierRegisteredAddress;
35
 
36
    public VendorDebitNoteModel(String debitNoteNumber, DebitNoteType debitNoteType, LocalDateTime debitNoteCreatedDate, int invoiceId, String invoiceNumber, String itemDescription, float unitPrice, float quantity, float amount, float sgst, float cgst, float igst, int itemId, int warehouseId, String warehouseName, String warehouseGSTNumber, String warehouseAddress, String warehousePinCode, String warehouseContactPerson, String warehouseContactNumber, String supplierName, String supplierGst, String supplierEmail, String supplierContactNumber, String supplierRegisteredAddress) {
37
        this.debitNoteNumber = debitNoteNumber;
38
        this.debitNoteType = debitNoteType;
39
        this.debitNoteCreatedDate = debitNoteCreatedDate;
40
        this.invoiceId = invoiceId;
41
        this.invoiceNumber = invoiceNumber;
42
        this.itemDescription = itemDescription;
43
        this.unitPrice = unitPrice;
44
        this.quantity = quantity;
45
        this.amount = amount;
46
        this.sgst = sgst;
47
        this.cgst = cgst;
48
        this.igst = igst;
49
        this.itemId = itemId;
50
        this.warehouseId = warehouseId;
51
        this.warehouseName = warehouseName;
52
        this.warehouseGSTNumber = warehouseGSTNumber;
53
        this.warehouseAddress = warehouseAddress;
54
        this.warehousePinCode = warehousePinCode;
55
        this.warehouseContactPerson = warehouseContactPerson;
56
        this.warehouseContactNumber = warehouseContactNumber;
57
        this.supplierName = supplierName;
58
        this.supplierGst = supplierGst;
59
        this.supplierEmail = supplierEmail;
60
        this.supplierContactNumber = supplierContactNumber;
61
        this.supplierRegisteredAddress = supplierRegisteredAddress;
62
    }
63
 
64
    public String getDebitNoteNumber() {
65
        return debitNoteNumber;
66
    }
67
 
68
    public void setDebitNoteNumber(String debitNoteNumber) {
69
        this.debitNoteNumber = debitNoteNumber;
70
    }
71
 
72
    public DebitNoteType getDebitNoteType() {
73
        return debitNoteType;
74
    }
75
 
76
    public void setDebitNoteType(DebitNoteType debitNoteType) {
77
        this.debitNoteType = debitNoteType;
78
    }
79
 
80
    public LocalDateTime getDebitNoteCreatedDate() {
81
        return debitNoteCreatedDate;
82
    }
83
 
84
    public void setDebitNoteCreatedDate(LocalDateTime debitNoteCreatedDate) {
85
        this.debitNoteCreatedDate = debitNoteCreatedDate;
86
    }
87
 
88
    public int getInvoiceId() {
89
        return invoiceId;
90
    }
91
 
92
    public void setInvoiceId(int invoiceId) {
93
        this.invoiceId = invoiceId;
94
    }
95
 
96
    public String getInvoiceNumber() {
97
        return invoiceNumber;
98
    }
99
 
100
    public void setInvoiceNumber(String invoiceNumber) {
101
        this.invoiceNumber = invoiceNumber;
102
    }
103
 
104
    public String getItemDescription() {
105
        return itemDescription;
106
    }
107
 
108
    public void setItemDescription(String itemDescription) {
109
        this.itemDescription = itemDescription;
110
    }
111
 
112
    public float getUnitPrice() {
113
        return unitPrice;
114
    }
115
 
116
    public void setUnitPrice(float unitPrice) {
117
        this.unitPrice = unitPrice;
118
    }
119
 
120
    public float getQuantity() {
121
        return quantity;
122
    }
123
 
124
    public void setQuantity(float quantity) {
125
        this.quantity = quantity;
126
    }
127
 
128
    public float getAmount() {
129
        return amount;
130
    }
131
 
132
    public void setAmount(float amount) {
133
        this.amount = amount;
134
    }
135
 
136
    public float getSgst() {
137
        return sgst;
138
    }
139
 
140
    public void setSgst(float sgst) {
141
        this.sgst = sgst;
142
    }
143
 
144
    public float getCgst() {
145
        return cgst;
146
    }
147
 
148
    public void setCgst(float cgst) {
149
        this.cgst = cgst;
150
    }
151
 
152
    public float getIgst() {
153
        return igst;
154
    }
155
 
156
    public void setIgst(float igst) {
157
        this.igst = igst;
158
    }
159
 
160
    public int getItemId() {
161
        return itemId;
162
    }
163
 
164
    public void setItemId(int itemId) {
165
        this.itemId = itemId;
166
    }
167
 
168
    public int getWarehouseId() {
169
        return warehouseId;
170
    }
171
 
172
    public void setWarehouseId(int warehouseId) {
173
        this.warehouseId = warehouseId;
174
    }
175
 
176
    public String getWarehouseName() {
177
        return warehouseName;
178
    }
179
 
180
    public void setWarehouseName(String warehouseName) {
181
        this.warehouseName = warehouseName;
182
    }
183
 
184
    public String getWarehouseGSTNumber() {
185
        return warehouseGSTNumber;
186
    }
187
 
188
    public void setWarehouseGSTNumber(String warehouseGSTNumber) {
189
        this.warehouseGSTNumber = warehouseGSTNumber;
190
    }
191
 
192
    public String getWarehouseAddress() {
193
        return warehouseAddress;
194
    }
195
 
196
    public void setWarehouseAddress(String warehouseAddress) {
197
        this.warehouseAddress = warehouseAddress;
198
    }
199
 
200
    public String getWarehousePinCode() {
201
        return warehousePinCode;
202
    }
203
 
204
    public void setWarehousePinCode(String warehousePinCode) {
205
        this.warehousePinCode = warehousePinCode;
206
    }
207
 
208
    public String getWarehouseContactPerson() {
209
        return warehouseContactPerson;
210
    }
211
 
212
    public void setWarehouseContactPerson(String warehouseContactPerson) {
213
        this.warehouseContactPerson = warehouseContactPerson;
214
    }
215
 
216
    public String getWarehouseContactNumber() {
217
        return warehouseContactNumber;
218
    }
219
 
220
    public void setWarehouseContactNumber(String warehouseContactNumber) {
221
        this.warehouseContactNumber = warehouseContactNumber;
222
    }
223
 
224
    public String getSupplierName() {
225
        return supplierName;
226
    }
227
 
228
    public void setSupplierName(String supplierName) {
229
        this.supplierName = supplierName;
230
    }
231
 
232
    public String getSupplierGst() {
233
        return supplierGst;
234
    }
235
 
236
    public void setSupplierGst(String supplierGst) {
237
        this.supplierGst = supplierGst;
238
    }
239
 
240
    public String getSupplierEmail() {
241
        return supplierEmail;
242
    }
243
 
244
    public void setSupplierEmail(String supplierEmail) {
245
        this.supplierEmail = supplierEmail;
246
    }
247
 
248
    public String getSupplierContactNumber() {
249
        return supplierContactNumber;
250
    }
251
 
252
    public void setSupplierContactNumber(String supplierContactNumber) {
253
        this.supplierContactNumber = supplierContactNumber;
254
    }
255
 
256
    public String getSupplierRegisteredAddress() {
257
        return supplierRegisteredAddress;
258
    }
259
 
260
    public void setSupplierRegisteredAddress(String supplierRegisteredAddress) {
261
        this.supplierRegisteredAddress = supplierRegisteredAddress;
262
    }
263
 
264
    @Override
265
    public boolean equals(Object o) {
266
        if (this == o) return true;
267
        if (o == null || getClass() != o.getClass()) return false;
268
        VendorDebitNoteModel that = (VendorDebitNoteModel) o;
269
        return invoiceId == that.invoiceId && Float.compare(unitPrice, that.unitPrice) == 0 && Float.compare(quantity, that.quantity) == 0 && Float.compare(amount, that.amount) == 0 && Float.compare(sgst, that.sgst) == 0 && Float.compare(cgst, that.cgst) == 0 && Float.compare(igst, that.igst) == 0 && itemId == that.itemId && warehouseId == that.warehouseId && Objects.equals(debitNoteNumber, that.debitNoteNumber) && debitNoteType == that.debitNoteType && Objects.equals(debitNoteCreatedDate, that.debitNoteCreatedDate) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(itemDescription, that.itemDescription) && Objects.equals(warehouseName, that.warehouseName) && Objects.equals(warehouseGSTNumber, that.warehouseGSTNumber) && Objects.equals(warehouseAddress, that.warehouseAddress) && Objects.equals(warehousePinCode, that.warehousePinCode) && Objects.equals(warehouseContactPerson, that.warehouseContactPerson) && Objects.equals(warehouseContactNumber, that.warehouseContactNumber) && Objects.equals(supplierName, that.supplierName) && Objects.equals(supplierGst, that.supplierGst) && Objects.equals(supplierEmail, that.supplierEmail) && Objects.equals(supplierContactNumber, that.supplierContactNumber) && Objects.equals(supplierRegisteredAddress, that.supplierRegisteredAddress);
270
    }
271
 
272
    @Override
273
    public int hashCode() {
274
        return Objects.hash(debitNoteNumber, debitNoteType, debitNoteCreatedDate, invoiceId, invoiceNumber, itemDescription, unitPrice, quantity, amount, sgst, cgst, igst, itemId, warehouseId, warehouseName, warehouseGSTNumber, warehouseAddress, warehousePinCode, warehouseContactPerson, warehouseContactNumber, supplierName, supplierGst, supplierEmail, supplierContactNumber, supplierRegisteredAddress);
275
    }
276
 
277
    @Override
278
    public String toString() {
279
        return "VendorDebitNoteModel{" +
280
                "debitNoteNumber='" + debitNoteNumber + '\'' +
281
                ", debitNoteType=" + debitNoteType +
282
                ", debitNoteCreatedDate=" + debitNoteCreatedDate +
283
                ", invoiceId=" + invoiceId +
284
                ", invoiceNumber='" + invoiceNumber + '\'' +
285
                ", itemDescription='" + itemDescription + '\'' +
286
                ", unitPrice=" + unitPrice +
287
                ", quantity=" + quantity +
288
                ", amount=" + amount +
289
                ", sgst=" + sgst +
290
                ", cgst=" + cgst +
291
                ", igst=" + igst +
292
                ", itemId=" + itemId +
293
                ", warehouseId=" + warehouseId +
294
                ", warehouseName='" + warehouseName + '\'' +
295
                ", warehouseGSTNumber='" + warehouseGSTNumber + '\'' +
296
                ", warehouseAddress='" + warehouseAddress + '\'' +
297
                ", warehousePinCode='" + warehousePinCode + '\'' +
298
                ", warehouseContactPerson='" + warehouseContactPerson + '\'' +
299
                ", warehouseContactNumber='" + warehouseContactNumber + '\'' +
300
                ", supplierName='" + supplierName + '\'' +
301
                ", supplierGst='" + supplierGst + '\'' +
302
                ", supplierEmail='" + supplierEmail + '\'' +
303
                ", supplierContactNumber='" + supplierContactNumber + '\'' +
304
                ", supplierRegisteredAddress='" + supplierRegisteredAddress + '\'' +
305
                '}';
306
    }
307
}