]> git.mxchange.org Git - jbonuscard-lib.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 23:39:10 +0000 (01:39 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 23:39:10 +0000 (01:39 +0200)
- added business method isReceiptRegistered()

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java

index f88b019c6667bfcdc34857c3033b6f5aab313775..658610ca6e1aafa7b8d574434a095f229b8a7ea4 100644 (file)
@@ -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.
+        * <p>
+        * @param receipt Receipt instance
+        * <p>
+        * @return Whether the receipt has already been registered
+        */
+       boolean isReceiptRegistered (final BillableReceipt receipt);
+
 }