]> git.mxchange.org Git - jbonuscard-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 5 Nov 2017 12:58:50 +0000 (13:58 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 5 Nov 2017 12:58:50 +0000 (13:58 +0100)
- added item's number

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java
src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java

index c2dc8bdda0a15150ef1e5f9d40eb35feb8520f3d..228d69c59d112db2531dedb9488d2826cfa82b24 100644 (file)
@@ -212,6 +212,20 @@ public interface BillableReceiptItem extends Serializable {
         */
        void setItemBrandName (final String itemBrandName);
 
+       /**
+        * Getter for item number
+        * <p>
+        * @return Item number
+        */
+       Long getItemNumber ();
+
+       /**
+        * Setter for item number
+        * <p>
+        * @param itemNumber Item number
+        */
+       void setItemNumber (final Long itemNumber);
+
        @Override
        boolean equals (final Object object);
 
index bc695ed144e74f4d744d787a9e6ee9ec79ed14d9..35a00e5b56850024363aef7ac0440a4a452b0bda 100644 (file)
@@ -74,7 +74,7 @@ public class FinancialReceiptItem implements BillableReceiptItem {
        /**
         * Item branding
         */
-       @Column(name = "item_brand_name")
+       @Column (name = "item_brand_name")
        private String itemBrandName;
 
        /**
@@ -131,6 +131,12 @@ public class FinancialReceiptItem implements BillableReceiptItem {
        @Column (name = "item_net_price")
        private Float itemNetPrice;
 
+       /**
+        * Item's number
+        */
+       @Column(name = "item_number")
+       private Long itemNumber;
+
        /**
         * Product being linked in this itemReceipt item
         */
@@ -299,6 +305,16 @@ public class FinancialReceiptItem implements BillableReceiptItem {
                this.itemNetPrice = itemNetPrice;
        }
 
+       @Override
+       public Long getItemNumber () {
+               return this.itemNumber;
+       }
+
+       @Override
+       public void setItemNumber (final Long itemNumber) {
+               this.itemNumber = itemNumber;
+       }
+
        @Override
        public Product getItemProduct () {
                return this.itemProduct;