]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Sep 2022 02:21:29 +0000 (04:21 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Sep 2022 02:21:29 +0000 (04:21 +0200)
- renamed method as this is for recipient items
- also cleared itemId property
- removed debug code

src/java/org/mxchange/jfinancials/beans/financial/model/receipt_item/FinancialsReceiptItemWebRequestBean.java
src/java/org/mxchange/jfinancials/beans/financial/model/receipt_item/action/FinancialAdminReceiptItemActionWebRequestBean.java

index dc8c473860b609ef6104af5714d1cb6ff85ac9f1..5225e5510be9f4c277cb02ee926409d8ac37d4d9 100644 (file)
@@ -96,7 +96,7 @@ public class FinancialsReceiptItemWebRequestBean extends BaseFinancialsBean impl
                }
 
                // Prepare receipt instance
-               final BillableReceiptItem receiptItem = this.createReceiptInstance();
+               final BillableReceiptItem receiptItem = this.createReceiptItemInstance();
 
                // Is the receipt already there?
                if (this.receiptItemListController.isReceiptItemAdded(receiptItem)) {
@@ -136,7 +136,7 @@ public class FinancialsReceiptItemWebRequestBean extends BaseFinancialsBean impl
         * <p>
         * @return Receipt item instance
         */
-       private BillableReceiptItem createReceiptInstance () {
+       private BillableReceiptItem createReceiptItemInstance () {
                // Init receipt instance
                // @TODO Unfinished:
                final BillableReceiptItem receiptItem = new FinancialReceiptItem();
index f6d515d2ae3928cd00fbce28c3badb9339bd5fc8..b7947a63390345a4a678000a064287cffa2d2ec3 100644 (file)
@@ -513,7 +513,6 @@ public class FinancialAdminReceiptItemActionWebRequestBean extends BaseFinancial
                }
 
                // Copy all data
-               System.out.println("receiptItem.itemEntryCreated=" + receiptItem.getItemEntryCreated());
                ReceiptItems.copyReceiptItemData(receiptItem, this.getCurrentReceiptItem());
 
                // Create updated receipt instance
@@ -545,6 +544,7 @@ public class FinancialAdminReceiptItemActionWebRequestBean extends BaseFinancial
                this.setItemBrandName(null);
                this.setItemCouponNumber(null);
                this.setItemGrossPrice(null);
+               this.setItemId(null);
                this.setItemIsDiscount(null);
                this.setItemIsRefund(null);
                this.setItemManufacturer(null);