From 524655b2fb69994d6fc8737fd0f0607b99494fe6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 23 Sep 2017 01:39:10 +0200 Subject: [PATCH] Continued a bit: - added business method isReceiptRegistered() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../receipt/FinancialReceiptSessionBeanRemote.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } -- 2.39.5