| 21686 |
ashik.ali |
1 |
package com.spice.profitmandi.common.model;
|
|
|
2 |
|
| 35696 |
amit |
3 |
import java.util.ArrayList;
|
| 23001 |
amit.gupta |
4 |
import java.util.List;
|
| 30399 |
amit.gupta |
5 |
import java.util.Objects;
|
| 21686 |
ashik.ali |
6 |
|
| 30321 |
amit.gupta |
7 |
public class InvoicePdfModel {
|
| 32246 |
tejbeer |
8 |
private String title;
|
|
|
9 |
private String auther;
|
|
|
10 |
private CustomCustomer customer;
|
|
|
11 |
private String customerAddressStateCode;
|
| 30321 |
amit.gupta |
12 |
|
| 32980 |
amit.gupta |
13 |
private IrnModel irnModel;
|
| 30321 |
amit.gupta |
14 |
|
| 32980 |
amit.gupta |
15 |
|
| 32246 |
tejbeer |
16 |
private CustomRetailer retailer;
|
|
|
17 |
private String invoiceNumber;
|
|
|
18 |
private boolean isCancelled;
|
| 30399 |
amit.gupta |
19 |
|
| 32246 |
tejbeer |
20 |
private String invoiceDate;
|
| 33298 |
amit.gupta |
21 |
private List<CustomOrderItem> orderItems;
|
|
|
22 |
private List<CustomInsurancePolicy> insurancePolicies;
|
| 32246 |
tejbeer |
23 |
private List<CustomPaymentOption> paymentOptions;
|
|
|
24 |
private List<String> tncs;
|
| 35024 |
amit |
25 |
|
|
|
26 |
@Override
|
|
|
27 |
public boolean equals(Object o) {
|
|
|
28 |
if (this == o) return true;
|
|
|
29 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
30 |
InvoicePdfModel that = (InvoicePdfModel) o;
|
|
|
31 |
return isCancelled == that.isCancelled && Float.compare(totalAmount, that.totalAmount) == 0 && Objects.equals(title, that.title) && Objects.equals(auther, that.auther) && Objects.equals(customer, that.customer) && Objects.equals(customerAddressStateCode, that.customerAddressStateCode) && Objects.equals(irnModel, that.irnModel) && Objects.equals(retailer, that.retailer) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(invoiceDate, that.invoiceDate) && Objects.equals(orderItems, that.orderItems) && Objects.equals(insurancePolicies, that.insurancePolicies) && Objects.equals(paymentOptions, that.paymentOptions) && Objects.equals(tncs, that.tncs) && Objects.equals(creditTerms, that.creditTerms) && Objects.equals(eWayBillPdfModel, that.eWayBillPdfModel) && Objects.equals(partnerAddressStateCode, that.partnerAddressStateCode);
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
@Override
|
|
|
35 |
public int hashCode() {
|
|
|
36 |
return Objects.hash(title, auther, customer, customerAddressStateCode, irnModel, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, creditTerms, totalAmount, eWayBillPdfModel, partnerAddressStateCode);
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
@Override
|
|
|
40 |
public String toString() {
|
|
|
41 |
return "InvoicePdfModel{" +
|
|
|
42 |
"title='" + title + '\'' +
|
|
|
43 |
", auther='" + auther + '\'' +
|
|
|
44 |
", customer=" + customer +
|
|
|
45 |
", customerAddressStateCode='" + customerAddressStateCode + '\'' +
|
|
|
46 |
", irnModel=" + irnModel +
|
|
|
47 |
", retailer=" + retailer +
|
|
|
48 |
", invoiceNumber='" + invoiceNumber + '\'' +
|
|
|
49 |
", isCancelled=" + isCancelled +
|
|
|
50 |
", invoiceDate='" + invoiceDate + '\'' +
|
|
|
51 |
", orderItems=" + orderItems +
|
|
|
52 |
", insurancePolicies=" + insurancePolicies +
|
|
|
53 |
", paymentOptions=" + paymentOptions +
|
|
|
54 |
", tncs=" + tncs +
|
|
|
55 |
", creditTerms=" + creditTerms +
|
|
|
56 |
", totalAmount=" + totalAmount +
|
|
|
57 |
", eWayBillPdfModel=" + eWayBillPdfModel +
|
|
|
58 |
", partnerAddressStateCode='" + partnerAddressStateCode + '\'' +
|
|
|
59 |
'}';
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
private List<String> creditTerms;
|
| 32246 |
tejbeer |
63 |
private float totalAmount;
|
| 30399 |
amit.gupta |
64 |
|
| 33741 |
amit.gupta |
65 |
private EWayBillPdfModel eWayBillPdfModel;
|
| 35696 |
amit |
66 |
private boolean hasMarginSchemeItems;
|
|
|
67 |
private List<String> marginSchemeDeclarations;
|
| 35799 |
amit |
68 |
private boolean showDiscountColumn = true; // Default true for FOFO, false for Transaction.Order
|
| 32980 |
amit.gupta |
69 |
|
|
|
70 |
|
| 33741 |
amit.gupta |
71 |
|
| 32246 |
tejbeer |
72 |
public boolean isCancelled() {
|
|
|
73 |
return isCancelled;
|
|
|
74 |
}
|
| 30399 |
amit.gupta |
75 |
|
| 32246 |
tejbeer |
76 |
public void setCancelled(boolean isCancelled) {
|
|
|
77 |
this.isCancelled = isCancelled;
|
|
|
78 |
}
|
| 30399 |
amit.gupta |
79 |
|
| 32246 |
tejbeer |
80 |
public String getCustomerAddressStateCode() {
|
|
|
81 |
return customerAddressStateCode;
|
|
|
82 |
}
|
| 30399 |
amit.gupta |
83 |
|
| 32246 |
tejbeer |
84 |
public void setCustomerAddressStateCode(String customerAddressStateCode) {
|
|
|
85 |
this.customerAddressStateCode = customerAddressStateCode;
|
|
|
86 |
}
|
| 30399 |
amit.gupta |
87 |
|
| 32246 |
tejbeer |
88 |
private String partnerAddressStateCode;
|
| 30399 |
amit.gupta |
89 |
|
| 32246 |
tejbeer |
90 |
public String getPartnerAddressStateCode() {
|
|
|
91 |
return partnerAddressStateCode;
|
|
|
92 |
}
|
| 30399 |
amit.gupta |
93 |
|
| 32246 |
tejbeer |
94 |
public void setPartnerAddressStateCode(String partnerAddressStateCode) {
|
|
|
95 |
this.partnerAddressStateCode = partnerAddressStateCode;
|
|
|
96 |
}
|
| 30399 |
amit.gupta |
97 |
|
| 32246 |
tejbeer |
98 |
public String getTitle() {
|
|
|
99 |
return title;
|
|
|
100 |
}
|
| 30399 |
amit.gupta |
101 |
|
| 32246 |
tejbeer |
102 |
public void setTitle(String title) {
|
|
|
103 |
this.title = title;
|
|
|
104 |
}
|
| 30399 |
amit.gupta |
105 |
|
| 32246 |
tejbeer |
106 |
public String getAuther() {
|
|
|
107 |
return auther;
|
|
|
108 |
}
|
| 30399 |
amit.gupta |
109 |
|
| 32246 |
tejbeer |
110 |
public void setAuther(String auther) {
|
|
|
111 |
this.auther = auther;
|
|
|
112 |
}
|
| 30399 |
amit.gupta |
113 |
|
| 32246 |
tejbeer |
114 |
public CustomCustomer getCustomer() {
|
|
|
115 |
return customer;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public void setCustomer(CustomCustomer customer) {
|
|
|
119 |
this.customer = customer;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public CustomRetailer getRetailer() {
|
|
|
123 |
return retailer;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
public void setRetailer(CustomRetailer retailer) {
|
|
|
127 |
this.retailer = retailer;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public String getInvoiceNumber() {
|
|
|
131 |
return invoiceNumber;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
135 |
this.invoiceNumber = invoiceNumber;
|
|
|
136 |
}
|
|
|
137 |
|
| 33298 |
amit.gupta |
138 |
public List<CustomOrderItem> getOrderItems() {
|
| 32246 |
tejbeer |
139 |
return orderItems;
|
|
|
140 |
}
|
|
|
141 |
|
| 33298 |
amit.gupta |
142 |
public void setOrderItems(List<CustomOrderItem> orderItems) {
|
| 32246 |
tejbeer |
143 |
this.orderItems = orderItems;
|
|
|
144 |
}
|
|
|
145 |
|
| 33298 |
amit.gupta |
146 |
public List<CustomInsurancePolicy> getInsurancePolicies() {
|
| 32246 |
tejbeer |
147 |
return insurancePolicies;
|
|
|
148 |
}
|
|
|
149 |
|
| 33298 |
amit.gupta |
150 |
public void setInsurancePolicies(List<CustomInsurancePolicy> insurancePolicies) {
|
| 32246 |
tejbeer |
151 |
this.insurancePolicies = insurancePolicies;
|
|
|
152 |
}
|
|
|
153 |
|
| 33741 |
amit.gupta |
154 |
public EWayBillPdfModel geteWayBillPdfModel() {
|
|
|
155 |
return eWayBillPdfModel;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
public void seteWayBillPdfModel(EWayBillPdfModel eWayBillPdfModel) {
|
|
|
159 |
this.eWayBillPdfModel = eWayBillPdfModel;
|
|
|
160 |
}
|
|
|
161 |
|
| 32246 |
tejbeer |
162 |
public float getTotalAmount() {
|
|
|
163 |
return totalAmount;
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public void setTotalAmount(float totalAmount) {
|
|
|
167 |
this.totalAmount = totalAmount;
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
public String getInvoiceDate() {
|
|
|
171 |
return invoiceDate;
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
public void setInvoiceDate(String invoiceDate) {
|
|
|
175 |
this.invoiceDate = invoiceDate;
|
|
|
176 |
}
|
|
|
177 |
|
|
|
178 |
public List<String> getTncs() {
|
|
|
179 |
return tncs;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
public void setTncs(List<String> tncs) {
|
|
|
183 |
this.tncs = tncs;
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
public List<CustomPaymentOption> getPaymentOptions() {
|
|
|
187 |
return paymentOptions;
|
|
|
188 |
}
|
|
|
189 |
|
|
|
190 |
public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
|
|
|
191 |
this.paymentOptions = paymentOptions;
|
|
|
192 |
}
|
|
|
193 |
|
| 32980 |
amit.gupta |
194 |
public IrnModel getIrnModel() {
|
|
|
195 |
return irnModel;
|
| 32246 |
tejbeer |
196 |
}
|
|
|
197 |
|
| 32980 |
amit.gupta |
198 |
public void setIrnModel(IrnModel irnModel) {
|
|
|
199 |
this.irnModel = irnModel;
|
| 32246 |
tejbeer |
200 |
}
|
|
|
201 |
|
| 35024 |
amit |
202 |
public void setCreditTerms(List<String> creditTerms) {
|
|
|
203 |
this.creditTerms = creditTerms;
|
| 32246 |
tejbeer |
204 |
}
|
| 35024 |
amit |
205 |
|
|
|
206 |
public List<String> getCreditTerms() {
|
|
|
207 |
return creditTerms;
|
|
|
208 |
}
|
| 35696 |
amit |
209 |
|
|
|
210 |
public boolean isHasMarginSchemeItems() {
|
|
|
211 |
return hasMarginSchemeItems;
|
|
|
212 |
}
|
|
|
213 |
|
|
|
214 |
public void setHasMarginSchemeItems(boolean hasMarginSchemeItems) {
|
|
|
215 |
this.hasMarginSchemeItems = hasMarginSchemeItems;
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
public List<String> getMarginSchemeDeclarations() {
|
|
|
219 |
return marginSchemeDeclarations;
|
|
|
220 |
}
|
|
|
221 |
|
|
|
222 |
public void setMarginSchemeDeclarations(List<String> marginSchemeDeclarations) {
|
|
|
223 |
this.marginSchemeDeclarations = marginSchemeDeclarations;
|
|
|
224 |
}
|
| 35799 |
amit |
225 |
|
|
|
226 |
public boolean isShowDiscountColumn() {
|
|
|
227 |
return showDiscountColumn;
|
|
|
228 |
}
|
|
|
229 |
|
|
|
230 |
public void setShowDiscountColumn(boolean showDiscountColumn) {
|
|
|
231 |
this.showDiscountColumn = showDiscountColumn;
|
|
|
232 |
}
|
| 21686 |
ashik.ali |
233 |
}
|