From aae4b8a9436bd4491a6d30b731a4c44918e8606d Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Sun, 5 Nov 2017 13:58:50 +0100
Subject: [PATCH] Continued: - added item's number
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Roland Häder <roland@mxchange.org>
---
 .../receipt_item/BillableReceiptItem.java      | 14 ++++++++++++++
 .../receipt_item/FinancialReceiptItem.java     | 18 +++++++++++++++++-
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java b/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java
index c2dc8bd..228d69c 100644
--- a/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java
+++ b/src/org/mxchange/jfinancials/model/receipt_item/BillableReceiptItem.java
@@ -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);
 
diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java
index bc695ed..35a00e5 100644
--- a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java
+++ b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItem.java
@@ -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;
-- 
2.39.5