]> git.mxchange.org Git - jbonuscard-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 13 Mar 2018 21:56:45 +0000 (22:56 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 13 Mar 2018 21:56:45 +0000 (22:56 +0100)
- changed copyright to the Free Software Foundation
- itemProductQuantity needs to be BigDecial to have DECIMAL type in database,
  FLOAT was not the right one

Signed-off-by: Roland Häder <roland@mxchange.org>
17 files changed:
src/org/mxchange/jfinancials/events/receipt/added/ObservableReceiptAddedEvent.java
src/org/mxchange/jfinancials/events/receipt_item/added/ObservableReceiptItemAddedEvent.java
src/org/mxchange/jfinancials/exceptions/receipt/ReceiptAlreadyAddedException.java
src/org/mxchange/jfinancials/exceptions/receipt/ReceiptNotFoundException.java
src/org/mxchange/jfinancials/exceptions/receipt_item/ReceiptItemAlreadyAddedException.java
src/org/mxchange/jfinancials/model/bonus_card/BonusCard.java
src/org/mxchange/jfinancials/model/bonus_card/FinancialBonusCard.java
src/org/mxchange/jfinancials/model/income/BillableIncome.java
src/org/mxchange/jfinancials/model/income/FinancialIncome.java
src/org/mxchange/jfinancials/model/income/IncomeUtils.java
src/org/mxchange/jfinancials/model/income/interval/FinancialInterval.java
src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java
src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java
src/org/mxchange/jfinancials/model/receipt/Receipts.java
src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java
src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java
src/org/mxchange/jfinancials/model/receipt_item/ReceiptItems.java

index 18a6e7898f28329877d7b2b4db5b9ee634f3b9b8..0032f7a89f1932d8a2297a65df023f98528a19e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 1ecd668b0de5043e38280ec67c1174a64c2575c4..d00ae77228fbb1b9675d5ca00f5571101e901add 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index ddc931c6354786da77967267edad6e8ad94b7f18..a82af68a7e469a4bc38acfe357f651b77b4a2ba7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index f1a9d16b695ec9be475b2d1092a9ff6d2bfe81d7..ba5b1b5c01a3c74445e0892c7cf09a5a034c2b8c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index f7447b1c84a819420555fe91085cf953b3943302..c7d041bc4d62276a38c960a55fb097514a4149e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 7833bd649bbd24bc4ea32c2a9bc2907b9df80ef5..05952116c5a4d4e397bbec539bdae6d646907a74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
index 340e25cddd12b916895f415b7ee79e74bdfddc27..b74ac63f3228a3a427aabbb554f7e39e2e200909 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 7953247aa292ea1f8d7af4857d159b18a69bf2f9..2285c976377c0a850632dbf726ec6b68c6be77db 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 73dfc9652d55b8cefe8bb8b5f39ee9a8132d13b9..92ba782b6030fbd64cce306c1acdbb55db108589 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 70054da8ca4f688a5af1f5fbcd8797de941a3d4e..e4c6591b7c70dcc46d3345800cc8983665ffcb93 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 99a1476c62eb4cb55eb729faff428d042f3d938e..bd02b0a2768fd88c5ff872cb282cd095283a97e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index b717de8f3e23e6c4473759d8e990b3fb0706da57..5e5ca0d540d45cd714812c2bccf3cccfdc394313 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 7a69728624b99e4a06e0f6db80e7e732da0d02ca..de5397651ca12f41237e80493cb62d859e642b22 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 9c1c8938b4e0762073dfcf673a96b289ef9c3f4e..24fb923a928acbfcdc6b36197dfacf2153eb528b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
index bc0edafbede07f5797895d23778571455875127e..b573f09428a650c61486ea9ca25822ef66b838b3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -135,14 +135,14 @@ public interface BillableReceiptItem extends Serializable {
         * <p>
         * @return Product quantity
         */
-       Short getItemProductQuantity ();
+       BigDecimal getItemProductQuantity ();
 
        /**
         * Setter for product quantity
         * <p>
         * @param itemProductQuantity Product quantity
         */
-       void setItemProductQuantity (final Short itemProductQuantity);
+       void setItemProductQuantity (final BigDecimal itemProductQuantity);
 
        /**
         * Getter for item's net price
index 7c6203713a25d0982255d91e443ef277d4206991..93c673574a7a905e48d1cd836973467d4c12e55d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -98,7 +98,8 @@ public class FinancialReceiptItem implements BillableReceiptItem {
        /**
         * Gross price of item
         */
-       @Column (name = "item_gross_price", precision = 2)
+       @Basic (optional = false)
+       @Column (name = "item_gross_price", nullable = false, precision = 10, scale = 2)
        private BigDecimal itemGrossPrice;
 
        /**
@@ -133,7 +134,7 @@ public class FinancialReceiptItem implements BillableReceiptItem {
        /**
         * Net price of item
         */
-       @Column (name = "item_net_price", precision = 2)
+       @Column (name = "item_net_price", precision = 10, scale = 2)
        private BigDecimal itemNetPrice;
 
        /**
@@ -153,8 +154,8 @@ public class FinancialReceiptItem implements BillableReceiptItem {
         * Product quantity
         */
        @Basic (optional = false)
-       @Column (name = "item_product_quantity", nullable = false)
-       private Short itemProductQuantity;
+       @Column (name = "item_product_quantity", nullable = false, precision = 3)
+       private BigDecimal itemProductQuantity;
 
        /**
         * Connected itemReceipt item
@@ -182,7 +183,7 @@ public class FinancialReceiptItem implements BillableReceiptItem {
         * @param itemProductQuantity Product quantity
         * @param itemReceipt         FinancialReceipt instance
         */
-       public FinancialReceiptItem (final Product itemProduct, final Short itemProductQuantity, final BillableReceipt itemReceipt) {
+       public FinancialReceiptItem (final Product itemProduct, final BigDecimal itemProductQuantity, final BillableReceipt itemReceipt) {
                // Call other constructor
                this();
 
@@ -341,12 +342,12 @@ public class FinancialReceiptItem implements BillableReceiptItem {
        }
 
        @Override
-       public Short getItemProductQuantity () {
+       public BigDecimal getItemProductQuantity () {
                return this.itemProductQuantity;
        }
 
        @Override
-       public void setItemProductQuantity (final Short itemProductQuantity) {
+       public void setItemProductQuantity (final BigDecimal itemProductQuantity) {
                this.itemProductQuantity = itemProductQuantity;
        }
 
index bb8ef5deb55d8d6c629ee781d5e811e76479dff8..dea7327b909127f7f706c5bf560ca8fec0c91ffb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as