import org.mxchange.jfinancials.model.receipt.BillableReceipt;
import org.mxchange.jfinancials.model.receipt.FinancialAdminReceiptSessionBeanRemote;
import org.mxchange.jfinancials.model.receipt.FinancialReceipt;
-import org.mxchange.jfinancials.model.receipt.Receipts;
+import org.mxchange.jfinancials.model.utils.ReceiptUtils;
import org.mxchange.jproduct.model.payment.PaymentType;
import org.mxchange.jusercore.model.user.User;
}
// Copy all data
- Receipts.copyReceiptData(receipt, this.getCurrentReceipt());
+ ReceiptUtils.copyReceiptData(receipt, this.getCurrentReceipt());
// Create updated receipt instance
final BillableReceipt updatedReceipt;
import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException;
import org.mxchange.jfinancials.model.receipt.BillableReceipt;
import org.mxchange.jfinancials.model.receipt.FinancialReceiptSessionBeanRemote;
-import org.mxchange.jfinancials.model.receipt.Receipts;
+import org.mxchange.jfinancials.model.utils.ReceiptUtils;
/**
* A view-scoped bean for receipt lists
// Is the same id?
if (Objects.equals(receipt.getReceiptId(), event.getReceipt().getReceiptId())) {
// Yes, same primary key found, then copy all elements
- Receipts.copyReceiptData(event.getReceipt(), receipt);
+ ReceiptUtils.copyReceiptData(event.getReceipt(), receipt);
// Mark as found, break loop
isFound = true;
import org.mxchange.jfinancials.model.receipt_item.BillableReceiptItem;
import org.mxchange.jfinancials.model.receipt_item.FinancialAdminReceiptItemSessionBeanRemote;
import org.mxchange.jfinancials.model.receipt_item.FinancialReceiptItem;
-import org.mxchange.jfinancials.model.receipt_item.ReceiptItems;
+import org.mxchange.jfinancials.model.utils.ReceiptItemUtils;
import org.mxchange.jproduct.model.product.Product;
/**
}
// Copy all data
- ReceiptItems.copyReceiptItemData(receiptItem, this.getCurrentReceiptItem());
+ ReceiptItemUtils.copyReceiptItemData(receiptItem, this.getCurrentReceiptItem());
// Create updated receipt instance
final BillableReceiptItem updatedReceiptItem;
import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemNotFoundException;
import org.mxchange.jfinancials.model.receipt_item.BillableReceiptItem;
import org.mxchange.jfinancials.model.receipt_item.FinancialReceiptItemSessionBeanRemote;
-import org.mxchange.jfinancials.model.receipt_item.ReceiptItems;
+import org.mxchange.jfinancials.model.utils.ReceiptItemUtils;
import org.mxchange.juserlogincore.events.login.ObservableUserLoggedInEvent;
/**
// Loop over all
for (final BillableReceiptItem item : this.getAllReceiptItems()) {
// Is the same?
- if (ReceiptItems.isSameReceiptItem(item, receiptItem)) {
+ if (ReceiptItemUtils.isSameReceiptItem(item, receiptItem)) {
// Yes, found it
alreadyAdded = true;
break;