Rev 22858 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;public class CustomOrderItem {private String description;private int quantity;private float rate;private float discount;private float amount;private float netAmount;private float igstRate;private float igstAmount;private float cgstRate;private float cgstAmount;private float sgstRate;private float sgstAmount;private String hsnCode;private int orderId;public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public int getQuantity() {return quantity;}public void setQuantity(int quantity) {this.quantity = quantity;}public float getRate() {return rate;}public void setRate(float rate) {this.rate = rate;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}public float getIgstRate() {return igstRate;}public void setIgstRate(float igstRate) {this.igstRate = igstRate;}public float getIgstAmount() {return igstAmount;}public void setIgstAmount(float igstAmount) {this.igstAmount = igstAmount;}public float getCgstRate() {return cgstRate;}public void setCgstRate(float cgstRate) {this.cgstRate = cgstRate;}public float getCgstAmount() {return cgstAmount;}public void setCgstAmount(float cgstAmount) {this.cgstAmount = cgstAmount;}public float getSgstRate() {return sgstRate;}public void setSgstRate(float sgstRate) {this.sgstRate = sgstRate;}public float getSgstAmount() {return sgstAmount;}public void setSgstAmount(float sgstAmount) {this.sgstAmount = sgstAmount;}public String getHsnCode() {return hsnCode;}public void setHsnCode(String hsnCode) {this.hsnCode = hsnCode;}public float getDiscount() {return discount;}public void setDiscount(float discount) {this.discount = discount;}public float getNetAmount() {return netAmount;}public void setNetAmount(float netAmount) {this.netAmount = netAmount;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + Float.floatToIntBits(amount);result = prime * result + Float.floatToIntBits(cgstAmount);result = prime * result + Float.floatToIntBits(cgstRate);result = prime * result + ((description == null) ? 0 : description.hashCode());result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());result = prime * result + Float.floatToIntBits(igstAmount);result = prime * result + Float.floatToIntBits(igstRate);//result = prime * result + Float.floatToIntBits(itemTotal);result = prime * result + quantity;result = prime * result + Float.floatToIntBits(rate);result = prime * result + Float.floatToIntBits(sgstAmount);result = prime * result + Float.floatToIntBits(sgstRate);return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CustomOrderItem other = (CustomOrderItem) obj;if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))return false;if (Float.floatToIntBits(cgstAmount) != Float.floatToIntBits(other.cgstAmount))return false;if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))return false;if (description == null) {if (other.description != null)return false;} else if (!description.equals(other.description))return false;if (hsnCode == null) {if (other.hsnCode != null)return false;} else if (!hsnCode.equals(other.hsnCode))return false;if (Float.floatToIntBits(igstAmount) != Float.floatToIntBits(other.igstAmount))return false;if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))return false;if (quantity != other.quantity)return false;if (Float.floatToIntBits(rate) != Float.floatToIntBits(other.rate))return false;if (Float.floatToIntBits(sgstAmount) != Float.floatToIntBits(other.sgstAmount))return false;if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))return false;return true;}@Overridepublic String toString() {return "CustomOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount+ ", hsnCode=" + hsnCode + "]";}public int getOrderId() {return orderId;}public void setOrderId(int orderId) {this.orderId = orderId;}}