final BillableReceiptItem receiptItem = (BillableReceiptItem) object;
- if (!Objects.equals(this.getItemId(), receiptItem.getItemId())) {
+ if (!Objects.equals(this.getItemBrandName(), receiptItem.getItemBrandName())) {
+ return false;
+ } else if (!Objects.equals(this.getItemCouponNumber(), receiptItem.getItemCouponNumber())) {
+ return false;
+ } else if (!Objects.equals(this.getItemGrossPrice(), receiptItem.getItemGrossPrice())) {
+ return false;
+ } else if (!Objects.equals(this.getItemIsDiscount(), receiptItem.getItemIsDiscount())) {
+ return false;
+ } else if (!Objects.equals(this.getItemIsRefund(), receiptItem.getItemIsRefund())) {
+ return false;
+ } else if (!Objects.equals(this.getItemManufacturer(), receiptItem.getItemManufacturer())) {
return false;
} else if (!Objects.equals(this.getItemNumber(), receiptItem.getItemNumber())) {
return false;
return false;
} else if (!Objects.equals(this.getItemReceipt(), receiptItem.getItemReceipt())) {
return false;
- } else if (!Objects.equals(this.getItemCouponNumber(), receiptItem.getItemCouponNumber())) {
+ } else if (!Objects.equals(this.getItemTaxRate(), receiptItem.getItemTaxRate())) {
return false;
}
public int hashCode () {
int hash = 5;
+ hash = 53 * hash + Objects.hashCode(this.getItemBrandName());
+ hash = 53 * hash + Objects.hashCode(this.getItemCouponNumber());
+ hash = 53 * hash + Objects.hashCode(this.getItemGrossPrice());
hash = 53 * hash + Objects.hashCode(this.getItemId());
+ hash = 53 * hash + Objects.hashCode(this.getItemIsDiscount());
+ hash = 53 * hash + Objects.hashCode(this.getItemIsRefund());
+ hash = 53 * hash + Objects.hashCode(this.getItemManufacturer());
hash = 53 * hash + Objects.hashCode(this.getItemNumber());
hash = 53 * hash + Objects.hashCode(this.getItemProduct());
hash = 53 * hash + Objects.hashCode(this.getItemProductQuantity());
hash = 53 * hash + Objects.hashCode(this.getItemReceipt());
- hash = 53 * hash + Objects.hashCode(this.getItemCouponNumber());
+ hash = 53 * hash + Objects.hashCode(this.getItemTaxRate());
return hash;
}