]> git.mxchange.org Git - jfinancials-core.git/blobdiff - src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java
Continued:
[jfinancials-core.git] / src / org / mxchange / jfinancials / model / receipt_item / FinancialReceiptItem.java
index 0b5071ac16cbfb9669e073cd097f6c862e1709e5..b8c69a6da07b104a14f0624359d795ded6209520 100644 (file)
@@ -256,12 +256,16 @@ public class FinancialReceiptItem implements BillableReceiptItem {
 
                if (!Objects.equals(this.getItemId(), receiptItem.getItemId())) {
                        return false;
+               } else if (!Objects.equals(this.getItemNumber(), receiptItem.getItemNumber())) {
+                       return false;
                } else if (!Objects.equals(this.getItemProduct(), receiptItem.getItemProduct())) {
                        return false;
                } else if (!Objects.equals(this.getItemProductQuantity(), receiptItem.getItemProductQuantity())) {
                        return false;
                } else if (!Objects.equals(this.getItemReceipt(), receiptItem.getItemReceipt())) {
                        return false;
+               } else if (!Objects.equals(this.getItemCouponNumber(), receiptItem.getItemCouponNumber())) {
+                       return false;
                }
 
                return true;
@@ -424,9 +428,11 @@ public class FinancialReceiptItem implements BillableReceiptItem {
                int hash = 5;
 
                hash = 53 * hash + Objects.hashCode(this.getItemId());
+               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());
 
                return hash;
        }