X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjfinancials%2Fmodel%2Freceipt_item%2FFinancialReceiptItem.java;fp=src%2Forg%2Fmxchange%2Fjfinancials%2Fmodel%2Freceipt_item%2FFinancialReceiptItem.java;h=b8c69a6da07b104a14f0624359d795ded6209520;hb=a08b845c5896af449fabd9cf287eea846b5052ab;hp=0b5071ac16cbfb9669e073cd097f6c862e1709e5;hpb=945e292ebb9bc18b4ce14cf8aee5b67346745173;p=jfinancials-core.git diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java index 0b5071a..b8c69a6 100644 --- a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java +++ b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java @@ -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; }