]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
updated references
authorRoland Häder <roland@mxchange.org>
Fri, 7 Oct 2022 18:05:28 +0000 (20:05 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 7 Oct 2022 18:05:28 +0000 (20:05 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jfinancials/enterprise/financial/receipt/BaseFinancialsReceiptEnterpriseBean.java
src/java/org/mxchange/jfinancials/enterprise/financial/receipt_item/BaseFinancialsReceiptItemEnterpriseBean.java
src/java/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBean.java
src/java/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBean.java
src/java/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBean.java

index 176cb87fc8cdd60443d8aa17126d3e91ed11ec24..a42383982982a115dcbb764a62c1a801a01fdc75 100644 (file)
@@ -20,7 +20,7 @@ import java.text.MessageFormat;
 import java.util.Date;
 import org.mxchange.jfinancials.enterprise.product.BaseFinancialsProductEnterpriseBean;
 import org.mxchange.jfinancials.model.receipt.BillableReceipt;
-import org.mxchange.jfinancials.model.receipt.Receipts;
+import org.mxchange.jfinancials.model.utils.ReceiptUtils;
 
 /**
  * A general bean for receipt-related methods that can be generalized.
@@ -74,7 +74,7 @@ public abstract class BaseFinancialsReceiptEnterpriseBean extends BaseFinancials
                this.getLoggerBeanLocal().logDebug(MessageFormat.format("mergeReceipt: foundReceipt.receiptId={0}", foundReceipt.getReceiptId())); //NOI18N
 
                // Copy all
-               Receipts.copyReceiptData(detachedReceipt, foundReceipt);
+               ReceiptUtils.copyReceiptData(detachedReceipt, foundReceipt);
 
                // Merge receipt instance
                final BillableReceipt managedReceipt = this.getEntityManager().merge(foundReceipt);
index 4ad3656e44e6f0351d26041df4fd97838b4a7726..1ddca303800be62b27fb55e7eb1f8a907949c1a4 100644 (file)
@@ -20,7 +20,7 @@ import java.text.MessageFormat;
 import java.util.Date;
 import org.mxchange.jfinancials.enterprise.product.BaseFinancialsProductEnterpriseBean;
 import org.mxchange.jfinancials.model.receipt_item.BillableReceiptItem;
-import org.mxchange.jfinancials.model.receipt_item.ReceiptItems;
+import org.mxchange.jfinancials.model.utils.ReceiptItemUtils;
 
 /**
  * A general bean for receipt item related methods that can be generalized.
@@ -74,7 +74,7 @@ public abstract class BaseFinancialsReceiptItemEnterpriseBean extends BaseFinanc
                this.getLoggerBeanLocal().logDebug(MessageFormat.format("mergeReceipt: foundReceiptItem.itemId={0}", foundReceiptItem.getItemId())); //NOI18N
 
                // Copy all
-               ReceiptItems.copyReceiptItemData(detachedReceiptItem, foundReceiptItem);
+               ReceiptItemUtils.copyReceiptItemData(detachedReceiptItem, foundReceiptItem);
 
                // Merge receipt item instance
                final BillableReceiptItem managedReceiptItem = this.getEntityManager().merge(foundReceiptItem);
index 598fc1a7b7fdfa894650850e638b7080b3725c50..a19e126bcbc598e3945bebf61c99fc6f172bbe42 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jfinancials.model.receipt;
 
+import org.mxchange.jfinancials.model.utils.ReceiptUtils;
 import java.text.MessageFormat;
 import java.util.Date;
 import java.util.LinkedList;
@@ -168,7 +169,7 @@ public class FinancialReceiptSessionBean extends BaseFinancialsEnterpriseBean im
                                // Yes, then stop searching
                                isFound = true;
                                break;
-                       } else if (Receipts.isSameReceipt(foundReceipt, receipt)) {
+                       } else if (ReceiptUtils.isSameReceipt(foundReceipt, receipt)) {
                                // Yes, then stop searching
                                isFound = true;
                                break;
index 20c16cc86bc1185fff72a75512021e033d334b34..5fae61e1d15a38cd26e0114df985acfbf5d99ecc 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jfinancials.model.receipt_item;
 
+import org.mxchange.jfinancials.model.utils.ReceiptItemUtils;
 import java.text.MessageFormat;
 import java.util.Date;
 import java.util.Objects;
@@ -169,7 +170,7 @@ public class FinancialAdminReceiptItemSessionBean extends BaseFinancialsReceiptI
                 */
                for (final BillableReceiptItem currentReceiptItem : this.receiptItemBean.fetchReceiptItemsByReceipt(receiptItem.getItemReceipt())) {
                        // Is it the same item?
-                       if (((checkOnlyPrimaryKey && Objects.equals(currentReceiptItem.getItemId(), receiptItem.getItemId())) || ReceiptItems.isSameReceiptItem(currentReceiptItem, receiptItem)) && (checkDiscountRefund || !currentReceiptItem.getItemIsRefund())) {
+                       if (((checkOnlyPrimaryKey && Objects.equals(currentReceiptItem.getItemId(), receiptItem.getItemId())) || ReceiptItemUtils.isSameReceiptItem(currentReceiptItem, receiptItem)) && (checkDiscountRefund || !currentReceiptItem.getItemIsRefund())) {
                                // Found it
                                isFound = true;
                                break;
index e15d15448877b5582c41308b89c7eb6b7df3fb14..83daf93194ad019f246af8126831b3eb99ebf9f5 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jfinancials.model.receipt_item;
 
+import org.mxchange.jfinancials.model.utils.ReceiptItemUtils;
 import java.text.MessageFormat;
 import java.util.Date;
 import java.util.LinkedList;
@@ -176,7 +177,7 @@ public class FinancialReceiptItemSessionBean extends BaseFinancialsEnterpriseBea
                 */
                for (final BillableReceiptItem item : this.fetchReceiptItemsByReceipt(receiptItem.getItemReceipt())) {
                        // Is it the same item?
-                       if (ReceiptItems.isSameReceiptItem(item, receiptItem)) {
+                       if (ReceiptItemUtils.isSameReceiptItem(item, receiptItem)) {
                                // Found it
                                isFound = true;
                                break;