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.
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);
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.
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);
*/
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;
// 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;
*/
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;
*/
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;
*/
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;
*/
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;