Signed-off-by: Roland Häder <roland@mxchange.org>
} else if (!Objects.equals(receipt1.getReceiptNumber(), receipt2.getReceiptNumber())) {
// Other receipt number
return false;
+ } else if (!Objects.equals(receipt1.getReceiptIssued(), receipt2.getReceiptIssued())) {
+ // Other issue date
+ return false;
} else if (!Objects.equals(receipt1.getReceiptUser(), receipt2.getReceiptUser())) {
// Other user (unlikely to happen
return false;
} else if (!Objects.equals(receiptItem1.getItemProductQuantity(), receiptItem2.getItemProductQuantity())) {
// Other item quantity
return false;
+ } else if (!Objects.equals(receiptItem1.getItemNumber(), receiptItem2.getItemNumber())) {
+ // Other item number
+ return false;
}
// Maybe same receipt!