From: Roland Häder Date: Fri, 22 Sep 2017 23:39:10 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=524655b2fb69994d6fc8737fd0f0607b99494fe6;p=jbonuscard-lib.git Continued a bit: - added business method isReceiptRegistered() Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java index f88b019..658610c 100644 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java @@ -59,4 +59,14 @@ public interface FinancialReceiptSessionBeanRemote extends Serializable { */ BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException; + /** + * Checks if given receipt is already persisted by checking receipt number + * and branch office combination. + *

+ * @param receipt Receipt instance + *

+ * @return Whether the receipt has already been registered + */ + boolean isReceiptRegistered (final BillableReceipt receipt); + }